]> sourceware.org Git - glibc.git/commitdiff
linux: Decorate __libc_fatal error buffer
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 1 Nov 2023 12:56:10 +0000 (09:56 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 7 Nov 2023 13:27:53 +0000 (10:27 -0300)
Reviewed-by: DJ Delorie <dj@redhat.com>
sysdeps/posix/libc_fatal.c

index cf28387ee607e315efbfdfc634e0f7a1e34f88d8..f564d232bf8f2fca75f9da80df0745af6a39dac9 100644 (file)
@@ -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,
This page took 0.04198 seconds and 5 git commands to generate.