You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Crash] malloc error: pointer being freed was not allocated on macOS 15 (ARM-64) #13072
opencode crashes immediately upon launch (e.g., opencode .) on macOS 15.0.1. The terminal outputs a malloc error, and the system crash log points to an invalid memory deallocation during thread exit.
opencode(7914,0x16fecf000) malloc: *** error for object 0x10841f300: pointer being freed was not allocated
Plugins
oh-my-opencode、superpowers
OpenCode version
1.1.56
Steps to reproduce
Open iTerm2 or any terminal on macOS Sequoia.
Navigate to any project directory.
Run opencode .
The process terminates immediately with a malloc error.
The key difference is timing (#13064 crashes after ~10 seconds vs #13072 crashes immediately), but both stem from the same underlying memory corruption issue.
Please check #13064 for any existing workarounds or updates. Consider consolidating discussions there to avoid duplicate efforts.
Duplicate of #13064. Same malloc error on macOS 15 ARM-64 with v1.1.56.
This looks like a Bun 1.3.8 + macOS 15 compatibility issue with WASM thread cleanup. The crash happens in the "Wasm Worklist Helper Thread" during _pthread_exit, which is likely related to web-tree-sitter (used by the bash tool for command parsing).
Activity
github-actions commentedon Feb 11, 2026
This issue appears to be a duplicate of #13064.
Both report the same malloc error on macOS 15.x:
pointer being freed was not allocatedThe key difference is timing (#13064 crashes after ~10 seconds vs #13072 crashes immediately), but both stem from the same underlying memory corruption issue.
Please check #13064 for any existing workarounds or updates. Consider consolidating discussions there to avoid duplicate efforts.
bestkxt commentedon Feb 11, 2026
私も同じ問題を抱えています。どうすればいいのか教えていただけますか? opencode-ai v1.1.53に戻しましたが、まだ動きません。
Y4tacker commentedon Feb 11, 2026
the same as me😂
Lxj96 commentedon Feb 11, 2026
HerculeLiu commentedon Feb 11, 2026
I got the same issue, either iTerm2 or Terminal
opencode --version : 1.1.56
ProductName: macOS
ProductVersion: 15.0.1
I tried reinstall 1.1.53, but it does not help anything
R44VC0RP commentedon Feb 11, 2026
Duplicate of #13064. Same malloc error on macOS 15 ARM-64 with v1.1.56.
This looks like a Bun 1.3.8 + macOS 15 compatibility issue with WASM thread cleanup. The crash happens in the "Wasm Worklist Helper Thread" during
_pthread_exit, which is likely related to web-tree-sitter (used by the bash tool for command parsing).We'll investigate the root cause in #13064.