Skip to content

Bun install segfault in Docker #259

Open
@Zananok

Description

@Zananok

What steps can reproduce the bug?

  1. Locally on wsl (PRETTY_NAME="Debian GNU/Linux 12 (bookworm)") run: bunx nuxi init my-nuxt-app (with bun 1.1.0+5903a6141) to generate a clean Nuxt app (according to https://bun.sh/guides/ecosystem/nuxt)

  2. Rsync to remote vm (also PRETTY_NAME="Debian GNU/Linux 12 (bookworm)")

  3. Remove node_modules folder (in the remote)

  4. Add the folder of the project as a mapped volume (so, not copying it into the docker, just mapping it from the host) in docker-compose.yml:

version "3.8":
...
    image: oven/bun
    ulimits:
      rtprio: 95
      memlock: -1
    volumes:
      - '/apps/${containerName}/data-root/nuxt-dev:/app:z'
  1. Either from entrypoint or from inside the docker in the workdir /app: bun --revision && bun install && bun dev
    NB: error occurs on bun install.

Result:

1.1.0+5903a6141
2024-04-04T09:00:16.627756172Z bun install v1.1.0 (5903a614)
2024-04-04T09:00:33.889355055Z error: postinstall script from "vue-demi" terminated by SIGSEGV (Address boundary error)
2024-04-04T09:00:40.747806045Z Segmentation fault (core dumped)

Running bun install and bun dev locally on wsl works.

A more detailed description of the issue can be found here: oven-sh/bun#9924

I am unsure where the problem lies, if with bun or with vue-demi, so I have cross-posted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions