Re: pthread_key_create memory leakage in pthreads?

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 09/29/05

  • Next message: Simon Barner: "Re: pthread_key_create memory leakage in pthreads?"
    Date: Thu, 29 Sep 2005 12:15:55 -0500
    To: Lefteris Tsintjelis <lefty@ene.asda.gr>
    
    

    In the last episode (Sep 29), Lefteris Tsintjelis said:
    > Simon Barner wrote:
    > >
    > >Can you provide a (minimal) example where this happens? Also, what is
    > >the exact command line?
    >
    > valgrind --trace-children=yes --leak-check=yes --show-reachable=yes ./sql-m
    >
    > ==12024== 200 bytes in 1 blocks are definitely lost in loss record 3 of 5
    > ==12024== at 0x3C03619F: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck.so)
    > ==12024== by 0x3C0978EC: (within /usr/local/lib/valgrind/libpthread.so.1)
    > ==12024== by 0x3C09A2FD: (within /usr/local/lib/valgrind/libpthread.so.1)
    > ==12024== by 0x3C09A489: pthread_key_create (in /usr/local/lib/valgrind/libpthread.so.1)

    It's probably leakage internal to valgrind, since the stack trace stops
    inside a valgrind library. I wouldn't worry about it.

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: Simon Barner: "Re: pthread_key_create memory leakage in pthreads?"

    Relevant Pages

    • Re: pthread_key_create memory leakage in pthreads?
      ... >>the exact command line? ... internal error in valgrind: ... - make sure you compile and link your code with debugging information ... valgrind to them with the --suppressions=switch. ...
      (freebsd-stable)
    • Re: pthread_key_create memory leakage in pthreads?
      ... Lefteris Tsintjelis wrote: ... > I am using valgrind to check my program but it always seems to come with ... I use a proper pthread_exit in my ... the exact command line? ...
      (freebsd-stable)