C#C
C#2y ago
Sella

Segmentation fault using Debian Bookworm ARM64v8 image during dotnet restore in docker

I'm getting a strange error named "Segmentation fault (core dumped)" when trying to build my dockerfile on the ARM64v8 Bookworm image coming from microsoft dotnet/runtime. this occurs every time on the dotnet restore command while it's not occuring on the AMD64 Bookworm image.

Using .NET 8

Some log:
#11 [build 4/5] RUN dotnet restore --force --no-cache
#11 28.61 Segmentation fault (core dumped)
#11 ERROR: process "/bin/sh -c dotnet restore --force --no-cache" did not complete successfully: exit code: 139

#12 [stage-1  3/16] RUN apt install -y wget apt-transport-https gpg libicu72
#12 CANCELED
------
 > [build 4/5] RUN dotnet restore --force --no-cache:
13.07   Determining projects to restore...
28.61 Segmentation fault (core dumped)
------
Dockerfile:6
--------------------
   4 |     WORKDIR /src
   5 |     COPY ./AzzyBot ./
   6 | >>> RUN dotnet restore --force --no-cache
   7 |     RUN dotnet publish -c Docker -o out
   8 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c dotnet restore --force --no-cache" did not complete successfully: exit code: 139
Error: buildx failed with: ERROR: failed to solve: process "/bin/sh -c dotnet restore --force --no-cache" did not complete successfully: exit code: 139
Was this page helpful?