Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only use MarshalManagedExceptionMode.UnwindNativeCode when building for Mono on net8.0 and earlier #3912

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jamescrosswell
Copy link
Collaborator

May resolve #3280:

Ideally we'd get customers to test this though as I've had extreme difficulty reproducing the stack traces referred to.

@jamescrosswell jamescrosswell changed the title Don't set MarshalManagedExceptionMode.UnwindNativeCode for CoreCLR Use MarshalManagedExceptionMode.Default on CoreCLR Jan 22, 2025
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Not supported on the CoreCLR or NativeAOT - see:
https://github.com/xamarin/xamarin-macios/blob/0a81da28e4217624a54ccb83541e1eb8ba651fca/runtime/runtime.m#L2480-L2491
-->
<PropertyGroup Condition="'$(UseMonoRuntime)' == 'true'">
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably also restrict this to net8.0 since this issue has been fixed in net9.0 on MONO

@jamescrosswell jamescrosswell changed the title Use MarshalManagedExceptionMode.Default on CoreCLR Only use MarshalManagedExceptionMode.UnwindNativeCode when building for Mono on net8.0 and earlier Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[iOS / Native AOT] Bad stack trace due to unsupported marshalling behavior
2 participants