question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation fault (core dumped) - NetCore 3.0

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

12reactions
Wowo10commented, Apr 21, 2021

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

4reactions
filoecommented, Feb 14, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation fault (core dumped) while using dotnet #67465
Using a fresh Ubuntu 20.04 VM + .NET 6 installed via SNAP, I can execute the neo express create command (which uses only...
Read more >
c# - How to fix "Segmentation fault (core dumped)" when ...
I had the same problem in VS Code, it runs the dotnet commands without sudo and I recived the "Segmentation fault (core dumped)"...
Read more >
dotnet --help -> Segmentation fault (core dumped)
I had this problem using the dotnet installed via snap. I uninstalled and installed directly, via APT. Now it works perfectly.
Read more >
13 hours debugging a segmentation fault in .NET Core on ...
I booted up and got ready to install some prereqs. I'm only 15 min in at this point. Setting up a Raspberry Pi...
Read more >
Suddenly dotnet gives me segmentation fault (core dumped)
dotnet is a CLI for building and running dotnet souce code. I've been using 5.0.100 SDK since 3 months. Suddenly I got this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found