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

List comprehension in WHERE clause results in server process segmentation fault #1955

Open
bravius opened this issue Jul 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@bravius
Copy link

bravius commented Jul 7, 2024

Describe the bug

List comprehension in a WHERE clause causes server process to terminate with "signal 11: Segmentation fault"

How are you accessing AGE (Command line, driver, etc.)?

  • Node.js/DBeaver/psql

What data setup do we need to do?

SELECT * from cypher('graph', $$
    CREATE ({list:["one","two","three","four"]})
$$) as (a agtype);

What is the necessary configuration info needed?

  • Age extension compiled from master

What is the command that caused the error?

SELECT * from cypher('graph', $$ 
    MATCH (n) WHERE size([e in n.list where e starts with "f"]) > 0 RETURN n
$$) as (result agtype);

Running the above example query results in server process segfault and lost driver connection.

Expected behavior

Completed query result.

Environment (please complete the following information):

  • Age: master
  • PGSQL version: 16
  • OS: WSL Ubuntu "jammy"

Additional context

None.

@bravius bravius added the bug Something isn't working label Jul 7, 2024
@bravius
Copy link
Author

bravius commented Jul 23, 2024

Could someone try the above query and see if the bug is reproducible?

Then I will at least know whether it's something with my installation or not.

@MuhammadTahaNaveed
Copy link
Member

@bravius the bug is reproducible. I will try to come up with a fix as soon as possible, but it can take some time.

@bravius
Copy link
Author

bravius commented Jul 23, 2024

Thanks, cheers.

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