expireover segfaults
Bernd Jendrissek
berndj at prism.co.za
Wed Jul 3 10:41:16 UTC 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Cc'ed replies would be appreciated; I'm not on the list but I do read
news.software.nntp - feel free to mail2news this there (I can't post)]
Every night at 4:02, crond runs "/usr/bin/news.daily delayrm expireover".
About a minute after that expireover segfaults and I find a notice in my
mailbox.
I have now patched up to INN 2.3.3, but the problem persists. Here's the
data, please ask for more if needed.
gdb /usr/bin/expireover core:
(gdb) bt
#0 0x40023085 in OVERGetHeader (
p=0x28407f8a <Address 0x28407f8a out of bounds>, field=3) at ov.c:970
#1 0x40023998 in OVhisthasmsgid () at ov.c:1050
#2 0x400323bf in buffindexed_expiregroup () at buffindexed.c:1751
#3 0x40021c43 in OVexpiregroup () at ov.c:316
#4 0x804924a in main (argc=2, argv=0xbffffd54) at expireover.c:165
(gdb) list
965 char *next, *q;
966
967 fp = &ARTfields[field];
968
969 /* Skip leading headers. */
970 for (; field-- >= 0 && *p; p++)
971 if ((p = strchr(p, '\t')) == NULL)
972 return NULL;
973 if (*p == '\0')
974 return NULL;
Although I haven't patched the source *at all*, I can't seem to correlate
the line numbers reported by gdb with the relevant calls.
[news at penguin /home/news/spool]$ wc /var/lib/news/active 48 192 2040 /var/lib/news/active
[news at penguin /home/news/spool]$ wc /var/lib/news/history 59555 138197 3814326 /var/lib/news/history
[news at penguin /home/news/spool]$ awk 'NF == 2 { print }' < /var/lib/news/history |wc
40468 80936 1943617
/etc/news/storage.conf:
method timehash {
newsgroups: *
class: 0
}
[news at penguin /home/news/spool]$ grep buffindex /etc/news/*
/etc/news/inn.conf:ovmethod: buffindexed
[news at penguin /home/news/spool]$ cat /etc/news/overview.ctl
0:*
[news at penguin /home/news/spool]$ ls -l overview/
total 65794
- -rw-rw-r-- 1 news news 33554432 Jul 3 12:32 OV0
- -rw-rw-r-- 1 news news 33554432 Jul 3 12:32 OV1
(overkill???)
TIA
Bernd Jendrissek
- --
berndj at users.sourceforge.net is probably better to bookmark than any
employer-specific email address I may have appearing in the headers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9ItS+/FmLrNfLpjMRAoMXAJ9mJeQ1hQ06lTSYTPDrFnWbm4bF3gCePTif
DsebwjF+j7+gnlyfJ0naayM=
=CcsF
-----END PGP SIGNATURE-----
More information about the inn-bugs
mailing list