Skip to content

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

Closed
jamescrosswell wants to merge 5 commits intomainfrom
unwindnativecode-monovm-only
Closed

Only use MarshalManagedExceptionMode.UnwindNativeCode when building for Mono on net8.0 and earlier#3912
jamescrosswell wants to merge 5 commits intomainfrom
unwindnativecode-monovm-only

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
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
@jamescrosswell
Copy link
Collaborator Author

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