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

Segmentation failure #6661

Closed
LeventErkok opened this issue Mar 31, 2023 · 0 comments
Closed

Segmentation failure #6661

LeventErkok opened this issue Mar 31, 2023 · 0 comments

Comments

@LeventErkok
Copy link

LeventErkok commented Mar 31, 2023

This is on a Mac, with z3 compiled on March 28th from master.

The following program is "bad" since transitive-closure is given an integer instead of the name of an existing relation. I was expecting to get a syntax-error or some other kind of failure, but instead the program causes segmentation fault:

(declare-sort U 0)
(declare-fun R (U U) Bool)
(assert (forall ((x U) (y U)) (= (R x y) ((_ transitive-closure 0) x y))))
(declare-fun a () U)
(assert (not (R a a)))
(check-sat)

I get:

libc++abi: terminating due to uncaught exception of type std::bad_variant_access: bad_variant_access
NikolajBjorner added a commit that referenced this issue Apr 2, 2023
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
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

1 participant