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

all: failures on aix with ld returned 12 exit status #59609

Open
gopherbot opened this issue Apr 13, 2023 · 7 comments
Open

all: failures on aix with ld returned 12 exit status #59609

gopherbot opened this issue Apr 13, 2023 · 7 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-AIX
Milestone

Comments

@gopherbot
Copy link

gopherbot commented Apr 13, 2023

#!watchflakes
post <- goos == "aix" && log ~ `ld returned 12 exit status`

Issue created automatically to collect these failures.

Example (log):

--- FAIL: TestDisasmExtld (0.87s)
    objdump_test.go:159: Running [/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/bin/go build -o /ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/TestDisasmExtld1998086750/001/hello-3da08facc82f2a8311a3360fd6024b47779b9e94b1e5cec8cd839c0e71b5402a.exe -ldflags=-linkmode=external fmthello.go]
    objdump_test.go:162: go build fmthello.go: exit status 1
        # command-line-arguments
        /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/pkg/tool/aix_ppc64/link: [gcc] -Wl,-V failed: exit status 1
        /usr/bin/ld: LD 7.2.2(5/18/17)
        ld: 0711-999 SEVERE ERROR: Unexpected system call error.
        	ld:open() No such file or directory
        ld: 0711-996 Error occurred while processing file: a.out
        collect2: error: ld returned 12 exit status

watchflakes

@gopherbot gopherbot added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 13, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- pkg == "cmd/objdump" && test == "TestDisasmExtld"
2023-04-13 15:59 aix-ppc64 go@1312d9e6 cmd/objdump.TestDisasmExtld (log)
--- FAIL: TestDisasmExtld (0.87s)
    objdump_test.go:159: Running [/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/bin/go build -o /ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/TestDisasmExtld1998086750/001/hello-3da08facc82f2a8311a3360fd6024b47779b9e94b1e5cec8cd839c0e71b5402a.exe -ldflags=-linkmode=external fmthello.go]
    objdump_test.go:162: go build fmthello.go: exit status 1
        # command-line-arguments
        /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/pkg/tool/aix_ppc64/link: [gcc] -Wl,-V failed: exit status 1
        /usr/bin/ld: LD 7.2.2(5/18/17)
        ld: 0711-999 SEVERE ERROR: Unexpected system call error.
        	ld:open() No such file or directory
        ld: 0711-996 Error occurred while processing file: a.out
        collect2: error: ld returned 12 exit status

watchflakes

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Apr 13, 2023
@bcmills
Copy link
Contributor

bcmills commented Apr 13, 2023

(attn @golang/aix)

@mknyszek
Copy link
Contributor

In triage, this looks AIX-specific to us in that it's the system linker failing to open a file. It might be our fault the file's not there, but it's unclear. It could also be a builder issue, possibly.

@mknyszek mknyszek added this to the Backlog milestone Apr 19, 2023
@bcmills bcmills added the OS-AIX label Apr 19, 2023
@bcmills
Copy link
Contributor

bcmills commented Apr 19, 2023

FWIW, the C toolchain on the aix builder may be deficient in some other ways too; see #56896.

@bcmills bcmills changed the title cmd/objdump: TestDisasmExtld failures cmd/objdump: TestDisasmExtld failures on AIX Apr 19, 2023
@laboger
Copy link
Contributor

laboger commented May 8, 2023

Did this only fail once?

From what I found, exit status 12 means out of memory, so it is similar in that respect to the other AIX failures that have happened lately.

Some new tests or other changes to the compiler or runtime have probably caused binaries to be larger. Maybe they were close to the limit before and now go over in some circumstances.

@bcmills bcmills changed the title cmd/objdump: TestDisasmExtld failures on AIX all: failures on aix with SEVERE ERROR: Unexpected system call error. from /usr/bin/ld Sep 14, 2023
@bcmills bcmills changed the title all: failures on aix with SEVERE ERROR: Unexpected system call error. from /usr/bin/ld all: failures on aix with ld returned 12 exit status Sep 14, 2023
@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "aix" && log ~ `ld returned 12 exit status`
2023-09-06 19:37 aix-ppc64 go@729f214e cmd/objdump.TestDisasm (log)
--- FAIL: TestDisasm (2.14s)
    objdump_test.go:158: Running [/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/bin/go build -o /ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/TestDisasm269434924/001/hello-a66d8d744b25424bc2c9ddb6440241e9f6a102ff2316d83004d06ce982af9d91.exe fmthello.go]
    objdump_test.go:225: Running [/ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/go-build4000120902/b130/objdump.test -s main.main /ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/TestDisasm269434924/001/hello-a66d8d744b25424bc2c9ddb6440241e9f6a102ff2316d83004d06ce982af9d91.exe]
    objdump_test.go:158: Running [/ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/bin/go build -o /ramdisk8GB/workdir-host-aix-ppc64-osuosl/tmp/TestDisasm269434924/002/hello-5627cc5e84a1c75da7f05bc915abc6e990c36eb8ea49108adaebd89c6d829419.exe fmthellocgo.go]
    objdump_test.go:161: go build fmthellocgo.go: exit status 1
        # command-line-arguments
        /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/pkg/tool/aix_ppc64/link: [gcc] -Wl,-V failed: exit status 1
        /usr/bin/ld: LD 7.2.2(5/18/17)
        ld: 0711-999 SEVERE ERROR: Unexpected system call error.
        	ld:open() No such file or directory
        ld: 0711-996 Error occurred while processing file: a.out
        collect2: error: ld returned 12 exit status
2023-09-13 23:32 aix-ppc64 go@fccd0b9b cmd/cgo/internal/testcarchive.TestManyCalls (log)
--- FAIL: TestManyCalls (1.85s)
    carchive_test.go:1209: [go build -buildmode=c-archive -o libgo7.a ./libgo7]
        # testcarchive/libgo7
        /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/pkg/tool/aix_ppc64/link: [gcc] -Wl,-V failed: exit status 1
        /usr/bin/ld: LD 7.2.2(5/18/17)
        ld: 0711-999 SEVERE ERROR: Unexpected system call error.
        	ld:open() No such file or directory
        ld: 0711-996 Error occurred while processing file: a.out
        collect2: error: ld returned 12 exit status

    carchive_test.go:1211: exit status 1

watchflakes

@gopherbot
Copy link
Author

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "aix" && log ~ `ld returned 12 exit status`
2024-02-21 22:16 aix-ppc64 go@507d1b22 cmd/cgo/internal/testcarchive.TestPreemption (log)
--- FAIL: TestPreemption (2.45s)
    carchive_test.go:1272: [go build -buildmode=c-archive -o libgo8.a ./libgo8]
        # testcarchive/libgo8
        /ramdisk8GB/workdir-host-aix-ppc64-osuosl/go/pkg/tool/aix_ppc64/link: [gcc] -Wl,-V failed: exit status 1
        /usr/bin/ld: LD 7.2.2(5/18/17)
        ld: 0711-999 SEVERE ERROR: Unexpected system call error.
        	ld:open() No such file or directory
        ld: 0711-996 Error occurred while processing file: a.out
        collect2: error: ld returned 12 exit status

    carchive_test.go:1274: exit status 1

watchflakes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-AIX
Projects
Status: No status
Development

No branches or pull requests

4 participants