🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30535

Re: [inn 2.1] Segmentation Fault

#30535
From: Miquel van Smoorenburg
Date: Mon, 17 Aug 1998 00:00
39 lines
1884 bytes
In article <35D83A7E.19EF1F09@ufc-etudiants.univ-fcomte.fr>,
Stephane Poirey  <poirey@ufc-etudiants.univ-fcomte.fr> wrote:
>I've got some problems running INN 2.1 on my linux (redhat 5.1) system
>(version 1.7.2 was running fine).
>
>When I try a "rc.news start" or a "inndstart -d" I get :
>
>innd: SERVER descriptors 256
>innd: SERVER outgoing 243
>innd: SERVER ccsetup control:13
>innd: SERVER lcsetup localconn:15
>innd: SERVER rcsetup remconn:5
>Segmentation fault

This looks the same as what I saw a few days ago. The following patch
fixed it for me and is in the CVS archive.

--- inn-19980811/innd/ng.c.orig	Wed Aug 12 10:22:13 1998
+++ inn-19980811/innd/ng.c	Wed Aug 12 10:24:18 1998
@@ -179,8 +179,8 @@
 
     /* Get active file and space for group entries. */
     active = ICDreadactive(&end);
-    for (p = active, i = 0; p < end && (p = strchr(p, '\n')) != NULL; p++, i++)
-	continue;
+    for (p = active, i = 0; p < end; p++)
+	if (*p == '\n') i++;
     if ((nGroups = i) == 0) {
 	syslog(L_FATAL, "%s empty active file", LogName);
 	exit(1);

Please tell us if it works for you too..

Mike.
-- 
 Miquel van Smoorenburg | Our vision is to speed up time,
    miquels@cistron.nl  |   eventually eliminating it.     <*>

Technical Details
Message-ID: <6r9kj6$56n$1@Q.cistron.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <35D83A7E.19EF1F09@ufc-etudiants.univ-fcomte.fr>

Show Full Headers
Complete Article Headers
Message-ID: <6r9kj6$56n$1@Q.cistron.nl>
Subject: Re: [inn 2.1] Segmentation Fault
Date: Mon, 17 Aug 1998 00:00:00 +0000
From: miquels@cistron.nl (Miquel van Smoorenburg)
References: <35D83A7E.19EF1F09@ufc-etudiants.univ-fcomte.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 381992594
Organization: Cistron Internet Services B.V.
X-Server-Date: 17 Aug 1998 16:09:08 GMT
Newsgroups: news.software.nntp