Diff of the two buildlogs: -- --- b1/build.log 2025-01-10 23:27:56.931102187 +0000 +++ b2/build.log 2025-01-10 23:28:48.456750319 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jan 10 11:22:57 -12 2025 -I: pbuilder-time-stamp: 1736551377 +I: Current time: Fri Feb 13 19:50:59 +14 2026 +I: pbuilder-time-stamp: 1770961859 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -22,52 +22,84 @@ dpkg-source: info: unpacking golang-github-sasha-s-go-deadlock_0.3.3-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1113111/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Feb 13 05:51 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='effc38907ee844b48ce679fbb97e9a68' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1113111' - PS1='# ' - PS2='> ' + INVOCATION_ID=ea647643c8ce40698f8c4e252c30a62c + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=956815 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.859g5zqt/pbuilderrc_RT8i --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.859g5zqt/b1 --logfile b1/build.log golang-github-sasha-s-go-deadlock_0.3.3-1.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.859g5zqt/pbuilderrc_Vl6a --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.859g5zqt/b2 --logfile b2/build.log golang-github-sasha-s-go-deadlock_0.3.3-1.dsc' + SUDO_GID=110 + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://213.165.73.152:3128 I: uname -a - Linux ionos1-amd64 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.11.10+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1~bpo12+1 (2024-12-19) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1113111/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -146,7 +178,7 @@ Get: 35 http://deb.debian.org/debian unstable/main amd64 golang-go amd64 2:1.23~2 [44.3 kB] Get: 36 http://deb.debian.org/debian unstable/main amd64 golang-any amd64 2:1.23~2 [5172 B] Get: 37 http://deb.debian.org/debian unstable/main amd64 golang-github-petermattis-goid-dev all 0.0~git20240813.4fcff4a-1 [4880 B] -Fetched 66.5 MB in 3s (20.9 MB/s) +Fetched 66.5 MB in 3s (24.3 MB/s) Preconfiguring packages ... Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19849 files and directories currently installed.) @@ -309,7 +341,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../golang-github-sasha-s-go-deadlock_0.3.3-1_source.changes +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../golang-github-sasha-s-go-deadlock_0.3.3-1_source.changes dpkg-buildpackage: info: source package golang-github-sasha-s-go-deadlock dpkg-buildpackage: info: source version 0.3.3-1 dpkg-buildpackage: info: source distribution unstable @@ -327,72 +363,72 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-x86_64-linux-gnu && go install -trimpath -v -p 20 github.com/sasha-s/go-deadlock -internal/msan -internal/asan -internal/race -internal/itoa + cd obj-x86_64-linux-gnu && go install -trimpath -v -p 42 github.com/sasha-s/go-deadlock internal/unsafeheader -internal/goarch -internal/coverage/rtcov internal/byteorder -internal/godebugs +internal/coverage/rtcov internal/goos -cmp +internal/race unicode/utf8 -internal/runtime/syscall -sync/atomic -unicode -internal/goexperiment +internal/godebugs +internal/asan +internal/itoa +internal/goarch +internal/msan +cmp internal/profilerecord +math/bits +internal/goexperiment +unicode internal/cpu -internal/chacha8rand +sync/atomic +internal/runtime/atomic +internal/runtime/syscall runtime/internal/math -math/bits -internal/abi runtime/internal/sys -internal/runtime/atomic +internal/abi +internal/chacha8rand internal/bytealg -math internal/runtime/exithook +math internal/stringslite runtime +iter internal/reflectlite sync -iter slices -errors -internal/bisect internal/testlog +internal/bisect +runtime/cgo +internal/godebug +errors +internal/oserror io -path strconv -internal/oserror -runtime/cgo +path syscall bytes strings reflect -internal/godebug github.com/petermattis/goid bufio -time internal/syscall/execenv internal/syscall/unix +time io/fs internal/poll internal/filepathlite -os internal/fmtsort -fmt +os io/ioutil path/filepath +fmt os/user github.com/sasha-s/go-deadlock dh_auto_test -O--buildsystem=golang - cd obj-x86_64-linux-gnu && go test -vet=off -v -p 20 github.com/sasha-s/go-deadlock + cd obj-x86_64-linux-gnu && go test -vet=off -v -p 42 github.com/sasha-s/go-deadlock === RUN TestNoDeadlocks ---- PASS: TestNoDeadlocks (1.02s) +--- PASS: TestNoDeadlocks (0.80s) === RUN TestLockOrder POTENTIAL DEADLOCK: Inconsistent locking. saw this ordering in one goroutine: happened before @@ -412,7 +448,7 @@ deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Other goroutines holding locks: -goroutine 337 lock 0xc0001c8038 +goroutine 370 lock 0xc000232038 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } @@ -422,82 +458,73 @@ === RUN TestHardDeadlock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 354 lock 0xc0001c80f0 +goroutine 371 lock 0xc0002320f0 deadlock_test.go:104 go-deadlock.TestHardDeadlock { mu.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } Have been trying to lock it again for more than 20ms -goroutine 356 lock 0xc0001c80f0 +goroutine 373 lock 0xc0002320f0 deadlock_test.go:108 go-deadlock.TestHardDeadlock.func2 { mu.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } -Here is what goroutine 354 doing now -goroutine 354 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlock(0xc0001d0340) +Here is what goroutine 371 doing now +goroutine 371 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlock(0xc00023a340) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x26d -testing.tRunner(0xc0001d0340, 0x579368) +testing.tRunner(0xc00023a340, 0x579368) /usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x390 -2025/01/10 23:27:31 **************** ---- PASS: TestHardDeadlock (0.11s) +2026/02/13 05:51:41 **************** +--- PASS: TestHardDeadlock (0.10s) === RUN TestRWMutex POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 358 lock 0xc0001d6030 +goroutine 309 lock 0xc0002b4018 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Have been trying to lock it again for more than 20ms -goroutine 360 lock 0xc0001d6030 +goroutine 311 lock 0xc0002b4018 deadlock_test.go:134 go-deadlock.TestRWMutex.func2 { a.Lock() } <<<<< deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } -Here is what goroutine 358 doing now -goroutine 358 [sleep]: +Here is what goroutine 309 doing now +goroutine 309 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.23/src/runtime/time.go:300 +0xf2 -github.com/sasha-s/go-deadlock.TestRWMutex(0xc0001d04e0) +github.com/sasha-s/go-deadlock.TestRWMutex(0xc0002d6000) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x1f1 -testing.tRunner(0xc0001d04e0, 0x579398) +testing.tRunner(0xc0002d6000, 0x579398) /usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x390 POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 358 lock 0xc0001d6030 +goroutine 309 lock 0xc0002b4018 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Have been trying to lock it again for more than 20ms -goroutine 362 lock 0xc0001d6030 +goroutine 174 lock 0xc0002b4018 deadlock_test.go:142 go-deadlock.TestRWMutex.func3 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -Here is what goroutine 358 doing now -goroutine 358 [select]: -github.com/sasha-s/go-deadlock.TestRWMutex(0xc0001d04e0) +Here is what goroutine 309 doing now +goroutine 309 [select]: +github.com/sasha-s/go-deadlock.TestRWMutex(0xc0002d6000) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x2bd -testing.tRunner(0xc0001d04e0, 0x579398) +testing.tRunner(0xc0002d6000, 0x579398) /usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x390 ---- PASS: TestRWMutex (0.16s) +--- PASS: TestRWMutex (0.15s) === RUN TestLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 366 lock 0xc0001c8150 -deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } - -Previous place where the lock was grabbed (same goroutine) -deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } - -POTENTIAL DEADLOCK: Recursive locking: -current goroutine 365 lock 0xc0001d6048 +current goroutine 59 lock 0xc000020318 deadlock_test.go:175 go-deadlock.TestLockDuplicate.func2 { a.Lock() } <<<<< deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } @@ -505,15 +532,24 @@ deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -Other goroutines holding locks: -goroutine 366 lock 0xc0001c8150 +POTENTIAL DEADLOCK: Recursive locking: +current goroutine 60 lock 0xc000014298 +deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } + +Previous place where the lock was grabbed (same goroutine) deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } +Other goroutines holding locks: +goroutine 59 lock 0xc000020318 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } + ---- PASS: TestLockDuplicate (1.01s) +--- PASS: TestLockDuplicate (1.00s) === RUN TestTryLockNoDeadlocks ---- PASS: TestTryLockNoDeadlocks (0.06s) +--- PASS: TestTryLockNoDeadlocks (0.04s) === RUN TestTryLockOrder POTENTIAL DEADLOCK: Inconsistent locking. saw this ordering in one goroutine: happened before @@ -533,15 +569,15 @@ deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Other goroutines holding locks: -goroutine 366 lock 0xc0001c8150 -deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } - -goroutine 365 lock 0xc0001d6048 +goroutine 59 lock 0xc000020318 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -goroutine 369 lock 0xc0001c81f0 +goroutine 60 lock 0xc000014298 +deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } + +goroutine 404 lock 0xc000384038 trylock_test.go:93 go-deadlock.TestTryLockOrder.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } @@ -551,29 +587,29 @@ === RUN TestHardDeadlockTryLock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 386 lock 0xc0001c82b0 +goroutine 405 lock 0xc0003840e0 trylock.go:7 go-deadlock.(*Mutex).TryLock { func (m *Mutex) TryLock() bool { } <<<<< trylock_test.go:112 go-deadlock.TestHardDeadlockTryLock { var mu Mutex } Have been trying to lock it again for more than 20ms -goroutine 387 lock 0xc0001c82b0 +goroutine 406 lock 0xc0003840e0 trylock_test.go:119 go-deadlock.TestHardDeadlockTryLock.func2 { mu.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } -Here is what goroutine 386 doing now -goroutine 386 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlockTryLock(0xc0001d09c0) +Here is what goroutine 405 doing now +goroutine 405 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlockTryLock(0xc00038e1a0) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/trylock_test.go:122 +0x2b3 -testing.tRunner(0xc0001d09c0, 0x579370) +testing.tRunner(0xc00038e1a0, 0x579370) /usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x390 Other goroutines holding locks: -goroutine 365 lock 0xc0001d6048 +goroutine 59 lock 0xc000020318 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -goroutine 366 lock 0xc0001c8150 +goroutine 60 lock 0xc000014298 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } @@ -585,113 +621,113 @@ === RUN TestRWMutexTryLock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 390 lock 0xc0001d60a8 +goroutine 177 lock 0xc000132018 trylock.go:19 go-deadlock.(*RWMutex).TryRLock { func (m *RWMutex) TryRLock() bool { } <<<<< trylock_test.go:153 go-deadlock.TestRWMutexTryLock { var a RWMutex } Have been trying to lock it again for more than 20ms -goroutine 391 lock 0xc0001d60a8 +goroutine 418 lock 0xc000132018 trylock_test.go:159 go-deadlock.TestRWMutexTryLock.func2 { a.Lock() } <<<<< deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } -Here is what goroutine 390 doing now -goroutine 390 [sleep]: +Here is what goroutine 177 doing now +goroutine 177 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.23/src/runtime/time.go:300 +0xf2 -github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xc0001d0d00) +github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xc00014e1a0) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/trylock_test.go:162 +0x232 -testing.tRunner(0xc0001d0d00, 0x5793a0) +testing.tRunner(0xc00014e1a0, 0x5793a0) /usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x390 Other goroutines holding locks: -goroutine 366 lock 0xc0001c8150 -deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } - -goroutine 365 lock 0xc0001d6048 +goroutine 59 lock 0xc000020318 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } +goroutine 60 lock 0xc000014298 +deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } + POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 390 lock 0xc0001d60a8 +goroutine 177 lock 0xc000132018 trylock.go:19 go-deadlock.(*RWMutex).TryRLock { func (m *RWMutex) TryRLock() bool { } <<<<< trylock_test.go:153 go-deadlock.TestRWMutexTryLock { var a RWMutex } Have been trying to lock it again for more than 20ms -goroutine 379 lock 0xc0001d60a8 +goroutine 396 lock 0xc000132018 trylock_test.go:167 go-deadlock.TestRWMutexTryLock.func3 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -Here is what goroutine 390 doing now -goroutine 390 [select]: -github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xc0001d0d00) +Here is what goroutine 177 doing now +goroutine 177 [select]: +github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xc00014e1a0) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/trylock_test.go:170 +0x305 -testing.tRunner(0xc0001d0d00, 0x5793a0) +testing.tRunner(0xc00014e1a0, 0x5793a0) /usr/lib/go-1.23/src/testing/testing.go:1690 +0xf4 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x390 Other goroutines holding locks: -goroutine 365 lock 0xc0001d6048 +goroutine 59 lock 0xc000020318 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -goroutine 366 lock 0xc0001c8150 +goroutine 60 lock 0xc000014298 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } ---- PASS: TestRWMutexTryLock (0.16s) +--- PASS: TestRWMutexTryLock (0.15s) === RUN TestTryLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 383 lock 0xc0000143e0 -trylock_test.go:203 go-deadlock.TestTryLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } +current goroutine 62 lock 0xc000020348 +trylock_test.go:195 go-deadlock.TestTryLockDuplicate.func2 { a.Lock() } <<<<< +deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } Previous place where the lock was grabbed (same goroutine) -trylock.go:7 go-deadlock.(*Mutex).TryLock { func (m *Mutex) TryLock() bool { } <<<<< -trylock_test.go:199 go-deadlock.TestTryLockDuplicate.func3 { go func() { } +trylock.go:19 go-deadlock.(*RWMutex).TryRLock { func (m *RWMutex) TryRLock() bool { } <<<<< +trylock_test.go:191 go-deadlock.TestTryLockDuplicate.func2 { go func() { } Other goroutines holding locks: -goroutine 366 lock 0xc0001c8150 -deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } - -goroutine 365 lock 0xc0001d6048 +goroutine 59 lock 0xc000020318 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } +goroutine 60 lock 0xc000014298 +deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } + POTENTIAL DEADLOCK: Recursive locking: -current goroutine 382 lock 0xc000020360 -trylock_test.go:195 go-deadlock.TestTryLockDuplicate.func2 { a.Lock() } <<<<< -deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } +current goroutine 63 lock 0xc000014310 +trylock_test.go:203 go-deadlock.TestTryLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } Previous place where the lock was grabbed (same goroutine) -trylock.go:19 go-deadlock.(*RWMutex).TryRLock { func (m *RWMutex) TryRLock() bool { } <<<<< -trylock_test.go:191 go-deadlock.TestTryLockDuplicate.func2 { go func() { } +trylock.go:7 go-deadlock.(*Mutex).TryLock { func (m *Mutex) TryLock() bool { } <<<<< +trylock_test.go:199 go-deadlock.TestTryLockDuplicate.func3 { go func() { } Other goroutines holding locks: -goroutine 366 lock 0xc0001c8150 -deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } - -goroutine 365 lock 0xc0001d6048 +goroutine 59 lock 0xc000020318 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -goroutine 383 lock 0xc0000143e0 -trylock.go:7 go-deadlock.(*Mutex).TryLock { func (m *Mutex) TryLock() bool { } <<<<< -trylock_test.go:199 go-deadlock.TestTryLockDuplicate.func3 { go func() { } +goroutine 60 lock 0xc000014298 +deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } + +goroutine 62 lock 0xc000020348 +trylock.go:19 go-deadlock.(*RWMutex).TryRLock { func (m *RWMutex) TryRLock() bool { } <<<<< +trylock_test.go:191 go-deadlock.TestTryLockDuplicate.func2 { go func() { } --- PASS: TestTryLockDuplicate (1.00s) PASS -ok github.com/sasha-s/go-deadlock 3.660s +ok github.com/sasha-s/go-deadlock 3.359s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -718,12 +754,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/956815/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1113111 and its subdirectories -I: Current time: Fri Jan 10 11:27:53 -12 2025 -I: pbuilder-time-stamp: 1736551673 +I: removing directory /srv/workspace/pbuilder/956815 and its subdirectories +I: Current time: Fri Feb 13 19:51:47 +14 2026 +I: pbuilder-time-stamp: 1770961907