-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report StackOverflowException on NativeAOT on Linux (#94485)
* Report stack overflow in linux 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 * Set up signal alternate stack on all new threads * Add test to naot smoke tests * Only allocate sigaltstack in Thread::Construct * Remove other getpagesize calls and guard sigaltstack when using mach exceptions * Use CLR stackoverflow test for NAOT, don't use sigaltstack on tvos * Cast to size_t before comparison * Uncomment code and fix for NAOT * Merge stackoverflow tests into one assembly * Update src/tests/baseservices/exceptions/stackoverflow/stackoverflowtester.cs Co-authored-by: Michal Strehovský <[email protected]> * Revert msbuild change that's no longer needed * Fix namespace changes * Set DOTNET_DbgEnableMiniDump=0 on subprocesses to avoid dumps on expected failures and remove messages about failing to find createdump * Missed semicolon * Convert generated xunit runner test to work with NAOT * Don't use xunit generator for stackoverflowtester * Update src/coreclr/nativeaot/Runtime/thread.h Co-authored-by: Jan Vorlicek <[email protected]> * Use IsSingleFile and update Main signature --------- Co-authored-by: Michal Strehovský <[email protected]> Co-authored-by: Jan Vorlicek <[email protected]>
- Loading branch information
1 parent
af9e245
commit 261668f
Showing
14 changed files
with
288 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/tests/baseservices/exceptions/stackoverflow/stackoverflow.csproj
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
src/tests/baseservices/exceptions/stackoverflow/stackoverflow3.csproj
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.