Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK causes Segmentation Faults whenever I run essential cli commands. #27174

Closed
LukeZerafaOfficial opened this issue Aug 15, 2022 · 9 comments
Closed
Assignees
Labels
Area-CLI untriaged Request triage from a team member

Comments

@LukeZerafaOfficial
Copy link

Describe the bug

I am a Pop_Os user. I was using dotnet normally and everything was working well. All of sudden whenever I tried to use dotnet build or run. It says segmentation fault. I can still how ever use dotnet --version and displays the correct output of 6.0. I have been trying to figure out how to solve this for so long. I really do not want to reinstall the distro.

I have tried various methods of downloading the dotnet core, NONE have worked and I don't know what to do.

Please help.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Aug 15, 2022
@AraHaan
Copy link
Member

AraHaan commented Aug 15, 2022

Reinstall the .NET SDK, it might have been corrupted.

@LukeZerafaOfficial
Copy link
Author

I have done that multiple times using various methods. I used snap, used the script and even the manual installation. It didn't give me segmentation error but it would either not recognise the SDK or not even recognise the dotnet command.

I am all up to try again, just be aware that I have tried and none where successful

@AraHaan
Copy link
Member

AraHaan commented Aug 16, 2022

Perhaps a dependency of the .NET SDK is causing this? or maybe an corrupt OS install? Is it possible for you to do an in place repair install of your OS (without it deleting all of your personal data)?

@LukeZerafaOfficial
Copy link
Author

I will see what I can do and try and repair the OS

@LukeZerafaOfficial
Copy link
Author

Yh i factory reset my OS, i have no clue why this is still happening.

@danmoseley
Copy link
Member

I'm am not familiar with Pop!_Os. I see it is based on Ubuntu but we don't test on it so perhaps there's some difference in the OS or dependent packages that is relevant.

Do you have another machine with the same OS that you can test on? Although since you did a reset we can likely assume it would have the same result.

Can you get a stack backtrace at the point of the fault? LLDB or gdb which ever is easiest. That might give a hint.

@danmoseley
Copy link
Member

https://github.com/dotnet/diagnostics/blob/main/documentation/lldb/linux-instructions.md

To get symbols you need a tool that may not work on the system due to the problem you're debugging. You may find it easiest to create a core dump and move it to another machine. This may help

https://github.com/dotnet/diagnostics/blob/main/documentation/debugging-coredump.md

@marcpopMSFT
Copy link
Member

I wonder if it's similar to this issue that is fixed in 7.0.100: dotnet/runtime#72308

@marcpopMSFT marcpopMSFT self-assigned this Sep 14, 2022
@marcpopMSFT
Copy link
Member

closing as the linked runtime issue was resolved. Let us know if this is still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants