From ea58a72d4db3c4729e51de2633845ee381dd00b6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 20 Nov 2024 08:50:42 +0100 Subject: [PATCH] c-stack: Avoid a busy-looping test on macOS. * lib/c-stack.c: Undefine abort. --- ChangeLog | 5 +++++ lib/c-stack.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 80e8b85760..79e240c1fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-11-20 Bruno Haible + + c-stack: Avoid a busy-looping test on macOS. + * lib/c-stack.c: Undefine abort. + 2024-11-20 Bruno Haible tests: Silence some more -Wdeprecated-declarations warnings. diff --git a/lib/c-stack.c b/lib/c-stack.c index 0e14de9423..8db2417ab1 100644 --- a/lib/c-stack.c +++ b/lib/c-stack.c @@ -58,6 +58,10 @@ #include "gettext.h" #define _(msgid) gettext (msgid) +/* Here we need the original abort() function. (Printing a stack trace + from within a signal handler is not going to work in most cases anyway.) */ +#undef abort + #if HAVE_STACK_OVERFLOW_RECOVERY /* Storage for the alternate signal stack. -- 2.39.5