Date: Wed, 5 Nov 2008 01:53:29 -0800 From: "Peter Wemm" <peter@wemm.org> To: "Perforce Change Reviews" <perforce@freebsd.org> Subject: Re: PERFORCE change 152515 for review Message-ID: <e7db6d980811050153n2d9b0629u8818560f5c977eb8@mail.gmail.com> In-Reply-To: <200811050945.mA59jJJB068359@repoman.freebsd.org> References: <200811050945.mA59jJJB068359@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 5, 2008 at 1:45 AM, Peter Wemm <peter@freebsd.org> wrote: > http://perforce.freebsd.org/chv.cgi?CH=152515 > > Change 152515 by peter@peter_overcee on 2008/11/05 09:44:49 > > Make libthr threads work. Exiting/shutdown leaves a bit to be desired. > Sometimes everything exits without doing the final error report. I think > this is what happens if the last thread calls thr_exit() after the main > thread has already called exit(). peter@overcee[ 1:52AM]~/fbp4/valgrind-1342> valgrind --leak-check=full ~/pp -v -i 1000 -n 4 ==80442== Memcheck, a memory error detector. ==80442== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al. ==80442== Using LibVEX rev export, a library for dynamic binary translation. ==80442== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP. ==80442== Using valgrind-3.4.0.SVN, a dynamic binary instrumentation framework. ==80442== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al. ==80442== For more details, rerun with: -v ==80442== PING-PONG CONFIGURATION: target (-i) = 1000 ntables (-n) = 4 sleepms (-z) = 0 pthread_scope (-s) = process pthread_process (-p) = private concurrency (-c) = 0 stacksize (-S) = 0 8 threads initialised in 44ms 4 games completed in 149ms ==80442== ==80442== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) ==80442== malloc/free: in use at exit: 10,020 bytes in 41 blocks. ==80442== malloc/free: 44 allocs, 3 frees, 10,212 bytes allocated. ==80442== For counts of detected errors, rerun with: -v ==80442== searching for pointers to 41 not-freed blocks. ==80442== checked 17,202,640 bytes. ==80442== ==80442== LEAK SUMMARY: ==80442== definitely lost: 0 bytes in 0 blocks. ==80442== possibly lost: 0 bytes in 0 blocks. ==80442== still reachable: 5,924 bytes in 40 blocks. ==80442== suppressed: 4,096 bytes in 1 blocks. ==80442== Reachable blocks (those to which a pointer was found) are not shown. ==80442== To see them, rerun with: --leak-check=full --show-reachable=yes -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV "All of this is for nothing if we don't go to the stars" - JMS/B5 "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e7db6d980811050153n2d9b0629u8818560f5c977eb8>