Sdk: Segmentation fault (core dumped) - NetCore 3.0

Created on 14 Oct 2019  路  10Comments  路  Source: dotnet/sdk

After updating to 3.0.1 on Linux Mint:

When running dotnet new console -n cs-hello
I get :
Segmentation fault (core dumped)

info:

.NET Core SDK (reflecting any global.json):
 Version:   3.0.100
 Commit:    04339c3a26

Runtime Environment:
 OS Name:     linuxmint
 OS Version:  19
 OS Platform: Linux
 RID:         linuxmint.19-x64
 Base Path:   /usr/share/dotnet/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  95a0a61858

.NET Core SDKs installed:
  3.0.100 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Removing DOTNET_CLI_TELEMETRY_OPTOUT=1 fixes the problem.
Consequently, putting back DOTNET_CLI_TELEMETRY_OPTOUT=1 after first run won't cause the problem to re-occur again.

Most helpful comment

Hello pratikv, same issue with 3.1 on Ubuntu 16.04 and Ubuntu 18.04 :-(

Also reported it explicitly here: dotnet/core-sdk#6269

Facing exactly the same issue. Can't use it in our ci/cd.

All 10 comments

Interesting, things have been working for a long on Mint1 9/Ubuntu 18.04

@janvorli for possible questions to ask that might help us figure out what might be happening for you.

@janvorli any thoughts?

@janvorli can you please help with this issue?

I am sorry for the long delay, I've completely missed this issue before. Based on the fact that it doesn't happen when DOTNET_CLI_TELEMETRY_OPTOUT=1, my guess is that it is related to HTTP / OpenSSL stuff. @eloraiby could you please run the dotnet new console -n cs-hello under lldb and share the stack trace? You'd need to delete ~/.dotnet and ~/.nuget folders to get the issue reoccur if my theory is correct.

@eloraiby I have just installed fresh Mint 19.2 into a VM and then the dotnet SDK with 3.0.1 runtime from https://dotnetcli.blob.core.windows.net/dotnet/Sdk/release/3.0.1xx/dotnet-sdk-latest-linux-x64.tar.gz. I haven't hit any issues, so it looks like something in your Mint installation might be interferring.

Did you set DOTNET_CLI_TELEMETRY_OPTOUT=1 before installing ?

I am also getting the same error on Ubuntu 18.04 box.
It works perfectly fine with dotnet 2.2.404, however on installation with 3.0 or 3.1, it behaves weirdly at differnt points of time.

  • On installation, it hangs on updating the package cache.
  • On running 'dotnet new console' it hangs when restoring the packages. I need to kill the process then
  • Post which on running "dotnet build", it hangs. Again need to kill the process
  • If I run "dotnet run", where in it ideally should restore packages, build and then execute; it shows "segmentation fault"

I am basically a Windows user. Please guide me with the commands, from where I can get the logs, so that I can share more info.

Thanks

Hello pratikv, same issue with 3.1 on Ubuntu 16.04 and Ubuntu 18.04 :-(

Also reported it explicitly here: https://github.com/dotnet/core-sdk/issues/6269

Hello pratikv, same issue with 3.1 on Ubuntu 16.04 and Ubuntu 18.04 :-(

Also reported it explicitly here: dotnet/core-sdk#6269

Facing exactly the same issue. Can't use it in our ci/cd.

Hello pratikv, same issue with 3.1 on Ubuntu 16.04 and Ubuntu 18.04 :-(
Also reported it explicitly here: dotnet/core-sdk#6269

Facing exactly the same issue. Can't use it in our ci/cd.

Same here.

Was this page helpful?
0 / 5 - 0 ratings