Diff of the two buildlogs: -- --- b1/build.log 2025-02-18 08:38:34.673968855 +0000 +++ b2/build.log 2025-02-18 08:40:19.437252895 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Feb 17 20:30:31 -12 2025 -I: pbuilder-time-stamp: 1739867431 +I: Current time: Tue Feb 18 22:38:43 +14 2025 +I: pbuilder-time-stamp: 1739867923 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-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/13911/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/24223/tmp/hooks/D01_modify_environment starting +debug: Running on virt64z. +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 18 08:38 /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/24223/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/24223/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + 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]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='0ad1014209c14c6f8207d13f1dd51739' - 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='13911' - PS1='# ' - PS2='> ' + INVOCATION_ID=0bc0bcb9b6204f7a88f24c3bbe73ac10 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=24223 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.27PKGxGb/pbuilderrc_5Eup --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.27PKGxGb/b1 --logfile b1/build.log golang-github-sasha-s-go-deadlock_0.3.3-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.27PKGxGb/pbuilderrc_NG7m --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.27PKGxGb/b2 --logfile b2/build.log golang-github-sasha-s-go-deadlock_0.3.3-1.dsc' + SUDO_GID=110 + SUDO_UID=103 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux cbxi4a 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-31-arm64 #1 SMP Debian 6.1.128-1 (2025-02-07) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/13911/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/24223/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 trixie/main armhf golang-go armhf 2:1.23~2 [44.3 kB] Get: 36 http://deb.debian.org/debian trixie/main armhf golang-any armhf 2:1.23~2 [5172 B] Get: 37 http://deb.debian.org/debian trixie/main armhf golang-github-petermattis-goid-dev all 0.0~git20240813.4fcff4a-1 [4880 B] -Fetched 62.6 MB in 6s (10.0 MB/s) +Fetched 62.6 MB in 5s (11.5 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 ... 19534 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/24223/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/24223/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,17 +363,17 @@ dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang - cd obj-arm-linux-gnueabihf && go install -trimpath -v -p 3 github.com/sasha-s/go-deadlock + cd obj-arm-linux-gnueabihf && go install -trimpath -v -p 4 github.com/sasha-s/go-deadlock internal/unsafeheader internal/goarch -internal/cpu internal/byteorder +internal/cpu +internal/coverage/rtcov internal/abi internal/chacha8rand -internal/bytealg -internal/coverage/rtcov internal/godebugs internal/goexperiment +internal/bytealg internal/goos internal/profilerecord internal/runtime/atomic @@ -345,54 +381,54 @@ internal/stringslite runtime/internal/math runtime/internal/sys -internal/runtime/exithook internal/race sync/atomic unicode +internal/runtime/exithook unicode/utf8 -runtime cmp internal/itoa math/bits -math internal/asan internal/msan -iter +math +runtime internal/reflectlite +iter sync slices internal/bisect internal/testlog runtime/cgo errors +internal/godebug +internal/oserror io strconv +path +syscall bytes strings reflect bufio -internal/oserror -path -internal/godebug -syscall github.com/petermattis/goid -internal/syscall/unix time -internal/fmtsort +internal/syscall/unix internal/syscall/execenv io/fs internal/poll +internal/fmtsort internal/filepathlite os io/ioutil -fmt path/filepath +fmt os/user github.com/sasha-s/go-deadlock dh_auto_test -O--buildsystem=golang - cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 3 github.com/sasha-s/go-deadlock + cd obj-arm-linux-gnueabihf && go test -vet=off -v -p 4 github.com/sasha-s/go-deadlock === RUN TestNoDeadlocks ---- PASS: TestNoDeadlocks (1.06s) +--- PASS: TestNoDeadlocks (0.86s) === RUN TestLockOrder POTENTIAL DEADLOCK: Inconsistent locking. saw this ordering in one goroutine: happened before @@ -412,75 +448,75 @@ deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } Other goroutines holding locks: -goroutine 344 lock 0xda0030 +goroutine 320 lock 0x14101f8 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< deadlock_test.go:83 go-deadlock.TestLockOrder.func3 { defer wg.Done() } ---- PASS: TestLockOrder (0.01s) +--- PASS: TestLockOrder (0.00s) === RUN TestHardDeadlock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 345 lock 0xda0108 +goroutine 321 lock 0x14102c8 deadlock_test.go:104 go-deadlock.TestHardDeadlock { mu.Lock() } <<<<< deadlock_test.go:103 go-deadlock.TestHardDeadlock { var mu Mutex } Have been trying to lock it again for more than 20ms -goroutine 347 lock 0xda0108 +goroutine 339 lock 0x14102c8 deadlock_test.go:108 go-deadlock.TestHardDeadlock.func2 { mu.Lock() } <<<<< deadlock_test.go:107 go-deadlock.TestHardDeadlock.func2 { defer close(ch) } -Here is what goroutine 345 doing now -goroutine 345 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlock(0xda8108) +Here is what goroutine 321 doing now +goroutine 321 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlock(0x14a4408) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-arm-linux-gnueabihf/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x20c -testing.tRunner(0xda8108, 0x196fc8) +testing.tRunner(0x14a4408, 0x196fc8) /usr/lib/go-1.23/src/testing/testing.go:1690 +0x124 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x3d4 -2025/02/18 08:37:45 **************** +2025/02/18 08:40:05 **************** --- PASS: TestHardDeadlock (0.10s) === RUN TestRWMutex POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 62 lock 0xd3c000 +goroutine 341 lock 0x1416390 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< deadlock_test.go:130 go-deadlock.TestRWMutex { var a RWMutex } Have been trying to lock it again for more than 20ms -goroutine 64 lock 0xd3c000 +goroutine 343 lock 0x1416390 deadlock_test.go:134 go-deadlock.TestRWMutex.func2 { a.Lock() } <<<<< deadlock_test.go:133 go-deadlock.TestRWMutex.func2 { // We detect a potential deadlock here. } -Here is what goroutine 62 doing now -goroutine 62 [sleep]: +Here is what goroutine 341 doing now +goroutine 341 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.23/src/runtime/time.go:300 +0x130 -github.com/sasha-s/go-deadlock.TestRWMutex(0xd36008) +github.com/sasha-s/go-deadlock.TestRWMutex(0x14a4508) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-arm-linux-gnueabihf/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x17c -testing.tRunner(0xd36008, 0x196fe0) +testing.tRunner(0x14a4508, 0x196fe0) /usr/lib/go-1.23/src/testing/testing.go:1690 +0x124 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x3d4 POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 62 lock 0xd3c000 +goroutine 341 lock 0x1416390 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< deadlock_test.go:130 go-deadlock.TestRWMutex { var a RWMutex } Have been trying to lock it again for more than 20ms -goroutine 354 lock 0xd3c000 +goroutine 345 lock 0x1416390 deadlock_test.go:142 go-deadlock.TestRWMutex.func3 { a.RLock() } <<<<< deadlock_test.go:141 go-deadlock.TestRWMutex.func3 { defer close(ch) } -Here is what goroutine 62 doing now -goroutine 62 [select]: -github.com/sasha-s/go-deadlock.TestRWMutex(0xd36008) +Here is what goroutine 341 doing now +goroutine 341 [select]: +github.com/sasha-s/go-deadlock.TestRWMutex(0x14a4508) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-arm-linux-gnueabihf/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x25c -testing.tRunner(0xd36008, 0x196fe0) +testing.tRunner(0x14a4508, 0x196fe0) /usr/lib/go-1.23/src/testing/testing.go:1690 +0x124 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x3d4 @@ -488,7 +524,7 @@ --- PASS: TestRWMutex (0.15s) === RUN TestLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 330 lock 0xc102c8 +current goroutine 349 lock 0x1410318 deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } @@ -497,7 +533,7 @@ deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } POTENTIAL DEADLOCK: Recursive locking: -current goroutine 329 lock 0xc163a8 +current goroutine 348 lock 0x14163a8 deadlock_test.go:175 go-deadlock.TestLockDuplicate.func2 { a.Lock() } <<<<< deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } @@ -506,7 +542,7 @@ deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } Other goroutines holding locks: -goroutine 330 lock 0xc102c8 +goroutine 349 lock 0x1410318 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } @@ -533,83 +569,83 @@ trylock_test.go:93 go-deadlock.TestTryLockOrder.func3 { b.Lock() } Other goroutines holding locks: -goroutine 329 lock 0xc163a8 -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } - -goroutine 358 lock 0xd32058 +goroutine 352 lock 0x1410408 trylock_test.go:93 go-deadlock.TestTryLockOrder.func3 { b.Lock() } <<<<< trylock_test.go:92 go-deadlock.TestTryLockOrder.func3 { defer wg.Done() } -goroutine 330 lock 0xc102c8 +goroutine 349 lock 0x1410318 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } +goroutine 348 lock 0x14163a8 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } + --- PASS: TestTryLockOrder (0.00s) === RUN TestHardDeadlockTryLock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 359 lock 0xd32138 +goroutine 353 lock 0x14104e8 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 360 lock 0xd32138 +goroutine 386 lock 0x14104e8 trylock_test.go:119 go-deadlock.TestHardDeadlockTryLock.func2 { mu.Lock() } <<<<< trylock_test.go:118 go-deadlock.TestHardDeadlockTryLock.func2 { defer close(ch) } -Here is what goroutine 359 doing now -goroutine 359 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlockTryLock(0xd36208) +Here is what goroutine 353 doing now +goroutine 353 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlockTryLock(0x14a4808) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-arm-linux-gnueabihf/src/github.com/sasha-s/go-deadlock/trylock_test.go:122 +0x248 -testing.tRunner(0xd36208, 0x196fcc) +testing.tRunner(0x14a4808, 0x196fcc) /usr/lib/go-1.23/src/testing/testing.go:1690 +0x124 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x3d4 Other goroutines holding locks: -goroutine 330 lock 0xc102c8 +goroutine 349 lock 0x1410318 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } -goroutine 329 lock 0xc163a8 +goroutine 348 lock 0x14163a8 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } ---- PASS: TestHardDeadlockTryLock (0.11s) +--- PASS: TestHardDeadlockTryLock (0.10s) === RUN TestMutexTryLock --- PASS: TestMutexTryLock (0.00s) === RUN TestRWMutexTryLock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 386 lock 0xc163f0 +goroutine 389 lock 0x1416438 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 387 lock 0xc163f0 +goroutine 390 lock 0x1416438 trylock_test.go:159 go-deadlock.TestRWMutexTryLock.func2 { a.Lock() } <<<<< trylock_test.go:158 go-deadlock.TestRWMutexTryLock.func2 { // We detect a potential deadlock here. } -Here is what goroutine 386 doing now -goroutine 386 [sleep]: +Here is what goroutine 389 doing now +goroutine 389 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.23/src/runtime/time.go:300 +0x130 -github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xca4608) +github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0x14a4a08) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-arm-linux-gnueabihf/src/github.com/sasha-s/go-deadlock/trylock_test.go:162 +0x1b8 -testing.tRunner(0xca4608, 0x196fe4) +testing.tRunner(0x14a4a08, 0x196fe4) /usr/lib/go-1.23/src/testing/testing.go:1690 +0x124 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x3d4 Other goroutines holding locks: -goroutine 330 lock 0xc102c8 +goroutine 349 lock 0x1410318 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } -goroutine 329 lock 0xc163a8 +goroutine 348 lock 0x14163a8 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } @@ -617,38 +653,38 @@ POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 386 lock 0xc163f0 +goroutine 389 lock 0x1416438 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 389 lock 0xc163f0 +goroutine 392 lock 0x1416438 trylock_test.go:167 go-deadlock.TestRWMutexTryLock.func3 { a.RLock() } <<<<< trylock_test.go:166 go-deadlock.TestRWMutexTryLock.func3 { defer close(ch) } -Here is what goroutine 386 doing now -goroutine 386 [select]: -github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0xca4608) +Here is what goroutine 389 doing now +goroutine 389 [select]: +github.com/sasha-s/go-deadlock.TestRWMutexTryLock(0x14a4a08) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.3/obj-arm-linux-gnueabihf/src/github.com/sasha-s/go-deadlock/trylock_test.go:170 +0x298 -testing.tRunner(0xca4608, 0x196fe4) +testing.tRunner(0x14a4a08, 0x196fe4) /usr/lib/go-1.23/src/testing/testing.go:1690 +0x124 created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.23/src/testing/testing.go:1743 +0x3d4 Other goroutines holding locks: -goroutine 329 lock 0xc163a8 -deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< -deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } - -goroutine 330 lock 0xc102c8 +goroutine 349 lock 0x1410318 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } +goroutine 348 lock 0x14163a8 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } + ---- PASS: TestRWMutexTryLock (0.16s) +--- PASS: TestRWMutexTryLock (0.15s) === RUN TestTryLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 393 lock 0xc10420 +current goroutine 396 lock 0x1410540 trylock_test.go:203 go-deadlock.TestTryLockDuplicate.func3 { b.Lock() } <<<<< trylock_test.go:202 go-deadlock.TestTryLockDuplicate.func3 { } } @@ -657,17 +693,17 @@ trylock_test.go:199 go-deadlock.TestTryLockDuplicate.func3 { go func() { } Other goroutines holding locks: -goroutine 330 lock 0xc102c8 +goroutine 349 lock 0x1410318 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } -goroutine 329 lock 0xc163a8 +goroutine 348 lock 0x14163a8 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } POTENTIAL DEADLOCK: Recursive locking: -current goroutine 392 lock 0xc16408 +current goroutine 395 lock 0x1416450 trylock_test.go:195 go-deadlock.TestTryLockDuplicate.func2 { a.Lock() } <<<<< trylock_test.go:194 go-deadlock.TestTryLockDuplicate.func2 { } } @@ -676,22 +712,22 @@ trylock_test.go:191 go-deadlock.TestTryLockDuplicate.func2 { go func() { } Other goroutines holding locks: -goroutine 329 lock 0xc163a8 +goroutine 349 lock 0x1410318 +deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } + +goroutine 348 lock 0x14163a8 deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } -goroutine 393 lock 0xc10420 +goroutine 396 lock 0x1410540 trylock.go:7 go-deadlock.(*Mutex).TryLock { func (m *Mutex) TryLock() bool { } <<<<< trylock_test.go:199 go-deadlock.TestTryLockDuplicate.func3 { go func() { } -goroutine 330 lock 0xc102c8 -deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } - --- PASS: TestTryLockDuplicate (1.00s) PASS -ok github.com/sasha-s/go-deadlock 3.680s +ok github.com/sasha-s/go-deadlock 3.440s 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/24223/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/24223/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/13911 and its subdirectories -I: Current time: Mon Feb 17 20:38:29 -12 2025 -I: pbuilder-time-stamp: 1739867909 +I: removing directory /srv/workspace/pbuilder/24223 and its subdirectories +I: Current time: Tue Feb 18 22:40:15 +14 2025 +I: pbuilder-time-stamp: 1739868015