aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-11-01 09:56:10 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-11-07 10:27:53 -0300
commitf10ba2ab250b04e47868cfb888df22058436173d (patch)
tree937de4eb9ac9d46c7d24c9657cc9681ea28caa5b /sysdeps/posix
parent3374ca793660b1321eb56adc5bd10ccbfa3b8622 (diff)
downloadglibc-f10ba2ab250b04e47868cfb888df22058436173d.zip
glibc-f10ba2ab250b04e47868cfb888df22058436173d.tar.gz
glibc-f10ba2ab250b04e47868cfb888df22058436173d.tar.bz2
linux: Decorate __libc_fatal error buffer
Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/libc_fatal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c
index cf28387..f564d23 100644
--- a/sysdeps/posix/libc_fatal.c
+++ b/sysdeps/posix/libc_fatal.c
@@ -31,6 +31,7 @@
#include <sys/mman.h>
#include <sys/uio.h>
#include <not-cancel.h>
+#include <setvmaname.h>
#ifdef FATAL_PREPARE_INCLUDE
#include FATAL_PREPARE_INCLUDE
@@ -116,6 +117,8 @@ __libc_message_impl (const char *fmt, ...)
wp = mempcpy (wp, iov[cnt].iov_base, iov[cnt].iov_len);
*wp = '\0';
+ __set_vma_name (buf, total, " glibc: fatal");
+
/* We have to free the old buffer since the application might
catch the SIGABRT signal. */
struct abort_msg_s *old = atomic_exchange_acquire (&__abort_msg,