-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 Crash with worker threads #15890
Comments
@KrishnaPG, the latest version of Bun is v1.1.39, 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 |
Upgraded to the latest and still same issue. Stack Trace (bun.report)Bun v1.1.40 ( Segmentation fault at address 0x20D72024788
Features: workers_spawned, workers_terminated, Bun.stdin, jsc, transpiler_cache, tsconfig, tsconfig |
We are tracking worker stability in #15964 |
How can we reproduce the crash?
When worker thread is terminated in a pool, causing the Bun to crash. This is happening with the https://github.com/poolifier/poolifier-web-worker/blob/e99582f4b4331b6d7ab53d2f0cf691378acb6aab/src/pools/worker-node.ts#L159C17-L159C26
Relevant log output
Stack Trace (bun.report)
Bun v1.1.34 (
5e5e7c6
) on windows x86_64 [AutoCommand]Segmentation fault at address 0x00010060
atomic.zig:100
:fetchOr
utility:762
:std::exchange
ZigSourceProvider.cpp:149
:Zig::SourceProvider::~SourceProvider
HashTable.h:1202
:WTF::HashTable<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> >,WTF::KeyValuePair<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> >,WTF::RefPtr<JSC::SourceProviderCache,WTF::RawPtrTraits<JSC::SourceProviderCache>,WTF::DefaultRefDerefTraits<JSC::SourceProviderCache> > >,WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> >,WTF::RefPtr<JSC::SourceProviderCache,WTF::RawPtrTraits<JSC::SourceProviderCache>,WTF::DefaultRefDerefTraits<JSC::SourceProviderCache> > > >,WTF::DefaultHash<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> > >,WTF::HashMap<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> >,WTF::RefPtr<JSC::SourceProviderCache,WTF::RawPtrTraits<JSC::SourceProviderCache>,WTF::DefaultRefDerefTraits<JSC::SourceProviderCache> >,WTF::DefaultHash<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> > >,WTF::HashTraits<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> > >,WTF::HashTraits<WTF::RefPtr<JSC::SourceProviderCache,WTF::RawPtrTraits<JSC::SourceProviderCache>,WTF::DefaultRefDerefTraits<JSC::SourceProviderCache> > >,WTF::HashTableTraits,0>::KeyValuePairTraits,WTF::HashTraits<WTF::RefPtr<JSC::SourceProvider,WTF::RawPtrTraits<JSC::SourceProvider>,WTF::DefaultRefDerefTraits<JSC::SourceProvider> > >,0>::deallocateTable
VM.cpp:520
:JSC::VM::~VM
VM.h:297
:JSC::VM::operator delete
web_worker.zig:475
:exitAndDeinit
web_worker.zig:369
:spin
bindings.cpp:4855
:JSC__VM__holdAPILock
shimmer.zig:197
:cppFn
Features: workers_spawned, workers_terminated, Bun.stdin, jsc, transpiler_cache, tsconfig
Sentry Issue: BUN-A25
The text was updated successfully, but these errors were encountered: