Article View: news.software.nntp
Article #61668Re: OE6 bug ? (killer article)
From: Jøhnny Fävòrítê (it means "Sick-...
Date: Sun, 27 Oct 2002 16:01
Date: Sun, 27 Oct 2002 16:01
45 lines
3447 bytes
3447 bytes
J�hnny F�v�r�t� wrote: > Now that I think about it, I wonder why it didn't crash MY > newsreader. Well, whaddaya know. This thread actually DID crash my newsreader, once it got some follow-ups. Actually not an out-and-out crash, but it sent one of my program's threads into an infinite loop that you can only get out of by selecting a different newsgroup. Jeffrey M. Vinocur wrote: > Are you using something like http://www.jwz.org/doc/threading.html > which actually considered the possibility of malicious input, > apparently unlike OE? I've read JWZ's threading document and it's very thorough but I didn't go that route. I don't like the possibility of two unrelated threads getting stuck together due to having the same subject text and it's a lot of extra work besides. So I use only the References: header. I take bugs very seriously so I've re-acquainted myself with how my newsreader does threading and have already fixed it for this special case. Here's how I was getting fouled up. I've got the list of all articles in a group and it's time to pick the most appropriate parent article to hang each one underneath. If it has no References: header then it's top-level, stop. If it DOES have references then I pick the last message-ID off the end of the list and see if that article exists in the current view. If so, you've got your parent. If not, keep going up the references list, etc. It might end up being top-level after all if none of its ancestors can be located. Run that algorithm in your head for this special case and you find that Simon's screwed-up article will end up in the incestuous position of being its own parent. Later on, when trying to walk the ancestor tree up to its root in an attempt to coalesce related sub-threads, I ended up in an infinite loop. Bang. So I added one line of code that compares pointers during the ancestor-finding phase to make sure that an article's parent isn't itself. Fixed. Of course that still leaves the possibility of a screwed-up ancestor heirarchy that is circular but involves more than one article. I'll have to think about that one.
Technical Details
Message-ID:
<PM0003ADFF9215EBDD@minion.nashville.comcast.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!logbridge.uoregon.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1References:
<1035633070-test@darkmere.gen.nz> <1035633070-test@darkmere.gen.nz> <Xns92B3EF32C9661OhMamyBlue@127.0.0.1> <PM0003ADF6AA4B34CE@minion.nashville.comcast.net> <aph00t$qve$1@puck.litech.org>Show Full Headers
Complete Article Headers
Message-ID: <PM0003ADFF9215EBDD@minion.nashville.comcast.net> Subject: Re: OE6 bug ? (killer article) Date: Sun, 27 Oct 2002 11:01:49 -0500 From: Jøhnny Fävòrítê (it means "Sick-Cow Vibrato") <this.is@totally.fake.com> References: <1035633070-test@darkmere.gen.nz> <1035633070-test@darkmere.gen.nz> <Xns92B3EF32C9661OhMamyBlue@127.0.0.1> <PM0003ADF6AA4B34CE@minion.nashville.comcast.net> <aph00t$qve$1@puck.litech.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!logbridge.uoregon.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1 Newsgroups: news.software.nntp,news.software.readers Organization: Hell, Inc. Lines: 44 NNTP-Posting-Host: p-556.newsdawg.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Pineapple News 0.9.7 [PLAID BETA], BeOS (Intel) 5.0.3 X-Program-URL: http://www.beosdevelopers.org/brunsona/pineapplenews.html X-Registered-To: Arva Bigboote