* lib/abort-debug.c (rpl_abort): At the end, call the original abort
function.
+2024-07-18 Bruno Haible <bruno@clisp.org>
+
+ abort-debug: Don't assume that signal SIGABRT is unmasked and unhandled.
+ * lib/abort-debug.c (rpl_abort): At the end, call the original abort
+ function.
+
2024-07-18 Bruno Haible <bruno@clisp.org>
abort-debug: Document better.
/* rpl_abort ();
is equivalent to
print_stack_trace ();
- original abort (); // i.e. raise (SIGABRT);
+ original abort (); // essentially raise (SIGABRT);
*/
void
rpl_abort (void)
+#undef abort
{
#if HAVE_LIBBACKTRACE || HAVE_LIBASAN || HAVE_EXECINFO_H
print_stack_trace_to (stderr);
#endif
- raise (SIGABRT);
+ abort ();
}