public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10282] New: free() race in mcheck hooks
@ 2009-06-14 23:04 pasky at suse dot cz
  2009-06-14 23:05 ` [Bug libc/10282] " pasky at suse dot cz
                   ` (9 more replies)
  0 siblings, 10 replies; 14+ messages in thread
From: pasky at suse dot cz @ 2009-06-14 23:04 UTC (permalink / raw)
  To: glibc-bugs

In multi-threaded programs, we are seeing a lot of free() aborts with
MALLOC_CHECK_ turned on (our default settings) with glibc-2.10 on
openSUSE:Factory. A simple testcase is not easy to make, but I suppose
brute-forcing parallel free()s agressively enough would make it show up.

I think this locking change is the cause. In realloc_check(), the mutex is
explicitly taken when calling mem2chunk_check(), and mem2chunk_check appears to
be accessing other parts of the arena which I guess is unsafe without the mutex.

Shouldn't the mutex be held during mem2chunk_check()?

-- 
           Summary: free() race in mcheck hooks
           Product: glibc
           Version: 2.11
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: pasky at suse dot cz
                CC: glibc-bugs at sources dot redhat dot com


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

------- 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] 14+ messages in thread

end of thread, other threads:[~2014-07-01 16:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-10282-131@http.sourceware.org/bugzilla/>
2013-10-13  7:36 ` [Bug libc/10282] free() race in mcheck hooks neleai at seznam dot cz
2014-02-16 19:41 ` jackie.rosen at hushmail dot com
2014-05-28 19:43 ` schwab at sourceware dot org
2014-07-01 16:37 ` fweimer at redhat dot com
2009-06-14 23:04 [Bug libc/10282] New: " pasky at suse dot cz
2009-06-14 23:05 ` [Bug libc/10282] " pasky at suse dot cz
2009-06-15 15:43 ` pasky at suse dot cz
2009-06-15 22:37 ` pasky at suse dot cz
2009-11-16 23:15 ` mpyne at kde dot org
2009-11-16 23:25 ` pasky at suse dot cz
2009-11-17  0:25 ` mpyne at kde dot org
2009-11-17  0:49 ` pasky at suse dot cz
2009-11-17  0:51 ` rdieter at math dot unl dot edu
2009-11-17 19:19 ` esigra at gmail dot com
2009-12-30 19:52 ` herrold at owlriver 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).