Diff of the two buildlogs: -- --- b1/build.log 2025-03-06 20:54:48.611907855 +0000 +++ b2/build.log 2025-03-06 20:55:52.077059386 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Wed Apr 8 15:16:57 -12 2026 -I: pbuilder-time-stamp: 1775704617 +I: Current time: Fri Mar 7 10:54:51 +14 2025 +I: pbuilder-time-stamp: 1741294491 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -23,54 +23,86 @@ 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/117011/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/65317/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +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 Mar 6 20:55 /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/65317/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/65317/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='4dd4cd65d67744a4b061e9436c58a8ab' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='117011' - PS1='# ' - PS2='> ' + INVOCATION_ID=729fcf8427354dfdb7a57bfc5c832051 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-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=65317 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.firkBisY/pbuilderrc_nSxm --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.firkBisY/b1 --logfile b1/build.log golang-github-sasha-s-go-deadlock_0.3.3-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152: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.firkBisY/pbuilderrc_mn0u --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.firkBisY/b2 --logfile b2/build.log golang-github-sasha-s-go-deadlock_0.3.3-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos16-i386 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/117011/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/65317/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -149,7 +181,7 @@ Get: 35 http://deb.debian.org/debian unstable/main i386 golang-go i386 2:1.24~2 [44.3 kB] Get: 36 http://deb.debian.org/debian unstable/main i386 golang-any i386 2:1.24~2 [5216 B] Get: 37 http://deb.debian.org/debian unstable/main i386 golang-github-petermattis-goid-dev all 0.0~git20240813.4fcff4a-1 [4880 B] -Fetched 68.9 MB in 1s (114 MB/s) +Fetched 68.9 MB in 1s (60.6 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 ... 19769 files and directories currently installed.) @@ -312,7 +344,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/65317/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/65317/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 @@ -330,33 +366,33 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-i686-linux-gnu && go install -trimpath -v -p 22 github.com/sasha-s/go-deadlock -internal/asan -internal/coverage/rtcov -internal/byteorder -internal/unsafeheader -internal/itoa -internal/msan -cmp -internal/godebugs -internal/goos -unicode/utf8 + cd obj-i686-linux-gnu && go install -trimpath -v -p 10 github.com/sasha-s/go-deadlock internal/profilerecord -internal/runtime/atomic -math/bits internal/goarch -internal/runtime/syscall -unicode -internal/cpu -sync/atomic +internal/godebugs +internal/goos +internal/byteorder +internal/unsafeheader +internal/coverage/rtcov internal/goexperiment +internal/cpu +internal/runtime/atomic +internal/asan +internal/abi +internal/msan internal/runtime/math +internal/runtime/syscall internal/runtime/sys -internal/abi +sync/atomic +math/bits internal/chacha8rand -internal/runtime/exithook +unicode +unicode/utf8 +cmp +internal/itoa internal/bytealg math +internal/runtime/exithook internal/stringslite internal/race internal/sync @@ -371,16 +407,16 @@ internal/bisect runtime/cgo internal/oserror -io path +io strconv +bytes +strings syscall internal/godebug -strings -bytes -bufio -github.com/petermattis/goid reflect +github.com/petermattis/goid +bufio internal/syscall/execenv internal/syscall/unix time @@ -395,9 +431,9 @@ os/user github.com/sasha-s/go-deadlock dh_auto_test -O--buildsystem=golang - cd obj-i686-linux-gnu && go test -vet=off -v -p 22 github.com/sasha-s/go-deadlock + cd obj-i686-linux-gnu && go test -vet=off -v -p 10 github.com/sasha-s/go-deadlock === RUN TestNoDeadlocks ---- PASS: TestNoDeadlocks (0.81s) +--- PASS: TestNoDeadlocks (0.83s) === RUN TestLockOrder POTENTIAL DEADLOCK: Inconsistent locking. saw this ordering in one goroutine: happened before @@ -417,7 +453,7 @@ deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Other goroutines holding locks: -goroutine 377 lock 0x9d1a108 +goroutine 357 lock 0xa014228 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } @@ -427,65 +463,65 @@ === RUN TestHardDeadlock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 378 lock 0x9d1a1b8 +goroutine 358 lock 0xa0142d8 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 380 lock 0x9d1a1b8 +goroutine 360 lock 0xa0142d8 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 378 doing now -goroutine 378 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlock(0x9d65c28) +Here is what goroutine 358 doing now +goroutine 358 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlock(0xa131c28) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-i686-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x22a -testing.tRunner(0x9d65c28, 0x81cb518) +testing.tRunner(0xa131c28, 0x81cb518) /usr/lib/go-1.24/src/testing/testing.go:1792 +0x119 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.24/src/testing/testing.go:1851 +0x468 -2026/04/09 03:17:40 **************** +2025/03/06 20:55:43 **************** --- PASS: TestHardDeadlock (0.10s) === RUN TestRWMutex POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 208 lock 0x9c1e348 +goroutine 362 lock 0xa01e378 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 386 lock 0x9c1e348 +goroutine 364 lock 0xa01e378 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 208 doing now -goroutine 208 [sleep]: +Here is what goroutine 362 doing now +goroutine 362 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.24/src/runtime/time.go:338 +0x1be -github.com/sasha-s/go-deadlock.TestRWMutex(0x9c07568) +github.com/sasha-s/go-deadlock.TestRWMutex(0xa131d48) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-i686-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x194 -testing.tRunner(0x9c07568, 0x81cb530) +testing.tRunner(0xa131d48, 0x81cb530) /usr/lib/go-1.24/src/testing/testing.go:1792 +0x119 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.24/src/testing/testing.go:1851 +0x468 POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 208 lock 0x9c1e348 +goroutine 362 lock 0xa01e378 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 388 lock 0x9c1e348 +goroutine 366 lock 0xa01e378 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 208 doing now -goroutine 208 [select]: -github.com/sasha-s/go-deadlock.TestRWMutex(0x9c07568) +Here is what goroutine 362 doing now +goroutine 362 [select]: +github.com/sasha-s/go-deadlock.TestRWMutex(0xa131d48) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-i686-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x27d -testing.tRunner(0x9c07568, 0x81cb530) +testing.tRunner(0xa131d48, 0x81cb530) /usr/lib/go-1.24/src/testing/testing.go:1792 +0x119 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.24/src/testing/testing.go:1851 +0x468 @@ -493,16 +529,7 @@ --- PASS: TestRWMutex (0.15s) === RUN TestLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 391 lock 0x9c1e360 -deadlock_test.go:175 go-deadlock.TestLockDuplicate.func2 { a.Lock() } <<<<< -deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } - -Previous place where the lock was grabbed (same goroutine) -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } - -POTENTIAL DEADLOCK: Recursive locking: -current goroutine 392 lock 0x9c141b8 +current goroutine 49 lock 0xa0b8030 deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } @@ -510,11 +537,20 @@ 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 391 lock 0x9c1e360 +POTENTIAL DEADLOCK: Recursive locking: +current goroutine 48 lock 0xa0ca000 +deadlock_test.go:175 go-deadlock.TestLockDuplicate.func2 { a.Lock() } <<<<< +deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } + +Previous place where the lock was grabbed (same goroutine) 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 49 lock 0xa0b8030 +deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } + --- PASS: TestLockDuplicate (1.00s) === RUN TestTryLockNoDeadlocks @@ -538,15 +574,15 @@ deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Other goroutines holding locks: -goroutine 391 lock 0x9c1e360 -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } - -goroutine 392 lock 0x9c141b8 +goroutine 49 lock 0xa0b8030 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } -goroutine 185 lock 0x9e20030 +goroutine 48 lock 0xa0ca000 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } + +goroutine 351 lock 0xa21a0c0 trylock_test.go:93 go-deadlock.TestTryLockOrder.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } @@ -556,32 +592,32 @@ === RUN TestHardDeadlockTryLock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 186 lock 0x9e200d8 +goroutine 352 lock 0xa21a158 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 187 lock 0x9e200d8 +goroutine 353 lock 0xa21a158 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 186 doing now -goroutine 186 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlockTryLock(0x9e0aa28) +Here is what goroutine 352 doing now +goroutine 352 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlockTryLock(0xa206908) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-i686-linux-gnu/src/github.com/sasha-s/go-deadlock/trylock_test.go:122 +0x278 -testing.tRunner(0x9e0aa28, 0x81cb51c) +testing.tRunner(0xa206908, 0x81cb51c) /usr/lib/go-1.24/src/testing/testing.go:1792 +0x119 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.24/src/testing/testing.go:1851 +0x468 Other goroutines holding locks: -goroutine 391 lock 0x9c1e360 -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } - -goroutine 392 lock 0x9c141b8 +goroutine 49 lock 0xa0b8030 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } +goroutine 48 lock 0xa0ca000 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } + --- PASS: TestHardDeadlockTryLock (0.10s) @@ -590,31 +626,31 @@ === RUN TestRWMutexTryLock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 364 lock 0x9f18018 +goroutine 419 lock 0xa386018 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 365 lock 0x9f18018 +goroutine 420 lock 0xa386018 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 364 doing now -goroutine 364 [sleep]: +Here is what goroutine 419 doing now +goroutine 419 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.24/src/runtime/time.go:338 +0x1be -github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0x9f06908) +github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xa3a2128) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-i686-linux-gnu/src/github.com/sasha-s/go-deadlock/trylock_test.go:162 +0x1e2 -testing.tRunner(0x9f06908, 0x81cb534) +testing.tRunner(0xa3a2128, 0x81cb534) /usr/lib/go-1.24/src/testing/testing.go:1792 +0x119 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.24/src/testing/testing.go:1851 +0x468 Other goroutines holding locks: -goroutine 392 lock 0x9c141b8 +goroutine 49 lock 0xa0b8030 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } -goroutine 391 lock 0x9c1e360 +goroutine 48 lock 0xa0ca000 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } @@ -622,85 +658,81 @@ POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 364 lock 0x9f18018 +goroutine 419 lock 0xa386018 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 382 lock 0x9f18018 +goroutine 391 lock 0xa386018 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 364 doing now -goroutine 364 [select]: -github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0x9f06908) +Here is what goroutine 419 doing now +goroutine 419 [select]: +github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xa3a2128) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-i686-linux-gnu/src/github.com/sasha-s/go-deadlock/trylock_test.go:170 +0x2cb -testing.tRunner(0x9f06908, 0x81cb534) +testing.tRunner(0xa3a2128, 0x81cb534) /usr/lib/go-1.24/src/testing/testing.go:1792 +0x119 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.24/src/testing/testing.go:1851 +0x468 Other goroutines holding locks: -goroutine 391 lock 0x9c1e360 -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } - -goroutine 392 lock 0x9c141b8 +goroutine 49 lock 0xa0b8030 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } +goroutine 48 lock 0xa0ca000 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } + --- PASS: TestRWMutexTryLock (0.15s) === RUN TestTryLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 385 lock 0x9d5a090 -trylock_test.go:195 go-deadlock.TestTryLockDuplicate.func2 { a.Lock() } <<<<< -deadlock.go:119 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } +current goroutine 434 lock 0xa0143e8 +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 391 lock 0x9c1e360 -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } - -goroutine 392 lock 0x9c141b8 +goroutine 49 lock 0xa0b8030 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } -goroutine 418 lock 0x9d1a2d8 -trylock.go:7 go-deadlock.(*Mutex).TryLock { func (m *Mutex) TryLock() bool { } <<<<< -trylock_test.go:199 go-deadlock.TestTryLockDuplicate.func3 { go func() { } +goroutine 48 lock 0xa0ca000 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } POTENTIAL DEADLOCK: Recursive locking: -current goroutine 418 lock 0x9d1a2d8 -trylock_test.go:203 go-deadlock.TestTryLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } +current goroutine 369 lock 0xa01e3a8 +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 391 lock 0x9c1e360 -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } - -goroutine 392 lock 0x9c141b8 +goroutine 49 lock 0xa0b8030 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock.go:87 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } -goroutine 385 lock 0x9d5a090 -trylock.go:19 go-deadlock.(*RWMutex).TryRLock { func (m *RWMutex) TryRLock() bool { } <<<<< -trylock_test.go:191 go-deadlock.TestTryLockDuplicate.func2 { go func() { } +goroutine 48 lock 0xa0ca000 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock.go:140 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } + +goroutine 434 lock 0xa0143e8 +trylock.go:7 go-deadlock.(*Mutex).TryLock { func (m *Mutex) TryLock() bool { } <<<<< +trylock_test.go:199 go-deadlock.TestTryLockDuplicate.func3 { go func() { } --- PASS: TestTryLockDuplicate (1.00s) PASS -ok github.com/sasha-s/go-deadlock 3.363s +ok github.com/sasha-s/go-deadlock 3.386s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -727,12 +759,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/65317/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/65317/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/117011 and its subdirectories -I: Current time: Wed Apr 8 15:17:46 -12 2026 -I: pbuilder-time-stamp: 1775704666 +I: removing directory /srv/workspace/pbuilder/65317 and its subdirectories +I: Current time: Fri Mar 7 10:55:51 +14 2025 +I: pbuilder-time-stamp: 1741294551