Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jul 1998 10:02:19 +0200
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) 
Message-ID:  <1918.901440139@critter.freebsd.dk>
In-Reply-To: Your message of "Sat, 25 Jul 1998 14:10:01 PDT." <199807252110.OAA10488@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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?1918.901440139>