Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
7136ea2
[release/8.0-staging] [STJ] Account for F# CompilationMappingAttribut…
github-actions[bot] May 21, 2025
99dbb90
throw an exception instead of infinite loop (#115528)
github-actions[bot] May 22, 2025
5b4a588
[release/8.0-staging] [DNS] Ignore ObjectDisposedException on Cancell…
github-actions[bot] May 27, 2025
de66703
[release/8.0-staging] Fix SysV first/second return register GC info m…
jakobbotsch Jun 4, 2025
0e6061f
[release/8.0-staging] Add a parent check to the forward substitution …
github-actions[bot] Jun 4, 2025
5cc544a
Fix shutdown on foreign thread (#116233)
github-actions[bot] Jun 6, 2025
6889ee5
[release/8.0-staging] in rsa signatures, configure digest before padd…
github-actions[bot] Jun 6, 2025
607a335
[release/8.0-staging] Fix PipeStream leak on Windows when pipe is dis…
github-actions[bot] Jun 8, 2025
4bdcdb8
Fix generation of minidump (#115739)
github-actions[bot] Jun 9, 2025
f1363e3
Update dependencies from https://github.com/dotnet/runtime-assets bui…
dotnet-maestro[bot] Jun 9, 2025
c53fe3f
Update dependencies from https://github.com/dotnet/hotreload-utils bu…
dotnet-maestro[bot] Jun 9, 2025
1469d4d
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Jun 9, 2025
296fa9e
Update dependencies from https://github.com/dotnet/xharness build 202…
dotnet-maestro[bot] Jun 9, 2025
cbb1cd1
[release/8.0-staging] Link peer's X509 stack handle to parent SSL saf…
github-actions[bot] Jun 10, 2025
0a008e2
[release/8.0-staging] Update dependencies from dotnet/arcade (#115587)
dotnet-maestro[bot] Jun 10, 2025
a4abcd1
Turn off packages that shipped previous month
jozkee Jun 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix shutdown on foreign thread (#116233)
When a foreign thread running in .NET process is killed or crashes due
to some hardware exception, the .NET code that performs shutdown gets
called and incorrectly expects the thread to be a thread that's
registered with the runtime. It calls GetThread on it and then calls a
method on the thread. That leads to an assert in debug builds and crash
in release ones.

The function that is called is not needed for foreign threads though, so
the fix is to skip calling it if the GetThreadNULLOk returns NULL (that
means the thread is foreign and never registered with the runtime).

Co-authored-by: Jan Vorlicek <[email protected]>
  • Loading branch information
github-actions[bot] and janvorli authored Jun 6, 2025
commit 5cc544a25ce5d1fd745a7186fabd4155271abed9
6 changes: 5 additions & 1 deletion src/coreclr/vm/ceemain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,11 @@ void EESocketCleanupHelper(bool isExecutingOnAltStack)

if (isExecutingOnAltStack)
{
GetThread()->SetExecutingOnAltStack();
Thread *pThread = GetThreadNULLOk();
if (pThread)
{
pThread->SetExecutingOnAltStack();
}
}

// Close the debugger transport socket first
Expand Down
Loading