Thread View: news.software.nntp
2 messages
2 total messages
Started by Jarle Aase
Mon, 10 Nov 2003 10:03
inn 2.4.1 crash (core dump)
Author: Jarle Aase
Date: Mon, 10 Nov 2003 10:03
Date: Mon, 10 Nov 2003 10:03
80 lines
3703 bytes
3703 bytes
Hi,
I've written a program that makes some statistics on volume/group. The
program reads its input from a pipe, and updates a HTML statistics page at
a given interval. After 1 - 2 days, innd will crash. The groupstats program
seems to exit normally, while innd leaves a core dump. The groupstats
program has not logged any signals, but has shut down after the pipe was
closed by innd. What can cause innd to crash while writing to a pipe?
The source-code for the groupstats program can be found here:
http://news.jgaa.com/groupstats-1.02.tgz
news:/var/log/news# cat /proc/version
Linux version 2.4.18jgaanews (root@news) (gcc version 2.95.4 20011002
(Debian prerelease)) #1 SMP Fri Jul 18 01:10:20 CEST 2003
news:/var/log/news# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 921612288 913543168 8069120 0 4096 707809280
Swap: 500088832 6983680 493105152
MemTotal: 900012 kB
MemFree: 7880 kB
MemShared: 0 kB
Buffers: 4 kB
Cached: 689188 kB
SwapCached: 2032 kB
Active: 184712 kB
Inactive: 541760 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 900012 kB
LowFree: 7880 kB
SwapTotal: 488368 kB
SwapFree: 481548 kB
Backtrace from the coredump
(gdb) backtrace
#0 0x402e40ff in memcpy () from /lib/libc.so.6
#1 0x0806be3b in SITEwrite ()
#2 0x0806c4de in SITEsend ()
#3 0x08055353 in ARTpost ()
#4 0x0805e527 in NCwriteshutdown ()
#5 0x0805f8f9 in NCwriteshutdown ()
#6 0x0805b7e9 in CHANreadloop ()
#7 0x0805daa6 in main ()
#8 0x40281e3e in __libc_start_main () from /lib/libc.so.6
(gdb)
from /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
news:/etc/news# 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) 7168
virtual memory (kbytes, -v) unlimited
Jarle
--
Jarle Aase http://www.jgaa.com
mailto:jgaa@jgaa.com http://www.fuck-the-law.org
<<< no need to argue - just kill'em all! >>>
Re: inn 2.4.1 crash (core dump)
Author: Jeffrey M. Vinocur
Date: Mon, 10 Nov 2003 17:58
Date: Mon, 10 Nov 2003 17:58
23 lines
2178 bytes
2178 bytes
In article <bonnpn$mh7$1@news.jgaa.com>, Jarle Aase <jgaa@jgaa.com> wrote: > >I've written a program that makes some statistics on volume/group. The >program reads its input from a pipe, and updates a HTML statistics page at >a given interval. After 1 - 2 days, innd will crash. The groupstats program >seems to exit normally, while innd leaves a core dump. The groupstats >program has not logged any signals, but has shut down after the pipe was >closed by innd. What can cause innd to crash while writing to a pipe? Well, it's nothing about your program per se, except maybe as a result of the complexity of the newsfeeds entry. The best way to get more information is for you to compile with debugging information, so that the backtrace will be more helpful. Since you're presumably using gcc, just take the source tree you have, do `make clean; make warnings; make update` and restart INN. It may end up showing just vague memory corruption, in which case we'll have to think harder, but can't hurt to check. -- Jeffrey M. Vinocur jeff@litech.org
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