Bug 112601

Summary: dmallocthcxx (C++-safe, thread-safe dmalloc) does not work
Product: [Fedora] Fedora Reporter: Scott Lamb <redhat>
Component: dmallocAssignee: Jakub Jelinek <jakub>
Status: CLOSED WORKSFORME QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 1CC: gczarcinski
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-19 14:23:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
demonstration program none

Description Scott Lamb 2003-12-24 06:32:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)
Gecko/20031114

Description of problem:
The dmallocthcxx library, which is supposed to be a version of dmalloc
safe for multiple threads and C++, is apparently not. It claims to
become reentrant; I do not use it from within a signal handler, so the
only way this could happen is by not locking properly when used by
multiple threads simultaneously.

Version-Release number of selected component (if applicable):
dmalloc-4.8.1-12

How reproducible:
Always

Steps to Reproduce:
1. Download the soon-to-be-attached dmallocthcxx-crash.cc
2. Compile with gcc -Wall dmallocthcxx-crash.cc -o dmallocthcxx
-ldmallocthcxx -lpthread
3. Run with ./dmallocthcxx-crash

Actual Results:  $ ./dmallocthcxx-crash
debug-malloc library: halting program, fatal error
   Error: malloc library has gone recursive (err 11)


Expected Results:  Looping forever with no output

Additional info:

Comment 1 Scott Lamb 2003-12-24 06:32:52 UTC
Created attachment 96689 [details]
demonstration program

Comment 2 Gene Czarcinski 2004-01-21 14:00:17 UTC
You might want to get the latest version of dmalloc (5.2.4) ... it
might fix things ... http://dmalloc.com

Comment 3 Jakub Jelinek 2004-10-19 14:23:32 UTC
Can't reproduce with dmalloc-5.3.0-3.