Skip to content

Segmentation fault (core dumped) if used buildctl #14

@BogdanovAleksei

Description

@BogdanovAleksei

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions