[squeak-dev] The Inbox: Kernel-jar.1375.mcz

Jaromir Matas m at jaromir.net
Sun Feb 28 12:42:45 UTC 2021


#forContext:priority: may cause image crash when supplying e.g. a block
instead of a context:

(save your image first!)

create a new process:

   p := Process forContext: ["whatever"] priority: Processor activePriority

and then try to start a Process Browser or just do-it:

   p isTerminated

The thing is both Process Browser and #isTerminated send `suspendedContext
isBottomContext` and that fails, starting a debugger and in some cases
windows start popping up...

I guess the easiest and safest fix is to send #asContext to the aContext
argument in #forContext:priority:

If not then a condition has to be added to make sure the aContext argument
really is a context.

regards,



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


More information about the Squeak-dev mailing list