Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix unwinding past main on OSX#509

Closed
kangaroo wants to merge 1 commit into
dotnet:masterfrom
kangaroo:unwind-fix
Closed

Fix unwinding past main on OSX#509
kangaroo wants to merge 1 commit into
dotnet:masterfrom
kangaroo:unwind-fix

Conversation

@kangaroo
Copy link
Copy Markdown

unw_step is defined to return 0 when it hits the bottom.
The current code assumes a non-osx-libunwind specific behavior
of a null $pc coming back from the cursor. The correct behavior
is to return when the step fails, and dump the exception to
the console.

Currently any test that throws through main ends up in an infinite loop on OSX.

unw_step is defined to return 0 when it hits the bottom.
The current code assumes a non-osx-libunwind specific behavior
of a null $pc coming back from the cursor.  The correct behavior
is to return when the step fails, and dump the exception to
the console.
@kangaroo
Copy link
Copy Markdown
Author

This PR isn't correct as it is. I'm going to open an issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants