public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/16159] New: malloc_printerr() deadlock, when calling malloc_printerr() again
@ 2013-11-13  3:30 darryl.miles at darrylmiles dot org
  2013-11-13  3:31 ` [Bug malloc/16159] " darryl.miles at darrylmiles dot org
                   ` (24 more replies)
  0 siblings, 25 replies; 29+ messages in thread
From: darryl.miles at darrylmiles dot org @ 2013-11-13  3:30 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=16159

            Bug ID: 16159
           Summary: malloc_printerr() deadlock, when calling
                    malloc_printerr() again
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: malloc
          Assignee: unassigned at sourceware dot org
          Reporter: darryl.miles at darrylmiles dot org

malloc_printerr() on error detection "free(): invalid next size (fast)" ends up
calling into:

backtrace.c:init()
dl-libc.c:do_dlopen()
malloc.c:calloc()
malloc.c:malloc_printerr()

The malloc error reporting should only report the first error, not attempt to
recusively report all error (we knew it was corrupted at the outer most point,
so any further work inside malloc is also likely to find corruption).

Full stack trace to follow.


The main problem is the process does not abort() and die, it hangs around in:

pthread_once.S:pthread_one()
backtrace.c:__backtrace()

I think due to recursive lock, this lock should trylock() on the 2nd time and
abort() the process immediately.  It does appear to deadlock itself.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2015-05-19  1:16 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13  3:30 [Bug malloc/16159] New: malloc_printerr() deadlock, when calling malloc_printerr() again darryl.miles at darrylmiles dot org
2013-11-13  3:31 ` [Bug malloc/16159] " darryl.miles at darrylmiles dot org
2013-11-13  3:37 ` darryl.miles at darrylmiles dot org
2013-11-13  3:44 ` carlos at redhat dot com
2013-11-13  3:57 ` carlos at redhat dot com
2013-11-13  7:57   ` Ondřej Bílka
2013-11-13  7:57 ` neleai at seznam dot cz
2013-11-13 13:00 ` darryl.miles at darrylmiles dot org
2013-11-13 14:31   ` Ondřej Bílka
2013-11-13 13:11 ` darryl.miles at darrylmiles dot org
2013-11-13 14:31 ` neleai at seznam dot cz
2013-11-13 15:50 ` bugdal at aerifal dot cx
2013-11-13 16:03 ` carlos at redhat dot com
2013-11-13 16:12 ` joseph at codesourcery dot com
2013-11-13 16:23   ` Ondřej Bílka
2013-11-13 16:23 ` neleai at seznam dot cz
2013-11-13 16:28 ` bugdal at aerifal dot cx
2013-11-13 16:30 ` bugdal at aerifal dot cx
2013-11-13 16:47 ` joseph at codesourcery dot com
2013-11-13 16:54 ` joseph at codesourcery dot com
2013-11-14 14:32 ` neleai at seznam dot cz
2013-11-14 15:54 ` bugdal at aerifal dot cx
2013-11-14 16:47 ` neleai at seznam dot cz
2013-11-14 17:08 ` bugdal at aerifal dot cx
2013-11-28 13:52 ` eblake at redhat dot com
2014-02-23 23:34 ` adconrad at 0c3 dot net
2014-06-13 12:18 ` fweimer at redhat dot com
2015-05-19  1:15 ` cvs-commit at gcc dot gnu.org
2015-05-19  1:16 ` siddhesh 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).