Crash report

Paste the complete crash log between the quotes below. Please include a few lines from the log preceding the crash report to provide some context.

22696:M 03 Sep 2021 14:28:42.461 # Redis 6.2.5 crashed by signal: 11, si_code: 1
22696:M 03 Sep 2021 14:28:42.461 # Accessing address: 0x19
22696:M 03 Sep 2021 14:28:42.461 # Crashed running the instruction at: 0x7f357a41e50c

------ STACK TRACE ------
EIP:
/root/redis/redisgraph.so(AR_EXP_FromASTNode+0x2c)[0x7f357a41e50c]

Backtrace:
/lib64/libpthread.so.0(+0xf630)[0x7f3581bf3630]
/root/redis/redisgraph.so(AR_EXP_FromASTNode+0x2c)[0x7f357a41e50c]
/root/redis/redisgraph.so(+0x163e3b)[0x7f357a41ee3b]
/root/redis/redisgraph.so(AR_EXP_FromASTNode+0x7)[0x7f357a41e4e7]
/root/redis/redisgraph.so(parse_params+0x14d)[0x7f357a45a63d]
/root/redis/redisgraph.so(ExecutionCtx_FromQuery+0x15)[0x7f357a42c1c5]
/root/redis/redisgraph.so(Graph_Query+0x3e)[0x7f357a42bfbe]
/root/redis/redisgraph.so(+0x1acacf)[0x7f357a467acf]
/lib64/libpthread.so.0(+0x7ea5)[0x7f3581bebea5]
/lib64/libc.so.6(clone+0x6d)[0x7f35819149fd]

------ REGISTERS ------
22696:M 03 Sep 2021 14:28:42.463 # 
RAX:0000000000000000 RBX:0000000000000000
RCX:00007f3581dfb300 RDX:0000000000008000
RDI:0000000000000000 RSI:0000000000008000
RBP:0000000000000003 RSP:00007f3579090410
R8 :00007f357909027c R9 :0000000000000000
R10:0000000000000003 R11:000000000001ffff
R12:00007f3565a080c0 R13:00007f3558009180
R14:00007f3565a15000 R15:0000000000000000
RIP:00007f357a41e50c EFL:0000000000010246
CSGSFS:0000000000000033
22696:M 03 Sep 2021 14:28:42.463 # (00007f357909041f) -> 00007f3558000ee8
22696:M 03 Sep 2021 14:28:42.463 # (00007f357909041e) -> 00007f3558000dc0
22696:M 03 Sep 2021 14:28:42.463 # (00007f357909041d) -> 00007f3558000bb0
22696:M 03 Sep 2021 14:28:42.463 # (00007f357909041c) -> 0000000000000001
22696:M 03 Sep 2021 14:28:42.463 # (00007f357909041b) -> 00007f3558000d50
22696:M 03 Sep 2021 14:28:42.463 # (00007f357909041a) -> 00007f357aabd660
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090419) -> 0000000000000000
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090418) -> 0000000000000000
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090417) -> 00007f358189b78c
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090416) -> 0000000000000000
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090415) -> 0000000000000001
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090414) -> 00007f3581436140
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090413) -> 00007f35580095d0
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090412) -> 0000000000000008
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090411) -> 00007f357a41ee3b
22696:M 03 Sep 2021 14:28:42.463 # (00007f3579090410) -> 00007f3565a08090

------ INFO OUTPUT ------
# Server
redis_version:6.2.5
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:8c2255e45a519e6a
redis_mode:standalone
os:Linux 3.10.0-1160.36.2.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:4.8.5
process_id:22696
process_supervised:no
run_id:9481a3e7dafe097b2e27c443a4131c78785c8143
tcp_port:6379
server_time_usec:1630668522461176
uptime_in_seconds:15
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:3278570
executable:/root/redis/redis-6.2.5/src/redis-server
config_file:/root/redis/redis-6.2.5/redis.conf
io_threads_active:0

# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:16
client_recent_max_output_buffer:0
blocked_clients:1
tracking_clients:0
clients_in_timeout_table:0

# Memory
used_memory:2106688
used_memory_human:2.01M
used_memory_rss:15122432
used_memory_rss_human:14.42M
used_memory_peak:2106688
used_memory_peak_human:2.01M
used_memory_peak_perc:101.14%
used_memory_overhead:863568
used_memory_startup:843000
used_memory_dataset:1243120
used_memory_dataset_perc:98.37%
allocator_allocated:1113568
allocator_active:1433600
allocator_resident:6324224
total_system_memory:404089925632
total_system_memory_human:376.34G
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.29
allocator_frag_bytes:320032
allocator_rss_ratio:4.41
allocator_rss_bytes:4890624
rss_overhead_ratio:2.39
rss_overhead_bytes:8798208
mem_fragmentation_ratio:17.50
mem_fragmentation_bytes:14258472
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:20496
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0

