#850200 golang-github-google-gofuzz: FTBFS randomly (failing tests)

#850200#5
Date:
2017-01-04 23:51:08 UTC
From:
To:
Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:
--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --buildsystem=golang --with=golang
   dh_testdir -i -O--buildsystem=golang
   dh_update_autotools_config -i -O--buildsystem=golang
   dh_auto_configure -i -O--buildsystem=golang
   dh_auto_build -i -O--buildsystem=golang
	go install -v -p 1 github.com/google/gofuzz
github.com/google/gofuzz
   dh_auto_test -i -O--buildsystem=golang
	go test -v -p 1 github.com/google/gofuzz
=== RUN   TestFuzz_basic
--- PASS: TestFuzz_basic (0.00s)
=== RUN   TestFuzz_structptr
--- FAIL: TestFuzz_structptr (0.00s)
	fuzz_test.go:96: a not nil seems to not be getting set, was zero value 10 times
	fuzz_test.go:96: as seems to not be getting set, was zero value 10 times
=== RUN   TestFuzz_structmap
--- PASS: TestFuzz_structmap (0.00s)
=== RUN   TestFuzz_structslice
--- PASS: TestFuzz_structslice (0.00s)
=== RUN   TestFuzz_custom
--- PASS: TestFuzz_custom (0.00s)
=== RUN   TestFuzz_interface
--- PASS: TestFuzz_interface (0.00s)
=== RUN   TestFuzz_interfaceAndFunc
--- PASS: TestFuzz_interfaceAndFunc (0.00s)
=== RUN   TestFuzz_noCustom
--- PASS: TestFuzz_noCustom (0.00s)
=== RUN   ExampleSimple
--- PASS: ExampleSimple (0.00s)
=== RUN   ExampleCustom
--- PASS: ExampleCustom (0.00s)
=== RUN   ExampleComplex
--- PASS: ExampleComplex (0.00s)
=== RUN   ExampleMap
--- PASS: ExampleMap (0.00s)
=== RUN   ExampleSingle
--- PASS: ExampleSingle (0.00s)
=== RUN   ExampleEnum
--- PASS: ExampleEnum (0.00s)
FAIL
exit status 1
FAIL	github.com/google/gofuzz	0.008s
dh_auto_test: go test -v -p 1 github.com/google/gofuzz returned exit code 1
debian/rules:4: recipe for target 'build-indep' failed
make: *** [build-indep] Error 1
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

This is just how the build ends, not necessarily the relevant part.

I've put several build logs here:

https://people.debian.org/~sanvila/golang-github-google-gofuzz/

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

The bug should be reproducible with sbuild on a single CPU virtual machine,
provided you try enough times (as the failure happens randomly).

After building 200 times, the failure rate observed here is about 6%.

Thanks.

#850200#10
Date:
2026-07-14 12:37:08 UTC
From:
To:
Hello,

Bug #850200 in golang-github-google-gofuzz reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/go-team/packages/golang-github-google-gofuzz/-/commit/ac7d865df77c4d9e8ddb77f1f3e7a32044d878b8

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/850200

