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 gettext
  • curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/2.0.0/dotnet-runtime-latest-linux-arm.tar.gz
  • sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
  • sudo 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)

Most upvoted comments

Exactly the same thing:

pi@raspberrypi:~ $ cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2835
Revision        : 000e
Serial          : 0000000016cbe805

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).