hxcpp-debugger icon indicating copy to clipboard operation
hxcpp-debugger copied to clipboard

Crash in var printing after breakpoint before super

Open Gama11 opened this issue 5 years ago • 3 comments

To reproduce, create an empty OpenFL project with this as Main:

package;

import openfl.display.Sprite;

class Main extends Sprite
{
	public function new()
	{
		trace("test");
		super();
	}
}

Then set a breakpoint at the trace. Taking any action after the breakpoint is hit (continue, step over) results in a crash.

When attaching a native C++ debugger, you can see that it crashes while printing numChildren.

@nulld Any ideas? I thought that -D HXCPP_CHECK_POINTER should help, but it doesn't seem to.

Gama11 avatar May 10 '19 15:05 Gama11

(most likely this is related to the implementation of get_numChildren, which returns __children.length / wouldn't be initialized properly before super, but what I don't get is why we can't catch that exception)

Gama11 avatar May 10 '19 15:05 Gama11

Looks like duplicate of this one https://github.com/vshaxe/hxcpp-debugger/issues/8

nulld avatar May 13 '19 18:05 nulld

Oh, maybe...

Gama11 avatar May 13 '19 19:05 Gama11