Bug 2079067

Summary: 'go tool dist test' failures on rhel-7.9 ppc64le
Product: DevTools Reporter: Edjunior Barbosa Machado <emachado>
Component: golangAssignee: David Benoit <dbenoit>
Status: NEW --- QA Contact: Edjunior Barbosa Machado <emachado>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2022.4CC: asm, dbenoit, emachado, sipoyare, tstellar
Target Milestone: rcKeywords: Triaged
Target Release: 2019.3Flags: pm-rhel: mirror+
Hardware: ppc64le   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2076495 Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2076495, 2098211    
Bug Blocks:    

Description Edjunior Barbosa Machado 2022-04-26 20:12:25 UTC
Also reproducible with go-toolset-1.18-golang-1.18.0-2.el7_9 on RHEL-7.9-updates-20220329.0.

+++ This bug was initially created as a clone of Bug #2076495 +++

Description of problem:
Some failures occur on ppc64le when executing 'go tool dist test' on rhel-8.7:

[root@ibm-p8-kvm-03-guest-02 ~]# GO_TEST_TIMEOUT_SCALE=20 GOCACHE=off go tool dist test -rebuild -v -v -v -k
(...)
run: go list -gcflags=all= -ldflags=all= -f={{if .Stale}}	STALE {{.ImportPath}}: {{.StaleReason}}{{end}} std DONE
go test -short=true -count=1 -run= -buildmode=pie -tags=no_openssl
fork/exec /tmp/go-build1780314525/b001/nocgo.test: no such file or directory
FAIL	misc/cgo/nocgo	0.001s
2022/04/18 17:58:24 Failed: exit status 1
(...)
##### ../misc/cgo/testshared
# go tool dist test -run=^testshared$
go test -short=true -count=1 -tags= -run= -timeout=3h20m0s .
--- FAIL: TestTrivialPIE (0.16s)
    shared_test.go:51: executing ./trivial_pie (trivial_pie) failed fork/exec ./trivial_pie: no such file or directory:
FAIL
FAIL	misc/cgo/testshared	61.546s
FAIL
2022/04/18 17:59:32 Failed: exit status 1
(...)

The failures were not reproducible on previous golang-1.17.7-1.module+el8.6.0+14297+32a15e19 on rhel-8.6.

This is similar to bug #2014704 found on rhel-8.6 x86_64, already solved on golang-1.17.2-2.module+el8.6.0+13072+44fdffd1.

Version-Release number of selected component (if applicable):
go-toolset:rhel8:8070020220414195051:347cc21f
golang-1.18.0-1.module+el8.7.0+14844+3c99e33e.ppc64le
RHEL-8.7.0-20220418.0

Steps to Reproduce:
1. go tool dist test -rebuild -v -v -v -k

--- Additional comment from Edjunior Barbosa Machado on 2022-04-22 09:54:38 UTC ---

Also reproducible with latest golang-1.18.0-2.module+el8.7.0+14880+f5e30240.ppc64le (go-toolset:rhel8:8070020220419133936:347cc21f).