#850200#17
Date:
2026-07-14 13:09:30 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
golang-github-google-gofuzz, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 850200@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Simon Josefsson <simon@josefsson.org> (supplier of updated golang-github-google-gofuzz package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 14 Jul 2026 14:22:54 +0200
Source: golang-github-google-gofuzz
Architecture: source
Version: 1.2.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Changed-By: Simon Josefsson <simon@josefsson.org>
Closes: 850200
Changes:
 golang-github-google-gofuzz (1.2.0-2) unstable; urgency=medium
 .
   * Team upload
 .
   [ Tianon Gravi ]
   * Remove self from Uploaders
 .
   [ Simon Josefsson ]
   * Apply consistent formatting to packaging files
   * Drop redundant `Priority: optional`
   * Drop redundant `Rules-Requires-Root: no`
   * Bump Debian Policy version to 4.7.4
   * Use dh-sequence-golang
   * Add d/u/metadata Repository* URLs
   * Use watch v5
   * Use compat 14
   * Bump debian/* copyright years
   * Ignore TestFuzz_structptr test fail (Closes: #850200)
   * Mark 32-bit patch with Forwarded URL
   * Ignore flaky TestFuzz_basic FAIL
Checksums-Sha1:
 c7061845554fe5be9910e01d438894d08fcd61ba 2517 golang-github-google-gofuzz_1.2.0-2.dsc
 55276a67c9002aafade9ef1f0cfc2625a746083b 3444 golang-github-google-gofuzz_1.2.0-2.debian.tar.xz
 4cd88d868b130d91cdd80e7a887a8aca2992a704 61256 golang-github-google-gofuzz_1.2.0-2.git.tar.xz
 967915379f4e8548b04c85aff3d5cf53cafb9b8d 17584 golang-github-google-gofuzz_1.2.0-2_source.buildinfo
Checksums-Sha256:
 49db18d44398c6cda13bd59dd8e993bf112eb94a0cac3f8e7d362b91565b5d93 2517 golang-github-google-gofuzz_1.2.0-2.dsc
 60d0ff7f16355f8e1f7a8f280641f261e8d6e0789ef707488fb65a216c0ad84e 3444 golang-github-google-gofuzz_1.2.0-2.debian.tar.xz
 59dad918558631e967ca4c6b41fc14f97f28b13a1c3f68b4b939acc512c6ff2b 61256 golang-github-google-gofuzz_1.2.0-2.git.tar.xz
 1fd4fbce45521546e4b7cf96211b783a827f9769dd33abb009d5c041868d5be6 17584 golang-github-google-gofuzz_1.2.0-2_source.buildinfo
Files:
 18789eea65d0df2b8c3af5abac047223 2517 golang optional golang-github-google-gofuzz_1.2.0-2.dsc
 fafe8d65a4cc0963e00e7ec366c749a5 3444 golang optional golang-github-google-gofuzz_1.2.0-2.debian.tar.xz
 2be28221ffb12d321a7ef593e0483ff7 61256 golang None golang-github-google-gofuzz_1.2.0-2.git.tar.xz
 3d52254eaf0964d200c15abca6018255 17584 golang optional golang-github-google-gofuzz_1.2.0-2_source.buildinfo
Git-Tag-Info: tag=7c4e94db414aa7e2c21145874a1a0f0ba06ef7fd fp=a3cc9c870b9d310abad4cf2f51722b08fe4745a2
Git-Tag-Tagger: Simon Josefsson <simon@josefsson.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmpWLdUACgkQYG0ITkaD
wHk9kg/+MD2I2MZ7DlagoYMtzzkI5txrEzYHmXQGsAjnu7FNhrEePYCAjKuCl3gJ
TCQ+IDLEhxOapiBNd8Uljn881GqsfsbzXnHpS212QcK22cABuO5pMcr1vns7GPbQ
WjecHnYdGM93zznRhpDHMyEm9TgJFtn93B3q4etXX6iLzBxsjVj7Png0CIv5WGUQ
9EAfgeFD6fyXP9bWWaVAmSkpJ45tjQ/U0SZbN0rhLj0/eNVU+Q8toLFdZjNLx6Q4
JqKnpg2B+TfwTVfXHuKaSqobtyXlt1mTBDLOpJYZZ7sCUc+WMVlt14rzd4IyUibo
BzyvykJDzeHhPbYSGWQFJDMYqhAmxxPu7gBwOPnMgamB9UW7ftKV5aV+Hyc/MbtT
bC66irLuDXMw6VkvnigWU2GXXLlk8VgbxbdnZV2utLBavFS50F5yu193JTyMsQVe
zOuUqu0BFE+6fupqJ2IELZ5Ji26UV3UNdCdW+qRrH2iKjd+sYCvWH2vNYdJx91/g
2fjNaiFEsW3wUewyWaxDeQtYWyecq88Tk8dMgGp7mb47/xIZzJW//eRqmx0dL7OS
A+zI7mkqdnHGi4K4AE2LW4LibjtDESyygkkJNExG4RmDtb4djm4UwTA7AvrbTHZd
R1wd8SN7aYSIiqQqwdlDBaomw6hqNrAP7UbeFtUsZ65OS7EQIbk=
=ja7c
-----END PGP SIGNATURE-----