FalkorDB / FalkorDB

A super fast Graph Database uses GraphBLAS under the hood for its sparse adjacency matrix graph representation. Our goal is to provide the best Knowledge Graph for LLM (GraphRAG).

Home Page:https://www.falkordb.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash about using List Comprehension in UNWIND clause

gkorland opened this issue · comments

ref: RedisGraph/RedisGraph#3210

I execute a query on my RedisGraph and get a crash.

Redis version:7.2.0
RedisGraph version: v2.12.10
operating system: windows 11
API:Cypher version 9
error message:"Reached the max retries per request limit (which is 1). Refer to "maxRetriesPerRequest" option for details."

To reproduce:

CREATE (),(),(),()
MATCH () UNWIND [[x IN [1,NULL]]] AS a0 MERGE (n0) RETURN 1

Actual behavior:
The query failed and the redisgraph container exited abnormally with the error message.

2023-10-28 11:27:26 === REDIS BUG REPORT START: Cut & paste starting from here ===
2023-10-28 11:27:26 7:M 28 Oct 2023 08:27:26.638 # Redis 7.2.0 crashed by signal: 11, si_code: 1
2023-10-28 11:27:26 7:M 28 Oct 2023 08:27:26.638 # Accessing address: 0x300000000
2023-10-28 11:27:26 7:M 28 Oct 2023 08:27:26.638 # Crashed running the instruction at: 0x7f604505e700
2023-10-28 11:27:26 
2023-10-28 11:27:26 ------ STACK TRACE ------
2023-10-28 11:27:26 EIP:
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(SI_CloneValue+0x70)[0x7f604505e700]
2023-10-28 11:27:26 
2023-10-28 11:27:26 Backtrace:
2023-10-28 11:27:26 /lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f60478a0520]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(SI_CloneValue+0x70)[0x7f604505e700]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(SIArray_Append+0x17)[0x7f6045003ac7]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(SIArray_Clone+0x63)[0x7f60450041b3]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(Record_DeepClone+0x8f)[0x7f604502701f]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(OpBase_DeepCloneRecord+0x24)[0x7f6045011d74]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(+0x259e62)[0x7f6045012e62]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(+0x260a42)[0x7f6045019a42]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(+0x263ecc)[0x7f604501cecc]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(+0x264334)[0x7f604501d334]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(ExecutionPlan_Execute+0x50)[0x7f604500bd20]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(+0x2467d5)[0x7f6044fff7d5]
2023-10-28 11:27:26 /FalkorDB/bin/linux-x64-release/src/falkordb.so(+0x2a4b7f)[0x7f604505db7f]
2023-10-28 11:27:26 /lib/x86_64-linux-gnu/libc.so.6(+0x94b43)[0x7f60478f2b43]
2023-10-28 11:27:26 /lib/x86_64-linux-gnu/libc.so.6(+0x126a00)[0x7f6047984a00]

Running in debug

=== REDIS BUG REPORT START: Cut & paste starting from here ===
112144:M 28 Oct 2023 18:46:11.855 # === ASSERTION FAILED ===
112144:M 28 Oct 2023 18:46:11.855 # ==> /home/guy/workspace/FalkorDB/src/value.c:166 '0 && "Encountered heap-allocated SIValue of unhandled type"' is not true