Article View: news.software.nntp
Article #49492Re: INN 2.3.0 Linux/Alpha articles gone AWOL
From: Russ Allbery
Date: Sat, 23 Dec 2000 11:53
Date: Sat, 23 Dec 2000 11:53
43 lines
2709 bytes
2709 bytes
Sorry about how long it took me to get back to this. In news.software.nntp, news <news@nospam.invalid> writes: > In comp.os.linux.alpha Russ Allbery <rra@stanford.edu> wrote: >> Hm. So it's using the message ID to get the token? This may be >> pointing at your history file. What does running grephistory on that >> message ID return? If it returns a storage token, does running sm on >> that token work? > Another followup, I've worked where things go wrong by hacking some > simple debig statements into storage/tradspool/tradspool.c in the > TokenToPath function, > memcpy(&artnum, &token.token[sizeof(ngnum)], sizeof(artnum)); > artnum = 1375797248 > artnum = ntohl(artnum); > artnum = 338 > ngnum = ntohl(ngnum); > artnum = 338 > ng = FindNGByNum(ngnum); > if (ng == NULL) return NULL; > artnum = 1375797248 This is looking a *lot* like a compiler bug of some sort to me. FindNGByNum doesn't write to memory anywhere in the fuction; it only uses a couple of local variables, and it's a very small function that's pretty easy to inspect and convince oneself that it's not doing anything odd. It definitely shouldn't be able to change artnum, which is local to the calling function. I don't see any chance of a stack overflow or something. > So it seems that for some reason the call to FindNGByNum is somehow > resetting artnum to it's network byte order version ! Uhm, where > does the memory for ng come from ? Global data populated from tradspool.map when nnrpd or innd starts. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yl3dffcq1l.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<90uqui$k18$0@pita.alt.net> <910ecf$5ad$0@pita.alt.net> <ylk898vtk9.fsf@windlord.stanford.edu> <9115bt$ulr$0@pita.alt.net> <ylvgsru8d0.fsf@windlord.stanford.edu> <911k8r$vv$0@pita.alt.net>Show Full Headers
Complete Article Headers
Message-ID: <yl3dffcq1l.fsf@windlord.stanford.edu> Subject: Re: INN 2.3.0 Linux/Alpha articles gone AWOL Date: Sat, 23 Dec 2000 11:53:10 +0000 From: Russ Allbery <rra@stanford.edu> References: <90uqui$k18$0@pita.alt.net> <910ecf$5ad$0@pita.alt.net> <ylk898vtk9.fsf@windlord.stanford.edu> <9115bt$ulr$0@pita.alt.net> <ylvgsru8d0.fsf@windlord.stanford.edu> <911k8r$vv$0@pita.alt.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeed.skycache.com!Cidera!news.maxwell.syr.edu!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp,comp.os.linux.alpha Organization: The Eyrie Lines: 42 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)