Thread View: news.software.nntp
12 messages
12 total messages
Started by Steve
Sat, 19 Jan 2008 11:11
innd crashing
Author: Steve
Date: Sat, 19 Jan 2008 11:11
Date: Sat, 19 Jan 2008 11:11
22 lines
1605 bytes
1605 bytes
Hi all,
I've got an ongoing issue with innd crashing/looping and consuming 100%
cpu until it's stopped with a kill -9. This has been happening for
months and I've even migrated inn to a different server in an attempt to
isolate the issue.
Today I've restarted inn and attached strace to it until the point of
failure. The tail of the resulting log is at:
http://pastebin.com/m3b9a3c5f
If anyone has any suggestions as to what might be causing this I'd be
very pleased to hear about it as I'm running short on hair to pull out.
System is:
Debian Etch with kernel 2.6.23.14
InterNetNews server INN 2.4.4 (20071026 snapshot)
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: innd crashing
Author: Julien ÉLIE
Date: Sat, 19 Jan 2008 13:52
Date: Sat, 19 Jan 2008 13:52
24 lines
2096 bytes
2096 bytes
Hi Steve,
> Today I've restarted inn and attached strace to it until the point of
> failure. The tail of the resulting log is at:
> http://pastebin.com/m3b9a3c5f
# stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0
# gettimeofday({1200739937, 767307}, NULL) = 0
# time(NULL) = 1200739937
# --- SIGCHLD (Child exited) @ 0 (0) ---
# waitpid(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG) = 21927
# waitpid(-1, 0xbfaee460, WNOHANG) = 0
# sigreturn() = ? (mask now [])
Is it always crashing after a stat64() call?
--
Julien ÉLIE
« -- Ils s'arrêtaient tous les jours à 5 heures,
pour boire de l'eau chaude...
-- Je prendrai un nuage de lait, je vous prie. » (Astérix)
Re: innd crashing
Author: Jeffrey M. Vinocur
Date: Sat, 19 Jan 2008 14:48
Date: Sat, 19 Jan 2008 14:48
15 lines
1434 bytes
1434 bytes
In article <fmslth$im5$1@news.mixmin.net>, Steve <steve@mixmin.net> wrote: > >I've got an ongoing issue with innd crashing/looping and consuming 100% >cpu until it's stopped with a kill -9. This has been happening for >months and I've even migrated inn to a different server in an attempt to >isolate the issue. Wild. Could you attach gdb and find out where we are in the code? -- Jeffrey M. Vinocur jeff@litech.org
Re: innd crashing
Author: Steve
Date: Sat, 19 Jan 2008 14:56
Date: Sat, 19 Jan 2008 14:56
27 lines
2068 bytes
2068 bytes
On Sat, 19 Jan 2008 14:52:02 +0100, =?Windows-1252?Q?Julien_=C9LIE?= wrote in
Message-Id: <fmsvab$h8p$1@news.trigofacile.com>:
> Is it always crashing after a stat64() call?
I don't think so, here is a log from the latest crash. Initially I was
only seeing this issue about once a week but at the moment it's occuring
approximately hourly.
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3661, ...}) = 0
send(4, "<61>Jan 19 14:17:13 innd: filter"..., 92, MSG_NOSIGNAL) = 92
open("/usr/local/news/cleanfeed/log/cleanfeed.stats",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 49
ioctl(49, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfbe6b58) = -1 ENOTTY
(Inappropriate ioctl for device)
_llseek(49, 0, [0], SEEK_CUR) = 0
fstat64(49, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
fcntl64(49, F_SETFD, FD_CLOEXEC) = 0
time(NULL) = 1200752233
write(49, "Filter started: Sat Jan 19 14:00"..., 4096) = 4096
write(49, "bose: 1\n", 8) = 8
close(49) = 0
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: innd crashing
Author: Julien ÉLIE
Date: Sat, 19 Jan 2008 15:39
Date: Sat, 19 Jan 2008 15:39
40 lines
2299 bytes
2299 bytes
In innd.c, I see:
/* Signal handling. If we receive a signal that should kill the server,
killer_signal is set to the signal number that we received. This isn't
what indicates that we should terminate; that's the separate global
variable GotTerminate, used in CHANreadloop. */
static volatile sig_atomic_t killer_signal = 0;
/*
** Signal handler to catch SIGTERM and similar signals and queue a clean
** shutdown.
*/
static RETSIGTYPE
catch_terminate(int sig)
{
GotTerminate = true;
killer_signal = sig;
#ifndef HAVE_SIGACTION
xsignal(signal, catch_terminate);
#endif
}
Shouldn't sig also be a sig_atomic_t (that is to say a long on 64-bit
architectures)?
But I doubt it solves Steve's problem.
(And where is "signal" defined in the !HAVE_SIGACTION section?)
--
Julien ÉLIE
« -- Ils s'arrêtaient tous les jours à 5 heures,
pour boire de l'eau chaude...
-- Je prendrai un nuage de lait, je vous prie. » (Astérix)
Re: innd crashing
Author: Russ Allbery
Date: Sat, 19 Jan 2008 20:31
Date: Sat, 19 Jan 2008 20:31
34 lines
2090 bytes
2090 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> /*
> ** Signal handler to catch SIGTERM and similar signals and queue a clean
> ** shutdown.
> */
> static RETSIGTYPE
> catch_terminate(int sig)
> {
> GotTerminate = true;
> killer_signal = sig;
>
> #ifndef HAVE_SIGACTION
> xsignal(signal, catch_terminate);
> #endif
> }
>
> Shouldn't sig also be a sig_atomic_t (that is to say a long on 64-bit
> architectures)?
No, signal handlers take an int. See man sigaction, specifically the type
for sa_handler.
> (And where is "signal" defined in the !HAVE_SIGACTION section?)
That's a bug. That should be sig, not signal. (It's a somewhat
irrelevant bug at this point since I doubt any platform on which anyone is
running INN lacks sigaction, but still.)
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: innd crashing
Author: Steve
Date: Sun, 20 Jan 2008 11:22
Date: Sun, 20 Jan 2008 11:22
25 lines
1669 bytes
1669 bytes
On Sat, 19 Jan 2008 14:48:41 +0000 (UTC), Jeffrey M. Vinocur wrote in
Message-Id: <fmt2k9$1iq$1@puck.litech.org>:
> Wild.
>
> Could you attach gdb and find out where we are in the code?
I can't profess to be an expert in gdb so all I've done is produce a
backtrace after the crash. In every instance libperl appears to be the
culprit.
#0 0xb7f7e9c8 in ?? () from /usr/lib/libperl.so.5.8
#1 0xb7fbbbe0 in ?? () from /usr/lib/libperl.so.5.8
#2 0x082868e6 in ?? ()
#3 0x00007fff in ?? ()
#4 0xbfd3e298 in ?? ()
#5 0xb7f81c75 in ?? () from /usr/lib/libperl.so.5.8
#6 0x080dde30 in ?? ()
#7 0x0000002c in ?? ()
#8 0x00000000 in ?? ()
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: innd crashing
Author: Michael Grimm
Date: Sun, 20 Jan 2008 16:20
Date: Sun, 20 Jan 2008 16:20
29 lines
2193 bytes
2193 bytes
Steve <steve@mixmin.net> wrote:
> Initially I was only seeing this issue about once a week but at the
> moment it's occuring approximately hourly.
^^^^^^
> open("/usr/local/news/cleanfeed/log/cleanfeed.stats",
^^^^^^^^^^^^^^^
> O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 49
> ioctl(49, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfbe6b58) = -1 ENOTTY
> (Inappropriate ioctl for device)
> _llseek(49, 0, [0], SEEK_CUR) = 0
> fstat64(49, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
> fcntl64(49, F_SETFD, FD_CLOEXEC) = 0
> time(NULL) = 1200752233
> write(49, "Filter started: Sat Jan 19 14:00"..., 4096) = 4096
> write(49, "bose: 1\n", 8) = 8
> close(49) = 0
Gut feeling from my side:
You mentioned in <fmvaub$7jf$1@news.mixmin.net> that perl might be the
reason. 'cleanfeed.stats' is updated hourly. Is this file possibly
corrupted?
Regards,
Michael
--
to let
Re: innd crashing
Author: Jeffrey M. Vinocur
Date: Sun, 20 Jan 2008 16:26
Date: Sun, 20 Jan 2008 16:26
24 lines
1671 bytes
1671 bytes
In article <fmvaub$7jf$1@news.mixmin.net>, Steve <steve@mixmin.net> wrote:
>
>I can't profess to be an expert in gdb so all I've done is produce a
>backtrace after the crash.
Ho hum, your backtrace would be a lot more useful with debugging
info compiled in (all of those question marks ought to be names
of functions). If you have your INN source tree handy,
make clean
make warnings
sudo make update
ought to do it.
>In every instance libperl appears to be the culprit.
Hmm well, what sort of Perl filters are you using?
--
Jeffrey M. Vinocur
jeff@litech.org
Re: innd crashing
Author: Steve
Date: Mon, 21 Jan 2008 10:27
Date: Mon, 21 Jan 2008 10:27
26 lines
1945 bytes
1945 bytes
On Sun, 20 Jan 2008 16:26:09 +0000 (UTC), Jeffrey M. Vinocur wrote in
Message-Id: <fmvsn1$ija$1@puck.litech.org>:
> Ho hum, your backtrace would be a lot more useful with debugging
> info compiled in (all of those question marks ought to be names
> of functions). If you have your INN source tree handy,
>
> make clean
> make warnings
> sudo make update
Afraid it hasn't made any difference. My backtraces still look exactly
as they did before, complete with question marks. The
/usr/lib/libperl.so.5.8 remains consistent in each one.
> Hmm well, what sort of Perl filters are you using?
My first thought was that it must be related to some of the cleanfeed
updates I've made but going back to Marco's release doesn't resolve it.
Today I'll try compiling inn without Perl support, just to prove that
I'm not barking up the wrong tree.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: innd crashing
Author: Steve
Date: Mon, 21 Jan 2008 16:46
Date: Mon, 21 Jan 2008 16:46
15 lines
1551 bytes
1551 bytes
On Mon, 21 Jan 2008 10:27:27 +0000 (UTC), Steve wrote in
Message-Id: <fn1s2f$kg3$1@news.mixmin.net>:
> Today I'll try compiling inn without Perl support, just to prove that
> I'm not barking up the wrong tree.
Having done the above the server has been up and running for several
hours without issue. It certainly looks like the problem is Perl
related. I'll do some more experimenting and try to narrow it down
further.
--
pub 1024D/228761E7 2003-06-04 Steven Crook
Key fingerprint = 1CD9 95E1 E9CE 80D6 C885 B7EB B471 80D5 2287 61E7
uid Steven Crook <steve@mixmin.net>
Re: innd crashing
Author: Gary L. Burnore
Date: Mon, 21 Jan 2008 16:53
Date: Mon, 21 Jan 2008 16:53
27 lines
2570 bytes
2570 bytes
On Mon, 21 Jan 2008 16:46:45 +0000 (UTC), Steve <steve@mixmin.net>
wrote:
>On Mon, 21 Jan 2008 10:27:27 +0000 (UTC), Steve wrote in
>Message-Id: <fn1s2f$kg3$1@news.mixmin.net>:
>
>> Today I'll try compiling inn without Perl support, just to prove that
>> I'm not barking up the wrong tree.
>
>Having done the above the server has been up and running for several
>hours without issue. It certainly looks like the problem is Perl
>related. I'll do some more experimenting and try to narrow it down
>further.
If you've not yet removed the broken in, try simply turning perl off.
--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads