Also important could be that I was in debug mode with the Javascript Debug Terminal running on VSCode using the Bun extension.
Relevant log output
============================================================
Bun v1.1.27 (267afa29) Linux x64
Linux Kernel v6.5.13 | glibc v2.39
CPU: sse42 popcnt avx avx2
Args: "bun" "--watch" "src/main.ts"
Features: jsc bunfig dotenv(2) http_server transpiler_cache(2) tsconfig(8)
Builtins: "bun:main" "node:buffer" "node:crypto" "node:fs" "node:fs/promises" "node:net" "node:os" "node:path" "node:perf_hooks" "node:stream" "node:string_decoder" "node:tls" "node:util/types"
Elapsed: 357ms | User: 1716825ms | Sys: 9501ms
RSS: 0.61GB | Peak: 0.46GB | Commit: 0.61GB | Faults: 3
panic: Illegal instruction at address 0x579130D
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:
https://bun.report/1.1.27/la1267afa2AiqghwC+2jQyoo2uF+ru82Esi/j5E8h0j5Ek5xj5E6thl3D4/y99Dwwh63Dgh2rmDA3A6wpkvF
--- Bun is auto-restarting due to crash [time: 1727284145239] ---
Stack Trace (bun.report)
Bun v1.1.27 (267afa2) on linux x86_64 [AutoCommand]
How can we reproduce the crash?
Dunno, I was writing code like below where I missed the accumulator return at first
That code wasn't being executed however, the project itself is an Elysia web project that creates two https://github.com/porsager/postgres at startup, one with https://github.com/drizzle-team/drizzle-orm and the other with https://github.com/kysely-org/kysely-postgres-js
Also important could be that I was in debug mode with the Javascript Debug Terminal running on VSCode using the Bun extension.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.27 (
267afa2
) on linux x86_64 [AutoCommand]Illegal instruction at address 0x0579130D
??
ld-temp.o:0
:bmalloc_heap_config_specialized_try_deallocate_not_small_exclusive_segregated
ld-temp.o:0
:JSC::IsoInlinedHeapCellType<JSC::JSString>::finishSweep
ld-temp.o:0
:JSC::MarkedBlock::Handle::sweep
ld-temp.o:0
:JSC::LocalAllocator::tryAllocateIn
ld-temp.o:0
:JSC::LocalAllocator::allocateSlowCase
LocalAllocatorInlines.h:41
:JSC::JSString::create
JSString.h:947
:WTF::Detail::CallableWrapper<Bun::BunInspectorConnection::sendMessageToDebuggerThread(...)::'lambda'(...), void, WebCore::ScriptExecutionContext&>::call
Function.h:82
:Bun__performTask
event_loop.zig:300
:src.bun.js.event_loop.EventLoop.tickQueueWithCount__anon_123577