-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: TestNoteReading fails on dragonfly #13364
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
Comments
It started failing on the dragonfly builder at an unrelated commit (one that changed the wording in a few comments in the compiler). Created golang#13364 to track this. Change-Id: I462880bed8ff565a9950e7e185de97d43999c5e2 Reviewed-on: https://go-review.googlesource.com/17143 Reviewed-by: Russ Cox <[email protected]>
CL https://golang.org/cl/17144 mentions this issue. |
It started failing on the dragonfly builder at an unrelated commit (one that changed the wording in a few comments in the compiler). Created #13364 to track this. Change-Id: I462880bed8ff565a9950e7e185de97d43999c5e2 Reviewed-on: https://go-review.googlesource.com/17143 Reviewed-by: Russ Cox <[email protected]> Reviewed-on: https://go-review.googlesource.com/17144
Works on my machine.
|
When we had bug #13146 I used retrybuilds to redo several of the most recent builds. Each one failed with this build ID issue. The place where this error first starts is the oldest version where I retried the build, not the commit where it was first could happen. The machine where this testing is done is running DragonFly-master, and was updated at the time the fix for bug #13146 was applied, which brought in gold as the default linker. Running the same test as @kaey fails on the build machine. Setting LDVER=ld.bfd, which sets the default linker back to ld and re-running the test succeeds. So, each of those failed tests is running with gold as the default linker, and that's the cause for the failure rather than an individual commit. The readelf output between the old linker and the gold linker on a super-basic hello.c program on DragonFly is almost exactly the same, except the gold linker also outputs this:
I thought it might be similar to #12178 but the offset only puts it past the first 512 bytes, and I think anywhere in the first 16K is OK - unless the gold output is the issue. I am not familiar with this. Running Gives identical results with ld or gold :
|
Can you post a copy of the hellotest.exe you generated with gold somewhere? On Tue, Nov 24, 2015 at 10:20 PM, Justin Sherrill [email protected]
|
http://shiningsilence.com/go-gold/ Minimal program in hello.go, compiled with 'go build -ldflags -buildid=TestNoteReading-Build-ID -o hellotest-[gold|ld].exe hello.go', and resulting binaries are done with gold and with old ld, appropriately named. |
At the link http://shiningsilence.com/go-gold/ the files hellotest-gold.exe and hellotest-ld.exe are identical. |
Looking at the error output when running the test:
Is it perhaps the linkmode=external that's killing it? That was not in the identical test versions |
@fupjack Did you see my note that on the link you provided, the two hellotest executables are identical? They are both from GNU ld. You didn't provide the one linked by gold. |
@fupjack We want to the test to pass using external linking. The test builds the binary twice, once with default linking and once with external linking. |
Fixed - different binaries in place at http://shiningsilence.com/go-gold/ - I made sure this time.
|
Thanks. The problem is that the note reading code fails to handle multiple notes in a single PT_NOTE segment. I'll send a CL. |
CL https://golang.org/cl/17331 mentions this issue. |
TestNoteReading fails on the dragonfly builder. It may actually be fine on dragonfly.
The builder started failing this test in an unrelated commit tweaking comments in the compiler source code.
Disabling the test so that maybe the builder can still be useful for finding other problems on dragonfly.
Milestone=Unplanned because dragonfly is not a first-tier system.
The dragonfly maintainers can fix this if they like.
The text was updated successfully, but these errors were encountered: