Hi there,

one of typical leaks I found when learning the tool "leaks" on Mac OS
X/SRC680_m182 was string MUTX. An example:

Leak: 0x13c05690  size=64       string 'MUTX'
Call stack: [thread 2907 ]: ...
TransferableDataHelper::CreateFromSystemClipboard(Window*) 
TransferableDataHelper::TransferableDataHelper[in-charge]() | osl_createMutex 

I was not able to find the reference to MUTX on my Mac, but I found it
here:

http://darwinsource.opendarwin.org/Current/Libc-391.2.5/pthreads/pthread_internals.h

#define _PTHREAD_MUTEX_SIG              0x4D555458  /* 'MUTX' */

My headers contain:

pthread_impl.h:#define _PTHREAD_MUTEX_SIG_init          0x32AAABA7

though, but no _PTHREAD_MUTEX_SIG

E.g. When we have main Writer window opened, I see six leaked strings:

Leak: 0x1271d620  size=64       string 'MUTX'
Leak: 0x13c05690  size=64       string 'MUTX'
Leak: 0x0321f2c0  size=48       string 'MUTX'
Leak: 0x0321f190  size=48       string 'MUTX'
Leak: 0x0321f060  size=48       string 'MUTX'
Leak: 0x0321ef30  size=48       string 'MUTX'

I was not able to create code that does the same. I even created sample C++
code that allocate new pthread_mutex_t and I "forget" to delete them, it
leaked them but the string MUTX was not in the leak...

Very similar problem was identified by one man when he was working with
libxml2 and threads on Mac OS X:

http://mail.gnome.org/archives/xml/2005-February/msg00090.html

Do you have any idea what is going on? Can you reproduce similar problem on
other systems?
-- 
Pavel Janík

That's the problem: pretesters aren't finding many more bugs nowadays,
so it'll probably take until 2005 to find and fix enough bugs that we
can comfortably announce the code stable.
                  -- Stefan Monnier in comp.emacs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to