Diff of the two buildlogs: -- --- b1/build.log 2023-05-05 22:58:48.083719480 +0000 +++ b2/build.log 2023-05-05 22:59:58.352638444 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jun 6 17:19:28 -12 2024 -I: pbuilder-time-stamp: 1717737568 +I: Current time: Sat May 6 12:58:51 +14 2023 +I: pbuilder-time-stamp: 1683327531 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./golang-github-sasha-s-go-deadlock_0.3.1.orig.tar.gz] I: copying [./golang-github-sasha-s-go-deadlock_0.3.1-1.debian.tar.xz] I: Extracting source -gpgv: Signature made Tue Nov 2 20:02:11 2021 -12 +gpgv: Signature made Wed Nov 3 22:02:11 2021 +14 gpgv: using RSA key 098735E890D75A09B364168E1A0EB82F071F5EFE gpgv: issuer "alois@micard.lu" gpgv: Can't check signature: No public key @@ -26,52 +26,84 @@ 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/11546/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3922/tmp/hooks/D01_modify_environment starting +debug: Running on codethink10-arm64. +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 May 6 12:59 /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/3922/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3922/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - 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]="15" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=8' - DISTRIBUTION='bookworm' - HOME='/var/lib/jenkins' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/var/lib/jenkins + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - 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='11546' - PS1='# ' - PS2='> ' + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=3922 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.qKwfrtM5/pbuilderrc_Hzkf --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.qKwfrtM5/b1 --logfile b1/build.log golang-github-sasha-s-go-deadlock_0.3.1-1.dsc' - SUDO_GID='117' - SUDO_UID='110' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - USERNAME='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.16: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.qKwfrtM5/pbuilderrc_6Ryn --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.qKwfrtM5/b2 --logfile b2/build.log --extrapackages usrmerge golang-github-sasha-s-go-deadlock_0.3.1-1.dsc' + SUDO_GID=117 + SUDO_UID=110 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + USERNAME=root + _='I: set' + http_proxy=http://192.168.101.16:3128 I: uname -a - Linux codethink13-arm64 4.15.0-210-generic #221-Ubuntu SMP Tue Apr 18 08:32:48 UTC 2023 aarch64 GNU/Linux + Linux i-capture-the-hostname 4.15.0-210-generic #221-Ubuntu SMP Tue Apr 18 08:32:48 UTC 2023 aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 4 2023 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/11546/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 6 00:25 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3922/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -150,7 +182,7 @@ Get: 35 http://deb.debian.org/debian bookworm/main arm64 golang-go arm64 2:1.19~1 [45.0 kB] Get: 36 http://deb.debian.org/debian bookworm/main arm64 golang-any arm64 2:1.19~1 [5876 B] Get: 37 http://deb.debian.org/debian bookworm/main arm64 golang-github-petermattis-goid-dev all 0.0~git20180202.b0b1615-3 [4724 B] -Fetched 93.3 MB in 3s (28.2 MB/s) +Fetched 93.3 MB in 3s (34.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 ... 19616 files and directories currently installed.) @@ -312,8 +344,17 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/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/3922/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +I: user script /srv/workspace/pbuilder/3922/tmp/hooks/A99_set_merged_usr finished +hostname: Temporary failure in name resolution +I: Running cd /build/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 @@ -334,16 +375,16 @@ cd obj-aarch64-linux-gnu && go install -trimpath -v -p 8 github.com/sasha-s/go-deadlock internal/goarch internal/unsafeheader -internal/goexperiment internal/goos +internal/goexperiment internal/race +sync/atomic +runtime/internal/syscall internal/cpu +unicode internal/abi runtime/internal/math -runtime/internal/syscall runtime/internal/sys -unicode -sync/atomic unicode/utf8 internal/itoa math/bits @@ -358,32 +399,32 @@ errors sort io -strconv +internal/oserror internal/safefilepath path -internal/oserror +strconv syscall bytes strings -bufio github.com/petermattis/goid reflect -internal/syscall/unix +bufio internal/syscall/execenv +internal/syscall/unix time io/fs internal/poll os internal/fmtsort +io/ioutil path/filepath fmt -io/ioutil os/user github.com/sasha-s/go-deadlock dh_auto_test -O--buildsystem=golang cd obj-aarch64-linux-gnu && go test -vet=off -v -p 8 github.com/sasha-s/go-deadlock === RUN TestNoDeadlocks ---- PASS: TestNoDeadlocks (0.82s) +--- PASS: TestNoDeadlocks (0.81s) === RUN TestLockOrder POTENTIAL DEADLOCK: Inconsistent locking. saw this ordering in one goroutine: happened before @@ -403,7 +444,7 @@ deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } Other goroutines holding locks: -goroutine 340 lock 0x400009c3a0 +goroutine 334 lock 0x4000092180 deadlock_test.go:84 go-deadlock.TestLockOrder.func3 { b.Lock() } <<<<< deadlock_test.go:83 go-deadlock.TestLockOrder.func3 { defer wg.Done() } @@ -413,65 +454,65 @@ === RUN TestHardDeadlock POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 341 lock 0x400009c490 +goroutine 335 lock 0x4000092270 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 343 lock 0x400009c490 +goroutine 337 lock 0x4000092270 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 341 doing now -goroutine 341 [select]: -github.com/sasha-s/go-deadlock.TestHardDeadlock(0x4000083ba0) +Here is what goroutine 335 doing now +goroutine 335 [select]: +github.com/sasha-s/go-deadlock.TestHardDeadlock(0x40000831e0) /build/golang-github-sasha-s-go-deadlock-0.3.1/obj-aarch64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:111 +0x210 -testing.tRunner(0x4000083ba0, 0x534410) +testing.tRunner(0x40000831e0, 0x534410) /usr/lib/go-1.19/src/testing/testing.go:1446 +0x10c created by testing.(*T).Run /usr/lib/go-1.19/src/testing/testing.go:1493 +0x328 -2024/06/06 17:21:33 **************** +2023/05/06 12:59:48 **************** --- PASS: TestHardDeadlock (0.10s) === RUN TestRWMutex POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 345 lock 0x40000d2090 +goroutine 360 lock 0x40001c4048 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 347 lock 0x40000d2090 +goroutine 362 lock 0x40001c4048 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 345 doing now -goroutine 345 [sleep]: +Here is what goroutine 360 doing now +goroutine 360 [sleep]: time.Sleep(0x5f5e100) /usr/lib/go-1.19/src/runtime/time.go:195 +0x120 -github.com/sasha-s/go-deadlock.TestRWMutex(0x4000083d40) +github.com/sasha-s/go-deadlock.TestRWMutex(0x4000183040) /build/golang-github-sasha-s-go-deadlock-0.3.1/obj-aarch64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:137 +0x1a4 -testing.tRunner(0x4000083d40, 0x534430) +testing.tRunner(0x4000183040, 0x534430) /usr/lib/go-1.19/src/testing/testing.go:1446 +0x10c created by testing.(*T).Run /usr/lib/go-1.19/src/testing/testing.go:1493 +0x328 POTENTIAL DEADLOCK: Previous place where the lock was grabbed -goroutine 345 lock 0x40000d2090 +goroutine 360 lock 0x40001c4048 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 349 lock 0x40000d2090 +goroutine 387 lock 0x40001c4048 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 345 doing now -goroutine 345 [select]: -github.com/sasha-s/go-deadlock.TestRWMutex(0x4000083d40) +Here is what goroutine 360 doing now +goroutine 360 [select]: +github.com/sasha-s/go-deadlock.TestRWMutex(0x4000183040) /build/golang-github-sasha-s-go-deadlock-0.3.1/obj-aarch64-linux-gnu/src/github.com/sasha-s/go-deadlock/deadlock_test.go:145 +0x250 -testing.tRunner(0x4000083d40, 0x534430) +testing.tRunner(0x4000183040, 0x534430) /usr/lib/go-1.19/src/testing/testing.go:1446 +0x10c created by testing.(*T).Run /usr/lib/go-1.19/src/testing/testing.go:1493 +0x328 @@ -479,7 +520,7 @@ --- PASS: TestRWMutex (0.15s) === RUN TestLockDuplicate POTENTIAL DEADLOCK: Recursive locking: -current goroutine 353 lock 0x400009c540 +current goroutine 282 lock 0x4000018350 deadlock_test.go:181 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } @@ -487,8 +528,14 @@ deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } +Other goroutines holding locks: +goroutine 281 lock 0x400001c300 +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 352 lock 0x40000d20a8 +current goroutine 281 lock 0x400001c300 deadlock_test.go:175 go-deadlock.TestLockDuplicate.func2 { a.Lock() } <<<<< deadlock_test.go:174 go-deadlock.TestLockDuplicate.func2 { a.RLock() } @@ -497,14 +544,14 @@ deadlock_test.go:173 go-deadlock.TestLockDuplicate.func2 { go func() { } Other goroutines holding locks: -goroutine 353 lock 0x400009c540 +goroutine 282 lock 0x4000018350 deadlock_test.go:180 go-deadlock.TestLockDuplicate.func3 { b.Lock() } <<<<< deadlock_test.go:179 go-deadlock.TestLockDuplicate.func3 { go func() { } --- PASS: TestLockDuplicate (1.00s) PASS -ok github.com/sasha-s/go-deadlock 2.103s +ok github.com/sasha-s/go-deadlock 2.071s create-stamp debian/debhelper-build-stamp dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang @@ -531,12 +578,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/3922/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3922/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/11546 and its subdirectories -I: Current time: Thu Jun 6 17:21:46 -12 2024 -I: pbuilder-time-stamp: 1717737706 +I: removing directory /srv/workspace/pbuilder/3922 and its subdirectories +I: Current time: Sat May 6 12:59:57 +14 2023 +I: pbuilder-time-stamp: 1683327597