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

Re: Segmentation fault panics



David Given wrote:

> Last night my machine ran out of disc space, and fetch tried to run. Now 
> whenever I do a fetch manually, it seg faults on me.

[fetches one group normally, then crashes]

> I've tried turning debugging information on, but nothing out of the ordinary 
> seems to be happening in the system log.
> 
> The most noticable strange happening is that active.read is zero-length.

That's normal.

Possible suspects would be:

a) corrupted groupinfo file (check whether all groups that you read are
   present there. fetch will currently segfault if it tries to retrieve
   a group not present in your groupinfo file because I messed up the
   code a little. Patch is in the works.)

b) /var/spool/news/message.id misses some or all subdirs. Theoretically,
   fetch should just complain and exit. To rebuild the directory structure,
   run the following script as root (which comes straight from the Makefile):

   #!/bin/bash
   cd /var/spool/news/message.id
   for a in 0 1 2 3 4 5 6 7 8 9 ; do \
       for b in 0 1 2 3 4 5 6 7 8 9 ; do \
           mkdir ${a}${b}0 ${a}${b}1 ${a}${b}2 ${a}${b}3 ${a}${b}4 \
	         ${a}${b}5 ${a}${b}6 ${a}${b}7 ${a}${b}8 ${a}${b}9
	   chown news.news ${a}${b}0 ${a}${b}1 ${a}${b}2 ${a}${b}3 ${a}${b}4 \
	         ${a}${b}5 ${a}${b}6 ${a}${b}7 ${a}${b}8 ${a}${b}9
       done
   done
   
   Already existing dirs will not be overwritten.

c) Maybe some file in /var/spool/news/leaf.node/ is corrupted. Check whether
   /var/spool/news/leaf.node/your.upstream.news.server looks normal; the
   lines in there should look something like this:

   de.comp.os.unix.networking 6799
   de.comp.os.unix.programming 2694
   de.comp.os.unix.linux.misc 34787
   de.comp.os.unix.linux.newusers 28847
   de.comp.os.unix.discussion 3655

Otherwise, I have no good ideas yet.

--Cornelius.

-- 
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany   email: phak004@xxxxxxxxxxxxxxxxxxxxxx  SP4 */
/* "Science is the game we play with God to find out what His rules are."  */

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