🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79913

Re: INN Segfault

#79913
From: Steve
Date: Sun, 21 Dec 2008 22:52
38 lines
2066 bytes
On Sun, 21 Dec 2008 13:02:09 -0800, Russ Allbery wrote in
Message-Id: <87ej01p7hq.fsf@windlord.stanford.edu>:

> 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

Hi Russ,

Thanks for the info.  I've actually resolved the problem. It was down to
a regex I was testing in Cleanfeed that caused catastophic backtracking
on rare messages.  Not sure why this triggered the segfault but
reverting the Cleanfeed code certainly resolved it.  If it's of any
value I can reinsert the faulty regex and try to debug it further.

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Technical Details
Message-ID: <slrngkti5l.5mr.steve@news.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!news.mixmin.net!not-for-mail
References: <slrngkstrk.95c.steve@fleegle.mixmin.net> <87ej01p7hq.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrngkti5l.5mr.steve@news.mixmin.net>
Subject: Re: INN Segfault
Date: Sun, 21 Dec 2008 22:52:37 +0000
From: Steve <steve@mixmin.net>
References: <slrngkstrk.95c.steve@fleegle.mixmin.net> <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!news.mixmin.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Lines: 38
NNTP-Posting-Host: b421ff0445b5e915dcbceaec1788b827
X-Complaints-To: abuse@mixmin.net
NNTP-Posting-Date: Sun, 21 Dec 2008 22:52:37 +0000 (UTC)
User-Agent: slrn/0.9.8.1pl1 (Debian)