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

John B. Thiel jbthiel at pobox.com
Thu May 10 21:16:01 UTC 2001


Summary:  fixed since #3545 (or earlier).

On Thursday, May 10, 2001, at 12:56 PM, Ned Konz wrote:
> On Thursday 10 May 2001 12:39, John B. Thiel wrote:
>> 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"
>>
> It works on mine.
> Process>>resume should be:
> resume
> 	suspendedContext ifNil: [ ^self primitiveFailed ].
> 	^self primitiveResume


Hmm,  my image (#3414  from Mac 3.0.7 distribution) was missing the 
guard:

Process>>resume
	<primitive: 87>
	self primitiveFailed

But I see your working version is in #3545 (from 3.0.8 dist)... time to 
upgrade.


>> BTW,  Are processes the right way to accomplish "threads" in Squeak, or
>> is there some other mechanism?
>
> Yes. <plug level=shameless>Look at the ProcessBrowser in 3.1 for even 
> more
> enjoyment of processes</plug>

Thanks,  I'll have a look.

-jt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1172 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010510/46273352/attachment.bin


More information about the Squeak-dev mailing list