Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 1998 01:10:01 -0700 (PDT)
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/7393: du throws SIGSEGV whenever '-c' option is used (at du.c:226) 
Message-ID:  <199807260810.BAA21940@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: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?= )
Cc: freebsd-bugs@FreeBSD.ORG, freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/7393: du throws SIGSEGV whenever '-c' option is used (at du.c:226) 
Date: Sun, 26 Jul 1998 10:02:19 +0200

 > > du.c:224
 > > 	if (cflag) {
 > > 		p = savedp->fts_parent;
 > > 		(void) printf("%ld\ttotal\n", howmany(p->fts_number, blocksize));
 > > 	}
 > > 
 > > 
 > > (gdb) display *savedp
 > > 3: *savedp = {
 > > 	fts_cycle = 0xd0d0d0d0,
 > > 	fts_parent = 0xd0d0d0d0,
 > > 	fts_link = 0xd0d0d0d0,
 > > [...]
 > 
 > This FTSENT is quite obviously totally fubar. 
 
 This looks like malloc(3) usage mistake and a phkmalloc with the 'J' flag.
 
 Try to run it with electric fence or similar.
 
 --
 Poul-Henning Kamp             FreeBSD coreteam member
 phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
 "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal

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?199807260810.BAA21940>