Subject: Re: UFS2 problem?
To: None <current-users@netbsd.org>
From: Takahiro Kambe <taca@back-street.net>
List: current-users
Date: 04/08/2003 11:41:26
In message <20030408.000334.01452192.taca@back-street.net>
	on Tue, 08 Apr 2003 00:03:34 +0900 (JST),
	Takahiro Kambe <taca@back-street.net> wrote:
> Still I have no luck.
> 
> % ident /nnetbsd | egrep ffs_vfsops.c
>      $NetBSD: ffs_vfsops.c,v 1.111 2003/04/05 13:37:36 fvdl Exp $
> 
> With this new kernel, I got:
> 
> % ls -l /usr/X11R6/lib > /dev/null
> ls: libICE.a: Bad file descriptor
> ls: libICE.so: Bad file descriptor
> ...
> ls: pkgconfig: Bad file descriptor
I've forgot to examine more.  Here is a part of the result of
ktrace(8)/kdump(8).

    53 ls       CALL  getdents(0x4,0x8051000,0x1000)
    53 ls       RET   getdents 3584/0xe00
    53 ls       CALL  __lstat13(0x8050240,0x8050248)
    53 ls       NAMI  "X11"
    53 ls       RET   __lstat13 0
    53 ls       CALL  __lstat13(0x8050340,0x805034c)
    53 ls       NAMI  "modules"
    53 ls       RET   __lstat13 0
    53 ls       CALL  __lstat13(0x8050440,0x805044c)
    53 ls       NAMI  "libXau.a"
    53 ls       RET   __lstat13 -1 errno 9 Bad file descriptor
    53 ls       CALL  __lstat13(0x8050540,0x805054c)
    53 ls       NAMI  "libXdmcp.a"
    53 ls       RET   __lstat13 -1 errno 9 Bad file descriptor
    ...

Hmmm, lstat(2) failed...

-- 
Takahiro Kambe <taca@back-street.net>