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

Closed
bcmills opened this issue Nov 11, 2019 · 5 comments
Closed
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@bcmills
Copy link
Contributor

bcmills commented Nov 11, 2019

#!watchflakes
post <- pkg == "cmd/link/internal/ld" && test == "TestDynSymShInfo" && `index out of range`

2019-11-11T12:40:04-f07059d/darwin-amd64-10_11

--- 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]:
        cmd/internal/dwarf.HasChildren(...)
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/internal/dwarf/dwarf.go:1039
        cmd/link/internal/ld.reversetree(0xc001f2dfc0)
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/dwarf.go:320 +0xdd
        cmd/link/internal/ld.reversetree(0x1471db0)
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/dwarf.go:321 +0xb9
        cmd/link/internal/ld.dwarfGenerateDebugSyms(0xc000586000)
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/internal/ld/dwarf.go:1826 +0x34c
        cmd/link/internal/ld.(*Link).dodata(0xc000586000)
        	/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
        main.main()
        	/private/var/folders/dx/k53rs1s93538b4x20g46cj_w0000gn/T/workdir-host-darwin-10_11/go/src/cmd/link/main.go:65 +0x1bc
FAIL
FAIL	cmd/link/internal/ld	4.921s

CC @thanm @cherrymui @jeremyfaller

@bcmills bcmills added OS-Darwin NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Nov 11, 2019
@bcmills bcmills added this to the Backlog milestone Nov 11, 2019
@thanm thanm self-assigned this Nov 11, 2019
@thanm
Copy link
Contributor

thanm commented Nov 11, 2019

Interesting; I'll take an initial look.

@bcmills
Copy link
Contributor Author

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.)

@thanm
Copy link
Contributor

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-on-gomote.sh
=== 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 https://build.golang.org/log/cc20f26a35ae6a2d9295873b36aa5395cf9dce87 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.

@thanm
Copy link
Contributor

thanm commented Nov 11, 2019

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

@rsc rsc unassigned thanm Jun 23, 2022
@bcmills bcmills added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. compiler/runtime Issues related to the Go compiler and/or runtime. labels Apr 6, 2023
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
Archived in project
Development

No branches or pull requests

3 participants