public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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; 2+ 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] 2+ 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: __libc_message(do_abort = 1) will deadlock if called from malloc ajax at redhat dot com
@ 2010-08-10 18:01 ` ajax at redhat dot com
0 siblings, 0 replies; 2+ 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] 2+ messages in thread
end of thread, other threads:[~2010-08-10 18:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-10 18:00 [Bug libc/11901] New: __libc_message(do_abort = 1) will deadlock if called from malloc 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).