From owner-freebsd-current Sat Mar 15 20:15:46 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8790D37B404 for ; Sat, 15 Mar 2003 20:15:42 -0800 (PST) Received: from gate.soum.co.jp (gate.soum.co.jp [202.221.40.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBAF743FA3 for ; Sat, 15 Mar 2003 20:15:40 -0800 (PST) (envelope-from fujita@soum.co.jp) Received: from force.soum.co.jp (force.soum.co.jp [IPv6:3ffe:501:80a:1:a00:20ff:fef0:4c9c]) by gate.soum.co.jp (8.12.8/8.12.6) with ESMTP id h2G4Fd62035919; Sun, 16 Mar 2003 13:15:39 +0900 (JST) (envelope-from fujita@soum.co.jp) Received: from vanilla.soum.co.jp (vanilla.soum.co.jp [3ffe:501:80a:1:202:b3ff:fe98:8115]) by force.soum.co.jp (8.11.6/3.7W-2001122804) with ESMTP id h2G4Fbx27856; Sun, 16 Mar 2003 13:15:37 +0900 (JST) Received: from localhost (localhost [::1]) by vanilla.soum.co.jp (Postfix) with ESMTP id 1A8EB5498; Sun, 16 Mar 2003 13:15:37 +0900 (JST) Date: Sun, 16 Mar 2003 13:15:36 +0900 (JST) Message-Id: <20030316.131536.74752056.fujita@soum.co.jp> To: andy@siliconlandmark.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: UDF: bad file descriptor From: FUJITA Kazutoshi 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> X-PGP-PublicKey: http://www.soum.co.jp/~fujita/fujita-GnuPG-publickey.txt X-PGP-FingerPrint: 9956 2ECE 7E7D B425 EC2D D49E FEBB 3C5F 2C34 1ECA Organization: SOUM Corporation, JAPAN X-URL: http://www.soum.co.jp/ X-Mailer: Mew version 3.1 on Emacs 21.2 / Mule 5.0 =?iso-2022-jp?B?KBskQjgtTFobKEIvU0FLQUtJKQ==?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 From: Andre Guibert de Bruet 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