Skip to content

CREATE` followed by a bound-node path read causes a PostgreSQL backend segmentation fault #2527

Description

@YGY-001

Docker image apache/age:release_PG18_1.7.0

Reproduction

LOAD 'age';
SET search_path = ag_catalog, public;
SELECT ag_catalog.create_graph('age_issue_case4');

SELECT *
FROM ag_catalog.cypher('age_issue_case4', $$
CREATE p0 = (n0:l0 {id: 18, klist: [-1797530023, 38833916]})
WITH n0.klist AS alias0, last(n0.klist) AS alias1,
     head(tail(keys(n0))) AS alias2, n0
WHERE ((((true AND false) OR ('61ov8bSZ' CONTAINS 'v8b'))
         OR (toFloat(n0.id) > id(n0)))
       AND (((true AND true) OR (false AND false))
            AND ('3pZv' STARTS WITH '3p')))
MATCH p1 = (n0)
WHERE true
RETURN collect(toString(n0.id)) AS alias3
SKIP 0
$$) AS (alias3 agtype);

Expected

The query returns the collected node id and leaves PostgreSQL available.

Actual

server closed the connection unexpectedly
client backend ... was terminated by signal 11: Segmentation fault

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions