mirror of
https://github.com/Z3Prover/z3
synced 2025-04-13 12:28:44 +00:00
fix #5059: exit straight away on hard timeout
dont run atexit handlers as its not safe to do so with multiple threads code might be inside malloc, for example, and glibc tries to cleanup its heap state with an atexit handler
This commit is contained in:
parent
484c83e6c0
commit
fc558d3946
|
@ -109,7 +109,7 @@ static void display_statistics() {
|
|||
|
||||
static void on_timeout() {
|
||||
display_statistics();
|
||||
exit(0);
|
||||
_Exit(0);
|
||||
}
|
||||
|
||||
static void STD_CALL on_ctrl_c(int) {
|
||||
|
|
|
@ -55,7 +55,7 @@ static void display_statistics() {
|
|||
|
||||
static void on_timeout() {
|
||||
display_statistics();
|
||||
exit(0);
|
||||
_Exit(0);
|
||||
}
|
||||
|
||||
static void STD_CALL on_ctrl_c(int) {
|
||||
|
|
|
@ -38,7 +38,7 @@ static void STD_CALL on_ctrl_c(int) {
|
|||
|
||||
static void on_timeout() {
|
||||
display_statistics();
|
||||
exit(0);
|
||||
_Exit(0);
|
||||
}
|
||||
|
||||
struct front_end_resource_limit : public lp::lp_resource_limit {
|
||||
|
|
|
@ -84,7 +84,7 @@ static void STD_CALL on_ctrl_c(int) {
|
|||
|
||||
static void on_timeout() {
|
||||
display_statistics();
|
||||
exit(0);
|
||||
_Exit(0);
|
||||
}
|
||||
|
||||
static unsigned parse_opt(std::istream& in, opt_format f) {
|
||||
|
|
|
@ -62,7 +62,7 @@ static void display_model() {
|
|||
|
||||
static void on_timeout() {
|
||||
display_statistics();
|
||||
exit(0);
|
||||
_Exit(0);
|
||||
}
|
||||
|
||||
static void STD_CALL on_ctrl_c(int) {
|
||||
|
|
Loading…
Reference in a new issue