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

raiseIgnoringPanicHandler triggers crash reporter #12169

Closed
sparanoid opened this issue Jun 26, 2024 · 4 comments
Closed

raiseIgnoringPanicHandler triggers crash reporter #12169

sparanoid opened this issue Jun 26, 2024 · 4 comments
Assignees
Labels
crash reporter bug the stack trace given does not seem to be valid crash An issue that could cause a crash linux An issue that occurs on Linux

Comments

@sparanoid
Copy link

sparanoid commented Jun 26, 2024

How can we reproduce the crash?

My program connects to WebSocket connections and saving events to a PostgreSQL db with Drizzle ORM. The code is not opensourced at the moment.

Relevant log output

Application exited with code 132
error: script "start" was terminated by signal SIGKILL (Forced quit)
============================================================
Bun v1.1.13 (bd6a6051) Linux x64 (baseline)
Args: "bun" "run" "start"
Features: spawn 
Elapsed: 15428549ms | User: 7ms | Sys: 19ms
RSS: 1.07GB | Peak: 12.32MB | Commit: 1.07GB | Faults: 188
panic(main thread): Segmentation fault at address 0x0
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.1.13/Br1bd6a605AggggI+1mOwxji5C6vj35C43q35Ci7+m0Cg9vm0CA2AA

Stack Trace (bun.report)

Bun v1.1.13 (bd6a605) on linux x86_64_baseline [RunCommand]

Segmentation fault at address 0x00000000

Edited: Still got this error with v1.1.17:

Bun v1.1.17 (bb66bba) on linux x86_64_baseline [RunCommand]

Segmentation fault at address 0x00000000

@sparanoid sparanoid added the crash An issue that could cause a crash label Jun 26, 2024
@github-actions github-actions bot added the linux An issue that occurs on Linux label Jun 26, 2024
Copy link
Contributor

@sparanoid, the latest version of Bun is v1.1.16, but this crash was reported on Bun v1.1.13.

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

bun upgrade

@Jarred-Sumner Jarred-Sumner added the crash reporter bug the stack trace given does not seem to be valid label Jun 27, 2024
@paperdave
Copy link
Collaborator

Application exited with code 132
error: script "start" was terminated by signal SIGKILL (Forced quit)

the "start" script was killed. this is a bug in that script (if it is running bug and crashing, it is a bug in bun). SIGKILL can also be an out of memory or timeout

the fact bun crashes in raiseIgnoringPanicHandler, which is supposed to forward the script's crash to the shell, and hitting the panic handler, is a bug in bun.

@paperdave paperdave changed the title Segmentation fault at address 0x0 raiseIgnoringPanicHandler triggers crash reporter Jun 27, 2024
@sparanoid
Copy link
Author

I'm running it on Koyeb within a container. The memory usage seems to be fine:

image

The gap in the chart is when the service dies

@yard2010
Copy link

I'm having this issue as well, even with the last version of bun, any idea how can I workaround it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash reporter bug the stack trace given does not seem to be valid crash An issue that could cause a crash linux An issue that occurs on Linux
Projects
None yet
Development

No branches or pull requests

4 participants