opencode启动后报错 #9035

Closed
opened 2026-02-16 18:11:27 -05:00 by yindo · 26 comments
Owner

Originally created by @zzzzes on GitHub (Feb 10, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

opencode(14113,0x1718ff000)malloc:**error for object 0x10438b300:pointer being freed was not allo cated opencode(14113,0x1718ff000)malloc:**set a breakpoint in malloc_error_break to debug [1] 14113 trace trap opencode

Image

Plugins

NO

OpenCode version

1.1.56

Steps to reproduce

Enter the terminal -> opencode -> Wait for about 10 seconds and an error occurs -> The terminal starts to automatically generate the data in the image

Screenshot and/or share link

Image

Operating System

macOS 15.0

Terminal

tabby

Originally created by @zzzzes on GitHub (Feb 10, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description opencode(14113,0x1718ff000)malloc:**error for object 0x10438b300:pointer being freed was not allo cated opencode(14113,0x1718ff000)malloc:**set a breakpoint in malloc_error_break to debug [1] 14113 trace trap opencode <img width="1245" height="218" alt="Image" src="https://github.com/user-attachments/assets/ae97c379-7030-402a-8427-6fe4cdd46433" /> ### Plugins NO ### OpenCode version 1.1.56 ### Steps to reproduce Enter the terminal -> opencode -> Wait for about 10 seconds and an error occurs -> The terminal starts to automatically generate the data in the image ### Screenshot and/or share link <img width="1233" height="498" alt="Image" src="https://github.com/user-attachments/assets/ed51882a-a0f4-4e45-8c14-3902f9afd25a" /> ### Operating System macOS 15.0 ### Terminal tabby
yindo added the bugneeds:compliance labels 2026-02-16 18:11:27 -05:00
yindo closed this issue 2026-02-16 18:11:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 10, 2026):

This issue doesn't fully meet our contributing guidelines.

What needs to be fixed:

  • OpenCode version is missing - this is critical for debugging
  • Operating System is required (you mentioned macOS in the screenshot, but please confirm)
  • Terminal is required (e.g., zsh, bash, iTerm2, etc.)
  • Steps to reproduce are missing - how can we consistently trigger this error?
  • System information is needed to help diagnose the malloc error

Please edit this issue to address the above within 2 hours, or it will be automatically closed.


Potential duplicates:
This memory error might be related to existing issues. Please check:

  • #6988: "zsh: trace trap opencode" - similar trace trap error
  • #3568: "Unexpected EOF" crash immediately after startup - same trace trap symptom on macOS
  • #2380: "bug: immediately exits and other processes never exit" - related startup crashes

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions[bot] commented on GitHub (Feb 10, 2026): <!-- issue-compliance --> This issue doesn't fully meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md). **What needs to be fixed:** - **OpenCode version** is missing - this is critical for debugging - **Operating System** is required (you mentioned macOS in the screenshot, but please confirm) - **Terminal** is required (e.g., zsh, bash, iTerm2, etc.) - **Steps to reproduce** are missing - how can we consistently trigger this error? - **System information** is needed to help diagnose the malloc error Please edit this issue to address the above within **2 hours**, or it will be automatically closed. --- **Potential duplicates:** This memory error might be related to existing issues. Please check: - #6988: "zsh: trace trap opencode" - similar trace trap error - #3568: "Unexpected EOF" crash immediately after startup - same trace trap symptom on macOS - #2380: "bug: immediately exits and other processes never exit" - related startup crashes If you believe this was flagged incorrectly, please let a maintainer know.
Author
Owner

@ponecrazy commented on GitHub (Feb 10, 2026):

I tested the recent releases and confirmed that v1.1.53 is the last version that works correctly.
The issue appears to have been introduced starting from v1.1.54.

@ponecrazy commented on GitHub (Feb 10, 2026): I tested the recent releases and confirmed that v1.1.53 is the last version that works correctly. The issue appears to have been introduced starting from v1.1.54.
Author
Owner

@zzzzes commented on GitHub (Feb 10, 2026):

I tested the recent releases and confirmed that v1.1.53 is the last version that works correctly. The issue appears to have been introduced starting from v1.1.54.

thank you your reply! I'll roll back the version to 1.1.53 and see if there's this problem.

@zzzzes commented on GitHub (Feb 10, 2026): > I tested the recent releases and confirmed that v1.1.53 is the last version that works correctly. The issue appears to have been introduced starting from v1.1.54. thank you your reply! I'll roll back the version to 1.1.53 and see if there's this problem.
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

After installing 1.1.53, this problem will also occur when logging in with opencode auth. Image

@zzzzes commented on GitHub (Feb 11, 2026): After installing 1.1.53, this problem will also occur when logging in with opencode auth. <img width="1071" height="376" alt="Image" src="https://github.com/user-attachments/assets/446addf0-0ce0-4d65-a585-caab0d315397" />
Author
Owner

@github-actions[bot] commented on GitHub (Feb 11, 2026):

This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new issue that follows our issue templates.

@github-actions[bot] commented on GitHub (Feb 11, 2026): This issue has been automatically closed because it was not updated to meet our [contributing guidelines](../blob/dev/CONTRIBUTING.md) within the 2-hour window. Feel free to open a new issue that follows our issue templates.
Author
Owner

@rishabhpoddar commented on GitHub (Feb 11, 2026):

Seeing this as well.

@rishabhpoddar commented on GitHub (Feb 11, 2026): Seeing this as well.
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

Seeing this as well.

I solved this problem after reverting to another version

@zzzzes commented on GitHub (Feb 11, 2026): > Seeing this as well. I solved this problem after reverting to another version
Author
Owner

@Lxj96 commented on GitHub (Feb 11, 2026):

我也看到了这一点。

我回滚到另一个版本后解决了这个问题。

哪个版本可以?我回滚到 1.1.53也还是有这个问题

@Lxj96 commented on GitHub (Feb 11, 2026): > > 我也看到了这一点。 > > 我回滚到另一个版本后解决了这个问题。 哪个版本可以?我回滚到 1.1.53也还是有这个问题
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

我也看到了这一点。

我回滚到另一个版本后解决了这个问题。

哪个版本可以?我回滚到 1.1.53也还是有这个问题

我退回到了1.1.36,没有之前的问题,但是我/init后,等了一会,又出现了这个问题

Image
@zzzzes commented on GitHub (Feb 11, 2026): > > > 我也看到了这一点。 > > > > > > 我回滚到另一个版本后解决了这个问题。 > > 哪个版本可以?我回滚到 1.1.53也还是有这个问题 我退回到了1.1.36,没有之前的问题,但是我/init后,等了一会,又出现了这个问题 <img width="1221" height="678" alt="Image" src="https://github.com/user-attachments/assets/a99b849a-c14f-48ed-bdbd-760778fc09b8" />
Author
Owner

@ponecrazy commented on GitHub (Feb 11, 2026):

需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

@ponecrazy commented on GitHub (Feb 11, 2026): 需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

我是先直接卸载,然后使用的npm安装的。

Image

但是好像没有回退成功

@zzzzes commented on GitHub (Feb 11, 2026): > 需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功 我是先直接卸载,然后使用的npm安装的。 <img width="391" height="77" alt="Image" src="https://github.com/user-attachments/assets/e56d8e61-6119-4af9-b477-8b765b3036ff" /> 但是好像没有回退成功
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

想问一下brew怎么安装指定版本呢

@zzzzes commented on GitHub (Feb 11, 2026): > 需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功 想问一下brew怎么安装指定版本呢
Author
Owner

@ponecrazy commented on GitHub (Feb 11, 2026):

需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

想问一下brew怎么安装指定版本呢

类似这样的操作
brew tap-new my/tap
brew extract --version=1.20 go my/tap
brew install my/tap/go@1.20

我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode

@ponecrazy commented on GitHub (Feb 11, 2026): > > 需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功 > > 想问一下brew怎么安装指定版本呢 类似这样的操作 brew tap-new my/tap brew extract --version=1.20 go my/tap brew install my/tap/go@1.20 我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

想问一下brew怎么安装指定版本呢

类似这样的操作 brew tap-new my/tap brew extract --version=1.20 go my/tap brew install my/tap/go@1.20

我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode

感谢指导。我试试把这个删除掉能不能解决

@zzzzes commented on GitHub (Feb 11, 2026): > > > 需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功 > > > > > > 想问一下brew怎么安装指定版本呢 > > 类似这样的操作 brew tap-new my/tap brew extract --version=1.20 go my/tap brew install my/tap/go@1.20 > > 我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode 感谢指导。我试试把这个删除掉能不能解决
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功

想问一下brew怎么安装指定版本呢

类似这样的操作 brew tap-new my/tap brew extract --version=1.20 go my/tap brew install my/tap/go@1.20

我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode

测试了一下,跟据您的方法已经退回到了1.1.53版本,好像是没什么问题了。再次感谢您

@zzzzes commented on GitHub (Feb 11, 2026): > > > 需要确认一下有没有回退成功,我用 brew 管理的版本,一开始回退没成功 > > > > > > 想问一下brew怎么安装指定版本呢 > > 类似这样的操作 brew tap-new my/tap brew extract --version=1.20 go my/tap brew install my/tap/go@1.20 > > 我 which 看了下本地引到了~/.opencode/bin/opencode,我把这个删了才正常引到 brew 管理的版本/opt/homebrew/bin/opencode 测试了一下,跟据您的方法已经退回到了1.1.53版本,好像是没什么问题了。再次感谢您
Author
Owner

@ziyang-gam commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

@ziyang-gam commented on GitHub (Feb 11, 2026): 1.1.53 没有问题吗?
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

目前一切正常

@zzzzes commented on GitHub (Feb 11, 2026): > 1.1.53 没有问题吗? 目前一切正常
Author
Owner

@ziyang-gam commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

目前一切正常

确实目前没问题 谢谢你

@ziyang-gam commented on GitHub (Feb 11, 2026): > > 1.1.53 没有问题吗? > > 目前一切正常 确实目前没问题 谢谢你
Author
Owner

@Lxj96 commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

目前一切正常

使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

@Lxj96 commented on GitHub (Feb 11, 2026): > > 1.1.53 没有问题吗? > > 目前一切正常 使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

目前一切正常

使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

是的,你最好先把~/.opencode/bin/opencode先删除,再安装。

@zzzzes commented on GitHub (Feb 11, 2026): > > > 1.1.53 没有问题吗? > > > > > > 目前一切正常 > > 使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了 是的,你最好先把~/.opencode/bin/opencode先删除,再安装。
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

目前一切正常

使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

也可能是你根本没有回退成功

@zzzzes commented on GitHub (Feb 11, 2026): > > > 1.1.53 没有问题吗? > > > > > > 目前一切正常 > > 使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了 也可能是你根本没有回退成功
Author
Owner

@Lxj96 commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

目前一切正常

使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

也可能是你根本没有回退成功

我使用opencode --version看过,确实是1.1.53的,可能是我哪里没卸载干净

@Lxj96 commented on GitHub (Feb 11, 2026): > > > > 1.1.53 没有问题吗? > > > > > > > > > 目前一切正常 > > > > > > 使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了 > > 也可能是你根本没有回退成功 我使用opencode --version看过,确实是1.1.53的,可能是我哪里没卸载干净
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

1.1.53 没有问题吗?

目前一切正常

使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了

也可能是你根本没有回退成功

我使用opencode --version看过,确实是1.1.53的,可能是我哪里没卸载干净

按照上面的brew按照要求一步步执行看看

@zzzzes commented on GitHub (Feb 11, 2026): > > > > > 1.1.53 没有问题吗? > > > > > > > > > > > > 目前一切正常 > > > > > > > > > 使用brew安装的1.1.53没有问题吗?我用npm安装的,没一会又出现了 > > > > > > 也可能是你根本没有回退成功 > > 我使用opencode --version看过,确实是1.1.53的,可能是我哪里没卸载干净 按照上面的brew按照要求一步步执行看看
Author
Owner

@HerculeLiu commented on GitHub (Feb 11, 2026):

I tried versions 1.1.53, 1.1.56, and 1.1.59, and they all had the same problem: crashing shortly after opening opencode, without any user interaction.

@HerculeLiu commented on GitHub (Feb 11, 2026): I tried versions 1.1.53, 1.1.56, and 1.1.59, and they all had the same problem: crashing shortly after opening opencode, without any user interaction.
Author
Owner

@zzzzes commented on GitHub (Feb 11, 2026):

You can try the method commented above: use brew to install OpenCode.
Remember to delete ~/.opencode/bin/opencode before installing.

HerculeLiu @.***>于2026年2月12日 周四上午9:15写道:

HerculeLiu left a comment (anomalyco/opencode#13064)
https://github.com/anomalyco/opencode/issues/13064#issuecomment-3888126600

I tried versions 1.1.53, 1.1.56, and 1.1.59, and they all had the same
problem: crashing shortly after opening opencode, without any user
interaction.


Reply to this email directly, view it on GitHub
https://github.com/anomalyco/opencode/issues/13064#issuecomment-3888126600,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BMZCJ25RISZB6OK4BW2KN5T4LPH27AVCNFSM6AAAAACUWJF53CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQOBYGEZDMNRQGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

@zzzzes commented on GitHub (Feb 11, 2026): You can try the method commented above: use brew to install OpenCode. Remember to delete ~/.opencode/bin/opencode before installing. HerculeLiu ***@***.***>于2026年2月12日 周四上午9:15写道: > *HerculeLiu* left a comment (anomalyco/opencode#13064) > <https://github.com/anomalyco/opencode/issues/13064#issuecomment-3888126600> > > I tried versions 1.1.53, 1.1.56, and 1.1.59, and they all had the same > problem: crashing shortly after opening opencode, without any user > interaction. > > — > Reply to this email directly, view it on GitHub > <https://github.com/anomalyco/opencode/issues/13064#issuecomment-3888126600>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/BMZCJ25RISZB6OK4BW2KN5T4LPH27AVCNFSM6AAAAACUWJF53CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQOBYGEZDMNRQGA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@ponecrazy commented on GitHub (Feb 12, 2026):

看起来最新版本(1.1.64)已经修复了

@ponecrazy commented on GitHub (Feb 12, 2026): 看起来最新版本(1.1.64)已经修复了
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9035