runtime: Cross fails with exit code 139 against PowerShell Core 6 assembly System.Management.Automation.dll
Attempting to port PowerShell Core 6 to .Net Core 3.0 as part of https://github.com/PowerShell/PowerShell/pull/8370. Some assemblies get crossgen’d, but crossgen fails on System.Management.Automation.dll with exit code 139. Using /verbose
there is no additional information indicating the non-zero error code. Seems to be succeeding on Windows, but fails on macOS and Linux. Using 3.0.100-preview-010184
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (15 by maintainers)
Commits related to this issue
- Allow GT_LCL_VAR structs as PUT_ARG_STACK This will unblock https://github.com/dotnet/coreclr/issues/22276. In addition this builds on some of the first class struct work that has happened. — committed to jashook/coreclr by deleted user 5 years ago
- Allow GT_LCL_VAR structs as PUT_ARG_STACK This will unblock https://github.com/dotnet/coreclr/issues/22276. In addition this builds on some of the first class struct work that has happened. — committed to jashook/coreclr by deleted user 5 years ago
Change has been merged into master. Working on getting a CoreCLR official build.
The problem has been found, dotnet/coreclr#22437 has been opened to address the issue. I have verified I can complete the crossgen successfully with the fix.
Here is the stack trace of the crash, I’ve just executed the following command line that I’ve printed out in the powershell script:
/home/janvorli/.nuget/packages/runtime.linux-x64.microsoft.netcore.app/3.0.0-preview-27324-5/tools/crossgen /MissingDependenciesOK /in /home/janvorli/git/PowerShell/src/powershell-unix/bin/Debug/netcoreapp3.0/linux-x64/publish/System.Management.Automation.dll /out /home/janvorli/git/PowerShell/src/powershell-unix/bin/Debug/netcoreapp3.0/linux-x64/publish/System.Management.Automation.ni.dll /Platform_Assemblies_Paths /home/janvorli/git/PowerShell/src/powershell-unix/bin/Debug/netcoreapp3.0/linux-x64/publish
So it crashes in JIT. @dotnet/jit-contrib can someone take a look at this?