🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7367

Re: INN1.4unoff4 crashes with segment violation

#7367
From: Brian Tao
Date: Wed, 08 May 1996 00:00
63 lines
3519 bytes
In article <SOBEK.96May7115940@dusty.irit.fr>, Dr. Ralph P. Sobek <sobek@irit.fr> wrote:
>
>The crash is in the expression:
>
>    for (c = *Name, ngp = htp->Groups, i = htp->Used; --i >= 0; ngp++)
>-->	if (c == ngp[0]->Name[0] && EQ(Name, ngp[0]->Name))
>	    return ngp[0];

    I had a horrible time just this past weekend with this exact same
problem.  I wasn't able to track down the problem to an article
cancel, but it seems like a reasonable conclusion.  In my case though,
some data structures look as if they were trashed (either being
confused with some other part of memory, or sent from one of our
feeds):

(gdb) bt
#0  0x139bb in NGfind (
    Name=0x13f8853 "000068 y\nalt.pets.chia 0000000635 0000000631 y\nalt.pets.ferrets 0000004446 0000003356 y\nalt.pets.hamsters 0000005159 0000004264 y\nalt.pets.rabbits 0000013468 0000011826 y\nalt.ph.uk 0000002953 00000024"...) at ng.c:265
#1  0x13f8853 in end ()
#2  0x5356 in ARTpost (cp=0x2ee58, Replic=0x0,
    ihave=0x15cd800 "0R(JJT84!@=I_NDY)/OS4Z*(I2\"6`.-I`.T^W\\OT]LME3RB)(6#;U5&C+=\nMP,Y_/^=0370AG`*R*\"2I)Y`&,]/U]JJ]S71EF>[>)LB/<AZD<_4=?K5.;7H0\nMQ#S1@@!N<_7'/UIMU>0E'#`.[DJ1M(S@=^GZ>]8NHQQ',A\\H``'N?KS^1_SP\nMTE+1F4G;5&Y%XF@9"...) at art.c:1836
#3  0xee2d in NCpostit (cp=0x2ee58) at nc.c:233
#4  0x10db0 in NCreader (cp=0x2ee58) at nc.c:1003
#5  0xb051 in CHANreadloop () at chan.c:786
#6  0xe2e0 in main (ac=0, av=0xefbfddfc) at innd.c:889
(gdb) list
260
261         /* SUPPRESS 6 *//* Over/underflow from plus expression */
262         NGH_HASH(Name, p, j);
263         htp = NGH_BUCKET(j);
264         for (c = *Name, ngp = htp->Groups, i = htp->Used; --i >= 0; ngp++)
265             if (c == ngp[0]->Name[0] && EQ(Name, ngp[0]->Name))
266                 return ngp[0];
267         return NULL;
268     }
269
(gdb) list art.c:1836
1831        ngptr = GroupPointers;
1832        j = 0;
1833        for (GroupMissing = Accepted = FALSE; (p = *groups) != NULL; groups++) {
1834            if (!RCcanpost(cp, p))
1835                continue;
1836            if ((ngp = NGfind(p)) == NULL) {
1837                GroupMissing = TRUE;
1838                if (LikeNewgroup && Approved) {
1839                    /* Newgroup/rmgroup being sent to a group that doesn't
1840                     * exist.  Assume it is being sent to the group being


>Can somebody see what went wrong?  This was compiled with SunPro C
>3.0.1 under Solaris 2.5.  I'll keep the core file around for awhile.  

    This was 1.4unoff3, compiled with gcc 2.6.3 under FreeBSD 2.1R.  I
shut off one of our newly-added incoming feeds and the problem has
disappeared.  The server is running unoff4 now, and I'm going to try
turning the feed back on to see what happens.
-- 
Brian Tao (BT300, taob@io.org, taob@ican.net)
Systems and Network Administrator, Internet Canada Corp.
"Though this be madness, yet there is method in't"

Technical Details
Message-ID: <4mquh6$3bb@zap.io.org>
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: <SOBEK.96May7115940@dusty.irit.fr>

Show Full Headers
Complete Article Headers
Message-ID: <4mquh6$3bb@zap.io.org>
Subject: Re: INN1.4unoff4 crashes with segment violation
Date: Wed, 08 May 1996 00:00:00 +0000
From: taob@zap.io.org (Brian Tao)
References: <SOBEK.96May7115940@dusty.irit.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: 153796930
Distribution: inet
Organization: Internex Online Inc., Toronto, Ontario, Canada
Newsgroups: news.software.nntp