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 is crashing with Many Worker Threads #15942

Closed
MNK144 opened this issue Dec 22, 2024 · 1 comment
Closed

Bun is crashing with Many Worker Threads #15942

MNK144 opened this issue Dec 22, 2024 · 1 comment
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@MNK144
Copy link

MNK144 commented Dec 22, 2024

How can we reproduce the crash?

I am just trying to do some benchmarking of BunJS along with Express. So the code is looping through and performing some arithmatic and logical expressions nothing much.

Issue started occuring when i was doing performance testing on Worker Thread based code by Ramping up concurrent connections from 5 to 100, it is crashing with provided error at around 150-200 requests (15-20 concurrent requests). I have also tried running it with fixed 50 concurrent requests and it crashed again. I have provided error logs for both

Relevant log output

============================================================
Bun v1.1.42 (50eec002) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\Manank\.bun\bin\bun.exe" "run" "server.js"
Features: http_server jsc tsconfig(15) workers_spawned(157) workers_terminated(156)
Builtins: "bun:main" "node:async_hooks" "node:buffer" "node:crypto" "node:events" "node:fs" "node:http" "node:net" "node:path" "node:querystring" "node:stream" "node:string_decoder" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads"
Elapsed: 31108ms | User: 8703ms | Sys: 2468ms
RSS: 0.25GB | Peak: 0.35GB | Commit: 0.40GB | Faults: 1213611

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



============================================================
Bun v1.1.42 (50eec002) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\Manank\.bun\bin\bun.exe" "run" "server.js"
Features: http_server jsc tsconfig(15) workers_spawned(817) workers_terminated(814)
Builtins: "bun:main" "node:async_hooks" "node:buffer" "node:crypto" "node:events" "node:fs" "node:http" "node:net" "node:path" "node:querystring" "node:stream" "node:string_decoder" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads"
Elapsed: 93692ms | User: 49171ms | Sys: 16171ms
RSS: 0.41GB | Peak: 0.55GB | Commit: 0.99GB | Faults: 6085794

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

Stack Trace (bun.report)

Bun v1.1.42 (50eec00) on windows x86_64 [RunCommand]

Segmentation fault at address 0x39F4C1B0728

Features: workers_spawned, workers_terminated, http_server, jsc, tsconfig, tsconfig

Sentry Issue: BUN-4GW

@MNK144 MNK144 added the crash An issue that could cause a crash label Dec 22, 2024
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Dec 22, 2024
@Jarred-Sumner
Copy link
Collaborator

Tracking this in #15964

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 runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants