Fix panic() infinite recursion by unregistering handlers before abort()

This commit is contained in:
Levi Neely 2026-03-08 18:57:16 +01:00
parent a53b09362f
commit 70dbe0104c
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ void panic(const char *msg) {
free(symbols);
}
signal(SIGSEGV, SIG_DFL);
signal(SIGABRT, SIG_DFL);
signal(SIGBUS, SIG_DFL);
abort();
}