Closed dyc3 closed 1 day ago
In a monorepo, if a package contains dependencies that look like this:
"devDependencies": { "bits-ui-current": "npm:bits-ui@^0.21.15", "bits-ui-next": "npm:bits-ui@^1.0.0-next.57" }
Attempting to run scripts will fail and result in a panic.
To reproduce: using this repo: https://codesandbox.io/p/devbox/blazing-snowflake-0uzq6f?fork=true
bun run format
$ biome format --write && bun --filter='*' run format Formatted 108 files in 21ms. No fixes applied. ============================================================ Bun v1.1.36 (ededc168) Linux x64 Linux Kernel v5.15.0 | glibc v2.35 CPU: sse42 popcnt avx avx2 Args: "bun" "--filter=*" "run" "format" Elapsed: 2ms | User: 5ms | Sys: 0ms RSS: 1.07GB | Peak: 11.19MB | Commit: 1.07GB | Faults: 0
Bun v1.1.36 (ededc16) on linux x86_64 [RunCommand]
ededc16
Segmentation fault at address 0x0006024C
??
dependency.zig:851
src.resolver.package_json.PackageJSON.parse__anon_107009
filter_run.zig:475
src.cli.filter_run.runScriptsWithFilter
cli.zig:2034
src.cli.Cli.start
main.zig:48
main
Thank you for reporting this crash.
For Bun's internal tracking, this issue is BUN-8PM.
I tested with other versions, and this starts panicking in v1.1.35.
How can we reproduce the crash?
In a monorepo, if a package contains dependencies that look like this:
Attempting to run scripts will fail and result in a panic.
To reproduce: using this repo: https://codesandbox.io/p/devbox/blazing-snowflake-0uzq6f?fork=true
bun run format
Relevant log output
Stack Trace (bun.report)
Bun v1.1.36 (
ededc16
) on linux x86_64 [RunCommand]Segmentation fault at address 0x0006024C
??
dependency.zig:851
:src.resolver.package_json.PackageJSON.parse__anon_107009
filter_run.zig:475
:src.cli.filter_run.runScriptsWithFilter
cli.zig:2034
:src.cli.Cli.start
main.zig:48
:main