Pthread / Memory Problem.

From: Cole (cole_at_opteqint.net)
Date: 05/26/04

  • Next message: lost inferno: "KVA space problems?"
    To: <freebsd-hackers@freebsd.org>
    Date: Wed, 26 May 2004 19:11:00 +0200
    
    

    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

    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: lost inferno: "KVA space problems?"

    Relevant Pages

    • Re: Pthread / Memory Problem.
      ... > i have now used the valgrind port for FreeBSD which someone did reply to my ... > differently on linux that may now be causing these memory leaks. ...
      (freebsd-hackers)
    • Re: FreeBSD 4.x Opteron Question
      ... the FreeBSD developers told everyone that 5.3 was da ... initially over linux not because there's a bunch of good guys on the ... My tests measure kernel performance; ... > a networking device is a key performance indicator. ...
      (freebsd-questions)
    • Re: Newbie Experience
      ... I've only been around since FreeBSD 5.4 ... FreeBSD kernel too. ... always sunshine and linux is farts. ... in the hey day of AT&T Unix I'm ...
      (freebsd-questions)
    • Re: Review of FreeBSD 5.4
      ... but not less problems compared to FreeBSD. ... If you like to have a bleeding edge system using debian --- just go ... > the linux kernel suffers. ... When the kernel suffers, everyone who uses ...
      (comp.unix.bsd.freebsd.misc)
    • Re: FreeBSD & Linux distro
      ... as a FreeBSD advocacy the tone of the article should be neutral and all ... do not like Linux and more over I have never used it in my life but I ... Statement of the type BSD appears more stable than Linux is ... fewer FreeBSD advocates make claims like that, however, is part of the ...
      (freebsd-questions)