From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 17 21:51:54 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AE4E16A4CE for ; Fri, 17 Sep 2004 21:51:54 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71D0C43D31 for ; Fri, 17 Sep 2004 21:51:54 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i8HLoFJ8050973 for ; Fri, 17 Sep 2004 21:50:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8HLoFCi050970; Fri, 17 Sep 2004 21:50:15 GMT (envelope-from gnats) Resent-Date: Fri, 17 Sep 2004 21:50:15 GMT Resent-Message-Id: <200409172150.i8HLoFCi050970@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Frerich Raabe Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DDD516A4CE for ; Fri, 17 Sep 2004 21:48:46 +0000 (GMT) Received: from hex.athame.co.uk (guru164.netsonic.fi [194.29.193.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0117943D1D for ; Fri, 17 Sep 2004 21:48:46 +0000 (GMT) (envelope-from frerich@hex.athame.co.uk) Received: from localhost ([127.0.0.1] helo=hex.athame.co.uk) by hex.athame.co.uk with esmtp (Exim 4.30; FreeBSD) id 1C8QZY-000Pgy-7T for FreeBSD-gnats-submit@freebsd.org; Sat, 18 Sep 2004 00:47:16 +0300 Received: (from frerich@localhost) by hex.athame.co.uk (8.12.9p1/8.12.9/Submit) id i8HLlFHO098763; Sat, 18 Sep 2004 00:47:15 +0300 (EEST) Message-Id: <200409172147.i8HLlFHO098763@hex.athame.co.uk> Date: Sat, 18 Sep 2004 00:47:15 +0300 (EEST) From: Frerich Raabe To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/71832: Default Valgrind suppresion files for different FreeBSD releases X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Frerich Raabe List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Sep 2004 21:51:54 -0000 >Number: 71832 >Category: ports >Synopsis: Default Valgrind suppresion files for different FreeBSD releases >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 17 21:50:14 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Frerich Raabe >Release: FreeBSD 5.1-RELEASE-p17 i386 >Organization: >Environment: System: FreeBSD hex.athame.co.uk 5.1-RELEASE-p17 FreeBSD 5.1-RELEASE-p17 #10: Sat Jul 17 09:04:39 EEST 2004 root@hex.athame.co.uk:/usr/obj/usr/src/sys/HEX i386 >Description: When building even a most simplistic C program on this box, valgrind spits out a handful of warnings which are not terribly useful since they originate from code in other system libraries. This is because some libraries shipped with FreeBSD have problematic code sequences themselves. >How-To-Repeat: % echo "int main(){}" > mini.c % cc -o mini mini.c % valgrind --tool=memcheck ./mini valgrind will now print a bunch of warnings, depending on what FreeBSD version (and thus, what libraries) is used. >Fix: It would be most excellent if a few default supression files could be shipped with the valgrind port, to make the software even more useful out of the box. What I did was simply running a command sequence as the one given in the "How-To-Repeat" section, but passing an additional "--gen-suppressions=yes" switch to valgrind. That way, it will (after asking for confirmation) generate a suitable supression rule for each error it finds. Those rules can then be stored in a file (e.g. "freebsd-5.2.1.supp"), and enabled by default by installing a "valgrindrc" file containing "--suppressions=/path/to/supressions/freebsd-5.2.1.supp". I'll try to generate suppresion files for different FreeBSD versions, and attach them to this report as I get them. >Release-Note: >Audit-Trail: >Unformatted: