Mock Version: 1.3.4 Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/golang-github-sasha-s-go-deadlock.spec'], chrootPath='/var/lib/mock/f30-build-14111728-1014077/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': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --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': 'en_US.UTF-8'} and shell False warning: -u use in %forgemeta is deprecated, use -z instead to select a separate set of rpm variables! Building target platforms: ppc64le Building for target ppc64le Wrote: /builddir/build/SRPMS/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/golang-github-sasha-s-go-deadlock.spec'], chrootPath='/var/lib/mock/f30-build-14111728-1014077/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': 'en_US.UTF-8'}shell=Falselogger=timeout=172800uid=1000gid=425user='mockbuild'nspawn_args=[]printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --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': 'en_US.UTF-8'} and shell False warning: -u use in %forgemeta is deprecated, use -z instead to select a separate set of rpm variables! Building target platforms: ppc64le Building for target ppc64le Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.e8sac6 + 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.CYLIpS + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le ++ dirname /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le + 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-8.20180822gitd68e2bc.fc30.ppc64le -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-8.20180822gitd68e2bc.fc30.ppc64le/usr' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le/usr/share' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le/usr/share/gocode' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/usr/share/gocode/src/github.com' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le/usr/share/gocode/src/github.com/sasha-s' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/usr/share/gocode/src/github.com/sasha-s/go-deadlock/.goipath' + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /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 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.DqUwLE + 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-8.20180822gitd68e2bc.fc30.ppc64le -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 345 lock 0xc00011a158 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 346 lock 0xc00011a278 deadlock_test.go:104 go-deadlock.TestHardDeadlock { mu.Lock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 335 lock 0xc00011a278 deadlock_test.go:108 go-deadlock.TestHardDeadlock.func2 { mu.Lock() } <<<<< Here is what goroutine 346 doing now goroutine 346 [select]: github.com/sasha-s/go-deadlock.TestHardDeadlock(0xc0001a2100) /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x1a8 testing.tRunner(0xc0001a2100, 0x112826680) /usr/lib/golang/src/testing/testing.go:827 +0xd4 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:878 +0x2f4 2018/10/24 18:25:35 **************** POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 321 lock 0xc0001ce060 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 355 lock 0xc0001ce060 deadlock_test.go:134 go-deadlock.TestRWMutex.func2 { a.Lock() } <<<<< Here is what goroutine 321 doing now goroutine 321 [sleep]: time.Sleep(0x5f5e100) /usr/lib/golang/src/runtime/time.go:105 +0x16c github.com/sasha-s/go-deadlock.TestRWMutex(0xc0001da000) /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x114 testing.tRunner(0xc0001da000, 0x1128266e0) /usr/lib/golang/src/testing/testing.go:827 +0xd4 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:878 +0x2f4 POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 321 lock 0xc0001ce060 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 357 lock 0xc0001ce060 deadlock_test.go:142 go-deadlock.TestRWMutex.func3 { a.RLock() } <<<<< Here is what goroutine 321 doing now goroutine 321 [select]: github.com/sasha-s/go-deadlock.TestRWMutex(0xc0001da000) /builddir/build/BUILD/go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x1d0 testing.tRunner(0xc0001da000, 0x1128266e0) /usr/lib/golang/src/testing/testing.go:827 +0xd4 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:878 +0x2f4 POTENTIAL DEADLOCK: Recursive locking: current goroutine 361 lock 0xc0000dc1b8 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 360 lock 0xc0001ce080 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< POTENTIAL DEADLOCK: Recursive locking: current goroutine 360 lock 0xc0001ce080 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() } <<<<< Other goroutines holding locks: goroutine 361 lock 0xc0000dc1b8 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< PASS ok github.com/sasha-s/go-deadlock 2.004s Processing files: golang-github-sasha-s-go-deadlock-devel-0.2.0-8.20180822gitd68e2bc.fc30.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.UhrVUv + exit 0 + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + DOCDIR=/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/usr/share/doc/golang-github-sasha-s-go-deadlock-devel + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.Lccz4m + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-d68e2bc52ae3291765881b9056f2c1527f245f1e + LICENSEDIR=/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/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-8.20180822gitd68e2bc.fc30.ppc64le/usr/share/licenses/golang-github-sasha-s-go-deadlock-devel + exit 0 Provides: golang(github.com/sasha-s/go-deadlock) = 0.2.0-8.20180822gitd68e2bc.fc30 golang(github.com/sasha-s/go-deadlock)(commit=d68e2bc52ae3291765881b9056f2c1527f245f1e) = 0.2.0-8.20180822gitd68e2bc.fc30 golang-github-sasha-s-go-deadlock-devel = 0.2.0-8.20180822gitd68e2bc.fc30 golang-ipath(github.com/sasha-s/go-deadlock) = 0.2.0-8.20180822gitd68e2bc.fc30 golang-ipath(github.com/sasha-s/go-deadlock)(commit=d68e2bc52ae3291765881b9056f2c1527f245f1e) = 0.2.0-8.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-8.20180822gitd68e2bc.fc30.ppc64le Wrote: /builddir/build/RPMS/golang-github-sasha-s-go-deadlock-devel-0.2.0-8.20180822gitd68e2bc.fc30.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.u73zle + 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-8.20180822gitd68e2bc.fc30.ppc64le + exit 0 Child return code was: 0