Bug 1659209

Summary: golang internal testcases from misc/cgo/testshared fail on aarch64
Product: Red Hat Enterprise Linux 8 Reporter: Edjunior Barbosa Machado <emachado>
Component: go-toolsetAssignee: Derek Parker <deparker>
Status: CLOSED DUPLICATE QA Contact: Edjunior Barbosa Machado <emachado>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: mnewsome, tstellar
Target Milestone: rc   
Target Release: 8.0   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-18 09:01:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
golang-1.11.2-1.module+el8+2368+e260b36a internal testsuite output on aarch64 none

Description Edjunior Barbosa Machado 2018-12-13 19:56:03 UTC
Created attachment 1514181 [details]
golang-1.11.2-1.module+el8+2368+e260b36a internal testsuite output on aarch64

Description of problem:
Some testcases from golang internal testsuite are failing on RHEL-8 aarch64:

(...)
##### ../misc/cgo/testshared
# go tool dist test -run=^testshared$
go test -short -count=1 -tags= -run= -timeout=1h40m0s
--- FAIL: TestTrivialExecutable (4.65s)
    shared_test.go:41: executing ./bin/trivial (trivial executable) failed signal: segmentation fault (core dumped):
--- FAIL: TestDivisionExecutable (1.12s)
    shared_test.go:41: executing ./bin/division (division executable) failed signal: segmentation fault (core dumped):
--- FAIL: TestCgoExecutable (1.97s)
    shared_test.go:41: executing ./bin/execgo (cgo executable) failed signal: segmentation fault (core dumped):
--- FAIL: TestGopathShlib (4.91s)
    shared_test.go:41: executing ./bin/exe (executable linked to GOPATH library) failed signal: segmentation fault (core dumped):
--- FAIL: TestTwoGopathShlibs (4.39s)
    shared_test.go:41: executing ./bin/exe2 (executable linked to GOPATH library) failed signal: segmentation fault (core dumped):
--- FAIL: TestThreeGopathShlibs (6.38s)
    shared_test.go:41: executing ./bin/exe3 (executable linked to GOPATH library) failed signal: segmentation fault (core dumped):
--- FAIL: TestABIChecking (4.05s)
    shared_test.go:861: exe failed, but without line "abi mismatch detected between the executable and libdepBase.so"; got output:
--- FAIL: TestImplicitInclusion (2.10s)
    shared_test.go:41: executing ./bin/implicitcmd (running executable linked against library that contains same package as it) failed signal: segmentation fault (core dumped):
--- FAIL: TestInterface (2.62s)
    shared_test.go:41: executing ./bin/iface (running type/itab uniqueness tester) failed signal: segmentation fault (core dumped):
--- FAIL: TestGlobal (1.99s)
    shared_test.go:41: executing ./bin/global (global executable) failed signal: segmentation fault (core dumped):
2018/12/13 10:45:08 executing go test -installsuffix=5577006791947779410 -linkshared -test.short sync/atomic failed exit status 1:
signal: segmentation fault (core dumped)
FAIL	sync/atomic	0.607s
exit status 1
FAIL	_/usr/lib/golang/misc/cgo/testshared	53.517s
2018/12/13 10:45:08 Failed: exit status 1
(...)

These failures are not reproducible on other RHEL-8 supported architectures.
Moreover, the same testcases were running successfully on previous golang-1.10.3-18.module+el8+2240+384d32ea.

Version-Release number of selected component (if applicable):
golang-1.11.2-1.module+el8+2368+e260b36a.aarch64
RHEL-8.0-20181204.0

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