Skip to content

Suggestion to Update the BUILT-IN BUN VERSION in the Binary Package to Fix OpenCode Issues Caused by Bun bugs #11404

Closed as not planned

Description

@narukeu

Description

I am the author of #10799. A few days ago, I reported an issue where OpenCode crashes during runtime due to a garbage collection bug in Bun. Today, I tested the latest version of OpenCode, 1.1.47, and found that it still includes Bun 1.3.5, causing the problem to persist.
Therefore, I suggest the official team upgrade the built-in Bun version to resolve this issue.

Plugins

No response

OpenCode version

1.1.47

Steps to reproduce

Same as #10799

Screenshot and/or share link

No response

Operating System

Windows 11 25H2

Terminal

No response

Activity

  1. github-actions commented on Jan 31, 2026

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. changed the title [-]Suggestion to Update the built-in Bun Version in the Binary Package to Fix OpenCode Issues Caused by Bun bugs[/-] [+]Suggestion to Update the BUILT-IN BUN VERSION in the Binary Package to Fix OpenCode Issues Caused by Bun bugs[/+] on Jan 31, 2026
  3. rekram1-node commented on Jan 31, 2026

    @rekram1-node
    Collaborator

    yeah we will update soon, idk if it will fix ur issue tho

  4. narukeu commented on Jan 31, 2026

    @narukeu
    Author

    yeah we will update soon, idk if it will fix ur issue tho

    Thanks for your reply.

    Unfortunately, the latest version of Bun still doesn't seem to fix this. I bundled the latest OpenCode repo on Linux using Bun 1.3.8, ran the same steps from the other issue on Windows, and got the exact same error with a nearly identical stack trace.

    Sorry for the continued trouble, but it looks like upgrading the version isn't the solution here.

    Bun v1.3.8 ([`b64edcb`](<https://github.com/oven-sh/bun/tree/b64edcb490b486fb8af90cb2cb2dc51590453064>)) on windows x86_64 [AutoCommand]
    
    Segmentation fault at address 0x230058A0080
    
    - *1 unknown/js code*
    - [`interpreter.zig:1249`](<https://github.com/oven-sh/bun/blob/b64edcb490b486fb8af90cb2cb2dc51590453064/src/shell/interpreter.zig#L1249>): `deinitFromFinalizer`
    - [`ZigGeneratedClasses.zig:20066`](<https://github.com/oven-sh/bun/blob/b64edcb490b486fb8af90cb2cb2dc51590453064//var/lib/buildkite-agent/build/build/release/codegen/ZigGeneratedClasses.zig#L20066>): `ShellInterpreterClass__finalize`
    - [`memory:3426`](<https://github.com/oven-sh/bun/blob/b64edcb490b486fb8af90cb2cb2dc51590453064/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`
    - [`HeapCell.h:62`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/HeapCell.h#L62>): `JSC::HeapCell::zap`
    - [`MarkedBlockInlines.h:310`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/MarkedBlockInlines.h#L310>): `JSC::MarkedBlock::Handle::specializedSweep<1,1,1,1,0,1,1,JSC::JSDestructibleObjectDestroyFunc>`
    - [`MarkedBlockInlines.h:372`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/MarkedBlockInlines.h#L372>): `JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<JSC::JSDestructibleObjectDestroyFunc>::<lambda_1>::operator()`
    - [`MarkedBlockInlines.h:384`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/MarkedBlockInlines.h#L384>): `JSC::MarkedBlock::Handle::finishSweepKnowingHeapCellType<JSC::JSDestructibleObjectDestroyFunc>`
    - [`JSDestructibleObjectHeapCellType.cpp:56`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/runtime/JSDestructibleObjectHeapCellType.cpp#L56>): `JSC::JSDestructibleObjectHeapCellType::finishSweep`
    - [`MarkedBlock.cpp:580`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/MarkedBlock.cpp#L580>): `JSC::MarkedBlock::Handle::sweep`
    - [`FreeList.h:92`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/FreeList.h#L92>): `JSC::FreeList::allocationWillFail`
    - [`LocalAllocator.cpp:195`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/LocalAllocator.cpp#L195>): `JSC::LocalAllocator::tryAllocateWithoutCollecting`
    - [`LocalAllocator.cpp:135`](<https://github.com/oven-sh/WebKit/blob/9a2cc42ae1bf693a0fd0ceb9b1d7d965d9cfd3ea/Source/JavaScriptCore/heap/LocalAllocator.cpp#L135>): `JSC::LocalAllocator::allocateSlowCase`
    - [`LocalAllocatorInlines.h:47`](<https://github.com/oven-sh/bun/blob/b64edcb490b486fb8af90cb2cb2dc51590453064/C:/buildkite-agent/build/build/release/cache/webkit-9a2cc42ae1bf693a/include/JavaScriptCore/LocalAllocatorInlines.h#L47>): `JSC::LocalAllocator::allocate::<lambda_1>::operator()`
    - [`FreeListInlines.h:46`](<https://github.com/oven-sh/bun/blob/b64edcb490b486fb8af90cb2cb2dc51590453064/C:/buildkite-agent/build/build/release/cache/webkit-9a2cc42ae1bf693a/include/JavaScriptCore/FreeListInlines.h#L46>): `JSC::FreeList::allocateWithCellSize`
    - [`ShellBindings.cpp:27`](<https://github.com/oven-sh/bun/blob/b64edcb490b486fb8af90cb2cb2dc51590453064/src/bun.js/bindings/ShellBindings.cpp#L27>): `Bun__createShellInterpreter`
    - [`interpreter.zig:761`](<https://github.com/oven-sh/bun/blob/b64edcb490b486fb8af90cb2cb2dc51590453064/src/shell/interpreter.zig#L761>): `createShellInterpreter`
    
    Features: spawn, standalone\_executable, tsconfig, tsconfig\_paths, workers\_spawned, napi\_module\_register, process\_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, abort\_signal, dotenv, fetch, jsc, shell, shell
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions