opencode crashes over and over #6925

Closed
opened 2026-02-16 18:05:37 -05:00 by yindo · 5 comments
Owner

Originally created by @zoonosis on GitHub (Jan 20, 2026).

Originally assigned to: @rekram1-node on GitHub.

UPDATE: so i built it from source via git and used bun 1.3.6 and it still crashes

Bun v1.3.6 (d530ed9) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x5C22E1E0100

Features: spawn, standalone_executable, transpiler_cache, tsconfig, tsconfig_paths, workers_spawned, napi_module_register, process_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, abort_signal, dotenv, fetch, http_server, jsc, shell, shell

If this a bug in bun, then how do we force the upgrade or downgrade of the bundled bun that comes inside opencode???

Description

just using base vanilla opencode and no matter what I do it crashes continuously. ive removed every plugin. tried just cli, vscode, no vsocde, powershell, nothing works. its unusable.

Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
Windows v.win10_cux M2.1 OpenCode Zen
CPU: sse42 avx avx2▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Args: "\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe" "--user-agent=opencode/1.1.26" "--use-system-ca " "--" "-c" tab agents ctrl+p commands
Features: Bun.stderr(4) Bun.stdin(4) Bun.stdout(4) abort_signal(2) dotenv(2) fetch(6) jsc shell(34) spawn(29) standalone_executable transpiler_cache tsconfig workers_spawned(2) napi_module_register process_dlopen
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:worker_threads" "undici" "node:v8" "node:http2" "node:diagnostics_channel" "node:dgram"
Elapsed: 57407ms | User: 4984ms | Sys: 578ms
RSS: 0.78GB | Peak: 0.93GB | Commit: 1.00GB | Faults: 302009 | Machine: 17.09GB

panic(thread 16668): Segmentation fault at address 0x32F1F372C20
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:

Bun v1.3.5 (1e86ceb) on windows x86_64_baseline [AutoCommand]

Segmentation fault at address 0x21E42971020

Features: spawn, standalone_executable, transpiler_cache, workers_spawned, napi_module_register, process_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, abort_signal, fetch, http_server, jsc, shell, shell

Plugins

none

OpenCode version

1.1.26

Steps to reproduce

