-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Receiving this crash consistently when using Bun workers #15345
Comments
@chadacious, the latest version of Bun is v1.1.36, but this crash was reported on Bun v1.1.34. Are you able to reproduce this crash on the latest version of Bun? bun upgrade |
Can you share any code? |
So far so good on the latest version of Bun. It would occur after a period of time and not something I pinpointed to specific code as there is no call stack and the project is pretty complex... could be anywhere. Will report back if I see it again and/or can provide a reproducible. |
Ok, I see that actually this is a memory leak resulting from the use of workers. Seems related to this open issue: #5709 Looking for a workaround, or some way to reset/clear memory. For now, I'll use child-process instead. |
We are tracking worker stability in #15964 |
How can we reproduce the crash?
I'll start trying to track down if it's related to any "toLowerCase()" operation in my code, but I haven't pinpointed a reproducible yet.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.34 (
5e5e7c6
) on macos x86_64 [RunCommand]Illegal instruction at address 0x105C3DE8C
pas_immortal_heap_allocate_with_heap_lock_hold_mode
pas_segregated_directory_append
pas_segregated_size_directory_take_first_eligible
bmalloc_heap_config_specialized_local_allocator_try_allocate_small_segregated_slow
bmalloc_allocate_impl_casual_case
WTF::StringImpl::convertToLowercaseWithoutLocale
WTF::String::convertToLowercaseWithoutLocale
operationToLowerCase
Features: workers_spawned, WebSocket, bunfig, dotenv, fetch, http_server, jsc, spawn, transpiler_cache, tsconfig
Sentry Issue: BUN-8RW
The text was updated successfully, but these errors were encountered: