AnswerBun.com

dotnet --help -> Segmentation fault (core dumped)

Unix & Linux Asked by Szoke Lorand on January 5, 2022

Most dotnet commands I run on my Ubuntu 20.04 system
gives me the error:
Segmentation fault (core dumped)

I tried rerunning the dotnet installation scripts and I tried modifying the stack size with uint -n (as advised on the internet).
(It’s important to note that I was using the backend of an app on dotnet
without any problems, and this error seems to have come out of nowhere.)

I cannot find a solution for this.
What can I do to fix this?

The following commands produce the segfault:

  • dotnet -h
  • dotnet --info

The following commands do not produce a segfault:

  • dotnet (without any arguments)
  • dotnet --list-sdks
  • dotnet --list-runtimes

I used the official microsoft documentation from here https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu to install .NET and it ran just fine until a few days ago.

EDIT: Upon further investigation, I found out that if I uninstall the SDK I stop getting the error but as soon as I reinstall, it reapears.

One Answer

I had this problem using the dotnet installed via snap. I uninstalled and installed directly, via APT. Now it works perfectly. I used the commands from the following link: Dotnet Core

Answered by AlexQL on January 5, 2022

Add your own answers!

Related Questions

Set permanent environment variable for all shells

0  Asked on October 31, 2021 by user14492

         

How does jq work with keys containing slash?

1  Asked on October 31, 2021 by fhcat

 

GRUB not showing up in Pop!_OS

1  Asked on October 31, 2021

       

Set scale for bc inside a variable

1  Asked on October 31, 2021 by mdem7705

   

partition size vs file system size

1  Asked on October 31, 2021 by fa7eme

       

Explanation for “Killed Process”

1  Asked on October 31, 2021 by althor

 

tracking list of installed packages with git

2  Asked on October 31, 2021 by 400-the-cat

     

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP