From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7F440383F86C; Tue, 13 Oct 2020 10:09:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F440383F86C From: "jg at jguk dot org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/26728] New: Change _dl_fatal_printf to dump core file Date: Tue, 13 Oct 2020 10:09:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.34 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jg at jguk dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2020 10:09:12 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26728 Bug ID: 26728 Summary: Change _dl_fatal_printf to dump core file Product: glibc Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: jg at jguk dot org Target Milestone: --- Could _dl_fatal_printf be considered to change to call raise a signal that dumps the core instead of _exit(127)? As the code is an assert(), perhaps SIGTRAP or SIGABRT is best? On my computer any C program compiled with assert(0) dumps a core file, but this glibc issue assert does not dump a core file. Inconsistency detected by ld.so: ../elf/dl-tls.c: 481: _dl_allocate_tls_ini= t: Assertion `listp->slotinfo[cnt].gen <=3D GL(dl_tls_generation)' failed! Command exited with non-zero status 127 This came up while discussing this issue https://sourceware.org/bugzilla/show_bug.cgi?id=3D19329 This is my test program $ ./a a: a.c:6: main: Assertion `0' failed. Aborted (core dumped) $ cat a.c // gcc -Wall -o a a.c #include int main() { assert(0); } --=20 You are receiving this mail because: You are on the CC list for the bug.=