From owner-freebsd-current Sat Feb 2 5:51:39 2002 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 9220537B416; Sat, 2 Feb 2002 05:51:36 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 336FA5341; Sat, 2 Feb 2002 14:51:33 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: current@freebsd.org Cc: alfred@freebsd.org Subject: fstat dumps core From: Dag-Erling Smorgrav Date: 02 Feb 2002 14:51:32 +0100 Message-ID: Lines: 32 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 # 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? DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message