[squeak-dev] BUG/REGRESSION while debugging Generator >> #nextPut:

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Sat Dec 14 13:43:47 UTC 2019


By request, screenshots from a clean image ...

[cid:6fa7fa9a-d845-46f1-9a0e-1e75eb321f5b]

⤴ Press over

Press cmd-dot ⤵

[cid:af732dee-3398-4596-a928-ca295175cfd9]


The screenshots from 5.1 were made in a clean 5.1 image.


Best,

Christoph

________________________________
Von: Thiede, Christoph
Gesendet: Freitag, 13. Dezember 2019 19:48:00
An: Squeak Dev
Betreff: BUG/REGRESSION while debugging Generator >> #nextPut:


Hi all,


I discovered a bug when stepping over a call to Generator >> #nextPut:.

!! Save your image before trying the following !!


Generator
on: [:stream | stream nextPut: #foo]


[cid:95952b5e-98f1-4447-bd09-29d396961281]


  1.  Due to multiprocessing implementation of the Generator, pressing over will hang up the current process forever, because the generator is never queried.
  2.  If I press cmd-dot, I get an infinite number of debugger windows that show Context >> #cannotReturn:. This will probably damage your image.

The first is annoying for newcomers, but I see this behavior is reasonable and without the effect of the second, it wouldn't be a big problem.
The second, however, looks like a bigger issue to me. Actually, I think the most serious aspect is that in Squeak 5.1, the same procedure does not crash your image, but you are forwarded to the emergency debugger and can terminate the process:

[cid:c8eee8c3-d2de-49c0-b5d4-33bd340d6c98] [cid:6044ecf2-91ab-4f6e-b863-b980586868e9]

Also, this is not the first scenario in the last time where I got an infinite debugger chain. See [BUG(s)] in Context control (#jump, #runUntilErrorOrReturnFrom:)<http://forum.world.st/BUG-s-in-Context-control-jump-runUntilErrorOrReturnFrom-td5107263.html> for a similar issue. And there were even more situations which I could not yet reproduce exactly.
I'm afraid that the recent changes to the debuggers might have weakened its ability to detect recursive errors. Can someone else tell about these problems?

I suppose we ignore a large number of recursive errors as in MorphicDebugger >> #openOn:context:label:contents:fullView:, the uiBlock is often triggered as a separate UI message which will be executed after the recursion flag has been cleared by the base class.

Would be great if someone could have a look at it or share more information :)

Best,
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191214/8b12e535/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 43800 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191214/8b12e535/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 185254 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191214/8b12e535/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 171961 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191214/8b12e535/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 24805 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191214/8b12e535/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 22517 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191214/8b12e535/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 147912 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191214/8b12e535/attachment-0011.png>


More information about the Squeak-dev mailing list