Skip to content

SIGSEGV when bun patch --committing any Git repository package. #19931

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

Closed
PoolloverNathan opened this issue May 27, 2025 · 4 comments
Closed
Labels
bun patch crash An issue that could cause a crash linux An issue that occurs on Linux old-version Using a very old version of Bun

Comments

@PoolloverNathan
Copy link

How can we reproduce the crash?

I do not currently have a MRE, as I am unsure of the root cause.

  • ipfs get QmaXtJzd3usLwW2Bv2YefenS2KEdpGLpQNajtvV1czoL2B -o mre19931
  • cd mre19931 && direnv allow
  • bun patch --commit ipfs-mount

Relevant log output

bun patch v1.2.14 (6a363a38)
============================================================
Bun v1.2.14 (6a363a38) Linux x64
Linux Kernel v6.12.19 | glibc v2.40
CPU: sse42 popcnt avx avx2
Args: "bun" "patch" "--commit" "ipfs-mount"
Features: text_lockfile 
Elapsed: 2ms | User: 1ms | Sys: 2ms
RSS: 1.07GB | Peak: 25.80MB | Commit: 1.07GB | Faults: 0

panic(main thread): Segmentation fault at address 0x2085
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.14/lx16a363a3AggggQ+mqQk0p59Ciqj/6C06vu4Cuzrt4Cq2+u5Ckuj03C++8z3Cii103Cq73s1CA2AqoQ

fish: Job 1, 'bun patch --commit ipfs-mount' terminated by signal SIGILL (Illegal instruction)

Stack Trace (bun.report)

Bun v1.2.5 (013fddd) on linux x86_64 [PatchCommand]

Segmentation fault at address 0x00002085

Features: text_lockfile

@PoolloverNathan PoolloverNathan added the crash An issue that could cause a crash label May 27, 2025
@github-actions github-actions bot added linux An issue that occurs on Linux old-version Using a very old version of Bun labels May 27, 2025
Copy link
Contributor

@PoolloverNathan, thank you for reporting this crash. The latest version of Bun is v1.2.14, but this crash was reported on Bun v1.2.5.

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

bun upgrade

For Bun's internal tracking, this issue is BUN-KFK.

@PoolloverNathan
Copy link
Author

PoolloverNathan commented May 27, 2025

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

Must've submitted the wrong stack trace, oops.

Stack Trace #2

Bun v1.2.14 (6a363a3) on linux x86_64 [PatchCommand]

Segmentation fault at address 0x00002085

Features: text_lockfile

@PoolloverNathan PoolloverNathan changed the title SIGSEGV when bun patch --committing a certain package. SIGSEGV when bun patch --committing any Git repository package. May 27, 2025
@PoolloverNathan
Copy link
Author

PoolloverNathan commented May 27, 2025

Improvement to MRE: this occurs when using bun patch --commit on any package from a Git repository (asciinema).

@RiskyMH
Copy link
Member

RiskyMH commented May 28, 2025

Thanks for the report! Sadly it appears bun patch is very prone to bugs for some reason

@RiskyMH RiskyMH closed this as completed May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun patch crash An issue that could cause a crash linux An issue that occurs on Linux old-version Using a very old version of Bun
Projects
None yet
Development

No branches or pull requests

2 participants