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

[Bug]: Crash on build in docker #8744

Closed
coratgerl opened this issue Dec 17, 2024 · 3 comments
Closed

[Bug]: Crash on build in docker #8744

coratgerl opened this issue Dec 17, 2024 · 3 comments
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@coratgerl
Copy link

coratgerl commented Dec 17, 2024

System Info

System:
OS: macOS 15.0
CPU: (10) arm64 Apple M1 Pro
Memory: 112.86 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.1.0 - ~/.nvm/versions/node/v20.1.0/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.6.4 - ~/.nvm/versions/node/v20.1.0/bin/npm
pnpm: 8.10.2 - /usr/local/bin/pnpm
bun: 1.1.38 - /opt/homebrew/bin/bun
Browsers:
Brave Browser: 121.1.62.153
Safari: 18.0

Details

I have a docker file that build my rspress project. On my machine (not in docker) it works but when I want to build the docker a crash occured.

Here is the backtrace :

5.334 error
5.334 code: "GenericFailure"

5.336 Message: should success: SendError { .. }
5.336 Location: crates/rspack_core/src/compiler/module_executor/overwrite.rs:73
5.336
5.336 Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
5.360 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5.362 ⋮ 1 frame hidden ⋮
5.363 2: clone
5.363 at
5.365 Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
5.365 Message: should receiver success: RecvError(())
5.365 Location: ./crates/rspack_core/src/compiler/module_executor/mod.rs:271
5.365
5.365 Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
5.365 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5.365 ⋮ 1 frame hidden ⋮
5.365 2: clone
5.365 at
5.365 Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
5.365 Message: should receiver success: RecvError(())
5.365 Location: ./crates/rspack_core/src/compiler/module_executor/mod.rs:271
5.365
5.365 Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
5.365 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5.366 ⋮ 1 frame hidden ⋮
5.366 2: clone
5.366 at
5.366 Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
5.366 Message: should receiver success: RecvError(())
5.366 Location: ./crates/rspack_core/src/compiler/module_executor/mod.rs:271
5.366
5.366 Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
5.366 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5.366 ⋮ 1 frame hidden ⋮
5.366 2: clone
5.366 at
5.366 Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
5.366 Message: should receiver success: RecvError(())
5.366 Location: ./crates/rspack_core/src/compiler/module_executor/mod.rs:271
5.366
5.366 Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
5.366 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
5.366 ⋮ 1 frame hidden ⋮
5.366 2: clone
5.366 at
5.402 error: script "build" was terminated by signal SIGABRT (Abort)
5.405 Aborted

Reproduce link

No response

Reproduce Steps

FROM oven/bun:latest AS builder
WORKDIR /app

COPY . .

ENV RUST_BACKTRACE=full

RUN bun install --frozen-lockfile

Just run next build we will copy assets later to optimize size

RUN bun run build

FROM oven/bun:latest AS runner
WORKDIR /app

ENV PORT 8080
ENV HOSTNAME 0.0.0.0

Copy built files from builder stage

COPY --from=builder /app/doc_build ./doc_build
COPY --from=builder /app/package.json ./package.json

Expose necessary port and set the command

CMD ["bun", "preview"]

@coratgerl coratgerl added bug Something isn't working pending triage The issue/PR is currently untouched. labels Dec 17, 2024
@coratgerl
Copy link
Author

Sounds like similar of #8513

@chenjiahan
Copy link
Member

Can you try Bun 1.1.39? See oven-sh/bun#15383

@coratgerl
Copy link
Author

Nice it works now ! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

2 participants