Description of problem: SIGABRT running the tests, during misc/cgo/test, when doing a mock build of golang (this does not happen for f19, f20, el6 or el7) Version-Release number of selected component (if applicable): golang-1.2.1-3 Mock Version: 1.1.36 How reproducible: consistent Steps to Reproduce: 1. fedpkg mockbuild or build on koji for rawhide 2. 3. Actual results: testing/iotest [no test files] ok testing/quick 0.024s ok text/scanner 0.018s ok text/tabwriter 0.004s ok text/template 0.027s ok text/template/parse 0.016s ok time 2.394s ok unicode 0.009s ok unicode/utf16 0.004s ok unicode/utf8 0.005s ? unsafe [no test files] real 0m58.752s user 1m35.272s sys 0m21.180s # GOMAXPROCS=2 runtime -cpu=1,2,4 ok runtime 47.346s # sync -cpu=10 ok sync 0.033s # Testing race detector. ok runtime/race 1.477s ok flag 1.009s # ../misc/cgo/stdio # ../misc/cgo/life # ../misc/cgo/test SIGABRT: abort PC=0x7fa07adc2bd7 runtime.notetsleepg(0x9ca040, 0xffffffffffffffff) /usr/lib/golang/src/pkg/runtime/lock_futex.c:190 +0x46 fp=0x7fa07b8e1f48 runtime.signal_recv(0x0) /usr/lib/golang/src/pkg/runtime/sigqueue.goc:110 +0xe2 fp=0x7fa07b8e1f70 os/signal.loop() /usr/lib/golang/src/pkg/os/signal/signal_unix.go:21 +0x1e fp=0x7fa07b8e1fa0 runtime.goexit() /usr/lib/golang/src/pkg/runtime/proc.c:1394 fp=0x7fa07b8e1fa8 created by os/signal.init·1 /usr/lib/golang/src/pkg/os/signal/signal_unix.go:27 +0x31 goroutine 1 [chan receive]: testing.RunTests(0x5ffda8, 0x9bbd40, 0x29, 0x29, 0x1) /usr/lib/golang/src/pkg/testing/testing.go:472 +0x8d5 testing.Main(0x5ffda8, 0x9bbd40, 0x29, 0x29, 0x9b57b0, ...) /usr/lib/golang/src/pkg/testing/testing.go:403 +0x84 main.main() _/builddir/build/BUILD/go/misc/cgo/test/_test/_testmain.go:129 +0x9c goroutine 4 [syscall]: runtime.goexit() /usr/lib/golang/src/pkg/runtime/proc.c:1394 goroutine 5 [syscall]: _/builddir/build/BUILD/go/misc/cgo/test._Cfunc_usleep(0x7fa000002710, 0x424339) _/builddir/build/BUILD/go/misc/cgo/test/_test/_cgo_defun.c:778 +0x31 created by _/builddir/build/BUILD/go/misc/cgo/test.lockOSThreadCallback /builddir/build/BUILD/go/misc/cgo/test/issue3775.go:35 +0x36 goroutine 6 [select]: _/builddir/build/BUILD/go/misc/cgo/test.testSetgid(0xc21006e000) /builddir/build/BUILD/go/misc/cgo/test/setgid_linux.go:27 +0x1ce _/builddir/build/BUILD/go/misc/cgo/test.TestSetgid(0xc21006e000) /builddir/build/BUILD/go/misc/cgo/test/cgo_linux_test.go:9 +0x27 testing.tRunner(0xc21006e000, 0x9bbd40) /usr/lib/golang/src/pkg/testing/testing.go:391 +0x8b created by testing.RunTests /usr/lib/golang/src/pkg/testing/testing.go:471 +0x8b2 goroutine 7 [syscall]: _/builddir/build/BUILD/go/misc/cgo/test._Cfunc_setgid(0x0, 0x0) _/builddir/build/BUILD/go/misc/cgo/test/_test/_cgo_defun.c:643 +0x31 _/builddir/build/BUILD/go/misc/cgo/test.func·014() /builddir/build/BUILD/go/misc/cgo/test/setgid_linux.go:24 +0x2e created by _/builddir/build/BUILD/go/misc/cgo/test.testSetgid /builddir/build/BUILD/go/misc/cgo/test/setgid_linux.go:26 +0x7f rax 0x0 rbx 0x7fa07b8e1e80 rcx 0xffffffffffffffff rdx 0x6 rdi 0x5c84 rsi 0x5c87 rbp 0xc21002a000 rsp 0x7fa07b8e18f8 r8 0x0 r9 0x0 r10 0x8 r11 0x206 r12 0x7fa07a48acf0 r13 0x0 r14 0x7fa079c8a700 r15 0x7fa079c8a9c0 rip 0x7fa07adc2bd7 rflags 0x206 cs 0x33 fs 0x0 gs 0x0 exit status 2 FAIL _/builddir/build/BUILD/go/misc/cgo/test 0.004s RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Voyady (%check) bogus date in %changelog: Thu Apr 09 2014 Vincent Batts <vbatts> 1.2.1-4 Bad exit status from /var/tmp/rpm-tmp.Voyady (%check) Child return code was: 1 EXCEPTION: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/golang.spec'] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 376, in do raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/golang.spec'] LEAVE do --> EXCEPTION RAISED Expected results: successful test "ok" Additional info:
These lines ``` cd ../misc/cgo/test go test -ldflags '-linkmode=internal' ```
Created attachment 890098 [details] mockbuild output, and gdb backtrace
tracked back to a recent patch in glibc https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=13f7fe35ae2b0ea55dc4b9628763aafdc8bdc30c Discussion happening here https://groups.google.com/d/msg/Golang-nuts/A8dx5L1tg_s/c3xAUDt6TDUJ
https://sourceware.org/ml/libc-alpha/2014-04/msg00569.html fweimer has posted a patch to fix this in glibc
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.