Date: Tue, 28 Jul 1998 20:20:02 -0700 (PDT) From: Jerry Hicks <jhicks@glenatl.glenayre.com> To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/7393: du throws SIGSEGV whenever '-c' option is used (at du.c:226) Message-ID: <199807290320.UAA25039@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/7393; it has been noted by GNATS. From: Jerry Hicks <jhicks@glenatl.glenayre.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807290320.UAA25039>