runtime: .NET runtime on RPI - Segmentation fault
Steps to reproduce
- Install the runtime on a Raspberry PI 2 model B, Raspbian Lite:
sudo apt-get install curl libunwind8 gettextcurl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/2.0.0/dotnet-runtime-latest-linux-arm.tar.gzsudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnetsudo ln -s /opt/dotnet/dotnet /usr/local/bin
Expected behavior
The runtime should run with no segfault.
Actual behavior
$ dotnet
Segmentation fault
Whatever the options passed to the executable are, it always gives a segfault. Tried on Raspbian and on DietPi.
Environment data
I’m not sure what would be valuable for debugging so please tell me.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 11
- Comments: 23 (12 by maintainers)
Exactly the same thing:
Experiencing the very same issue for a standalone .NET Core 2.1 hello world app on Raspberry Pi Zero W. strace.txt
EDIT: It looks like the issue is caused by the fact that .NET Core 2.1 apps can only be run on ARMv7 CPUs and newer. Raspberry Pi Zero W is built with ARMv6 BCM2835. This does not explain why the issue occurs for the original topic starter though (Raspberry Pi 2 Model B is based on ARMv7 BCM2836).