Assertion `Graph_GetNode(g, dest, &destNode)' failed error when use enforce-schema flag
weijianzhg opened this issue · 6 comments
Hello, I tried the README example locally:
Nodes and edges:
- User.csv
:ID(User), name:STRING, rank:INT
0, "Jeffrey", 5
1, "Filipe", 8
- FOLLOWS.csv
:START_ID(User), :END_ID(User), reaction_count:INT
0, 1, 25
1, 0, 10
But when I run redisgraph-bulk-loader SocialGraph --enforce-schema --nodes User.csv --relations FOLLOWS.csv I got an Assertion Graph_GetNode(g, dest, &destNode)' failed error.
Note: the loader command works fine without the enforce-schema flag so I suspect the problem is enforce-schema.
Here is the full error log:
redis-server: /redisgraph/src/graph/graph.c:535: Graph_ConnectNodes: Assertion `Graph_GetNode(g, dest, &destNode)' failed.
=== REDIS BUG REPORT START: Cut & paste starting from here ===
1:M 20 Jun 2020 11:17:18.762 # Redis 6.0.3 crashed by signal: 11
1:M 20 Jun 2020 11:17:18.762 # Crashed running the instruction at: 0x7f3ebe91e611
1:M 20 Jun 2020 11:17:18.762 # Accessing address: (nil)
1:M 20 Jun 2020 11:17:18.762 # Failed assertion: <no assertion failed> (<no file>:0)
------ STACK TRACE ------
EIP:
/lib/x86_64-linux-gnu/libc.so.6(abort+0x1fd)[0x7f3ebe91e611]
Backtrace:
redis-server *:6379(logStackTrace+0x32)[0x557a31ca3cc2]
redis-server *:6379(sigsegvHandler+0x9e)[0x557a31ca439e]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7f3ebead1730]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x1fd)[0x7f3ebe91e611]
/lib/x86_64-linux-gnu/libc.so.6(+0x2240f)[0x7f3ebe91e40f]
/lib/x86_64-linux-gnu/libc.so.6(+0x30102)[0x7f3ebe92c102]
/usr/lib/redis/modules/redisgraph.so(Graph_ConnectNodes+0x1a0)[0x7f3ebd910680]
/usr/lib/redis/modules/redisgraph.so(_BulkInsert_ProcessRelationFile+0x96)[0x7f3ebd8f5aa6]
/usr/lib/redis/modules/redisgraph.so(_BulkInsert_Insert_Edges+0x61)[0x7f3ebd8f5d01]
/usr/lib/redis/modules/redisgraph.so(BulkInsert+0x16b)[0x7f3ebd8f5ebb]
/usr/lib/redis/modules/redisgraph.so(_MGraph_BulkInsert+0x189)[0x7f3ebd8f6089]
/usr/lib/redis/modules/redisgraph.so(MGraph_BulkInsert+0x31)[0x7f3ebd8f61a1]
redis-server *:6379(RedisModuleCommandDispatcher+0x54)[0x557a31cd3f94]
redis-server *:6379(call+0x9d)[0x557a31c6001d]
redis-server *:6379(processCommand+0x327)[0x557a31c60797]
redis-server *:6379(processCommandAndResetClient+0x10)[0x557a31c6e4c0]
redis-server *:6379(processInputBuffer+0x18f)[0x557a31c72b1f]
redis-server *:6379(+0xd5d5c)[0x557a31cefd5c]
redis-server *:6379(aeProcessEvents+0x2e7)[0x557a31c59be7]
redis-server *:6379(aeMain+0x1d)[0x557a31c59f2d]
redis-server *:6379(main+0x4c9)[0x557a31c567d9]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)[0x7f3ebe92009b]
redis-server *:6379(_start+0x2a)[0x557a31c56a6a]
------ INFO OUTPUT ------
# Server
redis_version:6.0.3
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:839141755a9d16cb
redis_mode:standalone
os:Linux 4.19.76-linuxkit x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:8.3.0
process_id:1
run_id:9e20eca1be5f44ffd1904bccf3a41917a0d28ed8
tcp_port:6379
uptime_in_seconds:20
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:15593534
executable:/data/redis-server
config_file:
# Clients
connected_clients:1
client_recent_max_input_buffer:0
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0
# Memory
used_memory:2484920
used_memory_human:2.37M
used_memory_rss:10989568
used_memory_rss_human:10.48M
used_memory_peak:2484920
used_memory_peak_human:2.37M
used_memory_peak_perc:296.99%
used_memory_overhead:836784
used_memory_startup:836712
used_memory_dataset:1648136
used_memory_dataset_perc:100.00%
allocator_allocated:1050520
allocator_active:1220608
allocator_resident:3731456
total_system_memory:2087837696
total_system_memory_human:1.94G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.16
allocator_frag_bytes:170088
allocator_rss_ratio:3.06
allocator_rss_bytes:2510848
rss_overhead_ratio:2.95
rss_overhead_bytes:7258112
mem_fragmentation_ratio:13.13
mem_fragmentation_bytes:10152856
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:0
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
# Persistence
loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1592651818
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:0
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0
# Stats
total_connections_received:1
total_commands_processed:2
instantaneous_ops_per_sec:0
total_net_input_bytes:287
total_net_output_bytes:50
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:2
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
# Replication
role:master
connected_slaves:0
master_replid:d08d4685a2ef22d52d309f7d1a7ebe8f278188f5
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
master_repl_meaningful_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0
# CPU
used_cpu_sys:0.032549
used_cpu_user:0.048751
used_cpu_sys_children:0.002123
used_cpu_user_children:0.001580
# Modules
module:name=graph,ver=20012,api=1,filters=0,usedby=[],using=[],options=[]
# Commandstats
cmdstat_module:calls=1,usec=6,usec_per_call=6.00
cmdstat_exists:calls=1,usec=2,usec_per_call=2.00
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=1,expires=0,avg_ttl=0
------ CLIENT LIST OUTPUT ------
id=5 addr=172.17.0.1:53186 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=227 qbuf-free=32541 obl=0 oll=0 omem=0 events=r cmd=graph.BULK user=default
------ CURRENT CLIENT INFO ------
id=5 addr=172.17.0.1:53186 fd=8 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=227 qbuf-free=32541 obl=0 oll=0 omem=0 events=r cmd=graph.BULK user=default
argv[0]: 'GRAPH.BULK'
argv[1]: 'SocialGraph'
argv[2]: 'BEGIN'
argv[3]: '2'
argv[4]: '2'
argv[5]: '1'
argv[6]: '1'
argv[7]: 'User'
argv[8]: 'FOLLOWS'
1:M 20 Jun 2020 11:17:18.765 # key 'SocialGraph' found in DB containing the following object:
1:M 20 Jun 2020 11:17:18.765 # Object type: 5
1:M 20 Jun 2020 11:17:18.765 # Object encoding: 0
1:M 20 Jun 2020 11:17:18.765 # Object refcount: 1
------ REGISTERS ------
1:M 20 Jun 2020 11:17:18.765 #
RAX:0000000000000000 RBX:0000000000000000
RCX:0000000000000000 RDX:0000000000000000
RDI:0000000000000002 RSI:00007fff7d7cfa30
RBP:00007f3ebea80ee0 RSP:00007fff7d7cfb50
R8 :0000000000000000 R9 :00007fff7d7cfa30
R10:0000000000000008 R11:0000000000000246
R12:00007f3ebddb4805 R13:00007f3ebddb4ba0
R14:0000000000000217 R15:00007fff7d7cfe68
RIP:00007f3ebe91e611 EFL:0000000000010246
CSGSFS:002b000000000033
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb5f) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb5e) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb5d) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb5c) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb5b) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb5a) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb59) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb58) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb57) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb56) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb55) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb54) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb53) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb52) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb51) -> 0000000000000000
1:M 20 Jun 2020 11:17:18.765 # (00007fff7d7cfb50) -> 0000000000000020
------ MODULES INFO OUTPUT ------
------ FAST MEMORY TEST ------
1:M 20 Jun 2020 11:17:18.766 # Bio thread for job type #0 terminated
1:M 20 Jun 2020 11:17:18.766 # Bio thread for job type #1 terminated
1:M 20 Jun 2020 11:17:18.766 # Bio thread for job type #2 terminated
*** Preparing to test memory region 557a31dee000 (2277376 bytes)
*** Preparing to test memory region 557a333ba000 (270336 bytes)
*** Preparing to test memory region 7f3eb8cb2000 (2621440 bytes)
*** Preparing to test memory region 7f3eb8f33000 (8388608 bytes)
*** Preparing to test memory region 7f3eb9734000 (8388608 bytes)
*** Preparing to test memory region 7f3eb9f35000 (8388608 bytes)
*** Preparing to test memory region 7f3eba736000 (8388608 bytes)
*** Preparing to test memory region 7f3ebaf37000 (8388608 bytes)
*** Preparing to test memory region 7f3ebb738000 (8388608 bytes)
*** Preparing to test memory region 7f3ebbf39000 (8388608 bytes)
*** Preparing to test memory region 7f3ebc73a000 (8388608 bytes)
*** Preparing to test memory region 7f3ebcf3b000 (8388608 bytes)
*** Preparing to test memory region 7f3ebdffd000 (12288 bytes)
*** Preparing to test memory region 7f3ebe000000 (8388608 bytes)
*** Preparing to test memory region 7f3ebe8f8000 (16384 bytes)
*** Preparing to test memory region 7f3ebeab9000 (24576 bytes)
*** Preparing to test memory region 7f3ebeadc000 (16384 bytes)
*** Preparing to test memory region 7f3ebedc5000 (16384 bytes)
*** Preparing to test memory region 7f3ebefed000 (8192 bytes)
*** Preparing to test memory region 7f3ebeff0000 (4096 bytes)
*** Preparing to test memory region 7f3ebf01a000 (4096 bytes)
.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O.O
Fast memory test PASSED, however your memory can still be broken. Please run a memory test for several hours if possible.
------ DUMPING CODE AROUND EIP ------
Symbol: abort (base: 0x7f3ebe91e414)
Module: /lib/x86_64-linux-gnu/libc.so.6 (base 0x7f3ebe8fc000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x7f3ebe91e414 -D -b binary -m i386:x86-64 /tmp/dump.bin
------
1:M 20 Jun 2020 11:17:19.046 # dump of function (hexdump of 637 bytes):
4881ec2801000064488b042528000000488984241801000031c064488b142510000000483915faa819007444be01000000833da4e2190000740cf00fb135daa81900750beb230fb135cfa81900741a488d3dc6a819004881ec80000000e88a420e004881c480000000488915b4a81900ff05aaa81900833dafa81900007536c705a3a8190001000000b81000000048ffc84889e64883f8ff740a48c704c600000000ebea31d2bf0100000048830c2420e8875501008b0571a8190083f8010f85bd000000ff0d56a81900c70558a8190000000000754148c70543a8190000000000833df4e1190000740bf0ff0d2ba81900750aeb22ff0d21a81900741a488d3d18a819004881ec80000000e80c420e004881c480000000bf06000000e87b51010064488b142510000000483915f3a719007446be0100000031c0833d9be1190000740cf00fb135d1a71900750beb230fb135c6a71900741a488d3dbda719004881ec80000000e881410e004881c480000000488915aba71900ff05a1a71900eb0583f8027547488db4248000000031c0b9260000004883caffc70589a71900030000004889f7f3abb810000000488914c648ffc875f731d2bf06000000c784240801000000000000e83f540100833d58a71900037514c7054ca7190004000000bf06000000e8b2500100833d3ba7190004750bc7052fa7190005000000f4833d27a71900057514c7051ba7190006000000bf7f000000e871430a00f4ebfde8ddfdffffe8d8fdffffe8d3fdffffe8cefdffffe8c9fdffffe8c4fdffffe8bffdffffe8bafdffff836374ebf70300800000753f488b9388000000836a0401753248c7420800000000833d6ee01900007407f0ff0a7506eb1aff0a7416488d
Function at 0x7f3ebe933a50 is sigprocmask
Function at 0x7f3ebe9336b0 is gsignal
Function at 0x7f3ebe933a20 is sigaction
Function at 0x7f3ebe9c29a0 is _exit
Function at 0x7f3ebe91e414 is abort
=== REDIS BUG REPORT END. Make sure to include from START to END. ===
Please report the crash by opening an issue on github:
http://github.com/antirez/redis/issues
Suspect RAM error? Use redis-server --test-memory to verify it.
@weijianzhang, thanks for the report!
I will look into this as soon as time permits, within the next few days.
Hi @weijianzhang,
I've just pushed some changes that should fix this issue - there was an oversight with recognizing that the private identifier :ID(User) did not have a column name.
Please let me know if this resolves the problem!
Yes it works now 👍 Thanks a lot for fixing it. Could you tag a new version so that I can install it via pip?
Sure thing! Version 0.9.1 has now been released on GitHub and pip.
Brilliant! Thanks