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

Đang mở
#4,280 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
go, macos

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi với brew install keybase trên macOS, sau đó kiểm tra go/install/install_darwin.go quanh các dòng 673, 710 và 494 bằng stack trace được cung cấp. Theo dõi bước kiểm tra /usr/local/bin/keybase và xác định giá trị nil liên quan. Được xem là hoàn tất khi quá trình cài đặt hoàn thành mà không có SIGSEGV.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
899
Fork
40
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của keybase/keybase-issues

Tất cả issue của keybase/keybase-issues

Issue tương tự

Thêm issue về DevTools

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.