субота, 16 вересня 2017 р.

Linux Debian 9, .NET Core 2.0 dotnet Segmentation fault


https://www.microsoft.com/net/core#linuxdebian

dotnet new console -o MyApplication

Помилка адресування
or
Segmentation fault

I've tried
export COREHOST_TRACE=1
but this doesn't help.

gdb --args dotnet new console -o MyApplication

run

Thread 16 "dotnet" received signal SIGSEGV, Segmentation fault.
in ?? () from /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0

Also I reviewed one of links (see below), and looks that in this case the dotnet is trying to use the libssl.so.1.0.0 instead of 1.0.2 and has the Segmentation fault.

Seems it happens because I've migrated from Debian 8 to Debian 9 and still have this library.

But anyway, today I can't remove it using the apt-get, so I will just rename it temporary(!):

cd /usr/lib/x86_64-linux-gnu

mv libssl.so.1.0.0 libssl.so.1.0.0_disabled
ln -s libssl.so.1.0.2 libssl.so.1.0.0

Now it works.

dotnet new console -o MyApplication1

The template "Console Application" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on MyApplication1/MyApplication1.csproj...
Restoring packages for ~/Projects/MyApplication1/MyApplication1.csproj...
Generating MSBuild file ~/Projects/MyApplication1/obj/MyApplication1.csproj.nuget.g.props.
Generating MSBuild file ~/Projects/MyApplication1/obj/MyApplication1.csproj.nuget.g.targets.
Restore completed in 197,68 ms for ~/Projects/MyApplication1/MyApplication1.csproj.
Restore succeeded.

Links:
https://github.com/dotnet/corefx/issues/8951
and maybe this one:


Немає коментарів:

Дописати коментар