* syslogd bad file descriptor?
@ 1998-05-11 4:00 Paul Tomblin
1998-05-12 4:00 ` Steve Peltz
0 siblings, 1 reply; 6+ messages in thread
From: Paul Tomblin @ 1998-05-11 4:00 UTC (permalink / raw)
This afternoon, my UDB started acting weird. Since I was telnetting in from
work, there was little I could do about it, but when I got home I found the
load average way, way, way up (over 60) and the following in
/var/log/messages:
May 11 14:42:27 canoe identd[10651]: from: 140.174.86.11 ( gw.quake.net ) for: 1
7707, 25
May 11 14:42:27 canoe identd[10651]: Successful lookup: 17707 , 25 : majordomo.m
ajordomo
May 11 14:42:37 canoe syslogd: select: Bad file descriptor
May 11 14:43:08 canoe last message repeated 43615 times
May 11 14:44:09 canoe last message repeated 90137 times
May 11 14:45:10 canoe last message repeated 87549 times
May 11 14:46:11 canoe last message repeated 91168 times
May 11 14:47:12 canoe last message repeated 89050 times
May 11 14:48:13 canoe last message repeated 79428 times
May 11 14:49:14 canoe last message repeated 86359 times
<and so on for about a billion repeats of "last message repeated">.
This is the second time this has happened. Any suggestions of what might be
wrong with syslog? I don't think I've messed with syslogd.conf. Where would
this "bad file descriptor" be coming from.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: syslogd bad file descriptor?
1998-05-12 4:00 ` Paul Tomblin
@ 1998-05-12 4:00 ` Steve Peltz
1998-05-12 4:00 ` Paul Tomblin
0 siblings, 1 reply; 6+ messages in thread
From: Steve Peltz @ 1998-05-12 4:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: syslogd bad file descriptor?
1998-05-12 4:00 ` Steve Peltz
@ 1998-05-12 4:00 ` Paul Tomblin
1998-05-14 4:00 ` James Bourne
0 siblings, 1 reply; 6+ messages in thread
From: Paul Tomblin @ 1998-05-12 4:00 UTC (permalink / raw)
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.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: syslogd bad file descriptor?
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
0 siblings, 1 reply; 6+ messages in thread
From: Steve Peltz @ 1998-05-12 4:00 UTC (permalink / raw)
In article <6j87g1$v5g$1@canoe.xcski.com>,
Paul Tomblin <ptomblin@xcski.com> wrote:
>May 11 14:42:37 canoe syslogd: select: Bad file descriptor
Did you try re-booting or stopping and restarting syslogd (as root,
run /etc/rc.d/init.d/syslog stop, then again with start instead of stop).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: syslogd bad file descriptor?
1998-05-12 4:00 ` Steve Peltz
@ 1998-05-12 4:00 ` Paul Tomblin
1998-05-12 4:00 ` Steve Peltz
0 siblings, 1 reply; 6+ messages in thread
From: Paul Tomblin @ 1998-05-12 4:00 UTC (permalink / raw)
In a previous article, peltz@jaka.ece.uiuc.edu (Steve Peltz) said:
>In article <6j87g1$v5g$1@canoe.xcski.com>,
>Paul Tomblin <ptomblin@xcski.com> wrote:
>>May 11 14:42:37 canoe syslogd: select: Bad file descriptor
>
>Did you try re-booting or stopping and restarting syslogd (as root,
>run /etc/rc.d/init.d/syslog stop, then again with start instead of stop).
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?
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: syslogd bad file descriptor?
1998-05-12 4:00 ` Paul Tomblin
@ 1998-05-14 4:00 ` James Bourne
0 siblings, 0 replies; 6+ messages in thread
From: James Bourne @ 1998-05-14 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1998-05-14 4:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox