From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 6207E3858C41; Tue, 7 Nov 2023 16:41:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6207E3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1699375299; bh=2BnFzJLOL4gy6xJjQR/izqrGdp+0Brv3N+2O/c5UnDs=; h=From:To:Subject:Date:From; b=L3/S1CcjFEtY95BHLXOj3RDyTtronQZWFW0/8hbLM1OG5XpTKDhjvkq8j8adK+mE3 tEgCmKXc0Lz2vShXbkxkphECnFf6w0VaoujzK6U/LPyM9muzbPII7C8r2VXE9dCB14 PbCJKNT7AWhF2BrwFLaGBy26tHDeeKosebAbs6o0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] linux: Decorate __libc_fatal error buffer X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: 3374ca793660b1321eb56adc5bd10ccbfa3b8622 X-Git-Newrev: f10ba2ab250b04e47868cfb888df22058436173d Message-Id: <20231107164139.6207E3858C41@sourceware.org> Date: Tue, 7 Nov 2023 16:41:39 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f10ba2ab250b04e47868cfb888df22058436173d commit f10ba2ab250b04e47868cfb888df22058436173d Author: Adhemerval Zanella Date: Wed Nov 1 09:56:10 2023 -0300 linux: Decorate __libc_fatal error buffer Reviewed-by: DJ Delorie Diff: --- sysdeps/posix/libc_fatal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/posix/libc_fatal.c b/sysdeps/posix/libc_fatal.c index cf28387ee6..f564d232bf 100644 --- a/sysdeps/posix/libc_fatal.c +++ b/sysdeps/posix/libc_fatal.c @@ -31,6 +31,7 @@ #include #include #include +#include #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,