Server crashes on self-referential CREATE query · Issue #1492 · RedisGraph/RedisGraph · GitHub
Skip to content

Server crashes on self-referential CREATE query #1492

Description

@jeffreylovitz

Given the query:

CREATE (a {val: a.val})

The server crashes with the backtrace:

#0  0x00007ffff6d2a6b9 in GraphEntity_GetProperty (e=0x7fffe40063c8, attr_id=2) at /home/tower-linux/dev/redis/graph/src/graph/entities/graph_entity.c:72
#1  0x00007ffff6c4fd7e in AR_PROPERTY (argv=0x7ffff5222a60, argc=3) at /home/tower-linux/dev/redis/graph/src/arithmetic/entity_funcs/entity_funcs.c:120
#2  0x00007ffff6c4132f in _AR_EXP_EvaluateFunctionCall (node=0x7fffe4005b00, r=0x7fffe40063b8, result=0x7ffff5222b90)
    at /home/tower-linux/dev/redis/graph/src/arithmetic/arithmetic_expression.c:320
#3  0x00007ffff6c415fc in _AR_EXP_Evaluate (root=0x7fffe4005b00, r=0x7fffe40063b8, result=0x7ffff5222b90)
    at /home/tower-linux/dev/redis/graph/src/arithmetic/arithmetic_expression.c:398
#4  0x00007ffff6c416cd in AR_EXP_Evaluate (root=0x7fffe4005b00, r=0x7fffe40063b8)
    at /home/tower-linux/dev/redis/graph/src/arithmetic/arithmetic_expression.c:423
#5  0x00007ffff6ce23e3 in ConvertPropertyMap (r=0x7fffe40063b8, map=0x7fffe4005aa0, fail_on_null=false)
    at /home/tower-linux/dev/redis/graph/src/execution_plan/ops/shared/create_functions.c:167
#6  0x00007ffff6cc2c55 in _CreateNodes (op=0x7fffe4005c40, r=0x7fffe40063b8) at /home/tower-linux/dev/redis/graph/src/execution_plan/ops/op_create.c:64

Interestingly, the similar query:

CREATE (a {val: a.differentprop})

Creates one node with no properties (perhaps due to how the schema is updated?).

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions