Replies: 1 comment 1 reply
-
You need to use separate contexts (Context object) for each thread. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am writing python code using multi-threading to check the satisfiability of formulas in a benchmark. In each thread, I check the satisfiability of one formula using Z3py ( s = Solver(); s.add(formula); s.check() ). However, the code always run into segmentation fault. Then I found that even if I only do z3.parse_smt2_file(formula_file) in each thread, segmentation faults still happen. Probably the issues come from "Z3Py uses a default global context". May I ask can Z3py (python APIs) be used in python multi-threading? Are there ways to fix the problems I mentioned? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions