Bug 1086900 - SIGABRT during test case of misc/cgo/test, inside mock
Summary: SIGABRT during test case of misc/cgo/test, inside mock
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: golang
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Vincent Batts
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-11 19:22 UTC by Vincent Batts
Modified: 2016-07-19 11:20 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-19 11:20:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
mockbuild output, and gdb backtrace (958.89 KB, text/x-log)
2014-04-26 16:56 UTC, Vincent Batts
no flags Details

Description Vincent Batts 2014-04-11 19:22:54 UTC
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:

Comment 1 Vincent Batts 2014-04-26 16:53:11 UTC
These lines
```
cd ../misc/cgo/test
go test -ldflags '-linkmode=internal'
```

Comment 2 Vincent Batts 2014-04-26 16:56:26 UTC
Created attachment 890098 [details]
mockbuild output, and gdb backtrace

Comment 4 Vincent Batts 2014-04-28 17:34:27 UTC
https://sourceware.org/ml/libc-alpha/2014-04/msg00569.html
fweimer has posted a patch to fix this in glibc

Comment 5 Jaroslav Reznik 2015-03-03 17:00:20 UTC
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

Comment 6 Fedora End Of Life 2016-07-19 11:20:50 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.