Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault on non-supported length of path function #2158

Closed
ray6080 opened this issue Oct 6, 2023 · 0 comments
Closed

Segfault on non-supported length of path function #2158

ray6080 opened this issue Oct 6, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ray6080
Copy link
Contributor

ray6080 commented Oct 6, 2023

This can be reproduced from the following example.

CREATE NODE TABLE N1(name STRING, PRIMARY KEY(name));
CREATE NODE TABLE N2(name STRING, PRIMARY KEY(name));
CREATE REL TABLE Rel1(FROM N1 TO N2);
CREATE REL TABLE Rel2(FROM N1 TO N2);
CREATE (n1:N1 {name: "n1a"}), (n2:N2 {name: "n2a"}), (n1)-[:Rel1]->(n2);

MATCH p = (n1:N1)-[:Rel1]->() return length(p); // Segmentation fault here

Debugged a bit, the problem resides in ExpressionBinder::bindRecursiveJoinLengthFunction, which doesn't perform correct casting.

@ray6080 ray6080 added the bug Something isn't working label Oct 6, 2023
@andyfengHKU andyfengHKU mentioned this issue Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants