Diff of the two buildlogs: -- --- b1/build.log 2024-05-04 20:39:58.973747961 +0000 +++ b2/build.log 2024-05-04 20:41:23.146161988 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat May 4 08:37:52 -12 2024 -I: pbuilder-time-stamp: 1714855072 +I: Current time: Sat Jun 7 17:03:01 +14 2025 +I: pbuilder-time-stamp: 1749265381 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -26,51 +26,83 @@ dpkg-source: info: unpacking golang-github-sasha-s-go-deadlock_0.3.1-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2707253/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1473837/tmp/hooks/D01_modify_environment starting +debug: Running on infom02-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 Jun 7 03:03 /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/1473837/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1473837/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' + 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]="21" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.21(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=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='amd64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e99c7475715c4d6aad4ed58168506f6d' - 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='2707253' - PS1='# ' - PS2='> ' + INVOCATION_ID=4e4fcdfd2c074cbd9f44c220ee20bed6 + 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=1473837 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.ITlgdL0j/pbuilderrc_c5jB --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.ITlgdL0j/b1 --logfile b1/build.log golang-github-sasha-s-go-deadlock_0.3.1-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + 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.ITlgdL0j/pbuilderrc_hMXQ --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.ITlgdL0j/b2 --logfile b2/build.log golang-github-sasha-s-go-deadlock_0.3.1-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom01-amd64 6.1.0-20-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.6.13+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.6.13-1~bpo12+1 (2024-02-15) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 3 07:48 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2707253/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 5 14:11 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1473837/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 trixie/main amd64 golang-go amd64 2:1.22~3 [44.2 kB] Get: 36 http://deb.debian.org/debian trixie/main amd64 golang-any amd64 2:1.22~3 [5104 B] Get: 37 http://deb.debian.org/debian trixie/main amd64 golang-github-petermattis-goid-dev all 0.0~git20180202.b0b1615-3 [4724 B] -Fetched 62.7 MB in 2s (25.4 MB/s) +Fetched 62.7 MB in 1s (83.2 MB/s) debconf: delaying package configuration, since apt-utils is not installed 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 ... 19695 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.1/ && 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.1-1_source.changes +I: user script /srv/workspace/pbuilder/1473837/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1473837/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.1/ && 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.1-1_source.changes dpkg-buildpackage: info: source package golang-github-sasha-s-go-deadlock dpkg-buildpackage: info: source version 0.3.1-1 dpkg-buildpackage: info: source distribution unstable @@ -331,25 +367,25 @@ dh_auto_configure -O--buildsystem=golang dh_auto_build -O--buildsystem=golang cd obj-x86_64-linux-gnu && go install -trimpath -v -p 12 github.com/sasha-s/go-deadlock -internal/godebugs +internal/unsafeheader internal/goarch +unicode +internal/godebugs internal/coverage/rtcov -internal/unsafeheader -internal/goos internal/race -internal/cpu -unicode +internal/goos +runtime/internal/atomic runtime/internal/syscall -internal/goexperiment sync/atomic -runtime/internal/atomic +internal/cpu unicode/utf8 +internal/goexperiment internal/itoa -math/bits -internal/chacha8rand internal/abi +internal/chacha8rand runtime/internal/math runtime/internal/sys +math/bits cmp slices internal/bytealg @@ -360,34 +396,34 @@ internal/testlog runtime/cgo errors -sort io -bytes -internal/safefilepath -internal/oserror +sort path strconv -reflect -github.com/petermattis/goid -strings +internal/oserror +internal/safefilepath syscall +bytes +strings bufio -internal/syscall/unix +github.com/petermattis/goid +reflect time internal/syscall/execenv -internal/fmtsort -io/fs +internal/syscall/unix internal/poll +io/fs +internal/fmtsort os -fmt io/ioutil +fmt path/filepath 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 12 github.com/sasha-s/go-deadlock === RUN TestNoDeadlocks ---- PASS: TestNoDeadlocks (0.82s) +--- PASS: TestNoDeadlocks (0.78s) === RUN TestLockOrder POTENTIAL DEADLOCK: Inconsistent locking. saw this ordering in one goroutine: happened before @@ -407,7 +443,7 @@ deadlock.go:137 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Other goroutines holding locks: -goroutine 370 lock 0xc0002b8038 +goroutine 349 lock 0xc000228038 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< deadlock.go:84 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } @@ -417,65 +453,65 @@ === RUN TestHardDeadlock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 371 lock 0xc0002b80f0 +goroutine 350 lock 0xc0002280f0 deadlock_test.go:104 go-deadlock.TestHardDeadlock { mu.Lock() } <<<<< deadlock.go:84 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } Have been trying to lock it again for more than 20ms -goroutine 373 lock 0xc0002b80f0 +goroutine 352 lock 0xc0002280f0 deadlock_test.go:108 go-deadlock.TestHardDeadlock.func2 { mu.Lock() } <<<<< deadlock.go:84 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } -Here is what goroutine 371 doing now -goroutine 371 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlock(0xc0002c2340) +Here is what goroutine 350 doing now +goroutine 350 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlock(0xc000232340) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.1/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x276 -testing.tRunner(0xc0002c2340, 0x55b3e0) +testing.tRunner(0xc000232340, 0x55b3e0) /usr/lib/go-1.22/src/testing/testing.go:1689 +0xfb created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.22/src/testing/testing.go:1742 +0x390 -2024/05/04 20:39:52 **************** +2025/06/07 03:04:15 **************** --- PASS: TestHardDeadlock (0.10s) === RUN TestRWMutex POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 192 lock 0xc000020378 +goroutine 300 lock 0xc000020360 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< deadlock.go:137 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Have been trying to lock it again for more than 20ms -goroutine 386 lock 0xc000020378 +goroutine 302 lock 0xc000020360 deadlock_test.go:134 go-deadlock.TestRWMutex.func2 { a.Lock() } <<<<< deadlock.go:116 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } -Here is what goroutine 192 doing now -goroutine 192 [sleep]: +Here is what goroutine 300 doing now +goroutine 300 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.22/src/runtime/time.go:195 +0x115 -github.com/sasha-s/go-deadlock.TestRWMutex(0xc0000ba000) +github.com/sasha-s/go-deadlock.TestRWMutex(0xc0000b6000) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.1/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x1f8 -testing.tRunner(0xc0000ba000, 0x55b400) +testing.tRunner(0xc0000b6000, 0x55b400) /usr/lib/go-1.22/src/testing/testing.go:1689 +0xfb created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.22/src/testing/testing.go:1742 +0x390 POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 192 lock 0xc000020378 +goroutine 300 lock 0xc000020360 deadlock_test.go:131 go-deadlock.TestRWMutex { a.RLock() } <<<<< deadlock.go:137 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } Have been trying to lock it again for more than 20ms -goroutine 388 lock 0xc000020378 +goroutine 336 lock 0xc000020360 deadlock_test.go:142 go-deadlock.TestRWMutex.func3 { a.RLock() } <<<<< deadlock.go:137 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -Here is what goroutine 192 doing now -goroutine 192 [select]: -github.com/sasha-s/go-deadlock.TestRWMutex(0xc0000ba000) +Here is what goroutine 300 doing now +goroutine 300 [select]: +github.com/sasha-s/go-deadlock.TestRWMutex(0xc0000b6000) /build/reproducible-path/golang-github-sasha-s-go-deadlock-0.3.1/obj-x86_64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x2c5 -testing.tRunner(0xc0000ba000, 0x55b400) +testing.tRunner(0xc0000b6000, 0x55b400) /usr/lib/go-1.22/src/testing/testing.go:1689 +0xfb created by testing.(*T).Run in goroutine 1 /usr/lib/go-1.22/src/testing/testing.go:1742 +0x390 @@ -483,16 +519,7 @@ --- PASS: TestRWMutex (0.15s) === RUN TestLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 392 lock 0xc000014170 -deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< -deadlock.go:84 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:84 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } - -POTENTIAL DEADLOCK: Recursive locking: -current goroutine 391 lock 0xc000020390 +current goroutine 232 lock 0xc00015c030 deadlock_test.go:175 go-deadlock.TestLockDuplicate.func2 { a.Lock() } <<<<< deadlock.go:116 go-deadlock.(*RWMutex).Lock { func (m *RWMutex) Lock() { } @@ -500,15 +527,24 @@ deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< deadlock.go:137 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } -Other goroutines holding locks: -goroutine 392 lock 0xc000014170 +POTENTIAL DEADLOCK: Recursive locking: +current goroutine 233 lock 0xc00012a0f8 +deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< +deadlock.go:84 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:84 go-deadlock.(*Mutex).Lock { func (m *Mutex) Lock() { } +Other goroutines holding locks: +goroutine 232 lock 0xc00015c030 +deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } <<<<< +deadlock.go:137 go-deadlock.(*RWMutex).RLock { func (m *RWMutex) RLock() { } + --- PASS: TestLockDuplicate (1.00s) PASS -ok github.com/sasha-s/go-deadlock 2.073s +ok github.com/sasha-s/go-deadlock 2.041s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -535,12 +571,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/1473837/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1473837/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/2707253 and its subdirectories -I: Current time: Sat May 4 08:39:58 -12 2024 -I: pbuilder-time-stamp: 1714855198 +I: removing directory /srv/workspace/pbuilder/1473837 and its subdirectories +I: Current time: Sat Jun 7 17:04:22 +14 2025 +I: pbuilder-time-stamp: 1749265462