-
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
smt2lib log does not lead to a valid log #5805
Comments
Could you be reusing the log? I pushed an update that truncates previous files. |
OK this one might indeed be my bad, indeed angr creates new solvers, hadn't thought about that 🤦♂️ sorry. Is there a way to set the path of the log per-solver instead of with a global param? |
Here is an example:
|
Separate issue originally mentioned in #5655.
I have a Python program using Z3 (via angr) without parallelism.
Here's the log from
z3.set_param('solver.smtlib2_log', '/tmp/z3log')
: https://transfer.sh/get/OpJJk3/z3logIt's broken in two ways: some statements start before others have ended, such as line 1364:
(and (= allocated_fracs_3_v_294_8 al(check-sat
, while some lines start with a bunch of NUL chars, e.g. lines 2045 and 2086.I originally thought I might be accidentally using Z3 in a multithreaded way, but given that I only get a single file even after ca2c2bb (using z3 4.8.14), perhaps Z3 itself is doing something weird with the output? Either multi-threading or seeking to the wrong offset to write would be my guesses.
The text was updated successfully, but these errors were encountered: