From owner-p4-projects@FreeBSD.ORG Wed Nov 5 10:22:21 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 72DCC106567A; Wed, 5 Nov 2008 10:22:21 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35FDB1065678 for ; Wed, 5 Nov 2008 10:22:21 +0000 (UTC) (envelope-from peter@wemm.org) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 179BB8FC08 for ; Wed, 5 Nov 2008 10:22:20 +0000 (UTC) (envelope-from peter@wemm.org) Received: by wf-out-1314.google.com with SMTP id 24so3712976wfg.7 for ; Wed, 05 Nov 2008 02:22:20 -0800 (PST) Received: by 10.142.49.20 with SMTP id w20mr333803wfw.303.1225878809457; Wed, 05 Nov 2008 01:53:29 -0800 (PST) Received: by 10.142.255.21 with HTTP; Wed, 5 Nov 2008 01:53:29 -0800 (PST) Message-ID: Date: Wed, 5 Nov 2008 01:53:29 -0800 From: "Peter Wemm" To: "Perforce Change Reviews" In-Reply-To: <200811050945.mA59jJJB068359@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200811050945.mA59jJJB068359@repoman.freebsd.org> Cc: Subject: Re: PERFORCE change 152515 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 10:22:21 -0000 On Wed, Nov 5, 2008 at 1:45 AM, Peter Wemm 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