Skip to content

Bug: Segmentation fault on label() of list element #462

Description

@Brad-Edwards

Imported from kuzudb/kuzu#6050
Original URL: kuzudb#6050
Original author: @mdbenito
Original created at: 2025-10-07T17:12:58Z

Kuzu version

v0.11.2

What operating system are you using?

Ubuntu 24.04

What happened?

With the following data:

CREATE NODE TABLE Person(name STRING PRIMARY KEY, occupation STRING);
CREATE REL TABLE LivesWith(FROM Person TO Person);
CREATE (p:Person {name: 'Alice'})-[:LivesWith]->(:Person {name: 'Bob'});

It is possible to extract a label from the path with:

MATCH p = (n)-[:LivesWith]->(m:Person {name: 'Bob'})
WITH nodes(p) AS ns
RETURN properties(ns, "_LABEL")[1];

But the following segfaults:

MATCH p = (n)-[:LivesWith]->(m:Person {name: 'Bob'})
WITH nodes(p) AS ns
RETURN label(ns[1]);

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