From owner-freebsd-hackers@FreeBSD.ORG Wed May 26 18:45:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FD5516A4CE for ; Wed, 26 May 2004 18:45:39 -0700 (PDT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BB5943D2F for ; Wed, 26 May 2004 18:45:39 -0700 (PDT) (envelope-from vlm@netli.com) Received: (qmail 24960 invoked by uid 84); 27 May 2004 01:45:06 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.183273 secs); 27 May 2004 01:45:06 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 27 May 2004 01:45:06 -0000 Message-ID: <40B5482B.2050209@netli.com> Date: Wed, 26 May 2004 18:45:15 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040307 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Cole References: <001901c44344$6ceee850$4206000a@stalker> In-Reply-To: <001901c44344$6ceee850$4206000a@stalker> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Pthread / Memory Problem. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2004 01:45:39 -0000 man pthread_detach? Cole wrote: > 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" -- Lev Walkin vlm@netli.com