just use it normally and itll crash, seriously. happens every few minutes. ram gets chewed up and boom.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @zoonosis on GitHub (Jan 20, 2026). Originally assigned to: @rekram1-node on GitHub. UPDATE: so i built it from source via git and used bun 1.3.6 and it still crashes Bun v1.3.6 ([`d530ed9`](<https://github.com/oven-sh/bun/tree/d530ed993d62be7c7f8f01a3d52627b6845dfd93>)) on windows x86_64 [AutoCommand] Segmentation fault at address 0x5C22E1E0100 - *1 unknown/js code* - [`interpreter.zig:1248`](<https://github.com/oven-sh/bun/blob/d530ed993d62be7c7f8f01a3d52627b6845dfd93/src/shell/interpreter.zig#L1248>): `deinitFromFinalizer` - [`ZigGeneratedClasses.zig:20066`](<https://github.com/oven-sh/bun/blob/d530ed993d62be7c7f8f01a3d52627b6845dfd93//var/lib/buildkite-agent/build/build/release/codegen/ZigGeneratedClasses.zig#L20066>): `ShellInterpreterClass__finalize` - [`memory:3426`](<https://github.com/oven-sh/bun/blob/d530ed993d62be7c7f8f01a3d52627b6845dfd93/C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/include/memory#L3426>): `std::unique_ptr<WTF::EmbeddedFixedVector<JSC::WriteBarrier<JSC::Unknown,WTF::RawValueTraits<JSC::Unknown> >,WTF::FastMalloc>,std::default_delete<WTF::EmbeddedFixedVector<JSC::WriteBarrier<JSC::Unknown,WTF::RawValueTraits<JSC::Unknown> >,WTF::FastMalloc> > >::~unique_ptr` - [`PreciseAllocation.h:155`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/PreciseAllocation.h#L155>): `JSC::PreciseAllocation::isLowerTierPrecise` - [`MarkedSpace.cpp:256`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/MarkedSpace.cpp#L256>): `JSC::MarkedSpace::sweepPreciseAllocations` - [`memory:3461`](<https://github.com/oven-sh/bun/blob/d530ed993d62be7c7f8f01a3d52627b6845dfd93/C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/include/memory#L3461>): `std::unique_ptr<JSC::IsoSubspace,std::default_delete<JSC::IsoSubspace> >::operator bool` - [`Heap.cpp:2222`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/Heap.cpp#L2222>): `JSC::Heap::handleNeedFinalize` - [`Heap.cpp:2230`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/Heap.cpp#L2230>): `JSC::Heap::handleNeedFinalize` - [`Heap.cpp:1806`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/Heap.cpp#L1806>): `JSC::Heap::changePhase` - [`Heap.cpp:1430`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/Heap.cpp#L1430>): `JSC::Heap::runCurrentPhase` - [`Heap.cpp:2059`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/Heap.cpp#L2059>): `JSC::Heap::collectInMutatorThread::<lambda_2>::operator()` - [`ScopedLambda.h:58`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/WTF/wtf/ScopedLambda.h#L58>): `WTF::ScopedLambda<void (...)>::operator()` - [`CollectingScope.h:43`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/CollectingScope.h#L43>): `JSC::CollectingScope::~CollectingScope` - [`Heap.cpp:2039`](<https://github.com/oven-sh/WebKit/blob/1d0216219a3c52cb85195f48f19ba7d5db747ff7/Source/JavaScriptCore/heap/Heap.cpp#L2039>): `JSC::Heap::stopIfNecessarySlow` - [`HeapInlines.h:224`](<https://github.com/oven-sh/bun/blob/d530ed993d62be7c7f8f01a3d52627b6845dfd93/C:/buildkite-agent/build/build/release/cache/webkit-1d0216219a3c52cb/include/JavaScriptCore/HeapInlines.h#L224>): `JSC::Heap::reportExtraMemoryAllocated` - [`types.zig:918`](<https://github.com/oven-sh/bun/blob/d530ed993d62be7c7f8f01a3d52627b6845dfd93/src/bun.js/node/types.zig#L918>): `deinitAndUnprotect` Features: spawn, standalone\_executable, transpiler\_cache, tsconfig, tsconfig\_paths, workers\_spawned, napi\_module\_register, process\_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, abort\_signal, dotenv, fetch, http\_server, jsc, shell, shell If this a bug in bun, then how do we force the upgrade or downgrade of the bundled bun that comes inside opencode??? ### Description just using base vanilla opencode and no matter what I do it crashes continuously. ive removed every plugin. tried just cli, vscode, no vsocde, powershell, nothing works. its unusable. Bun v1.3.5 (1e86cebd) Windows x64 (baseline) Windows v.win10_cux M2.1 OpenCode Zen CPU: sse42 avx avx2▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Args: "\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe" "--user-agent=opencode/1.1.26" "--use-system-ca " "--" "-c" tab agents ctrl+p commands Features: Bun.stderr(4) Bun.stdin(4) Bun.stdout(4) abort_signal(2) dotenv(2) fetch(6) jsc shell(34) spawn(29) standalone_executable transpiler_cache tsconfig workers_spawned(2) napi_module_register process_dlopen Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "node:worker_threads" "undici" "node:v8" "node:http2" "node:diagnostics_channel" "node:dgram" Elapsed: 57407ms | User: 4984ms | Sys: 578ms RSS: 0.78GB | Peak: 0.93GB | Commit: 1.00GB | Faults: 302009 | Machine: 17.09GB panic(thread 16668): Segmentation fault at address 0x32F1F372C20 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: Bun v1.3.5 ([`1e86ceb`](<https://github.com/oven-sh/bun/tree/1e86cebd74a5723e818b5c0555276b646bcf0e4c>)) on windows x86_64_baseline [AutoCommand] Segmentation fault at address 0x21E42971020 - [`queue.h:81`](<https://github.com/oven-sh/bun/blob/1e86cebd74a5723e818b5c0555276b646bcf0e4c/src/queue.h#L81>): `uv__queue_insert_tail` - [`libuv.zig:1371`](<https://github.com/oven-sh/bun/blob/1e86cebd74a5723e818b5c0555276b646bcf0e4c/src/deps/libuv.zig#L1371>): `init` - [`process.zig:1227`](<https://github.com/oven-sh/bun/blob/1e86cebd74a5723e818b5c0555276b646bcf0e4c/src/bun.js/api/bun/process.zig#L1227>): `spawnProcess` - [`Cmd.zig:338`](<https://github.com/oven-sh/bun/blob/1e86cebd74a5723e818b5c0555276b646bcf0e4c/src/shell/states/Cmd.zig#L338>): `next` - [`Yield.zig:115`](<https://github.com/oven-sh/bun/blob/1e86cebd74a5723e818b5c0555276b646bcf0e4c/src/shell/Yield.zig#L115>): `run` - [`JSGlobalObject.zig:484`](<https://github.com/oven-sh/bun/blob/1e86cebd74a5723e818b5c0555276b646bcf0e4c/src/bun.js/bindings/JSGlobalObject.zig#L484>): `hasException` - [`JSCJSValue.h:753`](<https://github.com/oven-sh/bun/blob/1e86cebd74a5723e818b5c0555276b646bcf0e4c/C:/buildkite-agent/build/build/release/cache/webkit-6d0f3aac0b817cc0/include/JavaScriptCore/JSCJSValue.h#L753>): `JSC::ensureStillAliveHere` - *2 unknown/js code* - `llint_entry` Features: spawn, standalone\_executable, transpiler\_cache, workers\_spawned, napi\_module\_register, process\_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, abort\_signal, fetch, http\_server, jsc, shell, shell ### Plugins none ### OpenCode version 1.1.26 ### Steps to reproduce just use it normally and itll crash, seriously. happens every few minutes. ram gets chewed up and boom. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the windowsbugperf labels 2026-02-16 18:05:37 -05:00
yindo closed this issue 2026-02-16 18:05:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7318: TypeScript LSP crashes with Bun segmentation fault on Windows 11
  • #8785: Bun has crashed (Bun v1.3.5 on Windows with segmentation fault)
  • #6694: Bun crashes when OC subagent tries to invoke subagent (Windows-specific)
  • #3267: auto update causes Bun segmentation fault (Windows)

All of these report similar Bun segmentation faults on Windows with continuous crashes and memory issues. These might be related to the same underlying Bun issue on Windows.

Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Jan 20, 2026): This issue might be a duplicate of existing issues. Please check: - #7318: TypeScript LSP crashes with Bun segmentation fault on Windows 11 - #8785: Bun has crashed (Bun v1.3.5 on Windows with segmentation fault) - #6694: Bun crashes when OC subagent tries to invoke subagent (Windows-specific) - #3267: auto update causes Bun segmentation fault (Windows) All of these report similar Bun segmentation faults on Windows with continuous crashes and memory issues. These might be related to the same underlying Bun issue on Windows. Feel free to ignore if your specific case differs from these.
Author
Owner

@Aaalice233 commented on GitHub (Jan 20, 2026):

same

@Aaalice233 commented on GitHub (Jan 20, 2026): same
Author
Owner

@zoonosis commented on GitHub (Jan 20, 2026):

i built it from source using the latest bun and it still crashes

git clone https://github.com/anomalyco/opencode.git
cd opencode
bun install

@zoonosis commented on GitHub (Jan 20, 2026): i built it from source using the latest bun and it still crashes git clone https://github.com/anomalyco/opencode.git cd opencode bun install
Author
Owner

@rekram1-node commented on GitHub (Jan 20, 2026):

oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Yeah these crashes come from Bun itself, if you don't mind opening issues in Bun :)

@rekram1-node commented on GitHub (Jan 20, 2026): > oh no: Bun has crashed. This indicates a bug in Bun, not your code. Yeah these crashes come from Bun itself, if you don't mind opening issues in Bun :)
Author
Owner

@zoonosis commented on GitHub (Jan 20, 2026):

@rekram1-node I send it to them via the automated crash link that pops up when it crashes. ive also logged it with them on their github. Is there anything I can do in the meantime to stop this? i can only work for like 2 minutes before it falls over. Do I have to use linux or something in the meantime?

@zoonosis commented on GitHub (Jan 20, 2026): @rekram1-node I send it to them via the automated crash link that pops up when it crashes. ive also logged it with them on their github. Is there anything I can do in the meantime to stop this? i can only work for like 2 minutes before it falls over. Do I have to use linux or something in the meantime?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6925