sdk: Segmentation fault (core dumped) - NetCore 3.0

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.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Oh I have figured it out. Don’t use snap version - just install via pacman. sudo snap remove dotnet-sdk sudo pacman -S dotnet-sdk

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.

Oh I have figured it out. Don’t use snap version - just install via pacman. sudo snap remove dotnet-sdk sudo pacman -S dotnet-sdk

For Ubuntu 21.04 used sudo apt install dotnet-sdk-3.1:

https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2104-

Removing snap package and installing it via apt-get worked for me. https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2104-

This was a snap issue, closing.

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.