-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Report StackOverflowException on NativeAOT on Linux #94485
Conversation
Use SA_ONSTACK for SIGSEGV handler Call sigaltstack() to set the alternate stack on the main thread only Check if faulting address is near the stack pointer, if so, report stack overflow
…ester.cs Co-authored-by: Michal Strehovský <[email protected]>
…cted failures and remove messages about failing to find createdump
Co-authored-by: Jan Vorlicek <[email protected]>
…r/runtime into StackOverflowLinuxNAOT
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsMoved #93901 here. Pulling main messed up something, so just going to make a new PR. Uses similar code as CoreCLR to allocate an alternate stack for handling SIGSEGV, and properly reports a StackOverflowException. Fixes #82334 Updates the baseservices/exceptions/stackoverflow test to be one project and run on NativeAOT.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
@MichalStrehovsky Can you take a look and sign off when you get a chance? |
This reverts commit 261668f.
…otnet#94485)" (dotnet#95415)" This reverts commit 5429833.
Moved #93901 here. Pulling main messed up something, so just going to make a new PR.
Uses similar code as CoreCLR to allocate an alternate stack for handling SIGSEGV, and properly reports a StackOverflowException.
Fixes #82334
Updates the baseservices/exceptions/stackoverflow test to be one project and run on NativeAOT.