Query crashes RG in GraphEntity_GetAttributes · Issue #3054 · RedisGraph/RedisGraph · GitHub
Skip to content

Query crashes RG in GraphEntity_GetAttributes #3054

Open

Description

@yype

Hi there, I come across the following query that will trigger a crash in RedisGraph v2.10.9.
It can be reproduced in the latest redis-stack docker image.

GRAPH.QUERY graph "CREATE (s:Single), (a:A {num: 42}),  (b:B {v0: 46}), (c:C) CREATE (v0)-[:REL]->(ykgihltrku),  (v2)-[:REL]->(v3), (v4)-[:REL]->(v5), (v6)-[:r0 {k:any(v1 IN [1] WHERE toJSON(a) = [ toJSON([1.1])])}]->(v7)"

Partial redis crash log:

Redis 6.2.11 crashed by signal: 11, si_code: 1
Accessing address: (nil)
Crashed running the instruction at: 0x7ffff45bd307

------ STACK TRACE ------
EIP:
/opt/redis-stack/lib/redisgraph.so(GraphEntity_GetAttributes+0x7)[0x7ffff45bd307]

Backtrace:
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7ffff7af9420]
/opt/redis-stack/lib/redisgraph.so(GraphEntity_GetAttributes+0x7)[0x7ffff45bd307]
/opt/redis-stack/lib/redisgraph.so(+0x24bbbb)[0x7ffff45dfbbb]
/opt/redis-stack/lib/redisgraph.so(+0x24be7a)[0x7ffff45dfe7a]
/opt/redis-stack/lib/redisgraph.so(_JsonEncoder_SIValue+0x34d)[0x7ffff45df9ed]
/opt/redis-stack/lib/redisgraph.so(JsonEncoder_SIValue+0x24)[0x7ffff45dffe4]
/opt/redis-stack/lib/redisgraph.so(AR_TOJSON+0x24)[0x7ffff458da54]
/opt/redis-stack/lib/redisgraph.so(+0x1f44bd)[0x7ffff45884bd]
/opt/redis-stack/lib/redisgraph.so(AR_EXP_Evaluate+0xb8)[0x7ffff4588b18]
/opt/redis-stack/lib/redisgraph.so(_applyPredicateFilters+0x2a)[0x7ffff45b373a]
/opt/redis-stack/lib/redisgraph.so(AR_ANY+0x94)[0x7ffff45926a4]
/opt/redis-stack/lib/redisgraph.so(+0x1f44bd)[0x7ffff45884bd]
/opt/redis-stack/lib/redisgraph.so(AR_EXP_Evaluate+0xb8)[0x7ffff4588b18]
/opt/redis-stack/lib/redisgraph.so(ConvertPropertyMap+0xa2)[0x7ffff45ab6f2]
/opt/redis-stack/lib/redisgraph.so(+0x21271d)[0x7ffff45a671d]
/opt/redis-stack/lib/redisgraph.so(+0x212987)[0x7ffff45a6987]
/opt/redis-stack/lib/redisgraph.so(ExecutionPlan_Execute+0x50)[0x7ffff459d800]
/opt/redis-stack/lib/redisgraph.so(+0x20402d)[0x7ffff459802d]
/opt/redis-stack/lib/redisgraph.so(+0x250ddf)[0x7ffff45e4ddf]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8609)[0x7ffff7aed609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43)[0x7ffff7a12133]

Thanks.

Activity

  1. nafraf commented on Apr 22, 2023

    @nafraf
    Contributor

    Simple query:

    GRAPH.QUERY g "CREATE (a:A), (b)-[:R {k:toJSON(a)}]->(c)"
  2. linked a pull request that will close this issueFix Graphentity_Getattributes() #3080on May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions