You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[native aot] Unhandled exceptions are not printed to console #91298
It results in call to the UnhandledExceptionFailFastViaClasslib with prevOriginalPC that's one level up the call stack, in the native wmain. That further causes the InternalCalls.RhpGetClasslibFunctionFromCodeAddress to return null, as the address is not in managed code.
I can make this part of the change specific to coreclr, that fixes the problem. However, I would like to check what was the reason for moving it, it seems that for coreclr the only place where it matters is the arm64 code path here:
Activity
jkotas commentedon Aug 29, 2023
Looks like a regression from #88034. @janvorli Could you please take a look?
janvorli commentedon Aug 30, 2023
The problem is really caused by the #88034, specifically by moving the
runtime/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs
Lines 711 to 712 in fecf3ee
from after to before the
runtime/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs
Lines 716 to 717 in fecf3ee
It results in call to the
UnhandledExceptionFailFastViaClasslibwithprevOriginalPCthat's one level up the call stack, in the nativewmain. That further causes theInternalCalls.RhpGetClasslibFunctionFromCodeAddressto return null, as the address is not in managed code.I can make this part of the change specific to coreclr, that fixes the problem. However, I would like to check what was the reason for moving it, it seems that for coreclr the only place where it matters is the arm64 code path here:
runtime/src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/ExceptionHandling.cs
Lines 818 to 820 in fecf3ee
Fix NativeAOT unhandled exception stack trace
Fix NativeAOT unhandled exception stack trace (#91415)