Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/golang-github-sasha-s-go-deadlock.spec'], chrootPath='/var/lib/mock/f30-build-15101123-1075393/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/golang-github-sasha-s-go-deadlock.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False BUILDSTDERR: warning: -u use in %forgemeta is deprecated, use -z instead to select a separate set of rpm variables! Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/golang-github-sasha-s-go-deadlock.spec'], chrootPath='/var/lib/mock/f30-build-15101123-1075393/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/golang-github-sasha-s-go-deadlock.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False BUILDSTDERR: warning: -u use in %forgemeta is deprecated, use -z instead to select a separate set of rpm variables! Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YZn9Wd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + /usr/bin/gzip -dc /builddir/build/SOURCES/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.UXvsUg + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + go-rpm-integration install -i github.com/sasha-s/go-deadlock -o devel.file-list -p /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm -g /usr/share/gocode -b /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build -c d68e2bc52ae3291765881b9056f2c1527f245f1e -r '.*example.*' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src' Installing: github.com/sasha-s/go-deadlock install: creating directory '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build' install: creating directory '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src' install: creating directory '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com' install: creating directory '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s' '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock' -> '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com/sasha-s' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock' '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/Readme.md' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/Readme.md' '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/deadlock.go' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/deadlock.go' '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/deadlock_test.go' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/deadlock_test.go' '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/stacktraces.go' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/stacktraces.go' '/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/.goipath' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/.goipath' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.8mHyKq + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + PATH=/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + go-rpm-integration check -i github.com/sasha-s/go-deadlock -p /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm -g /usr/share/gocode -b /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build -r '.*example.*' Testing: github.com/sasha-s/go-deadlock Testing: "/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock" + GOPATH=/builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build:/usr/share/gocode + go test -buildmode pie -compiler gc -ldflags '-extldflags '\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\''' POTENTIAL DEADLOCK: Inconsistent locking. saw this ordering in one goroutine: happened before deadlock_test.go:75 go-deadlock.TestLockOrder.func2 { a.Lock() } <<<<< happened after deadlock_test.go:76 go-deadlock.TestLockOrder.func2 { b.Lock() } <<<<< in another goroutine: happened before deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< happened after deadlock_test.go:85 go-deadlock.TestLockOrder.func3 { a.RLock() } <<<<< Other goroutines holding locks: goroutine 358 lock 0x293e028 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 359 lock 0x293e0f8 deadlock_test.go:104 go-deadlock.TestHardDeadlock { mu.Lock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 361 lock 0x293e0f8 deadlock_test.go:108 go-deadlock.TestHardDeadlock.func2 { mu.Lock() } <<<<< Here is what goroutine 359 doing now goroutine 359 [select]: github.com/sasha-s/go-deadlock.TestHardDeadlock(0x29440a0) /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x198 testing.tRunner(0x29440a0, 0x5f5094) /usr/lib/golang/src/testing/testing.go:862 +0xb0 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:913 +0x2f0 2019/02/01 15:06:14 **************** POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 89 lock 0x28ae0a0 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 91 lock 0x28ae0a0 deadlock_test.go:134 go-deadlock.TestRWMutex.func2 { a.Lock() } <<<<< Here is what goroutine 89 doing now goroutine 89 [sleep]: runtime.goparkunlock(...) /usr/lib/golang/src/runtime/proc.go:307 time.Sleep(0x5f5e100, 0x0) /usr/lib/golang/src/runtime/time.go:105 +0x178 github.com/sasha-s/go-deadlock.TestRWMutex(0x28a8140) /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x104 testing.tRunner(0x28a8140, 0x5f50c4) /usr/lib/golang/src/testing/testing.go:862 +0xb0 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:913 +0x2f0 POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 89 lock 0x28ae0a0 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 93 lock 0x28ae0a0 deadlock_test.go:142 go-deadlock.TestRWMutex.func3 { a.RLock() } <<<<< Here is what goroutine 89 doing now goroutine 89 [select]: github.com/sasha-s/go-deadlock.TestRWMutex(0x28a8140) /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x1bc testing.tRunner(0x28a8140, 0x5f50c4) /usr/lib/golang/src/testing/testing.go:862 +0xb0 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:913 +0x2f0 POTENTIAL DEADLOCK: Recursive locking: current goroutine 96 lock 0x28ae0c0 deadlock_test.go:175 go-deadlock.TestLockDuplicate.func2 { a.Lock() } <<<<< Previous place where the lock was grabbed (same goroutine) deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< POTENTIAL DEADLOCK: Recursive locking: current goroutine 97 lock 0x287e108 deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< Previous place where the lock was grabbed (same goroutine) deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< Other goroutines holding locks: goroutine 96 lock 0x28ae0c0 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< PASS ok github.com/sasha-s/go-deadlock 2.045s + exit 0 Processing files: golang-github-sasha-s-go-deadlock-devel-0.2.0-9.20180822gitd68e2bc.fc30.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.xQKfGs + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + DOCDIR=/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/doc/golang-github-sasha-s-go-deadlock-devel + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/doc/golang-github-sasha-s-go-deadlock-devel + cp -pr Readme.md /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/doc/golang-github-sasha-s-go-deadlock-devel + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.UodECw + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + LICENSEDIR=/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/licenses/golang-github-sasha-s-go-deadlock-devel + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/licenses/golang-github-sasha-s-go-deadlock-devel + cp -pr LICENSE /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm/usr/share/licenses/golang-github-sasha-s-go-deadlock-devel + exit 0 Provides: golang(github.com/sasha-s/go-deadlock) = 0.2.0-9.20180822gitd68e2bc.fc30 golang(github.com/sasha-s/go-deadlock)(commit=d68e2bc52ae3291765881b9056f2c1527f245f1e) = 0.2.0-9.20180822gitd68e2bc.fc30 golang-github-sasha-s-go-deadlock-devel = 0.2.0-9.20180822gitd68e2bc.fc30 golang-ipath(github.com/sasha-s/go-deadlock) = 0.2.0-9.20180822gitd68e2bc.fc30 golang-ipath(github.com/sasha-s/go-deadlock)(commit=d68e2bc52ae3291765881b9056f2c1527f245f1e) = 0.2.0-9.20180822gitd68e2bc.fc30 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: golang(github.com/petermattis/goid) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm Wrote: /builddir/build/RPMS/golang-github-sasha-s-go-deadlock-devel-0.2.0-9.20180822gitd68e2bc.fc30.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.tRXQeC + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + /usr/bin/rm -rf /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-9.20180822gitd68e2bc.fc30.arm + exit 0 Child return code was: 0