From owner-freebsd-hackers Tue Aug 8 11:02:28 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id LAA07477 for hackers-outgoing; Tue, 8 Aug 1995 11:02:28 -0700 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id LAA07470 ; Tue, 8 Aug 1995 11:02:26 -0700 Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA29907; Tue, 8 Aug 95 11:55:18 MDT From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9508081755.AA29907@cs.weber.edu> Subject: Re: FoxPro II To: gclarkii@freefall.cdrom.com (Gary Clark II) Date: Tue, 8 Aug 95 11:55:17 MDT Cc: freebsd-hackers@freefall.cdrom.com In-Reply-To: <199508080831.BAA06376@freefall.cdrom.com> from "Gary Clark II" at Aug 8, 95 01:31:16 am X-Mailer: ELM [version 2.4dev PL52] Sender: hackers-owner@FreeBSD.org Precedence: bulk > Hi, > > Do some more tracking (Thanks to Jordan on the tip on ktrace) I belive > I've found the problem. > Here are a couple of lines from the trace. > > CALL open(0x40524f,0,0) > NAMI /dev/null > RET open 4 > CALL old.fstat (0x4,0x6,0xefbfbf78) > RET old.fstat -1 errno 99 Unknown error: 99 > CALL close(0x04) > RET close 0 > > Right after this it makes a lseek to find the error messages and then > displays "Too many open files" and then exits. The only other errors > that appear are "Inapporite(sic) ioctl for device" but it keeps loading > things even after these so... > > Can someone please shed some light on the above? I've just loaded > the library source and want to check what could cause the above. It makes an lseek or an old.lseek? old.fstat (ofstat in kern/kern_descrip.c) can only return a vn_stat, an soo_stat, EBADF, or a copyout error. Or a panic. It also only takes two arguments, not 3 (fd, struct ostat *sb). Where is that '6' coming from? Are you sure this is supposed to be an fstat? Terry Lambert terry@cs.weber.edu --- Any opinions in this posting are my own and not those of my present or previous employers.