我将我的 MacOS 更新为 Monterey,从那时起,反向 i-search (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 都会抛出该错误。外壳是 zsh。
有什么想法可以解决吗?谢谢。