From owner-freebsd-current Sat Feb 2 15: 7:52 2002 Delivered-To: freebsd-current@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 68CA037B400 for ; Sat, 2 Feb 2002 15:07:23 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 3529B10DDF8; Sat, 2 Feb 2002 15:07:23 -0800 (PST) Date: Sat, 2 Feb 2002 15:07:23 -0800 From: Alfred Perlstein To: Dag-Erling Smorgrav Cc: current@freebsd.org Subject: Re: fstat dumps core Message-ID: <20020202150723.J10817@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from des@ofug.org on Sat, Feb 02, 2002 at 02:51:32PM +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Dag-Erling Smorgrav [020202 05:51] wrote: > # gdb =fstat > [...] > (gdb) break 349 > Breakpoint 1 at 0x8049110: file /usr/src/usr.bin/fstat/fstat.c, line 349. > (gdb) run > Starting program: /usr/bin/fstat > USER CMD PID FD MOUNT INUM MODE SZ|DV R/W > root fstat 13709 root / 2 drwxr-xr-x 1536 r > root fstat 13709 wd /usr 368364 drwxr-xr-x 512 r > root fstat 13709 text /usr 351906 -r-xr-sr-x 129809 r > > Breakpoint 1, dofiles (kp=0x8050000) at /usr/src/usr.bin/fstat/fstat.c:349 > 349 bcopy(filed0.fd_dfiles, ofiles, (filed.fd_lastfile+1) * FPSIZE); > (gdb) p filed0.fd_fd.fd_lastfile + 1 > $1 = 327686 > (gdb) p filed0.fd_dfiles > $2 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} > (gdb) c > Continuing. > > Program received signal SIGBUS, Bus error. > 0x280fec8a in bcopy () from /usr/lib/libc.so.5 > (gdb) where > #0 0x280fec8a in bcopy () from /usr/lib/libc.so.5 > #1 0x0 in ?? () > > fd_lastfile is obviously bogus. Alfred, is this a consequence of your > fd work in the kernel? Er.... I dunno, I'll look at it. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message