Skip to content

Segmentation fault: 11 #2468

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

Closed
shazqadeer opened this issue Aug 5, 2019 · 4 comments
Closed

Segmentation fault: 11 #2468

shazqadeer opened this issue Aug 5, 2019 · 4 comments

Comments

@shazqadeer
Copy link

blah.txt

When I run z3 version 4.8.5 on the attached file (apologies I had to rename the file to have a .txt extension to make the upload easy), I get a segmentation fault.

shaz-mbp:Downloads shaz$ z3 -version
Z3 version 4.8.5 - 64 bit
shaz-mbp:Downloads shaz$ pwd
/Users/shaz/Downloads
shaz-mbp:Downloads shaz$ z3 blah.smt2
unsat
Segmentation fault: 11

@shazqadeer
Copy link
Author

Here is a smaller repro obtained by deleting stuff from the original file.
blah.txt

@shazqadeer
Copy link
Author

blah.txt
Here is the smallest example I could construct. There are only two constraints in the formula and if I comment out any one of them the seg fault does not happen.

@NikolajBjorner
Copy link
Contributor

Thanks, it is related to algebraic datatypes + arrays in a nested setting. Model generation isn't fully fleshed out there so examples are useful to figure out what has to be done. Workaround until this is fixed is to avoid nested recursive types under arrays (such as (Map (|m#Map| (Array T@Edge T@Value)), where T@Value is defined).

@NikolajBjorner
Copy link
Contributor

Fix was checked in on August 10'th. The crash is no longer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants