Article View: news.software.nntp
Article #67132inn 2.4.1 crash (core dump)
From: 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! >>>
Technical Details
Message-ID:
<bonnpn$mh7$1@news.jgaa.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!news2.telebyte.nl!news.jgaa.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <bonnpn$mh7$1@news.jgaa.com> Subject: inn 2.4.1 crash (core dump) Date: Mon, 10 Nov 2003 11:03:34 +0100 From: Jarle Aase <jgaa@jgaa.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!news2.telebyte.nl!news.jgaa.com!not-for-mail Newsgroups: news.software.nntp Organization: Jgaa's Internet Lines: 80 NNTP-Posting-Host: 80.239.13.225 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.jgaa.com 1068458615 23079 80.239.13.225 (10 Nov 2003 10:03:35 GMT) X-Complaints-To: abuse@jgaa.com NNTP-Posting-Date: Mon, 10 Nov 2003 10:03:35 +0000 (UTC) Mail-Copies-To: jgaa@jgaa.com User-Agent: KNode/0.6.1