Date: Sun, 16 Mar 2003 13:15:36 +0900 (JST) From: FUJITA Kazutoshi <fujita@soum.co.jp> To: andy@siliconlandmark.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: UDF: bad file descriptor Message-ID: <20030316.131536.74752056.fujita@soum.co.jp> In-Reply-To: <20030315210054.U36274@alpha.siliconlandmark.com> References: <20030316.052351.74752614.fujita@soum.co.jp> <20030316.060650.71086272.fujita@soum.co.jp> <20030315210054.U36274@alpha.siliconlandmark.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Andre Guibert de Bruet <andy@siliconlandmark.com>
Subject: Re: UDF: bad file descriptor
Date: Sat, 15 Mar 2003 21:09:55 -0500 (EST)
Message-ID: <20030315210054.U36274@alpha.siliconlandmark.com>
> > # /bin/ls -l
> > ls: VR_MOVIE.VRO: Bad file descriptor
> > total 111
> > drw-rw-rw- 1 root wheel 2048 Mar 12 13:33 .
> > drw-rw-rw- 4 root wheel 2048 Mar 16 18:00 ..
> > -rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.BUP
> > -rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.IFO
>
> Sounds like the lstat on VR_MOVIE.VRO is failing. Does 'truss ls -l'
> display anything relevant?
It seems there is no relevant.
# truss /bin/ls -l
ioctl(1,TIOCGETA,0xbfbff3b0) = 0 (0x0)
ioctl(1,TIOCGWINSZ,0xbfbff414) = 0 (0x0)
getuid() = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbff300,63) ERR#2 'No such file or directory'
issetugid() = 0 (0x0)
getuid() = 0 (0x0)
mmap(0x0,4096,0x3,0x1002,-1,0x0) = 671887360 (0x280c3000)
break(0x80d5000) = 0 (0x0)
break(0x80d6000) = 0 (0x0)
break(0x80d7000) = 0 (0x0)
break(0x80d8000) = 0 (0x0)
lstat(".",0x80d7148) = 0 (0x0)
open(".",0x0,00) = 3 (0x3)
fchdir(0x3) = 0 (0x0)
open(".",0x0,00) = 4 (0x4)
stat(".",0xbfbff2c0) = 0 (0x0)
open(".",0x4,00) = 5 (0x5)
fstat(5,0xbfbff2c0) = 0 (0x0)
fcntl(0x5,0x2,0x1) = 0 (0x0)
__sysctl(0xbfbff170,0x2,0x80cf4dc,0xbfbff16c,0x0,0x0) = 0 (0x0)
fstatfs(0x5,0xbfbff1c0) = 0 (0x0)
break(0x80d9000) = 0 (0x0)
fstat(5,0xbfbff2c0) = 0 (0x0)
fchdir(0x5) = 0 (0x0)
getdirentries(0x5,0x80d8000,0x1000,0x80d5054) = 96 (0x60)
lstat(".",0x80d7248) = 0 (0x0)
lstat("..",0x80d7348) = 0 (0x0)
lstat("VR_MOVIE.VRO",0x80d7448) ERR#9 'Bad file descriptor'
lstat("VR_MANGR.BUP",0x80d7548) = 0 (0x0)
lstat("VR_MANGR.IFO",0x80d7648) = 0 (0x0)
getdirentries(0x5,0x80d8000,0x1000,0x80d5054) = 0 (0x0)
lseek(5,0x0,0) = 0 (0x0)
close(5) = 0 (0x0)
fchdir(0x3) = 0 (0x0)
fchdir(0x4) = 0 (0x0)
close(4) = 0 (0x0)
stat("/etc/nsswitch.conf",0xbfbfed60) = 0 (0x0)
open("/etc/nsswitch.conf",0x0,0666) = 4 (0x4)
break(0x80da000) = 0 (0x0)
ioctl(4,TIOCGETA,0xbfbfec60) ERR#25 'Inappropriate ioctl for device'
fstat(4,0xbfbfebb0) = 0 (0x0)
break(0x80de000) = 0 (0x0)
read(0x4,0x80da000,0x4000) = 0 (0x0)
ioctl(4,TIOCGETA,0xbfbfec40) ERR#25 'Inappropriate ioctl for device'
close(4) = 0 (0x0)
geteuid() = 0 (0x0)
stat("/etc/spwd.db",0xbfbfeca0) = 0 (0x0)
open("/etc/spwd.db",0x0,00) = 4 (0x4)
fcntl(0x4,0x2,0x1) = 0 (0x0)
read(0x4,0x80d8200,0x104) = 260 (0x104)
lseek(4,0x5000,0) = 20480 (0x5000)
read(0x4,0x80da000,0x1000) = 4096 (0x1000)
lseek(4,0x4000,0) = 16384 (0x4000)
read(0x4,0x80db000,0x1000) = 4096 (0x1000)
open("/etc/group",0x0,0666) = 5 (0x5)
fstat(5,0xbfbfec80) = 0 (0x0)
break(0x80e2000) = 0 (0x0)
lseek(5,0x0,1) = 0 (0x0)
lseek(5,0x0,0) = 0 (0x0)
stat("/etc/nsswitch.conf",0xbfbfed40) = 0 (0x0)
read(0x5,0x80de000,0x4000) = 378 (0x17a)
ls: write(2,0xbfbfe4d0,4) = 4 (0x4)
VR_MOVIE.VRO: Bad file descriptorwrite(2,0xbfbfe4f0,33) = 33 (0x21)
write(2,0x80c4733,1) = 1 (0x1)
fstat(1,0xbfbfe850) = 0 (0x0)
ioctl(1,TIOCGETA,0xbfbfe890) = 0 (0x0)
total 111
write(1,0x80dc000,10) = 10 (0xa)
pathconf(0xbfbfe9d0,0x3b) ERR#22 'Invalid argument'
gettimeofday(0xbfbfed78,0x0) = 0 (0x0)
access("/etc/localtime",4) = 0 (0x0)
open("/etc/localtime",0x0,00) = 6 (0x6)
fstat(6,0xbfbfecc0) = 0 (0x0)
read(0x6,0xbfbfc9a0,0x1f08) = 73 (0x49)
close(6) = 0 (0x0)
drw-rw-rw- 1 root wheel 2048 Mar 12 13:33 .
write(1,0x80dc000,48) = 48 (0x30)
drw-rw-rw- 4 root wheel 2048 Mar 16 18:00 ..
write(1,0x80dc000,49) = 49 (0x31)
-rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.BUP
write(1,0x80dc000,59) = 59 (0x3b)
-rw-rw-rw- 1 root wheel 56980 Mar 16 18:01 VR_MANGR.IFO
write(1,0x80dc000,59) = 59 (0x3b)
exit(0x1)
process exit, rval = 256
Regards,
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?20030316.131536.74752056.fujita>
