corert
corert copied to clipboard
IlcCompile exited with code 139 at Linux
Hi, first of all it's working with the HelloWorld at Linux but not with my project. the second, the same project is compile fine in VS2019 with target win-x64! but at Linux with target linux-x64:
first Install via dotnet-install.sh -channel master
export DOTNET_ROOT=$HOME/.dotnet
export PATH=$PATH:$HOME/.dotnet
dotnet add package Microsoft.DotNet.ILCompiler -v 1.0.0-alpha-*
dotnet publish -v d -r linux-x64 -c debug
...
2:6>Target "IlcCompile" in file "/root/.nuget/packages/microsoft.dotnet.ilcompiler/1.0.0-alpha-28913-01/build/Microsoft.NETCore.Native.targets" from project "/bartestprojRT/MyProject.csproj" (target "LinkNative" depends on it):
Building target "IlcCompile" completely.
Output file "obj/Debug/netcoreapp3.1/linux-x64/native/MyProject.o" does not exist.
Task "MakeDir"
Creating directory "obj/Debug/netcoreapp3.1/linux-x64/native/".
Done executing task "MakeDir".
Task "WriteLinesToFile"
Done executing task "WriteLinesToFile".
Task "Message" skipped, due to false condition; ($(_BuildingInCompatibleMode) != 'true') was evaluated as (true != 'true').
Task "Message"
Generating compatible native code. To optimize for size or speed, visit https://aka.ms/OptimizeCoreRT
Done executing task "Message".
Task "Exec"
"/root/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-28913-01/tools/ilc" @"obj/Debug/netcoreapp3.1/linux-x64/native/MyProject.ilc.rsp"
Segmentation fault (core dumped)
2:6>/root/.nuget/packages/microsoft.dotnet.ilcompiler/1.0.0-alpha-28913-01/build/Microsoft.NETCore.Native.targets(231,5): error MSB3073: The command ""/root/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-28913-01/tools/ilc" @"obj/Debug/netcoreapp3.1/linux-x64/native/MyProject.ilc.rsp"" exited with code 139. [/bartestprojRT/MyProject.csproj]
Done executing task "Exec" -- FAILED.
2:6>Done building target "IlcCompile" in project "MyProject.csproj" -- FAILED.
2:6>Done Building Project "/bartestprojRT/MyProject.csproj" (Publish target(s)) -- FAILED.
1:2>Done executing task "MSBuild" -- FAILED.
1:2>Done building target "Publish" in project "MyProject.sln" -- FAILED.
1:2>Done Building Project "/bartestprojRT/MyProject.sln" (Publish target(s)) -- FAILED.
Build FAILED.
"/bartestprojRT/MyProject.sln" (Publish target) (1:2) ->
"/bartestprojRT/MyProject.csproj" (Publish target) (2:6) ->
(IlcCompile target) ->
"/bartestprojRT/MyProject.sln" (Publish target) (1:2) ->
"/bartestprojRT/MyProject.csproj" (Publish target) (2:6) ->
(IlcCompile target) ->
/root/.nuget/packages/microsoft.dotnet.ilcompiler/1.0.0-alpha-28913-01/build/Microsoft.NETCore.Native.targets(231,5): error MSB3073: The command ""/root/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/1.0.0-alpha-28913-01/tools/ilc" @"obj/Debug/netcoreapp3.1/linux-x64/native/MyProject.ilc.rsp"" exited with code 139. [/bartestprojRT/MyProject.csproj]
2 Warning(s)
1 Error(s)
MyProject.map.xml Ends unfinished at this point
<?xml version="1.0" encoding="utf-8"?>
<ObjectNodes>
<ArrayOfFrozenObjects Length="770136" Hash="647f4127517b6f41a029d1678a8eb0b89edbf9cd5e3b13acee8694c77f9f103e" />
<InterfaceDispatchCellSection Length="79952" Hash="1bbce1c7e69100db5511097c1751aeadcd9fb5b69474910e38e8f9e9c9a0f5cd" />
<Metadata Name="__embedded_metadata" Length="2907945" Hash="c50807a748fda3a741b31dddf99c985c94674e718fdfefc7ee8f9bcb4297e5a9" />
...
<SealedVTable Name="__SealedVTable__ZTV89__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<Int64__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV90__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<UInt64__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV140__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System_Net_Http_System_Net_Http_Headers_HeaderDescriptor__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV169__Array<
any ideas what's missing or wrong ?
I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.
Thank you for the bug report. Would it be possible to share the project that reproduce the crash with us?
i can't share it public... but i can share private
now i get the job done with Microsoft.DotNet.ILCompiler 1.0.0-alpha-28617-01 a version of my first try longer ago
the rest of map.xml looks this:
<SealedVTable Name="__SealedVTable__ZTV90__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<UInt64__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV140__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System_Net_Http_System_Net_Http_Headers_HeaderDescriptor__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV169__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<S_P_CoreLib_System_Collections_Generic_KeyValuePair_2<System___Canon__System___Canon>__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV88__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System___Canon__Bool>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV193__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System___Canon__System_Security_Cryptography_X509Certificates_System_Security_Cryptography_X509Certificates_X509KeyUsageFlags>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV89__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System___Canon__Int32>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV90__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System___Canon__IntPtr>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV128__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System___Canon__S_P_CoreLib_System_Resources_ResourceLocator>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV127__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System___Canon__S_P_Xml_MS_Internal_Xml_XPath_Axis_AxisType>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV98__Array<S_P_CoreLib_System_Collections_Generic_Dictionary_2_Entry<System___Canon__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV92__Array<S_P_CoreLib_System_Runtime_CastableObjectSupport_CastableObjectCacheEntry_1<IntPtr>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV100__Array<S_P_CoreLib_System_Runtime_CastableObjectSupport_CastableObjectCacheEntry_1<System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV113__Array<S_P_CoreLib_System_Runtime_CompilerServices_ConditionalWeakTable_2_Entry<System___Canon__System___Canon>>" Length="0" Hash="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" />
<SealedVTable Name="__SealedVTable__ZTV23__Array<System___Canon>" Length="52" Hash="7955cb2de90dd9efc6df9fdbf5f5d10c114f4135a9a6b52db1003be749e32f7a" />
<NativeLayoutSignature Name="__RMHSignature_System_Linq_Expressions_System_Linq_Expressions_ExpressionVisitor__VisitLambda<Object>" Length="16" Hash="3310b6152934be01d0b11a6932e3d0970acb5932175906d81bd5a74df30d371f" />
<NativeLayoutSignature Name="__RMHSignature_System_Linq_Expressions_System_Linq_Expressions_ExpressionVisitor__VisitLambda<S_P_CoreLib_System_Action_2<Object__Object>>" Length="16" Hash="23eb1e0012e69464d6c72d7c4c3692527d600406dd50a9bc097b4754d5404791" />
<NativeLayoutSignature Name="__RMHSignature_System_Linq_System_Linq_Enumerable_Iterator_1<S_P_CoreLib_System_Type>__Select<S_P_CoreLib_System_Type>" Length="16" Hash="d8194973c26f3b221bde611c8768f1fcaf79ebb58988ad2bcef49fb76d2f776c" />
</ObjectNodes>
can this help ? im going to test other versions of ILCompiler
@jkotas this is broken since Version 1.0.0-alpha-28719-01 last working version for Linux is 1.0.0-alpha-28718-02
It is likely going to be the same problem as https://github.com/dotnet/corert/issues/7907 ? Can you check whether the problem goes away when you apply the <DebugSymbols>false</DebugSymbols>
+ <DebugType>none</DebugType>
workaround mentioned in the bug?
If you are willing to share the repro with me, that would be great. My email address is in my github profile.
i have tested many times now, this helps here also
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
that's enough for now i think