"go test ./..." fails when llvm-symbolizer is not available (even if llvm-symbolizer-14 is there)
Maintainer thường phản hồi trong vòng 1 ngày
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
- 42/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Chạy go test ./... và bắt đầu với binutils_test.go, đặc biệt là TestObjFile và assertion bị lỗi ở dòng 379. Theo dõi cách các bài kiểm thử tìm llvm-symbolizer; hoàn tất khi bộ kiểm thử mặc định vẫn đạt khi nó không tồn tại hoặc chỉ có bản kèm số phiên bản, trong khi CI vẫn có thể buộc kiểm thử các dòng bắt đầu hàm.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
#891 added support for populating function start lines using llvm-symbolizer data. One caveat is that if llvm-symbolizer is not available, the default go test ./... run fails with the error below. In fact, even if llvm-symbolizer is available in its versioned form, such as llvm-symbolizer-14, the test run still fails with the same error.
The workaround right now is to install llvm-symbolizer and then run a command like sudo update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-14 100. This command makes the symbolizer available as llvm-symbolizer, which enables pprof to locate it.
Maybe we should make the test skipped if llvm-symbolizer is not available, but also have an option (a flag or environment variable) to disable that skippage so that we set that option in our CI to ensure we forcefully test the start function numbers.
$ go test ./...
? github.com/google/pprof [no test files]
? github.com/google/pprof/driver [no test files]
ok github.com/google/pprof/fuzz 0.034s
? github.com/google/pprof/internal/plugin [no test files]
? github.com/google/pprof/internal/proftest [no test files]
? github.com/google/pprof/internal/transport [no test files]
? github.com/google/pprof/third_party/svgpan [no test files]
--- FAIL: TestObjFile (1.77s)
--- FAIL: TestObjFile/fixed_load_address (1.65s)
binutils_test.go:379: SourceLine for main: got [{main /tmp/hello.c 3 0 0}]; want [{main /tmp/hello.c 3 0 3}]
--- FAIL: TestObjFile/simulated_ASLR_address (0.12s)
binutils_test.go:379: SourceLine for main: got [{main /tmp/hello.c 3 0 0}]; want [{main /tmp/hello.c 3 0 3}]
FAIL
FAIL github.com/google/pprof/internal/binutils 1.867s
ok github.com/google/pprof/internal/driver 1.728s
ok github.com/google/pprof/internal/elfexec 0.092s
ok github.com/google/pprof/internal/graph 0.125s
ok github.com/google/pprof/internal/measurement 0.125s
ok github.com/google/pprof/internal/report 0.921s
ok github.com/google/pprof/internal/symbolizer 0.097s
ok github.com/google/pprof/internal/symbolz 0.071s
ok github.com/google/pprof/profile 0.114s
FAIL
- Ngôn ngữ chính
- Go
- Star
- 9.3k
- Fork
- 683
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/pprof
-
Make comments more discoverable in the web UICó thể đã có người làm @jabrailkhalil đã nhận 24 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
google/pprof#1029 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
google/pprof#1020 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pprof cannot locate source code for the list command in common Go setupsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
google/pprof#1009 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Label with zero int64 value and no unit get dropped during decodingCó thể đã có người làm @ms-hujia đã nhận 130 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
google/pprof#1002 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
google/pprof#992 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Project submission:Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slavakurilyak/awesome-ai-agents#845 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
[BUG] deploy.restart_policy without condition drops the restart policyCó thể đã có người làm @akshat-lakhera đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
docker/compose#14383 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Azure/azure-storage-fuse#2429 ·
Maintainer thường phản hồi trong vòng 1 ngày