Skip to content
Merged
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions src/coreclr/vm/excep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4312,6 +4312,14 @@ LONG __stdcall COMUnhandledExceptionFilter( // EXCEPTION_CONTINUE_SEARCH or

LONG retVal = EXCEPTION_CONTINUE_SEARCH;

#ifdef TARGET_WINDOWS
if (NtCurrentTeb()->ThreadLocalStoragePointer == NULL)
Comment thread
jkotas marked this conversation as resolved.
{
// Early out when TLS is not available due to unhandled exception during early thread initialization
return retVal;
}
#endif // TARGET_WINDOWS

// Incase of unhandled exceptions on managed threads, we kick in our UE processing at the thread base and also invoke
// UEF callbacks that various runtimes have registered with us. Once the callbacks return, we return back to the OS
// to give other registered UEFs a chance to do their custom processing.
Expand Down
Loading