pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Installing a breakpoint into an unsaved method hangs the image

Open pavel-krivanek opened this issue 8 months ago • 1 comments

Bug description Installing a breakpoint into an unsaved method hangs the image without user interrupt working.

To Reproduce Steps to reproduce the behavior:

  1. Go to any method, modify it (e.g. by adding space)
  2. Add a breakpoint on any place in the method (from context menu or by clicking on the left bar, makes no difference)
  3. Image hangs

Version information:

Pharo 12.0.0 Build information: Pharo-12.0.0+build.1249.sha.1da0f13d6bce006cb0c38802b2e7092f3abf2e14 (64 Bit)

pavel-krivanek avatar Dec 27 '23 08:12 pavel-krivanek

Problem seems to be in

affectsMethod: aMethod

	^ self link methods anySatisfy: [:each | each compiledMethod == aMethod compiledMethod ]

See the following screenshot:

Screenshot 2023-12-29 at 15 51 18

methods is answering nil elements. While checking why this happen stepping into my image also hung:

Screenshot 2023-12-29 at 15 41 42

Maybe @MarcusDenker has a suggestion here for a fix?

hernanmd avatar Dec 29 '23 14:12 hernanmd

This problem (of a crash) does not happen anymore,

But we found another issue, we will open a new issue

MarcusDenker avatar Mar 29 '24 10:03 MarcusDenker