Open zavocc opened 10 months ago
Tried dotNET 6 and it works when creating new project and other command line options (./dotnet6/dotnet new console -n HelloWorldApp
) however building a sample app stumbled upon csc.dll
error.
root@localhost:~# ./dotnet6/dotnet build HelloWorldAPP
MSBuild version 17.3.2+561848881 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
/root/dotnet6/sdk/6.0.413/Roslyn/Microsoft.CSharp.Core.targets(75,5): error MSB6006: "csc.dll" exited with code 139. [/root/HelloWorldAPP/HelloWorldAPP.csproj]
Build FAILED.
/root/dotnet6/sdk/6.0.413/Roslyn/Microsoft.CSharp.Core.targets(75,5): error MSB6006: "csc.dll" exited with code 139. [/root/HelloWorldAPP/HelloWorldAPP.csproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:30.05
Might be related to this? https://github.com/dotnet/runtime/issues/57558
strace
shows:
mmap(NULL, 274877915136, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
(On Pixel 6, on Raspberry Pi 4 same call has succeeded)
Googling "274877915136 bytes" number leads to https://github.com/dotnet/runtime/issues/85556
where export DOTNET_GCHeapHardLimit=1C0000000
is offered as workaround
Setting that environment variable makes dotNET 7 works like a charm
Problem description DotNET 7 SDK installed on Ubuntu 22.04 arm64 but most commands such as
dotnet new
dotnet --help
shows GC heap initialization error without doing anything, just crashesSteps to reproduce This happens on Ubuntu 22.04 arm64 proot installation
proot-distro
and Ubuntuproot-distro install ubuntu
apt install dotnet-sdk-7.0
dotnet --help
dotnet new console
dotnet run
dotnet store
yields GC initialization failure (some still does it's job likedotnet --info
but with error about gc init failure)Expected behavior It should not crash with GC initialization failure
Additional information
Not sure for older versions of dotnet if it exhibits the same behavior