From: Russ Allbery <rra@stanford.edu>
Subject: Re: INN 2.3.0 Linux/Alpha articles gone AWOL
Date: 23 Dec 2000 03:53:10 -0800 [thread overview]
Message-ID: <yl3dffcq1l.fsf@windlord.stanford.edu> (raw)
In-Reply-To: 911k8r$vv$0@pita.alt.net
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/>
prev parent reply other threads:[~2000-12-23 11:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-10 2:48 INN 2.3.0 Linux/Alpha articles gone AWOL news
2000-12-10 7:34 ` Russ Allbery
2000-12-10 17:26 ` news
2000-12-10 21:45 ` Russ Allbery
2000-12-10 23:58 ` news
2000-12-11 0:09 ` Russ Allbery
2000-12-11 2:48 ` news
2000-12-11 3:49 ` Russ Allbery
2000-12-11 18:18 ` news
2000-12-11 4:13 ` news
2000-12-23 11:53 ` Russ Allbery [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox