🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #2207

Re: mthreads: interrupt 11?

#2207
From: Geoff Collyer
Date: Mon, 21 Sep 1992 01:25
63 lines
2945 bytes
Rob Lingelbach:
>mthreads is bombing out when trying to thread all the groups here with
>"interrupt 11".  Anybody know what this means?  I am running the
>mthreads that came with trn2.2.

It means you've hit one of mthread's bugs and it is dereferencing a wild
pointer.  This patch fixes the one bug of this sort that I've found (with
help from Mark Moraes's debugging malloc):

*** mt-process.c.old	Sat Jul 25 21:29:20 1992
--- mt-process.c	Sat Jul 25 21:24:46 1992
***************
*** 1,9 ****
! /* $Id: mt-process.c,v 1.2 92/07/23 22:49:24 geoff Exp $
  **
! ** $Log:	mt-process.c,v $
!  * Revision 1.2  92/07/23  22:49:24  geoff
!  * minor code tweaks for speed
!  * 
  ** Revision 4.4.3.1  1991/11/22  04:12:15  davison
  ** Trn Release 2.0
  ** 
--- 1,6 ----
! /* $Id: mt-process.c,v 4.4.3.1 1991/11/22 04:12:15 davison Trn $
  **
! ** $Log: mt-process.c,v $
  ** Revision 4.4.3.1  1991/11/22  04:12:15  davison
  ** Trn Release 2.0
  ** 
***************
*** 840,847 ****
  	** than the child that faked us initially.  Free the fake reference-
  	** chain and process our references as usual.
  	*/
! 	for (node = article->parent; node; node = node->parent) {
  	    unlink_child(node);
  	    free_article(node);
  	}
  	article->parent = Nullart;		/* neaten up */
--- 837,845 ----
  	** than the child that faked us initially.  Free the fake reference-
  	** chain and process our references as usual.
  	*/
! 	for (node = article->parent; node; node = last) {
  	    unlink_child(node);
+ 	    last = node->parent;
  	    free_article(node);
  	}
  	article->parent = Nullart;		/* neaten up */

>This appears to have been precipitated last night by my editing the
>explist file, and then writing it with a missing field in two of the entries.

I'm skeptical; mthreads has no knowledge of the explist file.  It was
probably a coincidence.

The good news is that we shouldn't need mthreads for much longer (I'm
still working on nnmaster, but mthreads is next in my sights).
-- 
Geoff Collyer				world!geoff, world.std.com!geoff
``closed is Open'' - not George Orwell on ``Open'' Systems
open, a. admitting visitors or customers; not yet settled or decided (OPD)
``and it's Open For Business like a cheap bordello'' - Bruce Cockburn
Technical Details
Message-ID: <BuwMM3.ICt@world.std.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!utzoo!world!geoff
References: <1992Sep20.225348.6055@xyzoom.info.com>

Show Full Headers
Complete Article Headers
Message-ID: <BuwMM3.ICt@world.std.com>
Subject: Re: mthreads: interrupt 11?
Date: Mon, 21 Sep 1992 01:25:15 GMT
From: geoff@world.std.com (Geoff Collyer)
References: <1992Sep20.225348.6055@xyzoom.info.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!utzoo!world!geoff
Newsgroups: news.software.readers
Organization: Software Tool & Die Netnews Research Center
Distribution: na
Lines: 63