-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests fail on CentOS 6.9 (binutils is 2.20 where addr2line does not support -a flag) #338
Comments
ok cmd/pack 2.860s
FAIL |
The only way to work around this problem (On CentOS 6) is to:
And then build and run the tests for pprof |
@nehaljwani what is your version of GCC ? i will try in xubuntu18.10 |
@bsed The problem is not with the version of GCC, but with the version of binutils which provides the command: |
kelvin@~$ sudo apt install binutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
binutils is already the newest version (2.30-20ubuntu2~18.04).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. |
kelvin@src$ ./all.bash Testing packages.ok archive/tar 0.119s
FAIL |
I'm able to reproduce the TestObjFile failure on a Centos 6 GCE instance. |
@nolanmar511 thank you! ^.^ |
xubuntu |
xref: golang/go#23888
What version of pprof are you using?
a74ae6f
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:
Why do these tests fail?
The code at
pprof/internal/binutils/addr2liner.go
Line 92 in a74ae6f
-a
flag is available to the binaryaddr2line
, which is available if the binutils version is >=2.21 ; but the latest version available on CentOS 6.9 is 2.20The text was updated successfully, but these errors were encountered: