public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug stdio/31963] New: Crash in _IO_link_in within __gcov_exit @ 2024-07-08 13:13 schwab@linux-m68k.org 2024-07-08 13:15 ` [Bug stdio/31963] " schwab@linux-m68k.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: schwab@linux-m68k.org @ 2024-07-08 13:13 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=31963 Bug ID: 31963 Summary: Crash in _IO_link_in within __gcov_exit Product: glibc Version: 2.40 Status: NEW Severity: normal Priority: P2 Component: stdio Assignee: unassigned at sourceware dot org Reporter: schwab@linux-m68k.org Target Milestone: --- m4 crashes during exit when compiled with -fprofile-generate. m4 closes all standard streams in an atexit handler (close_stdin from gnulib) which results in _IO_list_all == NULL. The gcov destructor function then opens a file to write out the profiling data which crashes here: 122 _IO_list_all->file._prevchain = &fp->file._chain; -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug stdio/31963] Crash in _IO_link_in within __gcov_exit 2024-07-08 13:13 [Bug stdio/31963] New: Crash in _IO_link_in within __gcov_exit schwab@linux-m68k.org @ 2024-07-08 13:15 ` schwab@linux-m68k.org 2024-07-08 13:24 ` schwab@linux-m68k.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: schwab@linux-m68k.org @ 2024-07-08 13:15 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=31963 Andreas Schwab <schwab@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |27777 Referenced Bugs: https://sourceware.org/bugzilla/show_bug.cgi?id=27777 [Bug 27777] fclose does a linear search, takes ages when many FILE* are opened -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug stdio/31963] Crash in _IO_link_in within __gcov_exit 2024-07-08 13:13 [Bug stdio/31963] New: Crash in _IO_link_in within __gcov_exit schwab@linux-m68k.org 2024-07-08 13:15 ` [Bug stdio/31963] " schwab@linux-m68k.org @ 2024-07-08 13:24 ` schwab@linux-m68k.org 2024-07-08 21:56 ` hjl.tools at gmail dot com ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: schwab@linux-m68k.org @ 2024-07-08 13:24 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=31963 --- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> --- #include <stdio.h> static void close_stdin (void) { fclose (stdin); fclose (stdout); fclose (stderr); } static void final (void) { FILE *f = fopen ("/dev/null", "w"); fprintf (f, "final\n"); fclose (f); } int main (void) { close_stdin (); final (); } -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug stdio/31963] Crash in _IO_link_in within __gcov_exit 2024-07-08 13:13 [Bug stdio/31963] New: Crash in _IO_link_in within __gcov_exit schwab@linux-m68k.org 2024-07-08 13:15 ` [Bug stdio/31963] " schwab@linux-m68k.org 2024-07-08 13:24 ` schwab@linux-m68k.org @ 2024-07-08 21:56 ` hjl.tools at gmail dot com 2024-07-09 3:11 ` sam at gentoo dot org 2024-07-09 8:15 ` schwab@linux-m68k.org 4 siblings, 0 replies; 6+ messages in thread From: hjl.tools at gmail dot com @ 2024-07-08 21:56 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=31963 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.40 Assignee|unassigned at sourceware dot org |hjl.tools at gmail dot com -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug stdio/31963] Crash in _IO_link_in within __gcov_exit 2024-07-08 13:13 [Bug stdio/31963] New: Crash in _IO_link_in within __gcov_exit schwab@linux-m68k.org ` (2 preceding siblings ...) 2024-07-08 21:56 ` hjl.tools at gmail dot com @ 2024-07-09 3:11 ` sam at gentoo dot org 2024-07-09 8:15 ` schwab@linux-m68k.org 4 siblings, 0 replies; 6+ messages in thread From: sam at gentoo dot org @ 2024-07-09 3:11 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=31963 --- Comment #2 from Sam James <sam at gentoo dot org> --- There's two semantically equivalent patches: * https://inbox.sourceware.org/libc-alpha/mvmwmlwgf66.fsf@suse.de/T/#u * https://inbox.sourceware.org/libc-alpha/20240708220201.3252178-1-hjl.tools@gmail.com/ -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug stdio/31963] Crash in _IO_link_in within __gcov_exit 2024-07-08 13:13 [Bug stdio/31963] New: Crash in _IO_link_in within __gcov_exit schwab@linux-m68k.org ` (3 preceding siblings ...) 2024-07-09 3:11 ` sam at gentoo dot org @ 2024-07-09 8:15 ` schwab@linux-m68k.org 4 siblings, 0 replies; 6+ messages in thread From: schwab@linux-m68k.org @ 2024-07-09 8:15 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=31963 Andreas Schwab <schwab@linux-m68k.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> --- Fixed in commit 2213b37b70. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-07-09 8:15 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-07-08 13:13 [Bug stdio/31963] New: Crash in _IO_link_in within __gcov_exit schwab@linux-m68k.org 2024-07-08 13:15 ` [Bug stdio/31963] " schwab@linux-m68k.org 2024-07-08 13:24 ` schwab@linux-m68k.org 2024-07-08 21:56 ` hjl.tools at gmail dot com 2024-07-09 3:11 ` sam at gentoo dot org 2024-07-09 8:15 ` schwab@linux-m68k.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).