From owner-freebsd-bugs Tue Jul 28 20:21:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA26177 for freebsd-bugs-outgoing; Tue, 28 Jul 1998 20:21:36 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA26147 for ; Tue, 28 Jul 1998 20:21:28 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA25039; Tue, 28 Jul 1998 20:20:02 -0700 (PDT) Date: Tue, 28 Jul 1998 20:20:02 -0700 (PDT) Message-Id: <199807290320.UAA25039@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Jerry Hicks Subject: Re: bin/7393: du throws SIGSEGV whenever '-c' option is used (at du.c:226) Reply-To: Jerry Hicks Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/7393; it has been noted by GNATS. From: Jerry Hicks To: freebsd-gnats-submit@freebsd.org, jhicks@glenatl.glenayre.com Cc: Subject: Re: bin/7393: du throws SIGSEGV whenever '-c' option is used (at du.c:226) Date: Tue, 28 Jul 1998 23:14:23 -0400 Indeed, I confirmed with Dag-Colin that /etc/malloc.conf -> AJ on the affected system. Using efence, the reference to 'savedp' triggers a bus error at du.c:225 savedp is assigned a value only if the loop started at du.c:186 and then only at the following line, where it is assigned the value of 'p' which comes from the 'fts_read()' function call. Ordinarily I would expect a compiler diagnostic to complain about the use of a possibly uninitialized variable ( fts_read() could return NULL the first time through? ) Off to study fts_read() & Co. ----- Jerry Hicks jhicks@glenatl.glenayre.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message