mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
linux: Decorate __libc_fatal error buffer
Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
parent
3374ca7936
commit
f10ba2ab25
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue