From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,eac187026632c516 X-Google-Attributes: gid111c93,public From: jbourne@rebecca.island.net (James Bourne) Subject: Re: syslogd bad file descriptor? Date: 1998/05/14 Message-ID: #1/1 X-Deja-AN: 353237235 References: <6j87g1$v5g$1@canoe.xcski.com> <6j94ob$1nv$1@jaka.ece.uiuc.edu> <6j9cic$su9$1@canoe.xcski.com> <6jal70$b4k$1@jaka.ece.uiuc.edu> <6jamnu$eek$1@canoe.xcski.com> Reply-To: jbourne@nospam.island.net Organization: Island Internet Inc. Newsgroups: comp.os.linux.alpha On 12 May 1998 19:41:50 -0400, Paul Tomblin wrote: >In a previous article, peltz@jaka.ece.uiuc.edu (Steve Peltz) said: >>In article <6j9cic$su9$1@canoe.xcski.com>, >>Paul Tomblin wrote: >>>Well, that's how I fixed it or I wouldn't have been able to post the question. >>>What I want to know is what caused it? >> >>"a bug"? You'll get that error if one of the bits set for select() to look >>at is not a currently opened file descriptor. Either something clobbered >>the variable with the fd, or something closed the fd. I'm guessing that >>it was /proc/kmsg, but I haven't looked at the code. > >Could be. Things were very strange yesterday. As well as that problem, a >later reboot with a recompiled kernel had a corrupted /usr mount point. So I >fixed that and rebooted, and then later found I couldn't start X. So I got >rid of that damn ecgs 1.0.2 compiler and the kernel I compiled with it, and >then rebooted and the linux kernel was only recognizing 21Mb of my 96Mb. A >full power down and reboot fixed that. We had the same problem on both A1000 4/166 and a Station 200, running 2.0.33, redhat 5.0, and sysklogd 1.3-25 (and 19) when we would remote log from a busy machine. After changing syslogd.conf to log everything locally the problem went away. I had traced it down to a problem where select would get a single bad fd (application that was writing to syslog closed, or network socked closed) and syslogd would try to read/write to/from the fd. Or at least something that appeared this way. (around line 920 of syslogd.c) I never did get around to fixing the problem, I had posted to the axp-list about it. If anyone knows why this is, I'd be willing to test patches. Regards Jim > >-- >Paul Tomblin, ptomblin@xcski.com. >"The day Microsoft makes something that doesn't suck is probably the day they >start making vacuum cleaners" - Ernst Jan Plugge -- James Bourne | E-Mail: jbourne@island.net System Adminstrator | WWW: http://www.island.net Island Internet Inc. | Linux - The choice of a GNU generation Nanaimo, BC Canada | Ph 250-753-1139 Fax 250-753-8542