From owner-freebsd-bugs Sun Jul 26 01:05:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA23356 for freebsd-bugs-outgoing; Sun, 26 Jul 1998 01:05:46 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.133.1] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA23348; Sun, 26 Jul 1998 01:05:36 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id KAA01920; Sun, 26 Jul 1998 10:02:20 +0200 (CEST) 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) In-reply-to: Your message of "Sat, 25 Jul 1998 14:10:01 PDT." <199807252110.OAA10488@freefall.freebsd.org> Date: Sun, 26 Jul 1998 10:02:19 +0200 Message-ID: <1918.901440139@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > 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