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-16096287-1152981/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-10.20190427git1595213.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-16096287-1152981/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.3p0Zak + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0 + /usr/bin/gzip -dc /builddir/build/SOURCES/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ufQwWv + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm + cd go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0 + 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-10.20190427git1595213.fc30.arm -g /usr/share/gocode -b /builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build -c 1595213edefa28ca5047b00340c63557f9c051d0 -r '.*example.*' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode/src' Installing: github.com/sasha-s/go-deadlock install: creating directory '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build' install: creating directory '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src' install: creating directory '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src/github.com' install: creating directory '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src/github.com/sasha-s' '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src/github.com/sasha-s/go-deadlock' -> '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode/src/github.com' install: creating directory '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.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-10.20190427git1595213.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock' '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/Readme.md' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/Readme.md' '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/deadlock.go' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/deadlock.go' '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/deadlock_map.go' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/deadlock_map.go' '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/deadlock_test.go' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/deadlock_test.go' '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/stacktraces.go' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm/usr/share/gocode/src/github.com/sasha-s/go-deadlock/stacktraces.go' '/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/.goipath' -> '/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.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.xkugRz + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0 + export GO111MODULE=off + GO111MODULE=off + PATH=/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_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-10.20190427git1595213.fc30.arm -g /usr/share/gocode -b /builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build -r '.*example.*' Testing: github.com/sasha-s/go-deadlock Testing: "/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src/github.com/sasha-s/go-deadlock" + GOPATH=/builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_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 333 lock 0x18160e8 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 334 lock 0x18161b8 deadlock_test.go:104 go-deadlock.TestHardDeadlock { mu.Lock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 284 lock 0x18161b8 Here is what goroutine 334 doing now goroutine 334 [select]: github.com/sasha-s/go-deadlock.TestHardDeadlock(0x194a0a0) /builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x198 testing.tRunner(0x194a0a0, 0x61effc) /usr/lib/golang/src/testing/testing.go:865 +0xb0 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:916 +0x2f0 2019/04/30 13:36:10 **************** POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 342 lock 0x1962060 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 345 lock 0x1962060 Here is what goroutine 342 doing now goroutine 342 [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(0x197e000) /builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x104 testing.tRunner(0x197e000, 0x61f02c) /usr/lib/golang/src/testing/testing.go:865 +0xb0 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:916 +0x2f0 POTENTIAL DEADLOCK: Previous place where the lock was grabbed goroutine 342 lock 0x1962060 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< Have been trying to lock it again for more than 20ms goroutine 370 lock 0x1962060 Here is what goroutine 342 doing now goroutine 342 [select]: github.com/sasha-s/go-deadlock.TestRWMutex(0x197e000) /builddir/build/BUILD/go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0/_build/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x1bc testing.tRunner(0x197e000, 0x61f02c) /usr/lib/golang/src/testing/testing.go:865 +0xb0 created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:916 +0x2f0 POTENTIAL DEADLOCK: Recursive locking: current goroutine 372 lock 0x181a0e0 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 373 lock 0x1816230 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 372 lock 0x181a0e0 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< PASS ok github.com/sasha-s/go-deadlock 2.021s + exit 0 Processing files: golang-github-sasha-s-go-deadlock-devel-0.2.0-10.20190427git1595213.fc30.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.jvcNaI + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0 + DOCDIR=/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.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-10.20190427git1595213.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-10.20190427git1595213.fc30.arm/usr/share/doc/golang-github-sasha-s-go-deadlock-devel + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.vnaq3O + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0 + LICENSEDIR=/builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.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-10.20190427git1595213.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-10.20190427git1595213.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-10.20190427git1595213.fc30 golang(github.com/sasha-s/go-deadlock)(commit=1595213edefa28ca5047b00340c63557f9c051d0) = 0.2.0-10.20190427git1595213.fc30 golang-github-sasha-s-go-deadlock-devel = 0.2.0-10.20190427git1595213.fc30 golang-ipath(github.com/sasha-s/go-deadlock) = 0.2.0-10.20190427git1595213.fc30 golang-ipath(github.com/sasha-s/go-deadlock)(commit=1595213edefa28ca5047b00340c63557f9c051d0) = 0.2.0-10.20190427git1595213.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-10.20190427git1595213.fc30.arm Wrote: /builddir/build/RPMS/golang-github-sasha-s-go-deadlock-devel-0.2.0-10.20190427git1595213.fc30.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.85NqWu + umask 022 + cd /builddir/build/BUILD + cd go-deadlock-1595213edefa28ca5047b00340c63557f9c051d0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/golang-github-sasha-s-go-deadlock-0.2.0-10.20190427git1595213.fc30.arm + exit 0 Child return code was: 0