[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] Re: leafnode 2.0b8_ma8rc1 available, features & fixes



Matthias Andree <ma@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:

> two months after my last release, I am offering a new release candidate
> of the -ma series, 2.0b8_ma8rc1.

Fetchnews segfaults for servers with a port number given in the config
file.  Fix:

--- fetchnews.c.orig	Tue Dec 18 13:40:14 2001
+++ fetchnews.c	Tue Dec 18 13:40:26 2001
@@ -85,7 +85,7 @@
 	str_ulong(portstr + 1, port);
     }
 
-    mastr_vcat(s, spool, "/leaf.node/", server, port, suffix, 0);
+    mastr_vcat(s, spool, "/leaf.node/", server, portstr, suffix, 0);
 
     res = critstrdup(mastr_str(s), "server_info");
     mastr_delete(s);

     
Fetchnews doesn't seem to like my filters anymore:

,----[ /etc/leafnode/filters ]
| newsgroups = *
| 
| #pattern = ^Subject:.*D.*E.S.C.R.A.M.B.L.E.R
| #action = kill
| 
| #pattern = ^Subject:.*CABLE.*BOX.*DESCRAMBLER
| #action = kill
| 
| maxage = 28
| action = kill
| 
| #maxbytes = 100000
| #action = kill
| 
| #maxcrosspost = 7
| #action = kill
`----

Uncommenting any further line makes fetchnews segfault while freeing
memory.  I'm a bit lost there, so here's some debugging information:

(gdb) run -f -D
Starting program: /usr/local/sbin/fetchnews -f -D
2.0b8_ma8rc1: verbosity level is 0; debugging level is -1
lockfile_exists(block=1), fqdn="proxy.home"
found 0 articles in in.coming.
<200 stuga1.informatik.uni-bremen.de InterNetNews NNRP server INN 2.2.2 13-Dec-1999 ready (posting ok).
<200 stuga1.informatik.uni-bremen.de InterNetNews NNRP server INN 2.2.2 13-Dec-1999 ready (posting ok).
<215 Newsgroups in form "group high low flags".
<control 0000000000 0000000001 y
<control.cancel 0000000040 0000000022 y
<junk 0000000928 0000000929 y
<test 0000000008 0000000009 y
<to 0000000000 0000000001 y
<fm.announce 0000037470 0000032939 n
<stuga.news.heise 0000013045 0000010778 n
<stuga.ml.linux.kernel 0000095861 0000086994 n
<stuga.ml.linux.redhat.announce 0000000465 0000000397 n
<stuga.ml.linux.redhat.under-the-brim 0000000016 0000000013 n
<stuga.ml.linux.suse.announce 0000000067 0000000053 n
<stuga.ml.linux.suse 0000085946 0000078656 n
<stuga.announce 0000000033 0000000002 m
<stuga.news.slashdot 0000006493 0000005169 n
<stuga.test 0000000154 0000000013 y
<stuga.ml.linux.debian.announce 0000000147 0000000127 n
<stuga.ml.linux.debian.news 0000000077 0000000059 n
<stuga.talk 0000000974 0000000013 y
<stuga.ml.linux.debian 0000079492 0000072812 n
<stuga.megaquotes 0000000331 0000000001 y
<stuga.nonsense 0000000394 0000000001 y
<stuga.flamewar 0000000746 0000000001 y
<stuga.ml.linux.redhat 0000044045 0000041078 n
<stuga.ml.kif-liste 0000000472 0000000001 n
<stuga.ml.linux.kernel.announce 0000000296 0000000250 n
<stuga.ml.uni-bremen.presse 0000000135 0000000022 n
<fm.articles 0000000143 0000000095 n
<stuga.bremer-kino 0000000340 0000000001 y
<.
mergesort(base=0x805ff58, nmemb=28, size=28, compar=0x804cde0)
sort took 102 comparisons, called from activutil.c:148
<215 Descriptions in form "group description".
<control				Usenet control messages
<control.cancel			Usenet control messages
<junk				Articles for missing newsgroups
<test				A place for test posts
<to				Special Group for INN use
<stuga.news.heise		Computerrelated news from www.heise.de
<stuga.news.slashdot		News for nerds, stuff that matters
<stuga.ml.linux.kernel		Linux kernel mailing list
<stuga.ml.linux.kernel.announce	Linux kernel announcements
<stuga.ml.linux.redhat		Redhat mailing list
<stuga.ml.linux.redhat.announce	RedHat announcements
<stuga.ml.linux.redhat.under-the-brim	Monthly newsletter from RedHat
<stuga.ml.linux.suse		SuSE linux mailing list
<stuga.ml.linux.suse.announce	SuSE announcements
<stuga.ml.linux.debian		Debian user mailing list
<stuga.ml.linux.debian.announce	Debian announcements
<stuga.ml.linux.debian.news	Weekly Debian newsletter
<stuga.ml.kif-liste		KIF-Liste
<stuga.announce			Ankuendigungen des StugA (Moderiert)
<stuga.talk			Allgemeine Diskussion
<stuga.flamewar			Flamewars
<stuga.nonsense			Nonsense
<stuga.megaquotes                Megaquotes
<.
<fm.announce 37471
<stuga.announce 34
<stuga.bremer-kino 341
<stuga.flamewar 747
<stuga.megaquotes 332
<stuga.ml.linux.kernel.announce 297
<stuga.ml.linux.suse.announce 68
<stuga.ml.uni-bremen.presse 136
<stuga.news.heise 13046
<stuga.news.slashdot 6494
<stuga.nonsense 395
<stuga.talk 975
<stuga.test 155
<211 4532 32939 37470 fm.announce
<211 31 2 33 stuga.announce
<211 316 1 340 stuga.bremer-kino
<211 737 1 746 stuga.flamewar
<211 331 1 331 stuga.megaquotes
<211 47 250 296 stuga.ml.linux.kernel.announce
<211 15 53 67 stuga.ml.linux.suse.announce
<211 114 22 135 stuga.ml.uni-bremen.presse
<211 2268 10778 13045 stuga.news.heise
<211 1325 5169 6493 stuga.news.slashdot
<211 389 1 394 stuga.nonsense
<211 955 13 974 stuga.talk
<211 138 13 154 stuga.test
0 articles fetched, 0 killed, in 17 seconds
Fixing XOVER
mergesort(base=0x807fc28, nmemb=4134, size=12, compar=0x8055620)
sort took 4133 comparisons, called from xoverutil.c:455
mergesort(base=0x80630a0, nmemb=93, size=12, compar=0x8055620)
sort took 92 comparisons, called from xoverutil.c:455
mergesort(base=0x40280008, nmemb=5784, size=12, compar=0x8055620)
sort took 5783 comparisons, called from xoverutil.c:455
mergesort(base=0x80630a0, nmemb=60, size=12, compar=0x8055620)
sort took 59 comparisons, called from xoverutil.c:455
mergesort(base=0x80630a0, nmemb=88, size=12, compar=0x8055620)
sort took 87 comparisons, called from xoverutil.c:455
mergesort(base=0x807a0c8, nmemb=209, size=12, compar=0x8055620)
sort took 208 comparisons, called from xoverutil.c:455
mergesort(base=0x80741d0, nmemb=3162, size=12, compar=0x8055620)
sort took 3161 comparisons, called from xoverutil.c:455
mergesort(base=0x80630a0, nmemb=22, size=12, compar=0x8055620)
sort took 21 comparisons, called from xoverutil.c:455
mergesort(base=0x80630a0, nmemb=135, size=12, compar=0x8055620)
sort took 134 comparisons, called from xoverutil.c:455
mergesort(base=0x8063510, nmemb=5, size=12, compar=0x8055620)
sort took 4 comparisons, called from xoverutil.c:455
mergesort(base=0x80630a0, nmemb=23, size=12, compar=0x8055620)
sort took 22 comparisons, called from xoverutil.c:455
mergesort(base=0x805f690, nmemb=2, size=12, compar=0x8055620)
sort took 1 comparisons, called from xoverutil.c:455
mergesort(base=0x80605a0, nmemb=16, size=12, compar=0x8055620)
sort took 31 comparisons, called from xoverutil.c:455
Background process finished

Program received signal SIGSEGV, Segmentation fault.
0x40079b6f in free () from /lib/libc.so.6
(gdb) bt
#0  0x40079b6f in free () from /lib/libc.so.6
#1  0x400799fd in free () from /lib/libc.so.6
#2  0x804fec3 in free_entry (e=0x805f648) at filterutil.c:484
#3  0x804fef0 in freeallfilter (f=0x805f5a8) at filterutil.c:495
#4  0x804cdba in main (argc=3, argv=0xbffff9b4) at fetchnews.c:1630
(gdb) bt full
#0  0x40079b6f in free () from /lib/libc.so.6
No symbol table info available.
#1  0x400799fd in free () from /lib/libc.so.6
No symbol table info available.
#2  0x804fec3 in free_entry (e=0x805f648) at filterutil.c:484
	e = (struct filterentry *) 0x805f648
#3  0x804fef0 in freeallfilter (f=0x805f5a8) at filterutil.c:495
	f = (struct filterlist *) 0x805f660
	g = (struct filterlist *) 0x0
#4  0x804cdba in main (argc=3, argv=0xbffff9b4) at fetchnews.c:1630
	option = 0
	reply = 134608264
	flag = 0
	starttime = 1008680179
	lastrun = -1073743512
	conffile = "/etc/leafnode/config\000\006\000\000\b\a\000\000G\004\000\000ë\004\000\000\035\a\000\000î\000\000\000e\003\000\000\031\005\000\000(\003\000\000\236\004\000\000\003\004\000\000­\001\000\000c\002\000\000ø\006\000\000\000\000\000\000\000\000\000\000N\006\000\000å\006\000\000K\005\000\000\t\a\000\000m\006\000\000\211\006\000\000\231\006\000\000B\002\000\000ç\006\000\000 \005\000\000ú\005\000\000»\004\000\000è\005\000\000®\006\000\000\n\a\000\000¶\006\000\000\030\005\000\000ï\000\000\000\000\000\000\000g\006\000\000\000\000\000\000è\001\000\000&\006\000\000µ\006\000\000\202\006\000\000Õ\000\000\000\000\000\000\000\f\006\000\000\202\001\000\000"...
	msgid = 0x0
	newsgrp = 0x0
	t = 0x805f588 "È"
	did_not_fork = 0
	err = 134608264
     

Cheers, Ray
-- 
Raymond Scholz - rscholz@xxxxxxxx - PGP - http://www.zonix.de/

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list