-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Segmentation fault (core dumped) while using dotnet #67465
Comments
I installed dotnet SDK 6.0 with apt followed by the document. It works! But the snap way fails. |
I'm seeing a similar issue. I have a .NET tool Neo.Express that has a dependency on native RocksDB library. Native dependencies installed via APT. Using a fresh Ubuntu 20.04 VM + .NET 6 installed via SNAP, I can execute the neo express Doing the exact same thing with .NET 6 installed via APT works fine. Note, I can run (Update): I'm guessing this is a different issue than what @arylee reported. I tried running under a native debugger and it is crashing when it goes to open the rocksdb .so that is included in my tool package. But I don't understand why it seg faults instead of throwing a load exception. If you try to run this command on Ubuntu when dotnet is APT installed, I get a type load exception instead of a seg fault. I don't understand SNAP vs APT installation well enough to understand the behavior difference. |
I created a simple console app via |
Looks like this is a known issue that isn't going to get fixed |
Same issue on Ubuntu 21.10 install |
Just checked, the Snap installs and runs fine on Ubuntu 20.04 for some reason. |
7.0.100-preview.5.22307.18 worked for me in Ubuntu 22.04 LTS |
the commando is => sudo snap refresh dotnet-sdk --beta |
@njavilas2015 What is your distro and version? |
I have made the installation from the page as it appears Linux insert-systemproductname 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Linux version 5.15.0-46-generic (buildd@lcy02-amd64-115) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 Distributor ID: Ubuntu |
Having same issue with .NET 7.0.100-preview.7.22377.5 and the Context:
|
I have fixed it by just installing apt install dotnet |
Don't know if this is any helpful at all, however on POP 22.04 I checked apt to see if it has any dotnet packages and found that it had the Hope it helps :) |
Some observations on this error in the blog https://www.hanselman.com/blog/13-hours-debugging-a-segmentation-fault-in-net-core-on-raspberry-pi-and-the-solution- was |
Works for me as well, thanks! |
has same issue from time to time on different Ubuntu 20.04 VPSs |
SOLUTION uninstall from snap and just use debian package on my Ubuntu 22.04
Please fix your snap install on linux |
please fix. dotnet new console. segmentation fault (core dumped) |
@goff73 please share version used, distro version, how you acquired dotnet, and if possible the stack trace. |
I think I was using it through snap. I just got it to work when reinstalling with the scripted install. https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#scripted-install Thank you. No more errors. (Linux ubuntu with .net 7.) |
Same issue here. After removing the SNAP install and re-installing using APT instructions here, it worked. |
Having the same issue, except I didn't install through snap:
Then, running I get dotnet run
Segmentation fault (core dumped) |
Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/create
Operating System: linux (Ubuntu 21.10 impish)
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
dotnet --list-sdks
6.0.201 [/snap/dotnet-sdk/158/sdk]
dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.3 [/snap/dotnet-sdk/158/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.3 [/snap/dotnet-sdk/158/shared/Microsoft.NETCore.App]
dotnet new console --framework net6.0
Segmentation fault (core dumped)
dotnet complete "dotnet a"
Segmentation fault (core dumped)
The text was updated successfully, but these errors were encountered: