"maverick me" <[EMAIL PROTECTED]> writes:

> Hi,
>
> I am trying valgrind to test memory leak.
> Valgrind showing memory leak when I pass a pointer from heap as 4th
> argument to pthread_create.
>
> ==32589== 144 bytes in 1 blocks are definitely lost in loss record 34 of
> 74
> ==32589==    at 0x4005D85: calloc (vg_replace_malloc.c:397)
> ==32589==    by 0x57571A: _dl_allocate_tls (in /lib/[1]ld-2.3.4.so)
> ==32589==    by 0x6E291E: [2]pthread_create@@GLIBC_2.1 (in
> /lib/tls/[3]libpthread-2.3.4.so)

I had similar leaks which were solved by being careful to always
pthread_join() or pthread_detach() the thread.  If that doesn't help,
maybe a short snippet of code to reproduce the problem would be
helpful.

----Scott.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to