Thread View: news.software.nntp
3 messages
3 total messages
Started by Jarle Aase
Sat, 08 May 2004 09:12
inn2 core dump
Author: Jarle Aase
Date: Sat, 08 May 2004 09:12
Date: Sat, 08 May 2004 09:12
94 lines
5380 bytes
5380 bytes
Inn crashed tonight.
I've noticed that it crash from time to time (usually at least once a
week) when I run the program below:
/etc/news/newsfeeds:
groupstats!:*:Tc,WsbND:/usr/local/bin/groupstats \
--verbose \
--out-interval=5 \
--save-file=/var/lib/news/groupstats.save \
--out-html=/var/www/groupstats.html \
2>&1 | cat >> /var/log/news/groupstats.log
The groupstats program updates a statistics page each 5 minutes with the
top 100 groups based on postings and volume. It can be downloaded from
ftp.jgaa.com/pub/unsupported/
Inn version: INN 2.4.2
news:/var/spool/news/articles# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
news:/var/spool/news/articles# gdb /usr/lib/news/bin/innd core
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/usr/lib/news/bin/innd -p 3 -C'.
Program terminated with signal 11, Segmentation fault.
warning: current_sos: Can't read pathname for load map: Input/output error
Reading symbols from /usr/lib/libdb-4.2.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdb-4.2.so
Reading symbols from /usr/lib/libperl.so.5.8...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libperl.so.5.8
Reading symbols from /lib/tls/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/tls/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libcrypt.so.1
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libnss_files.so.2
Reading symbols from /lib/tls/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libnss_dns.so.2
Reading symbols from /lib/tls/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libresolv.so.2
Reading symbols from /usr/lib/perl/5.8/auto/Digest/MD5/MD5.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/perl/5.8/auto/Digest/MD5/MD5.so
Reading symbols from /usr/lib/perl/5.8/auto/Data/Dumper/Dumper.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/perl/5.8/auto/Data/Dumper/Dumper.so
#0 0x402f3fbf in memcpy () from /lib/tls/libc.so.6
(no debugging symbols found)...(gdb) backtrace
#0 0x402f3fbf in memcpy () from /lib/tls/libc.so.6
#1 0x406a274c in ?? ()
#2 0x083145b4 in ?? ()
#3 0x0806c3bb in SITEwrite ()
#4 0x0806ca9f in SITEsend ()
#5 0x0805554c in ARTpost ()
#6 0x0805e8f7 in NCwriteshutdown ()
#7 0x0805fd09 in NCwriteshutdown ()
#8 0x0805bb29 in CHANreadloop ()
#9 0x0805de50 in main ()
(gdb)
Jarle
--
Jarle Aase http://www.jgaa.com
mailto:jgaa@jgaa.com
<<< no need to argue - just kill'em all! >>>
Re: inn2 core dump
Author: Jeffrey M. Vinocur
Date: Sat, 08 May 2004 22:30
Date: Sat, 08 May 2004 22:30
42 lines
2553 bytes
2553 bytes
In article <pan.2004.05.08.09.12.35.487849@jgaa.com>, Jarle Aase <jgaa@jgaa.com> wrote: > >groupstats!:*:Tc,WsbND:/usr/local/bin/groupstats \ > --verbose \ > --out-interval=5 \ > --save-file=/var/lib/news/groupstats.save \ > --out-html=/var/www/groupstats.html \ > 2>&1 | cat >> /var/log/news/groupstats.log I haven't looked at your script, but in principle no matter what a program feed program does, it shouldn't crash INN itself. Huh. >(no debugging symbols found)...(gdb) backtrace >#0 0x402f3fbf in memcpy () from /lib/tls/libc.so.6 >#1 0x406a274c in ?? () >#2 0x083145b4 in ?? () >#3 0x0806c3bb in SITEwrite () >#4 0x0806ca9f in SITEsend () >#5 0x0805554c in ARTpost () >#6 0x0805e8f7 in NCwriteshutdown () >#7 0x0805fd09 in NCwriteshutdown () >#8 0x0805bb29 in CHANreadloop () >#9 0x0805de50 in main () The absence of debugging information makes it difficult to use the core dump. If you've installed from source, it should be pretty easy to recompile with detailed debugging so that next time we know precisely what line the program was on when it crashed. So do `make clean` (you don't need to re-run ./configure) and then recompile. I haven't tested this (I usually just build with `make warnings` which includes debugging by default), but I think it should work if you do `make COPT=-g`. Then let it run some more and hopefully the next core should be more useful. -- Jeffrey M. Vinocur jeff@litech.org
Re: inn2 core dump
Author: Russ Allbery
Date: Mon, 17 May 2004 07:36
Date: Mon, 17 May 2004 07:36
43 lines
2681 bytes
2681 bytes
Jarle Aase <jgaa@jgaa.com> writes:
> I've noticed that it crash from time to time (usually at least once a
> week) when I run the program below:
> /etc/news/newsfeeds:
> groupstats!:*:Tc,WsbND:/usr/local/bin/groupstats \
> --verbose \
> --out-interval=5 \
> --save-file=/var/lib/news/groupstats.save \
> --out-html=/var/www/groupstats.html \
> 2>&1 | cat >> /var/log/news/groupstats.log
[...]
> #0 0x402f3fbf in memcpy () from /lib/tls/libc.so.6
> #1 0x406a274c in ?? ()
> #2 0x083145b4 in ?? ()
> #3 0x0806c3bb in SITEwrite ()
> #4 0x0806ca9f in SITEsend ()
> #5 0x0805554c in ARTpost ()
> #6 0x0805e8f7 in NCwriteshutdown ()
> #7 0x0805fd09 in NCwriteshutdown ()
> #8 0x0805bb29 in CHANreadloop ()
> #9 0x0805de50 in main ()
There's something wrong with this core dump and backtrace. SITEsend never
calls SITEwrite. Only two functions in INN call SITEwrite; the handler
for exploder feeds (which that isn't), or the handler for the ctlinnd send
command, which doesn't fit the above backtrace at all.
Not to mention that NCwriteshutdown can't call ARTpost.
Unfortunately, that means that the core dump is pretty much worthless;
from that, I have no idea what might be happening, since it looks like the
calling stack is corrupt.
--
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.
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