public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc [not found] <bug-11901-131@http.sourceware.org/bugzilla/> @ 2011-03-02 19:34 ` walters at verbum dot org 2011-03-02 20:14 ` walters at verbum dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: walters at verbum dot org @ 2011-03-02 19:34 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=11901 Colin <walters at verbum dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |walters at verbum dot org --- Comment #2 from Colin <walters at verbum dot org> 2011-03-02 19:34:03 UTC --- A few thoughts on this: * Potentially add another argument to _libc_fatal which says whether or not we can use malloc? * Will calling sbrk confuse malloc if the program happens to catch SIGABRT? * Use alloca instead of malloc if the buffer is "small"? Actually, how about always using alloca, and truncating the message to say 1024 characters? * Why are there duplicate copies of libc_fatal.c in the tree? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc [not found] <bug-11901-131@http.sourceware.org/bugzilla/> 2011-03-02 19:34 ` [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc walters at verbum dot org @ 2011-03-02 20:14 ` walters at verbum dot org 2011-05-15 4:36 ` drepper.fsp at gmail dot com 2014-06-30 8:18 ` fweimer at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: walters at verbum dot org @ 2011-03-02 20:14 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=11901 --- Comment #3 from Colin <walters at verbum dot org> 2011-03-02 20:14:39 UTC --- See also: https://bugzilla.redhat.com/show_bug.cgi?id=618743#c6 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc [not found] <bug-11901-131@http.sourceware.org/bugzilla/> 2011-03-02 19:34 ` [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc walters at verbum dot org 2011-03-02 20:14 ` walters at verbum dot org @ 2011-05-15 4:36 ` drepper.fsp at gmail dot com 2014-06-30 8:18 ` fweimer at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: drepper.fsp at gmail dot com @ 2011-05-15 4:36 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=11901 Ulrich Drepper <drepper.fsp at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-05-15 04:35:28 UTC --- I checked in a patch. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc [not found] <bug-11901-131@http.sourceware.org/bugzilla/> ` (2 preceding siblings ...) 2011-05-15 4:36 ` drepper.fsp at gmail dot com @ 2014-06-30 8:18 ` fweimer at redhat dot com 3 siblings, 0 replies; 5+ messages in thread From: fweimer at redhat dot com @ 2014-06-30 8:18 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=11901 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/11901] New: __libc_message(do_abort = 1) will deadlock if called from malloc @ 2010-08-10 18:00 ajax at redhat dot com 2010-08-10 18:01 ` [Bug libc/11901] " ajax at redhat dot com 0 siblings, 1 reply; 5+ messages in thread From: ajax at redhat dot com @ 2010-08-10 18:00 UTC (permalink / raw) To: glibc-bugs ... because it calls malloc itself. It does this because it wants to preserve the abort message in __abort_msg, which is noble enough, but deadlocking instead of aborting is certainly not the intended result. -- Summary: __libc_message(do_abort = 1) will deadlock if called from malloc Product: glibc Version: 2.13 Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: ajax at redhat dot com CC: glibc-bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=11901 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc 2010-08-10 18:00 [Bug libc/11901] New: " ajax at redhat dot com @ 2010-08-10 18:01 ` ajax at redhat dot com 0 siblings, 0 replies; 5+ messages in thread From: ajax at redhat dot com @ 2010-08-10 18:01 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From ajax at redhat dot com 2010-08-10 18:01 ------- Created an attachment (id=4923) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4923&action=view) glibc-abort-deadlock-fix.patch Allocate with sbrk instead. This will leak if we call __libc_message() to abort more than once, but there's not a lot to be done about that. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11901 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-30 8:18 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-11901-131@http.sourceware.org/bugzilla/> 2011-03-02 19:34 ` [Bug libc/11901] __libc_message(do_abort = 1) will deadlock if called from malloc walters at verbum dot org 2011-03-02 20:14 ` walters at verbum dot org 2011-05-15 4:36 ` drepper.fsp at gmail dot com 2014-06-30 8:18 ` fweimer at redhat dot com 2010-08-10 18:00 [Bug libc/11901] New: " ajax at redhat dot com 2010-08-10 18:01 ` [Bug libc/11901] " ajax at redhat dot com
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).