# Persistence
loading:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1630668507
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:578
total_net_output_bytes:20880
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:1
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
total_forks: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
total_error_replies:0
dump_payload_sanitizations:0
total_reads_processed:2
total_writes_processed:1
io_threaded_reads_processed:0
io_threaded_writes_processed:0

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:34638af7d76761cb31f9d5e6b39df24dcee44941
master_replid2:0000000000000000000000000000000000000000
master_repl_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.006197
used_cpu_user:0.010328
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000
used_cpu_sys_main_thread:0.000000
used_cpu_user_main_thread:0.001912

# Modules
module:name=graph,ver=20407,api=1,filters=0,usedby=[],using=[],options=[]

# Commandstats
cmdstat_command:calls=1,usec=394,usec_per_call=394.00,rejected_calls=0,failed_calls=0
cmdstat_graph.QUERY:calls=1,usec=94,usec_per_call=94.00,rejected_calls=0,failed_calls=0

# Errorstats

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=1,expires=0,avg_ttl=0

------ CLIENT LIST OUTPUT ------
id=5 addr=172.18.85.28:48056 laddr=172.18.85.28:6379 fd=9 name= age=3 idle=0 flags=b db=0 sub=0 psub=0 multi=-1 qbuf=0 qbuf-free=40954 argv-mem=536 obl=0 oll=0 omem=0 tot-mem=62000 events=r cmd=graph.QUERY user=default redir=-1

------ MODULES INFO OUTPUT ------
# graph_executing commands
graph_command:GRAPH.QUERY CYPHER contacts=[RosterUser(msisdn=901, domain=d1, nick=n1,isBip=false), RosterUser(msisdn=902, domain=d2, nick=n2, isBip=true), RosterUser(msisdn=903,  domain=d3, nick=n3, isBip=false), RosterUser(msisdn=904, domain=d4, nick=n4, isBip=true)] UNWIND $contacts AS 'c' MERGE ('u':user{msisdn:'906333101331'})  ON CREATE SET 'u'.domain = 'alcar.ihgzt.com.tr', 'u'.isBip = true  ON MATCH SET 'u'.domain = 'alcar.ihgzt.com.tr', 'u'.isBip = true  MERGE (:user{msisdn:c.msisdn}) MERGE ('u')-[r:knows{nick:'c'.nick}]->('c')

------ FAST MEMORY TEST ------
22696:M 03 Sep 2021 14:28:42.463 # main thread terminated
22696:M 03 Sep 2021 14:28:42.463 # Bio thread for job type #0 terminated
22696:M 03 Sep 2021 14:28:42.463 # Bio thread for job type #1 terminated
22696:M 03 Sep 2021 14:28:42.463 # Bio thread for job type #2 terminated

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: AR_EXP_FromASTNode (base: 0x7f357a41e4e0)
Module: /root/redis/redisgraph.so (base 0x7f357a2bb000)
$ xxd -r -p /tmp/dump.hex /tmp/dump.bin
$ objdump --adjust-vma=0x7f357a41e4e0 -D -b binary -m i386:x86-64 /tmp/dump.bin
------
22696:M 03 Sep 2021 14:28:42.463 # dump of function (hexdump of 172 bytes):
4154e88900000031d231f64989c44889c7e8aa1f000041837c242001740a4c89e0415cc30f1f4000498b0424440fb64019418b44241085c07ee4498b4c241883e8014489c6488b394c8d4cc108e82effffff84c075184883c1084939c974bf488b394489c6e816ffffff84c074e831c0488d3d51164400e874bdffff4c89e0415cc366662e0f1f8400000000000f1f004157415641554989fd415455534883ec48e85a5d3f0089c3488b0561
Function at 0x7f357a4204a0 is AR_EXP_ReduceToScalar
Function at 0x7f357a41a2d0 is ErrorCtx_SetError
Function at 0x7f357a8142e0 is cypher_astnode_type

Additional information

  1. OS distribution and version Red Hat Enterprise Linux Server release 7.9 (Maipo)
  2. Steps to reproduce (if any) while executing the following command redis graph is crashed also redis started with /root/redis/redis-6.2.5/src/redis-server /root/redis/redis-6.2.5/redis.conf --loadmodule /root/redis/redisgraph.so

GRAPH.QUERY "roster" "CYPHER contacts=[RosterUser(msisdn=901, domain=d1, nick=n1, isBip=false), RosterUser(msisdn=902, domain=d2, nick=n2, isBip=true), RosterUser(msisdn=903, domain=d3, nick=n3, isBip=false), RosterUser(msisdn=904, domain=d4, nick=n4, isBip=true)] UNWIND $contacts AS c MERGE (u:user{msisdn:'906333101331'}) ON CREATE SET u.domain = 'alcar.ihgzt.com.tr', u.isBip = true ON MATCH SET u.domain = 'alcar.ihgzt.com.tr', u.isBip = true MERGE (:user{msisdn:c.msisdn}) MERGE (u)-[r:knows{nick:c.nick}]->(c)"

Comment From: sundb

redisgraph is not maintained by the redis community, you can create pr at https://github.com/RedisGraph/RedisGraph.

Comment From: oranagra

@hector690 Please open in RedisGraph repo (https://github.com/RedisGraph/RedisGraph). @swilly22 FYI