buildkit-nix
buildkit-nix copied to clipboard
Segmentation fault (core dumped) if used buildctl
Compiling the rust-httpserver-flake example process fails with an error
Log:
=> ERROR /self/buildkit-nix helper --filename=flake.nix 11.8s
------
> /self/buildkit-nix helper --filename=flake.nix:
#0 2.900 time="2022-04-14T19:46:15Z" level=info msg="Populating cache from /cache into /nix"
#0 11.68 time="2022-04-14T19:46:24Z" level=fatal msg="failed to run [cp -afT /cache /nix]: signal: segmentation fault (core dumped) (out=\"\")"
------
flake.nix:1
--------------------
1 | >>> # syntax = ghcr.io/akihirosuda/buildkit-nix:v0.0.2@sha256:ad13161464806242fd69dbf520bd70a15211b557d37f61178a4bf8e1fd39f1f2
2 |
3 | {
--------------------
error: failed to solve: executor failed running [/self/buildkit-nix helper --filename=flake.nix]: exit code: 1
Screenshot:

buildctl version
buildctl github.com/moby/buildkit 0.10.0 068cf686a7e5c3254244d0acc54636f4f393611e
builskit server version:
buildkit:v0.8.2-rootless
Run command:
buildctl --addr tcp://127.0.0.1:1234 --tlsdir ./buildkit build --frontend dockerfile.v0 --local context=. --local dockerfile=. --opt filename=flake.nix --output "type=image,name=$IMAGE_NAME:$IMAGE_DEV_TAG,push=false"
What’s your host OS and CPU architecture?
macOS Monterey 12.3.1 Intel
What's the OS and CPU of the host of buildkitd?
Buildkit server deployed in AWS cloud from official docker image. Intel processors are used. Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
With what host OS?
Ubuntu? Debian? Rocky? SUSE? And with what kernel version? (uname -a)
$ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.15.0
PRETTY_NAME="Alpine Linux v3.15"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://bugs.alpinelinux.org/"
$ uname -a
Linux buildkitd-6b949f8bff-4mmm6 5.4.156-83.273.amzn2.x86_64 #1 SMP Sat Oct 30 12:59:07 UTC 2021 x86_64 Linux