Skip to content
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

TestMachoFiles failing on darwin/amd64 when gaddr2line is not installed #342

Closed
mvdan opened this issue Mar 23, 2018 · 5 comments
Closed

Comments

@mvdan
Copy link
Contributor

mvdan commented Mar 23, 2018

This took down the three darwin/amd64 builders, as one can see on https://build.golang.org/ (fixed by the vendor update revert).

https://build.golang.org/log/090018bcc232072f53ddc7750e24f42f52e79719
https://build.golang.org/log/1cbedd8b8b11d1baadcbfabcf8d8809ece5ab307
https://build.golang.org/log/81fd8501a182718b4e87ffd66d36d7e9c9034e6a

The actual failure:

--- FAIL: TestMachoFiles (0.12s)
    --- FAIL: TestMachoFiles/normal_mapping (0.10s)
    	binutils_test.go:316: SourceLine for main: got [{_main  0}]; want [{main /tmp/hello.c 3}]
    --- FAIL: TestMachoFiles/other_mapping (0.01s)
    	binutils_test.go:316: SourceLine for main: got [{_main  0}]; want [{main /tmp/hello.c 3}]
    --- FAIL: TestMachoFiles/lib_normal_mapping (0.01s)
    	binutils_test.go:316: SourceLine for main: got [{_bar  0}]; want [{bar /tmp/lib.c 5}]
FAIL
FAIL	cmd/vendor/github.com/google/pprof/internal/binutils	0.170s

The failures happened when we updated to the following commit: 20ceaca

Funnily enough, that commit enables the very test that is failing.

/cc @aalexand @nolanmar511 who authored and committed said commit.

@aalexand
Copy link
Collaborator

Most likely the builder environment doesn't have gaddr2line or llvm-symbolizer available in PATH.

@mvdan
Copy link
Contributor Author

mvdan commented Mar 23, 2018

I assume then that the test should be skipped if the tools aren't installed?

@mvdan
Copy link
Contributor Author

mvdan commented Apr 3, 2018

@aalexand any update on this issue? We'd like to update our vendored copy to import the other two flake issue fixes, but this failure is blocking us. We can always re-vendor and manually disable the test, but that's a bit suboptimal.

@aalexand
Copy link
Collaborator

aalexand commented Apr 4, 2018

#352 should fix it.

@aalexand aalexand changed the title TestMachoFiles failing on darwin/amd64 TestMachoFiles failing on darwin/amd64 when gaddr2line is not installed Apr 4, 2018
@mvdan
Copy link
Contributor Author

mvdan commented Apr 4, 2018

Awesome, thank you! Will update the vendored pprof now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants