pthread_key_create memory leakage in pthreads?

David Xu davidxu at freebsd.org
Thu Sep 29 05:35:50 PDT 2005


Lefteris Tsintjelis wrote:

> Hi,
>
> dmesg: FreeBSD 5.4-STABLE #0: Sun Sep 25 20:08:39 EEST 2005
>
> I am using valgrind to check my program but it always seems to come 
> with this
> message:
>
> ==8210== 600 bytes in 3 blocks are definitely lost in loss record 3 of 6
> ==8210==    at 0x3C03619F: malloc (in 
> /usr/local/lib/valgrind/vgpreload_memcheck.so)
> ==8210==    by 0x3C0978EC: (within 
> /usr/local/lib/valgrind/libpthread.so.1)
> ==8210==    by 0x3C09A2FD: (within 
> /usr/local/lib/valgrind/libpthread.so.1)
> ==8210==    by 0x3C09A489: pthread_key_create (in 
> /usr/local/lib/valgrind/libpthread.so.1)
>
> I am not sure if its accurate or not. I use a proper pthread_exit in 
> my thread.
> Is there anything more that I should do besides that?
>
> Please CC
>
> Thnx,
>
> Lefteris
>
>
The thread library is valgrind's version, the path is 
/usr/local/lib/valgrind/libpthread.so.1,
it is not the native FreeBSD thread library.

David Xu



More information about the freebsd-threads mailing list