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

cmd/link/internal/ld: TestDynSymShInfo failure on darwin-amd64-10_11 builder #35497

bcmills opened this issue Nov 11, 2019 · 4 comments


Copy link

@bcmills bcmills commented Nov 11, 2019


--- FAIL: TestDynSymShInfo (0.58s)
    elf_test.go:45: [/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/bin/go build -o /var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/tmp/go-build-issue33358069072635/issue33358 /var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/tmp/go-build-issue33358069072635/issue33358.go]: exit status 2:
        # command-line-arguments
        panic: runtime error: index out of range [824666141056] with length 39
        goroutine 1 [running]:
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/dwarf.go:320 +0xdd
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/dwarf.go:321 +0xb9
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/dwarf.go:1826 +0x34c
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/data.go:1765 +0x343e
        cmd/link/internal/ld.Main(0x14672e0, 0x10, 0x20, 0x1, 0x7, 0x10, 0x12a0282, 0x1b, 0x129c552, 0x14, ...)
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/main.go:248 +0xcb7
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/main.go:65 +0x1bc
FAIL	cmd/link/internal/ld	4.921s

CC @thanm @cherrymui @jeremyfaller

@bcmills bcmills added this to the Backlog milestone Nov 11, 2019
@thanm thanm self-assigned this Nov 11, 2019
Copy link

@thanm thanm commented Nov 11, 2019

Interesting; I'll take an initial look.

Copy link
Member Author

@bcmills bcmills commented Nov 11, 2019

That version of macOS seems pretty flaky overall, so don't sink too much time into it if you have better things to do.

(Mostly I just wanted to have this filed should it recur.)

Copy link

@thanm thanm commented Nov 11, 2019

Something is out of whack here -- when I try to reproduce with a gomote I get:

$ gomote run user-thanm-darwin-amd64-10_11-0 /bin/bash
=== RUN   TestDynSymShInfo
=== PAUSE TestDynSymShInfo
=== CONT  TestDynSymShInfo
    TestDynSymShInfo: elf_test.go:55: The system may not support ELF, skipped.
--- SKIP: TestDynSymShInfo (0.46s)

This is a little misleading -- it's not skipping the test entirely, in that it does build and link a small test program, but then once it figures out the resulting binary is not an ELF, it then invokes test.Skip.

The failure in happens
before that point, however.

With that said, I ran it a couple of hundred times and didn't see any failures to link or crashes... which makes me think there is some flaky behavior going on.

Copy link

@thanm thanm commented Nov 11, 2019

@bcmills agree, it is probably a flake. Let's wait and see if it happens again...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.