[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Memory Leak Tool with GLib Applications



On Tue, 2003-11-04 at 22:26, Tony Yat-Tung Cheung wrote:
> Hi Owen and others,
> 
> Thanks! I have tried using the memprof 5.1 (preloaded on RH 9.0) with
> some glib applications.
> 
> Most glib applications run fine, except the multi-threaded ones. I
> have found that when I use memprof on a multi-threaded glib
> applications, the application simply hangs at the g_thread_create().
> My system is RH 9.0 and is using pthread.
> 
> If I use memprof on the below application, it stops right after
> "Creating thread1" is displayed.
> 
> Is it a known issue? Any workaround?

Sorry, no, it's not a known issue to me; I last tested threaded apps
around August 2002, and it was working then with whatever libc version
I was running, but new libc versions very frequently do break memprof
for various and sundry reasons.

One thing you might try just as an experiment is to:

 export LD_ASSUME_KERNEL=2.2.5

This will disable NPTL and force a fallback to the older LinuxThreads
implementation which might not trigger the same problem.

Regards,
						Owen





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]