Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2002 15:07:23 -0800
From:      Alfred Perlstein <alfred@freebsd.org>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        current@freebsd.org
Subject:   Re: fstat dumps core
Message-ID:  <20020202150723.J10817@elvis.mu.org>
In-Reply-To: <xzpsn8kxa8r.fsf@flood.ping.uio.no>; from des@ofug.org on Sat, Feb 02, 2002 at 02:51:32PM %2B0100
References:  <xzpsn8kxa8r.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
* Dag-Erling Smorgrav <des@ofug.org> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020202150723.J10817>