From: jbourne@rebecca.island.net (James Bourne)
Subject: Re: syslogd bad file descriptor?
Date: 1998/05/14 [thread overview]
Message-ID: <slrn6lm70p.7fc.jbourne@rebecca.island.net> (raw)
In-Reply-To: 6jamnu$eek$1@canoe.xcski.com
On 12 May 1998 19:41:50 -0400, Paul Tomblin <ptomblin@canoe.xcski.com> wrote:
>In a previous article, peltz@jaka.ece.uiuc.edu (Steve Peltz) said:
>>In article <6j9cic$su9$1@canoe.xcski.com>,
>>Paul Tomblin <ptomblin@xcski.com> 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
prev parent reply other threads:[~1998-05-14 4:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-11 4:00 syslogd bad file descriptor? Paul Tomblin
1998-05-12 4:00 ` Steve Peltz
1998-05-12 4:00 ` Paul Tomblin
1998-05-12 4:00 ` Steve Peltz
1998-05-12 4:00 ` Paul Tomblin
1998-05-14 4:00 ` James Bourne [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox