Tests fail on CentOS 6.9 (binutils is 2.20 where addr2line does not support -a flag)

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

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
centos, go, linux

Hướng nghiên cứu

Lỗi bắt nguồn từ internal/binutils/addr2liner.go quanh dòng 92, với các assertion được báo cáo trong binutils_test.go:252. Hãy bắt đầu bằng cách chạy các subtest của TestObjFile trên CentOS 6.9 với binutils 2.20 và kiểm tra cách addr2line được gọi. Công việc được xem là hoàn tất khi các test đều pass dù addr2line đã cài đặt không có flag -a.

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

Mô tả

Priority: p3 type: bug

xref: https://github.com/golang/go/issues/23888

What version of pprof are you using?

a74ae6fb3cd7047c79272e3ea0814b08154a2d3c

What operating system and processor architecture are you using?

CentOS 6.9, x86_64

What did you do?

Compiled go from source, tests failed, came to this repo, tried running the tests, was able to reproduce the exact same failure.

What did you expect to see?

It'd be great if the tests had passed!

What did you see instead?

The following tests failed:

--- FAIL: TestObjFile (0.02s)
    --- FAIL: TestObjFile/fake_mapping (0.01s)
        binutils_test.go:252: SourceLine: unexpected error write |1: broken pipe
    --- FAIL: TestObjFile/fixed_load_address (0.01s)
        binutils_test.go:252: SourceLine: unexpected error write |1: broken pipe
    --- FAIL: TestObjFile/simulated_ASLR_address (0.01s)
        binutils_test.go:252: SourceLine: unexpected error write |1: broken pipe
Why do these tests fail?

The code at https://github.com/google/pprof/blob/a74ae6fb3cd7047c79272e3ea0814b08154a2d3c/internal/binutils/addr2liner.go#L92 assumes that the -a flag is available to the binary addr2line, which is available if the binutils version is >=2.21 ; but the latest version available on CentOS 6.9 is 2.20

Ngôn ngữ chính
Go
Star
9.3k
Fork
687
Merge trung bình
4 ngày 17 giờ
Pull request đã merge (30 ngày)
14

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

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 google/pprof

Tất cả issue của google/pprof

Issue tương tự

Thêm issue về Go

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.