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 when a plugin calls build.onEnd #17020

Open
lilnasy opened this issue Feb 3, 2025 · 1 comment
Open

Segmentation fault when a plugin calls build.onEnd #17020

lilnasy opened this issue Feb 3, 2025 · 1 comment
Labels
bundler Something to do with the bundler crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@lilnasy
Copy link

lilnasy commented Feb 3, 2025

How can we reproduce the crash?

Bun.build({
    entrypoints: ["./build.js"],
    plugins: [{
        name: "plugin",
        setup(build) {
            build.onEnd()
        }
    }]
})

Relevant log output

============================================================
Bun v1.2.2 (c1708ea6) Linux x64
Linux Kernel v6.1.91 | glibc v2.35
CPU: sse42 popcnt avx avx2
Args: "bun" "build.js"
Features: jsc 
Builtins: "bun:main" 
Elapsed: 14ms | User: 0ms | Sys: 19ms
RSS: 1.07GB | Peak: 33.47MB | Commit: 1.07GB | Faults: 0

panic(main thread): Segmentation fault at address 0x4
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.2.2/la1c1708eaAgggEomg8oE+xyQgqh3sE+9q4sE+y6yrE8w0xrEynxlqFmpy1+E_gm//9DA2AI

Illegal instruction

Stack Trace (bun.report)

Bun v1.2.0 (b0c5a76) on windows x86_64 [RunCommand]

Segmentation fault at address 0x00000004

Features: bunfig, dotenv, jsc

Sentry Issue: BUN-4TW

@lilnasy lilnasy added the crash An issue that could cause a crash label Feb 3, 2025
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Feb 3, 2025
Copy link
Contributor

github-actions bot commented Feb 3, 2025

@lilnasy, the latest version of Bun is v1.2.2, but this crash was reported on Bun v1.2.0.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade

@RiskyMH RiskyMH added the bundler Something to do with the bundler label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundler Something to do with the bundler crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants