Segmentation Fault (SIGSEGV) during Keybase installation via Homebrew on macOS

オープン
#4,280 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
go, macos

調査の方向性

まず、macOS で brew install keybase を実行して失敗を再現し、提供されたスタックトレースを使って go/install/install_darwin.go の 673、710、494 行付近を調べます。/usr/local/bin/keybase のチェックを追跡し、関係する nil 値を特定します。SIGSEGV を発生させずにインストールが完了すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description:

When installing Keybase using Homebrew on macOS, I encountered a segmentation fault (SIGSEGV) during the installation process, specifically while installing command-line tools. This appears to be caused by a nil pointer dereference in the Go code.


Steps to Reproduce:

  1. Run brew install keybase on macOS.
  2. Observe the panic during the installation process.

Expected behavior:

The installation should complete without errors.


Actual behavior:

The installation fails with a segmentation fault.


Environment:

  • macOS Version: Darwin Darwin Kernel Version 24.0.0 arm64
  • Homebrew Version: Homebrew 4.4.2
  • Keybase Version: 6.5.0

Error Logs:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x28 pc=0x1016a4484]

goroutine 1 [running]:
github.com/keybase/client/go/install.installCommandLineForBinPath({0x14000470640, 0x3c}, {0x140001be810, 0x16}, 0x1, {0x12a2203e0, 0x14000405d40})
    /Users/test/go/src/github.com/keybase/client/go/install/install_darwin.go:710 +0x74
github.com/keybase/client/go/install.installCommandLine({0x101a182a5?, 0x3?}, {0x0?, 0x14000762cd0?}, 0x1, {0x12a2203e0, 0x14000405d40})
    /Users/test/go/src/github.com/keybase/client/go/install/install_darwin.go:673 +0x13c
github.com/keybase/client/go/install.Install({0x10248e418, 0x140003cb608}, {0x0, 0x0}, {0x0, 0x0}, {0x1400046a5f0, 0x5, 0x5}, 0x1, ...)
    /Users/test/go/src/github.com/keybase/client/go/install/install_darwin.go:494 +0x138
github.com/keybase/client/go/install.InstallAuto({0x10248e418, 0x140003cb608}, {0x0, 0x0}, {0x0, 0x0}, 0x28fa6ae00, {0x12a2203e0, 0x14000405d40})
    /Users/test/go/src/github.com/keybase/client/go/install/install_darwin.go:441 +0x1fc
github.com/keybase/client/go/client.(*cmdInstallAuto).Run(0x1400067e440)
    /Users/test/go/src/github.com/keybase/client/go/client/cmd_install_osx.go:361 +0x74
main.mainInner(0x140003cb608, {0x0, 0x0, 0x0})
    /Users/test/go/src/github.com/keybase/client/go/keybase/main.go:247 +0xb38
main.main()
    /Users/test/go/src/github.com/keybase/client/go/keybase/main.go:70 +0x84

Additional Context:

The installation process seems to fail while checking /usr/local/bin/keybase. It appears related to the Go code at this point:

/Users/test/go/src/github.com/keybase/client/go/install/install_darwin.go:710
主要言語
言語のデータがありません
スター
899
フォーク
40
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

keybase/keybase-issues のほかの issue

keybase/keybase-issues の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。