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

Bun install segfault in Docker #259

Open
Zananok opened this issue Apr 5, 2024 · 0 comments
Open

Bun install segfault in Docker #259

Zananok opened this issue Apr 5, 2024 · 0 comments

Comments

@Zananok
Copy link

Zananok commented Apr 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant