🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79909

Re: INN Segfault

#79909
From: Russ Allbery
Date: Sun, 21 Dec 2008 21:02
41 lines
2328 bytes
Steve <steve@mixmin.net> writes:

> For reasons unknown my INN started segfaulting today.  A couple of times
> it ran for a short while after a restart but now seems to be completely
> dead.  I've tried upgrading to the current release (20081221) with no
> difference.  Nothing in the logs indicate a problem except for the
> actual segfault in syslog:
> Dec 21 16:44:05 news kernel: innd[14161]: segfault at 00007fff374f3ff8
> rip 00002ae672faadff rsp 00007fff374f4000 error 6
>
> Here's a paste of the gdb output:
> http://pastebin.com/m7bad8756

The code where you're getting the segfault is:

static bool
set(searcher *sp, hash_table *tab, void *value)
{
    off_t offset;
    
    if (sp->aborted)
        return false;

    /* If we have the index file in memory, use it */
    if ((tab->incore != INCORE_NO) && (sp->place < conf.tsize)) {
        void *where = (char *)tab->core + (sp->place * tab->reclen);

        memcpy(where, value, tab->reclen);

So either value, something in tab, or sp is invalid.  In the set() frame,
could you try:

    print *tab
    print *sp
    print *value

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87ej01p7hq.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
References: <slrngkstrk.95c.steve@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <87ej01p7hq.fsf@windlord.stanford.edu>
Subject: Re: INN Segfault
Date: Sun, 21 Dec 2008 13:02:09 -0800
From: Russ Allbery <rra@stanford.edu>
References: <slrngkstrk.95c.steve@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!newshub.sdsu.edu!newsfeed.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 41
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.stanford.edu 1229893329 16070 171.67.225.134 (21 Dec 2008
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:PfvlX16FRkdnGAZDHPfnH4kpfHk=