From owner-freebsd-bugs@FreeBSD.ORG Thu Oct 20 15:20:24 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7763D16A422 for ; Thu, 20 Oct 2005 15:20:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FD9043D7B for ; Thu, 20 Oct 2005 15:20:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9KFKJMe029086 for ; Thu, 20 Oct 2005 15:20:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9KFKJJ9029085; Thu, 20 Oct 2005 15:20:19 GMT (envelope-from gnats) Resent-Date: Thu, 20 Oct 2005 15:20:19 GMT Resent-Message-Id: <200510201520.j9KFKJJ9029085@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Bradley T Hughes Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 329E616A420 for ; Thu, 20 Oct 2005 15:19:58 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 771C143D6A for ; Thu, 20 Oct 2005 15:19:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9KFJvxL050380 for ; Thu, 20 Oct 2005 15:19:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j9KFJvd5050379; Thu, 20 Oct 2005 15:19:57 GMT (envelope-from nobody) Message-Id: <200510201519.j9KFJvd5050379@www.freebsd.org> Date: Thu, 20 Oct 2005 15:19:57 GMT From: Bradley T Hughes To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: bin/87729: most calls to malloc(3) generate warnings in valgrind X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 15:20:24 -0000 >Number: 87729 >Category: bin >Synopsis: most calls to malloc(3) generate warnings in valgrind >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 20 15:20:18 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Bradley T Hughes >Release: 6.0-RC1 >Organization: Trolltech AS >Environment: FreeBSD reticent.troll.no 6.0-RC1 FreeBSD 6.0-RC1 #28: Mon Oct 17 08:46:08 CEST 2005 root@reticent.troll.no:/usr/obj/usr/src/sys/RETICENT i386 >Description: When using valgrind from ports to debug a program, most calls to malloc(3) generate a warning about a comparison depending on uninitialized values. >How-To-Repeat: Run valgrind on /bin/ls >Fix: Apply the attached patch to src/lib/libc/stdlib/malloc.c, it makes sure that all bits in the pginfo.bits bitfield are initialized. >Release-Note: >Audit-Trail: >Unformatted: