[squeak-dev] Bug in Process>>#terminate | Returning from unwind contexts

Jaromir Matas m at jaromir.net
Mon Mar 15 08:35:06 UTC 2021


> Hi Jaromir,


> thanks a lot for your answer! Great to hear that you have found some other
> examples that would benefit > from my patch as well. :-)

Hi Christoph,

I've realized there's one disadvantage to your patch. It quite successfully
masks the real issue but every occurrence/application of the patch leaves
one suspended process behind - the one that was left prematurely through the
non-local return - see the enclosed printscreen after two iterations of your
example:

<http://forum.world.st/file/t372955/Christoph_fix_disadvantage.png> 

Purple highligted processes are being left behind every occurrence of the
patch application.

The other problem I raised in
http://forum.world.st/Please-try-out-Fixes-for-debugger-invocation-during-code-simulation-tp5127684p5127748.html
is that the really executing process (which really is the genuine process)
is invisible to the user because it responds true to isTerminated! In order
to make this process visible I tweaked a bit the isTerminated as you can see
at the top of the printscreen.

The scary part is after one occurrence of the issue the image may happily
run with the invisible UI forever - or to be precise until another error
occurs and the invisible becomes visible :)

Best,
 




-----
^[^ Jaromir
--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html


More information about the Squeak-dev mailing list