MacOS Monterey 更新后,反向搜索(ctrl+r)不起作用 - bsdthread_register 错误

MacOS Monterey 更新后,反向搜索(ctrl+r)不起作用 - bsdthread_register 错误

我将 MacOS 更新到 Monterey,从那时起反向 i 搜索(ctrl + r)会引发以下错误:

fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x115b9ca, 0x21)
    /usr/local/Cellar/go/1.10.3/libexec/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfefef58 sp=0x7ff7bfefef38 pc=0x10271b1
runtime.goenvs()
    /usr/local/Cellar/go/1.10.3/libexec/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfefef88 sp=0x7ff7bfefef58 pc=0x1024d33
runtime.schedinit()
    /usr/local/Cellar/go/1.10.3/libexec/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfefeff0 sp=0x7ff7bfefef88 pc=0x1029aa6
runtime.rt0_go(0x7ff7bfeff028, 0x1, 0x7ff7bfeff028, 0x0, 0x1000000, 0x1, 0x7ff7bfeff2e0, 0x0, 0x7ff7bfeff2e4, 0x7ff7bfeff320, ...)
    /usr/local/Cellar/go/1.10.3/libexec/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfefeff8 sp=0x7ff7bfefeff0 pc=0x104f9b4

Mac 终端和 iTerm2 都会抛出这个错误。Shell 是 zsh。

有什么解决方法吗?谢谢。

答案1

解决方法是通过以下方式升级 brew 包:

brew update
brew upgrade

不确定哪个包是罪魁祸首,但问题已修复。

答案2

我已经fzf安装了Crtl+ R,因此我能够使用以下命令修复此问题的表现:

  • brew reinstall fzf

答案3

我遇到了同样的问题,这可能会对你有所帮助:https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue

相关内容