-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
When crossgen2 crashes, I see a pop-up window:
Title: .NET Host
Text:
.NET Host has stopped working
A problem cause the program to stop working correctly.
Windows will close the program and notify you if a solution is
available.
Buttons: Debug, Close program
This unfortunately requires user input and stops further progress in scripted runs.
I would expect the default failure behavior would be to NOT use a pop-up window, but instead output a message and return an error code.
Repro:
I'm trying to SuperPMI collect a crossgen2 compilation of all libraries in Core_Root (win x64 Checked):
py c:\gh\runtime2\src\coreclr\scripts\superpmi.py collect --crossgen2 -output_mch_path c:\win-x64-cg2.mch -assemblies c:\gh\runtime2\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root
A small repro:
c:\gh\runtime2\.dotnet\dotnet.exe c:\gh\runtime2\artifacts\tests\coreclr\windows.x64.Debug\Tests\Core_Root\crossgen2\crossgen2.dll --codegenopt:EnableExtraSuperPmiQueries=1 @c:\bugs\spmicollect4\x.rsp
x.rsp:
c:\gh\runtime2\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\R2RDump\ILCompiler.Reflection.ReadyToRun.dll
-o:c:\bugs\spmicollect4\cg2-temp\crossgen2_c__gh_runtime2_artifacts_tests_coreclr_windows_x64_Checked_Tests_Core_Root_R2RDump_ILCompiler_Reflection_ReadyToRun_dll.out.dll
-r:c:\gh\runtime2\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\System.*.dll
-r:c:\gh\runtime2\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\Microsoft.*.dll
-r:c:\gh\runtime2\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\mscorlib.dll
-r:c:\gh\runtime2\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root\netstandard.dll
The crash seems to be due to the --codegenopt:EnableExtraSuperPmiQueries=1 option.