#1147127 containerd: FTBFS: FAIL: TestOpenBoundedUserFileCapsReads

#1147127#5
Date:
2026-09-07 23:54:32 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202609/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:containerd, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
=== PAUSE TestWithUserID/user_1000
=== CONT  TestOpenBoundedUserFileCapsReads/beyond_ends_exactly_at_cap,_is_parsed
=== NAME  TestOpenBoundedUserFileCapsReads/pad_past_cap,_read_errors_out
    spec_opts_user_bounds_test.go:77:
        	Error Trace:	/<<PKGBUILDDIR>>/_build/src/github.com/containerd/containerd/v2/pkg/oci/spec_opts_user_bounds_test.go:77
        	Error:      	Error "bufio.Scanner: token too long" does not contain "exceeds"
        	Test:       	TestOpenBoundedUserFileCapsReads/pad_past_cap,_read_errors_out
=== CONT  TestWithAppendAdditionalGroupsNoEtcGroup/no_additional_gids
=== NAME  TestOpenBoundedUserFileCapsReads/beyond_ends_exactly_at_cap,_is_parsed
    spec_opts_user_bounds_test.go:80:
        	Error Trace:	/<<PKGBUILDDIR>>/_build/src/github.com/containerd/containerd/v2/pkg/oci/spec_opts_user_bounds_test.go:80
        	Error:      	Received unexpected error:
        	            	bufio.Scanner: token too long
        	Test:       	TestOpenBoundedUserFileCapsReads/beyond_ends_exactly_at_cap,_is_parsed
    spec_opts_user_bounds_test.go:81:
        	Error Trace:	/<<PKGBUILDDIR>>/_build/src/github.com/containerd/containerd/v2/pkg/oci/spec_opts_user_bounds_test.go:81
        	Error:      	Not equal:
        	            	expected: []uint32{0x2a}
        	            	actual  : []uint32{}

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1,3 +1,2 @@
        	            	-([]uint32) (len=1) {
        	            	- (uint32) 42
        	            	+([]uint32) {
        	            	 }
        	Test:       	TestOpenBoundedUserFileCapsReads/beyond_ends_exactly_at_cap,_is_parsed
--- FAIL: TestOpenBoundedUserFileCapsReads (0.00s)
    --- PASS: TestOpenBoundedUserFileCapsReads/pad_below_cap,_beyond_is_parsed (0.00s)
    --- FAIL: TestOpenBoundedUserFileCapsReads/pad_past_cap,_read_errors_out (0.02s)
    --- FAIL: TestOpenBoundedUserFileCapsReads/beyond_ends_exactly_at_cap,_is_parsed (0.02s)
=== CONT  TestWithAppendAdditionalGroupsNoEtcGroup/append_group_id
=== CONT  TestWithAppendAdditionalGroupsNoEtcGroup/no_additional_gids,_append_root_group
=== CONT  TestWithUser/0
=== CONT  TestWithUser/405:2147483648
=== CONT  TestWithUser/0:999999999999999999999999999999999999
=== CONT  TestWithUser/999999999999999999999999999999999999
=== CONT  TestWithUser/2147483648
=== CONT  TestWithUser/-1000
=== CONT  TestWithUser/guest:guest
=== CONT  TestWithUser/405:100
=== CONT  TestWithUser/guest
=== CONT  TestWithUser/root:root
=== CONT  TestWithUser/guest:nobody
=== CONT  TestWithAppendAdditionalGroups/no_additional_gids
=== CONT  TestWithUsername/root
=== CONT  TestWithAppendAdditionalGroups/append_group_id
--- PASS: TestWithAppendAdditionalGroupsNoEtcGroup (0.00s)
    --- PASS: TestWithAppendAdditionalGroupsNoEtcGroup/append_group_id (0.00s)
    --- PASS: TestWithAppendAdditionalGroupsNoEtcGroup/no_additional_gids,_append_root_group (0.00s)
    --- PASS: TestWithAppendAdditionalGroupsNoEtcGroup/no_additional_gids (0.00s)
=== CONT  TestWithAppendAdditionalGroups/unknown_group
=== CONT  TestWithAppendAdditionalGroups/has_root_additional_gids,_append_bin_and_daemon_gids
=== CONT  TestWithAppendAdditionalGroups/no_additional_gids,_append_bin_and_daemon_gids
=== CONT  TestWithAppendAdditionalGroups/no_additional_gids,_append_root_gid
=== CONT  TestWithAdditionalGIDs/root
=== CONT  TestWithAdditionalGIDs/daemon
=== CONT  TestWithAdditionalGIDs/bin:root
=== CONT  TestWithAdditionalGIDs/bin
=== CONT  TestWithAdditionalGIDs/1000
--- PASS: TestWithAdditionalGIDs (0.00s)
    --- PASS: TestWithAdditionalGIDs/root (0.00s)
    --- PASS: TestWithAdditionalGIDs/daemon (0.00s)
    --- PASS: TestWithAdditionalGIDs/bin:root (0.00s)
    --- PASS: TestWithAdditionalGIDs/bin (0.00s)
    --- PASS: TestWithAdditionalGIDs/1000 (0.00s)
=== CONT  TestWithUsername/unknown
=== CONT  TestWithUsername/1000
=== CONT  TestWithUsername/guest
--- PASS: TestWithUsername (0.00s)
    --- PASS: TestWithUsername/root (0.00s)
    --- PASS: TestWithUsername/unknown (0.00s)
    --- PASS: TestWithUsername/1000 (0.00s)
    --- PASS: TestWithUsername/guest (0.00s)
=== CONT  TestWithUserID/user_0
=== CONT  TestWithUserID/user_1000
=== CONT  TestWithUserID/user_405
--- PASS: TestWithUserID (0.00s)
    --- PASS: TestWithUserID/user_0 (0.00s)
    --- PASS: TestWithUserID/user_1000 (0.00s)
    --- PASS: TestWithUserID/user_405 (0.00s)
--- PASS: TestWithUser (0.01s)
    --- PASS: TestWithUser/0 (0.00s)
    --- PASS: TestWithUser/405:2147483648 (0.00s)
    --- PASS: TestWithUser/0:999999999999999999999999999999999999 (0.00s)
    --- PASS: TestWithUser/999999999999999999999999999999999999 (0.00s)
    --- PASS: TestWithUser/2147483648 (0.00s)
    --- PASS: TestWithUser/-1000 (0.00s)
    --- PASS: TestWithUser/guest:guest (0.00s)
    --- PASS: TestWithUser/405:100 (0.00s)
    --- PASS: TestWithUser/guest (0.00s)
    --- PASS: TestWithUser/root:root (0.00s)
    --- PASS: TestWithUser/guest:nobody (0.00s)
--- PASS: TestWithAppendAdditionalGroups (0.01s)
    --- PASS: TestWithAppendAdditionalGroups/no_additional_gids (0.00s)
    --- PASS: TestWithAppendAdditionalGroups/unknown_group (0.00s)
    --- PASS: TestWithAppendAdditionalGroups/has_root_additional_gids,_append_bin_and_daemon_gids (0.00s)
    --- PASS: TestWithAppendAdditionalGroups/no_additional_gids,_append_bin_and_daemon_gids (0.00s)
    --- PASS: TestWithAppendAdditionalGroups/no_additional_gids,_append_root_gid (0.00s)
    --- PASS: TestWithAppendAdditionalGroups/append_group_id (0.00s)
FAIL
FAIL	github.com/containerd/containerd/v2/pkg/oci	0.045s
?   	github.com/containerd/containerd/v2/pkg/oom	[no test files]
?   	github.com/containerd/containerd/v2/pkg/oom/v1	[no test files]
?   	github.com/containerd/containerd/v2/pkg/oom/v2	[no test files]
?   	github.com/containerd/containerd/v2/pkg/os	[no test files]
?   	github.com/containerd/containerd/v2/pkg/os/testing	[no test files]
?   	github.com/containerd/containerd/v2/pkg/progress	[no test files]
?   	github.com/containerd/containerd/v2/pkg/protobuf	[no test files]
?   	github.com/containerd/containerd/v2/pkg/protobuf/proto	[no test files]
?   	github.com/containerd/containerd/v2/pkg/protobuf/types	[no test files]
?   	github.com/containerd/containerd/v2/pkg/rdt	[no test files]
=== RUN   TestReferenceParser
=== RUN   TestReferenceParser/Basic
=== RUN   TestReferenceParser/BasicWithDigest
=== RUN   TestReferenceParser/DigestOnly
=== RUN   TestReferenceParser/AtShortDigest
=== RUN   TestReferenceParser/HostWithPort
=== RUN   TestReferenceParser/HostnameRequired
=== RUN   TestReferenceParser/ErrObjectRequired
=== RUN   TestReferenceParser/Subdomain
=== RUN   TestReferenceParser/SubdomainWithLongTag
=== RUN   TestReferenceParser/AGCRAppears
=== RUN   TestReferenceParser/Punycode
=== RUN   TestReferenceParser/PunycodeWithDigest
=== RUN   TestReferenceParser/SchemeDefined
--- PASS: TestReferenceParser (0.00s)
    --- PASS: TestReferenceParser/Basic (0.00s)
    --- PASS: TestReferenceParser/BasicWithDigest (0.00s)
    --- PASS: TestReferenceParser/DigestOnly (0.00s)
    --- PASS: TestReferenceParser/AtShortDigest (0.00s)
    --- PASS: TestReferenceParser/HostWithPort (0.00s)
    --- PASS: TestReferenceParser/HostnameRequired (0.00s)
    --- PASS: TestReferenceParser/ErrObjectRequired (0.00s)
    --- PASS: TestReferenceParser/Subdomain (0.00s)
    --- PASS: TestReferenceParser/SubdomainWithLongTag (0.00s)
    --- PASS: TestReferenceParser/AGCRAppears (0.00s)
    --- PASS: TestReferenceParser/Punycode (0.00s)
    --- PASS: TestReferenceParser/PunycodeWithDigest (0.00s)
    --- PASS: TestReferenceParser/SchemeDefined (0.00s)
PASS
ok  	github.com/containerd/containerd/v2/pkg/reference	0.002s
?   	github.com/containerd/containerd/v2/pkg/rootfs	[no test files]
?   	github.com/containerd/containerd/v2/pkg/schedcore	[no test files]
?   	github.com/containerd/containerd/v2/pkg/seccomp	[no test files]
=== RUN   TestRuntimeWithEmptyMaxEnvProcs
--- PASS: TestRuntimeWithEmptyMaxEnvProcs (0.00s)
=== RUN   TestRuntimeWithNonEmptyMaxEnvProcs
--- PASS: TestRuntimeWithNonEmptyMaxEnvProcs (0.00s)
=== RUN   TestShimOptWithValue
--- PASS: TestShimOptWithValue (0.00s)
=== RUN   TestChainUnaryServerInterceptors
--- PASS: TestChainUnaryServerInterceptors (0.00s)
PASS
ok  	github.com/containerd/containerd/v2/pkg/shim	0.004s
?   	github.com/containerd/containerd/v2/pkg/shutdown	[no test files]
=== RUN   TestImageLayersLabel
=== RUN   TestImageLayersLabel/valid_number_of_layers
=== RUN   TestImageLayersLabel/many_layers
--- PASS: TestImageLayersLabel (0.00s)
    --- PASS: TestImageLayersLabel/valid_number_of_layers (0.00s)
    --- PASS: TestImageLayersLabel/many_layers (0.00s)
PASS
ok  	github.com/containerd/containerd/v2/pkg/snapshotters	0.003s
?   	github.com/containerd/containerd/v2/pkg/stdio	[no test files]
=== RUN   TestGetUsernsForNamespace
    helpers_unix.go:40: skipping test that requires root
--- SKIP: TestGetUsernsForNamespace (0.00s)
=== RUN   TestSetPositiveOomScoreAdjustment
--- PASS: TestSetPositiveOomScoreAdjustment (0.00s)
=== RUN   TestSetNegativeOomScoreAdjustmentWhenPrivileged
    oom_linux_test.go:41: requires root and not running in user namespace
--- SKIP: TestSetNegativeOomScoreAdjustmentWhenPrivileged (0.00s)
=== RUN   TestSetNegativeOomScoreAdjustmentWhenUnprivilegedHasNoEffect
    oom_linux_test.go:52: test consistently failing in GitHub Actions
--- SKIP: TestSetNegativeOomScoreAdjustmentWhenUnprivilegedHasNoEffect (0.00s)
=== RUN   TestSetOOMScoreBoundaries
--- PASS: TestSetOOMScoreBoundaries (0.00s)
=== RUN   TestUnshareAfterEnterUserns
    helpers_unix.go:40: skipping test that requires root
--- SKIP: TestUnshareAfterEnterUserns (0.00s)
PASS
ok  	github.com/containerd/containerd/v2/pkg/sys	0.005s
?   	github.com/containerd/containerd/v2/pkg/sys/reaper	[no test files]
?   	github.com/containerd/containerd/v2/pkg/testutil	[no test files]
?   	github.com/containerd/containerd/v2/pkg/timeout	[no test files]
?   	github.com/containerd/containerd/v2/pkg/tracing	[no test files]
?   	github.com/containerd/containerd/v2/pkg/tracing/plugin	[no test files]
?   	github.com/containerd/containerd/v2/pkg/ttrpcutil	[no test files]
?   	github.com/containerd/containerd/v2/version	[no test files]
FAIL
dh_auto_test: error: cd _build && go test -vet=off -v -p 2 g [too-long-redacted] v2/version returned exit code 1
make[1]: *** [debian/rules:69: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:24: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------