-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Context Instantiation Causing Access Violation - Java API #7405
Comments
Based on my tests this is not a new bug. But I am not sure what is going on. md build |
I get a working binary when I build z3-4.13.2 with
but a broken one when I build with
so something must be broken with the optimized builds with MSVC. The bug is likely not in the Java API itself: I can reproduce it even by combining a debug Interestingly, compiling z3-4.12.6 also in Release mode also produces a crashing binary, but the binaries released on Github do work. So perhaps |
This reverts commit 20e49ae.
Creating a Z3 Context through the java API is causing a fatal error. I traced the problem to a call to the com.microsoft.z3.Context() constructor in a larger project. Below is a distilled example which reproduces the issue in my environment.
Installation
I downloaded latest yesterday, and installed via the 64-bit Windows compilation pathway.
In x64 Native Tools Command Prompt for VS 2022:
Then, I added the build directory to my PATH user environment variable.
Reproducing
Then, in the build directory, I created the following class with a small snippet from the JavaExample class.
Still in the build directory, I compiled and ran, as per the instructions in #7000.
This produced the following output.
The text was updated successfully, but these errors were encountered: