[BUG] CRASHER: #resume a terminated process kills VM

Tim Rowledge tim at sumeru.stanford.edu
Thu May 10 19:57:50 UTC 2001


"John B. Thiel" <jbthiel at pobox.com> is widely believed to have written:

> The following will kill the VM   (Squeak 3.0,   MacOS and Cocoa VMs 
> tested)
> 
> p_ [d_Delay forSeconds: 2. 1 to: 100 do: [:i| d wait. Transcript show: 
> 'step '. ]] newProcess .
> p resume.   "crashes with or without this line"
> p terminate.
> p resume      "WARNING:  this line kills VM"
This came up a while ago IIRC. Basically, you can't resume a terminated
process - it has nil for its suspended context and theprim doesn't check
this. I think I posted a trivial image fix for this, and I think a
slight variation even got into the update stream?

tim 

-- 
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
Useful random insult:- One chapter short of a novel.





More information about the Squeak-dev mailing list