Skip to content

Commit

Permalink
Make abort give us a stack trace by using zerror. Not sure if that's …
Browse files Browse the repository at this point in the history
…exactly right, since abort should really use SIGABRT, but, like, whatever.
  • Loading branch information
Filip Pizlo committed May 8, 2024
1 parent d5e1722 commit ed7b835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exit/abort.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

_Noreturn void abort(void)
{
raise(SIGABRT);
//raise(SIGABRT);

zerror("abort failed");
zerror("abort() called");

/* If there was a SIGABRT handler installed and it returned, or if
* SIGABRT was blocked or ignored, take an AS-safe lock to prevent
Expand Down

0 comments on commit ed7b835

Please sign in to comment.