🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Ragnar Lonn Mon, 02 Dec 1996 00:00
newgroup bug in INN1.5 (b2) ?
#12899
Author: Ragnar Lonn
Date: Mon, 02 Dec 1996 00:00
34 lines
1965 bytes
Hello,

I'm running INN1.5b2 on a Sparc 4/Solaris 2.5 machine. 
It works very well except from the fact that INND sometimes
just dies with no error messages or anything strange in the 
logfiles. I've noticed it always happens during (or possibly
right after) a newgroup command is being executed by ctlinnd.
Most newgroup commands work like they should - this problem
only appear occasionally. In the case of this machine in
normal operation, it seems to happen once or twice per
week, roughly. When I tried to let a script add 200 new
groups using ctlinnd, innd died after the script had
added 163 groups.

I have three coredumps made by innd when it has died like
this, if anyone wants to look at them. It dies from a
segmentation fault so maybe there's a wild pointer or 
something in there somewhere but it would likely take
me ages to find it myself so I thought I'd just report it.

It is hard to do a trace of what's happening as I don't know
exactly when innd will choose to die and the newgroup
commands work almost all the time. I could, maybe, try
to provoke it by adding a couple of hundred groups
while tracing what ctlinnd does, if it is needed. Maybe
this bug will be spotted immediately by someone who
knows the code?  (if it is a bug, that is)

Regards,

  /Ragnar

Re: newgroup bug in INN1.5 (b2) ?
#12911
Author: Andrew A. Vasilyev
Date: Mon, 02 Dec 1996 00:00
52 lines
2100 bytes
In news.software.nntp Ragnar Lonn <prl@algonet.se> wrote:
> I have three coredumps made by innd when it has died like
> this, if anyone wants to look at them. It dies from a
> segmentation fault so maybe there's a wild pointer or 
> something in there somewhere but it would likely take
> me ages to find it myself so I thought I'd just report it.

  Try 1.5 release. If still the same then build innd with "-g" flag
  w/o any optimization (-O -fast etc),
  and say "dbx innd core" when core appears again. 'where' command
  gives you a trace where error occured. If this is ARTpropagate(),
  try the following:

*** ../../inn-1.5/innd/art.c	Sat Nov 30 02:32:18 1996
--- art.c	Sat Nov 30 18:22:40 1996
***************
*** 1641,1651 ****
  	    if (funnel->FNLwantsnames) {
  		bp = &funnel->FNLnames;
  		p = &bp->Data[bp->Used];
  		if (bp->Used) {
  		    *p++ = ' ';
  		    bp->Used++;
  		}
		bp->Used += strlen(strcpy(p, sp->Name));
  	    }
  	}
  }
--- 1661,1675 ----
  	    if (funnel->FNLwantsnames) {
  		bp = &funnel->FNLnames;
  		p = &bp->Data[bp->Used];
+ /* XXX */       if(!p) {
+ 		    syslog(L_ERROR, "%s ARTpropagate(%s) - no data buffer", LogName, funnel->Name ? funnel->Name : "UNKNOWN");
+ 		    continue;
+ 		}
  		if (bp->Used) {
  		    *p++ = ' ';
  		    bp->Used++;
  		}
		bp->Used += strlen(strcpy(p, sp->Name));
  	    }
  	}
  }


  In any case please inform us about the trace.
________
	ANDY

Re: newgroup bug in INN1.5 (b2) ?
#13015
Author: Ragnar Lonn
Date: Thu, 05 Dec 1996 00:00
30 lines
1676 bytes
Andrew A. Vasilyev <andy@snm.demos.su> wrote:

>In news.software.nntp Ragnar Lonn <prl@algonet.se> wrote:
>> I have three coredumps made by innd when it has died like
>> this, if anyone wants to look at them. It dies from a
>> segmentation fault so maybe there's a wild pointer or 
>> something in there somewhere but it would likely take
>> me ages to find it myself so I thought I'd just report it.

>  Try 1.5 release. If still the same then build innd with "-g" flag

Ok, I've upgraded to inn 1.5 release now and the problem with
INND dying from a segmentation fault when creating groups seem
to have disappeared as it hasn't died in a couple of days now.

Thanks for the help though, I hope I won't have to get back
on this subject :-)   

However, it may be worth to notice for those of you that 
run a beta of 1.5 (I don't know if it's only beta-2) that there may
be a bug there that causes innd to die when creating new groups
so if you have any problems with that, try upgrading to 1.5 release.

Regards,

  /Ragnar


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads