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

Re: [leafnode-list] No $(SYSCONFDIR)/local.groups on fresh install



* Matthias Andree <matthias.andree@xxxxxx> [031002 10:55]:

> > On a fresh install of 2.0.0.alpha20030814a (i.e. no previous
> > leafnode version installed) the initial fetchnews run=20
> > fails because it cannot stat $(SYSCONFDIR)/local.groups.

> Do you happen to have a log/backtrace/screenshot (text mode please, use
> script or screen) around? I cannot currently reproduce this, but there
> may be a bug.


You cannot reproduce it by just removing the local.groups file if you
already have an existing groupinfo file.

AFAICS, the problem occurs only if you have no local.groups file *and* 
no preexisting groupinfo file, which is the case on a real fresh 
installation.

In this case 'active' remains a NULL pointer after rereadactive() -> readactive()
and rereadactive() -> readlocalgroups(). Hence, mvactive(active) returns 
a NULL pointer as well and fetchnews finally aborts prematurely in 
mergeactive() -> findgroup() because 'oldactive' is NULL.  

I have appended a backtrace. Hope it helps.


Regards - Juergen


(gdb) run -vvv
fetchnews mode: get articles, get headers, get bodies, post articles
cannot stat /var/spool/news/leaf.node/groupinfo: No such file or
directory, may cause bad performance
cannot stat /etc/leafnode/local.groups: No such file or directory, may
cause bad performance
unable to open /etc/leafnode/local.groups: No such file or directory
found 0 articles in in.coming.
news.rz.uni-ulm.de: connecting to port nntp
  trying:    address 134.60.246.200 port 119...
  connected: address 134.60.246.200 port 119.
news.rz.uni-ulm.de: connected (200), banner: "200 news.uni-ulm.de DNEWS
Version  5.6f3,, S0, posting OK "
found 0 articles in out.going.
news.rz.uni-ulm.de: 0 articles posted
news.rz.uni-ulm.de: getting newsgroups list
news.rz.uni-ulm.de: read 6473 newsgroups
news.rz.uni-ulm.de: getting newsgroup descriptions
unable to open /etc/leafnode/local.groups: No such file or directory
findgroup("alt.1d") called without prior readactive()

Program received signal SIGABRT, Aborted.
0x4007e781 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x4007e781 in kill () from /lib/libc.so.6
#1  0x4007e464 in raise () from /lib/libc.so.6
#2  0x4007fbe1 in abort () from /lib/libc.so.6
#3  0x0804e604 in findgroup (name=0x806a158 "alt.1d", a=0x0, asize=0) at
activutil.c:223
#4  0x0804efb5 in mergeactives (old=0x0, newa=0x4025b008) at
activutil.c:532
#5  0x0804d51f in main (argc=2, argv=0xbffffc60) at fetchnews.c:2090
(gdb) 

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