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

Bun occasionally crash when running bullMQ worker #12458

Open
doaortu opened this issue Jul 9, 2024 · 0 comments
Open

Bun occasionally crash when running bullMQ worker #12458

doaortu opened this issue Jul 9, 2024 · 0 comments
Labels
crash An issue that could cause a crash linux An issue that only occurs on Linux

Comments

@doaortu
Copy link

doaortu commented Jul 9, 2024

How can we reproduce the crash?

I'm not really sure when or what caused it, but I run bullmq worker as telegram bot worker to run repeatable job at 10 secs interval. The worker will fetch data from api, and then send the data to the client.

I used grammyjs as telegram bot framework.

Relevant log output

8|monitoring_job_2  | 2024-07-09T11:21:34: ============================================================
8|monitoring_job_2  | 2024-07-09T11:21:34: Bun v1.1.18 (5a0b9352) Linux x64
8|monitoring_job_2  | 2024-07-09T11:21:34: Linux Kernel v6.1.0 | glibc v2.36
8|monitoring_job_2  | 2024-07-09T11:21:34: Args: "bun" "run" "src/lib/job-worker.ts"
8|monitoring_job_2  | 2024-07-09T11:21:34: Features: jsc Bun.stdin(2) dotenv fetch(1220) transpiler_cache(17) tsconfig(8)
8|monitoring_job_2  | 2024-07-09T11:21:34: Builtins: "abort-controller" "bun:main" "detect-libc" "node:assert" "node:buffer" "node:child_process" "node:console" "node:constants" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:readline" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "node:punycode" "ws" "node-fetch"
8|monitoring_job_2  | 2024-07-09T11:21:34: Elapsed: 16328521ms | User: 30837ms | Sys: 4104ms
8|monitoring_job_2  | 2024-07-09T11:21:34: RSS: 0.94GB | Peak: 0.20GB | Commit: 0.94GB | Faults: 0
8|monitoring_job_2  | 2024-07-09T11:21:34:
8|monitoring_job_2  | 2024-07-09T11:21:34: panic: Segmentation fault at address 0x0
8|monitoring_job_2  | 2024-07-09T11:21:34: : Bun has crashed. This indicates a bug in Bun, not your code.
8|monitoring_job_2  | 2024-07-09T11:21:34:
8|monitoring_job_2  | 2024-07-09T11:21:34: To send a redacted crash report to Bun's team,
8|monitoring_job_2  | 2024-07-09T11:21:34: please file a GitHub issue using the link below:
8|monitoring_job_2  | 2024-07-09T11:21:34:
8|monitoring_job_2  | 2024-07-09T11:21:34:  https://bun.report/1.1.18/lr15a0b935AqoiggF2stknEA2AA
8|monitoring_job_2  | 2024-07-09T11:21:34:
PM2                 | App [monitoring_job_2:8] exited with code [0] via signal [SIGILL]

Stack Trace (bun.report)

Bun v1.1.18 (5a0b935) on linux x86_64 [RunAsNodeCommand]

Segmentation fault at address 0x00004290

@doaortu doaortu added the crash An issue that could cause a crash label Jul 9, 2024
@github-actions github-actions bot added the linux An issue that only occurs on Linux label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash linux An issue that only occurs on Linux
Projects
None yet
Development

No branches or pull requests

1 participant