From a30433ea120ba502045782296db85bb27f643d6b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 5 Dec 2024 11:12:02 +0100 Subject: [NON4KPAGE] Some more adjustments for non-4Kpagesize system (should help #2110) --- src/libtools/signals.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libtools') diff --git a/src/libtools/signals.c b/src/libtools/signals.c index dd98e4c6..db4a5709 100644 --- a/src/libtools/signals.c +++ b/src/libtools/signals.c @@ -1401,10 +1401,6 @@ void my_box64signalhandler(int32_t sig, siginfo_t* info, void * ucntx) signal_jmpbuf_active = 0; longjmp(SIG_JMPBUF, 1); } - if((sig==SIGSEGV || sig==SIGBUS) && box64_quit) { - printf_log(LOG_INFO, "Sigfault/Segbus while quitting, exiting silently\n"); - _exit(box64_exit_code); // Hack, segfault while quiting, exit silently - } ucontext_t *p = (ucontext_t *)ucntx; void* addr = (void*)info->si_addr; // address that triggered the issue void* rsp = NULL; @@ -1614,6 +1610,10 @@ dynarec_log(/*LOG_DEBUG*/LOG_INFO, "Repeated SIGSEGV with Access error on %p for #else void* db = NULL; #endif + if((sig==SIGSEGV || sig==SIGBUS) && box64_quit) { + printf_log(LOG_INFO, "Sigfault/Segbus while quitting, exiting silently\n"); + _exit(box64_exit_code); // Hack, segfault while quiting, exit silently + } static int old_code = -1; static void* old_pc = 0; static void* old_addr = 0; -- cgit 1.4.1