Pthread / Memory Problem.

Cole cole at opteqint.net
Wed May 26 10:10:51 PDT 2004


Hey

I have recently ported a linux application to FreeBSD, and i had to change a
number of libraries and so forth.
I have now managed to get it working correctly, with no build errors or
warnings.
The program runs correctly as well too, and there are no forseable problems.

The other day i noticed it was slowly taking up more memory, very slightly,
but it does.
So i did post to the list a few days ago with a topic of "Memory Leak".  And
i have now used the valgrind port for FreeBSD which someone did reply to my
post with.  It does say there are 2 issues that could cause memory leaks,
and it looks like both originate from pthread_create.
Now when porting the application i did not touch any of that code, so i am
wondering, is the pthread code/library a different implementation as the
FreeBSD version, cause since there are no errors, im wondering if there is
just something that is missing in the code, or that has been done
differently on linux that may now be causing these memory leaks.

If you wish i can post the pthread_create section of code and all
surrounding code, as well as the valgrind output and where its suggesting
there are memory leaks.

Thanks
/Cole



More information about the freebsd-hackers mailing list