Skip to content
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) if used buildctl #14

Open
BogdanovAleksei opened this issue Apr 14, 2022 · 6 comments
Open

Segmentation fault (core dumped) if used buildctl #14

BogdanovAleksei opened this issue Apr 14, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@BogdanovAleksei
Copy link

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:
image

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"
@AkihiroSuda AkihiroSuda added the bug Something isn't working label Apr 17, 2022
@AkihiroSuda
Copy link
Member

What’s your host OS and CPU architecture?

@BogdanovAleksei
Copy link
Author

macOS Monterey 12.3.1 Intel

@AkihiroSuda
Copy link
Member

What's the OS and CPU of the host of buildkitd?

@BogdanovAleksei
Copy link
Author

BogdanovAleksei commented Apr 18, 2022

Buildkit server deployed in AWS cloud from official docker image. Intel processors are used. Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz

@AkihiroSuda
Copy link
Member

With what host OS?
Ubuntu? Debian? Rocky? SUSE? And with what kernel version? (uname -a)

@BogdanovAleksei
Copy link
Author

$ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants