✓

Crash Report Uploaded

Your redacted crash report has been sent to the Bun team for internal tracking.

⚠ Outdated Version Detected
You're running an older version of Bun. This crash may already be fixed in the latest release. Please update before submitting a detailed bug report.
Your version: 1.4.0
Latest release: 1.4.4

Try upgrading Bun:

bun upgrade

What to do next

1

Update to the latest version: bun upgrade

2

To help get it fixed faster, provide source code and detailed reproduction steps via bun feedback

Help us fix it

To help get it fixed faster, provide source code and detailed reproduction steps via bun feedback

View Stack Trace
Bun v1.4.0 ([`34cbb9a`](<https://github.com/oven-sh/bun/tree/34cbb9a40b4bd1bd767d134a7065e66c2432a676>)) on macos aarch64 [TestCommand] Segmentation fault at address 0x158D32651 - *6 unknown/js code* - [`napi_body.rs:2403`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/napi/napi_body.rs#L2403>): `<bun_runtime::napi::napi_body::Finalizer>::run` - [`napi_body.rs:5263`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/napi/napi_body.rs#L5263>): `run_on_js_thread` - [`dispatch.rs:366`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/dispatch.rs#L366>): `bun_runtime::dispatch::run_task ` - [`dispatch.rs:616`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/dispatch.rs#L616>): `tick_queue_with_count` - [`dispatch.rs:1199`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/dispatch.rs#L1199>): `__bun_tick_queue_with_count` - [`event_loop.rs:250`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/event_loop.rs#L250>): `tick_queue_with_count` - [`event_loop.rs:485`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/event_loop.rs#L485>): `tick_with_count` - [`event_loop.rs:683`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/event_loop.rs#L683>): `tick_turn` - [`event_loop.rs:666`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/event_loop.rs#L666>): `<bun_jsc::event_loop::EventLoop>::tick` - [`event_loop.rs:1035`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/event_loop.rs#L1035>): `<bun_jsc::event_loop::EventLoop>::wait_for_promise` - [`VirtualMachine.rs:2643`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/VirtualMachine.rs#L2643>): `wait_for_promise` - [`expect.rs:496`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/test_runner/expect.rs#L496>): `process_promise<&bstr::bstr::BStr, bun_core::output::PrettyBuf>` - [`expect.rs:429`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/test_runner/expect.rs#L429>): `<bun_runtime::test_runner::expect_core::Expect>::get_value` - [`toThrow.rs:64`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/test_runner/expect/toThrow.rs#L64>): `bun_runtime::test_runner::expect::to_throw::to_throw` - [`expect.rs:2277`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/runtime/test_runner/expect.rs#L2277>): `to_throw` - [`generated_classes.rs:4061`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/./build/release/./build/release/codegen/generated_classes.rs#L4061>): `{closure#0}` - [`host_fn.rs:550`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/host_fn.rs#L550>): `{closure#0}<bun_runtime::test_runner::expect_core::Expect, core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_runtime::generated_classes::ExpectPrototype__toThrow::{closure_env#0}>` - [`host_fn.rs:310`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/host_fn.rs#L310>): `{closure#0}<core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_jsc::host_fn::host_fn_this_shared::{closure_env#0}<bun_runtime::test_runner::expect_core::Expect, core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_runtime::generated_classes::ExpectPrototype__toThrow::{closure_env#0}>>` - [`host_fn.rs:699`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/host_fn.rs#L699>): `to_js_host_call<bun_jsc::host_fn::host_fn_result::{closure_env#0}<core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_jsc::host_fn::host_fn_this_shared::{closure_env#0}<bun_runtime::test_runner::expect_core::Expect, core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_runtime::generated_classes::ExpectPrototype__toThrow::{closure_env#0}>>>` - [`host_fn.rs:310`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/host_fn.rs#L310>): `host_fn_result<core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_jsc::host_fn::host_fn_this_shared::{closure_env#0}<bun_runtime::test_runner::expect_core::Expect, core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_runtime::generated_classes::ExpectPrototype__toThrow::{closure_env#0}>>` - [`host_fn.rs:550`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/src/jsc/host_fn.rs#L550>): `host_fn_this_shared<bun_runtime::test_runner::expect_core::Expect, core::result::Result<bun_jsc::js_value::JSValue, bun_core::JsError>, bun_runtime::generated_classes::ExpectPrototype__toThrow::{closure_env#0}>` - [`generated_classes.rs:4061`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/./build/release/./build/release/codegen/generated_classes.rs#L4061>): `ExpectPrototype__toThrow` - [`ZigGeneratedClasses.cpp:18696`](<https://github.com/oven-sh/bun/blob/34cbb9a40b4bd1bd767d134a7065e66c2432a676/./build/release/codegen/ZigGeneratedClasses.cpp#L18696>): `WebCore::ExpectPrototype__toThrowCallback` - *1 unknown/js code* - `jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__686_callHelper__dispatch_LowLevelInterpreter64_asm_2526` - `llint_call_javascript` - [`MicrotaskCallInlines.h:84`](<https://github.com/oven-sh/WebKit/blob/bun-34cbb9a40b4bd1bd767d134a7065e66c2432a676/Source/JavaScriptCore/interpreter/MicrotaskCallInlines.h#L84>): `tryCallWithArguments<JSC::JSAsyncFunctionGenerator *, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue>` - [`JSMicrotask.cpp:155`](<https://github.com/oven-sh/WebKit/blob/bun-34cbb9a40b4bd1bd767d134a7065e66c2432a676/Source/JavaScriptCore/runtime/JSMicrotask.cpp#L155>): `callMicrotask<JSC::JSAsyncFunctionGenerator *, JSC::JSValue, JSC::JSValue, JSC::JSValue, JSC::JSValue>` - [`JSMicrotask.cpp:1734`](<https://github.com/oven-sh/WebKit/blob/bun-34cbb9a40b4bd1bd767d134a7065e66c2432a676/Source/JavaScriptCore/runtime/JSMicrotask.cpp#L1734>): `JSC::asyncFunctionGeneratorBodyCall` - [`JSMicrotask.cpp:2028`](<https://github.com/oven-sh/WebKit/blob/bun-34cbb9a40b4bd1bd767d134a7065e66c2432a676/Source/JavaScriptCore/runtime/JSMicrotask.cpp#L2028>): `JSC::runInternalMicrotask` - [`MicrotaskQueue.cpp:60`](<https://github.com/oven-sh/WebKit/blob/bun-34cbb9a40b4bd1bd767d134a7065e66c2432a676/Source/JavaScriptCore/runtime/MicrotaskQueue.cpp#L60>): `runMicrotask` - [`MicrotaskQueue.cpp:192`](<https://github.com/oven-sh/WebKit/blob/bun-34cbb9a40b4bd1bd767d134a7065e66c2432a676/Source/JavaScriptCore/runtime/MicrotaskQueue.cpp#L192>): `drainImpl<true>` - [`MicrotaskQueue.cpp:247`](<https://github.com/oven-sh/WebKit/blob/bun-34cbb9a40b4bd1bd767d134a7065e66c2432a676/Source/JavaScriptCore/runtime/MicrotaskQueue.cpp#L247>): `JSC::MicrotaskQueue::drainWithUseCallOnEachMicrotask` Features: transpiler\_cache, tsconfig, tsconfig\_paths, process\_dlopen, Bun.stderr, Bun.stdout, bunfig, dotenv, jsc