-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Segmentation fault in scoped_timer #2591
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
Comments
Signed-off-by: Nikolaj Bjorner <[email protected]>
the smtlib and dimacs front-end don't set the timer to null. The race condition would only happen for other formats (opb, lp, datalog). I have removed these sources of race conditions. But if the input you use is normal SMTLIB I don't see how it addresses the bug you see. |
That makes sense, I am using smt. I must admit I realized we're on an old version, and the newest z3 version does not exhibit this. Thank you for looking into it. |
the implementation of scoped timers changed when moving to C++ threads. |
Z3 crashes with a segmentation fault, and I was able to get this backtrace:
Unfortunately I cannot provide a test case that causes this, as I cannot even reproduce it on my own machine (the error occurs within travis and only under specific circumstances). I did however find a potential race condition that could cause this, between here and setting
g_on_timeout
tonullptr
somewhere else, e.g. here. Let me know if I can provide more information!The text was updated successfully, but these errors were encountered: