#1031058 golang-github-pion-dtls.v2: FTBFS randomly (failing tests)

#1031058#5
Date:
2023-02-10 23:43:50 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in bookworm, your package failed to build:
--------------------------------------------------------------------------------
[...]
  debian/rules binary-indep
dh binary-indep --builddirectory=_build --buildsystem=golang --with=golang
    dh_update_autotools_config -i -O--builddirectory=_build -O--buildsystem=golang
    dh_autoreconf -i -O--builddirectory=_build -O--buildsystem=golang
    dh_auto_configure -i -O--builddirectory=_build -O--buildsystem=golang
    dh_auto_build -i -O--builddirectory=_build -O--buildsystem=golang
	cd _build && go install -trimpath -v -p 1 github.com/pion/dtls/v2 github.com/pion/dtls/v2/e2e github.com/pion/dtls/v2/examples/dial/psk github.com/pion/dtls/v2/examples/dial/selfsign github.com/pion/dtls/v2/examples/dial/verify github.com/pion/dtls/v2/examples/listen/psk github.com/pion/dtls/v2/examples/listen/selfsign github.com/pion/dtls/v2/examples/listen/verify github.com/pion/dtls/v2/examples/util github.com/pion/dtls/v2/internal/ciphersuite github.com/pion/dtls/v2/internal/ciphersuite/types github.com/pion/dtls/v2/internal/closer github.com/pion/dtls/v2/internal/net/dpipe github.com/pion/dtls/v2/internal/util github.com/pion/dtls/v2/pkg/crypto/ccm github.com/pion/dtls/v2/pkg/crypto/ciphersuite github.com/pion/dtls/v2/pkg/crypto/clientcertificate github.com/pion/dtls/v2/pkg/crypto/elliptic github.com/pion/dtls/v2/pkg/crypto/fingerprint github.com/pion/dtls/v2/pkg/crypto/hash github.com/pion/dtls/v2/pkg/crypto/prf github.com/pion/dtls/v2/pkg/crypto/selfsign github.com/pion/dtls/v2/pkg/crypto/signature github.com/pion/dtls/v2/pkg/crypto/signaturehash github.com/pion/dtls/v2/pkg/protocol github.com/pion/dtls/v2/pkg/protocol/alert github.com/pion/dtls/v2/pkg/protocol/extension github.com/pion/dtls/v2/pkg/protocol/handshake github.com/pion/dtls/v2/pkg/protocol/recordlayer
internal/goarch
internal/unsafeheader
internal/abi
internal/cpu
internal/bytealg
internal/goexperiment
internal/goos

[... snipped ...]

#	0x4de919	testing.(*T).Run+0x379				/usr/lib/go-1.19/src/testing/testing.go:1494
#	0x623f9d	golang.org/x/net/nettest.TestConn+0x11d		/<<PKGBUILDDIR>>/_build/src/golang.org/x/net/nettest/conntest.go:34
#	0x66bc13	github.com/pion/dtls/v2.TestNetTest+0x73	/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/nettest_test.go:19
#	0x4ddb2a	testing.tRunner+0x10a				/usr/lib/go-1.19/src/testing/testing.go:1446

1 @ 0x43ba56 0x44b81c 0x5fe349 0x46bbc1
#	0x5fe348	github.com/pion/transport/connctx.(*connCtx).WriteContext.func1+0xc8	/<<PKGBUILDDIR>>/_build/src/github.com/pion/transport/connctx/connctx.go:122

1 @ 0x43ba56 0x44b81c 0x620816 0x5fe0ae 0x62e296 0x62d425 0x490ca4 0x490a1c 0x6297db 0x46bbc1
#	0x620815	github.com/pion/dtls/v2/internal/net/dpipe.(*conn).Write+0x195	/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/internal/net/dpipe/dpipe.go:128
#	0x5fe0ad	github.com/pion/transport/connctx.(*connCtx).WriteContext+0x22d	/<<PKGBUILDDIR>>/_build/src/github.com/pion/transport/connctx/connctx.go:137
#	0x62e295	github.com/pion/dtls/v2.(*Conn).writePackets+0xa55		/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:411
#	0x62d424	github.com/pion/dtls/v2.(*Conn).Write+0x244			/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:331
#	0x490ca3	io.copyBuffer+0x203						/usr/lib/go-1.19/src/io/io.go:429
#	0x490a1b	io.CopyBuffer+0x3b						/usr/lib/go-1.19/src/io/io.go:400
#	0x6297da	golang.org/x/net/nettest.chunkedCopy+0xda			/<<PKGBUILDDIR>>/_build/src/golang.org/x/net/nettest/conntest.go:466

1 @ 0x43ba56 0x44c8de 0x44c8b5 0x468105 0x474ae5 0x476036 0x476015 0x62d8b5 0x631305 0x62f536 0x6319e5 0x46bbc1
#	0x468104	sync.runtime_SemacquireMutex+0x24			/usr/lib/go-1.19/src/runtime/sema.go:77
#	0x474ae4	sync.(*Mutex).lockSlow+0x164				/usr/lib/go-1.19/src/sync/mutex.go:171
#	0x476035	sync.(*Mutex).Lock+0x35					/usr/lib/go-1.19/src/sync/mutex.go:90
#	0x476014	sync.(*RWMutex).Lock+0x14				/usr/lib/go-1.19/src/sync/rwmutex.go:147
#	0x62d8b4	github.com/pion/dtls/v2.(*Conn).writePackets+0x74	/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:375
#	0x631304	github.com/pion/dtls/v2.(*Conn).notify+0x344		/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:783
#	0x62f535	github.com/pion/dtls/v2.(*Conn).readAndBuffer+0x535	/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:584
#	0x6319e4	github.com/pion/dtls/v2.(*Conn).handshake.func3+0x104	/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:852

1 @ 0x43ba56 0x44c8de 0x44c8b5 0x468105 0x474ae5 0x476036 0x476015 0x62d8b5 0x631305 0x6323e5 0x62d4e5 0x66bb82 0x624afb 0x474e82 0x474d7f 0x6248c3 0x624585 0x4ddb2b 0x46bbc1
#	0x468104	sync.runtime_SemacquireMutex+0x24			/usr/lib/go-1.19/src/runtime/sema.go:77
#	0x474ae4	sync.(*Mutex).lockSlow+0x164				/usr/lib/go-1.19/src/sync/mutex.go:171
#	0x476035	sync.(*Mutex).Lock+0x35					/usr/lib/go-1.19/src/sync/mutex.go:90
#	0x476014	sync.(*RWMutex).Lock+0x14				/usr/lib/go-1.19/src/sync/rwmutex.go:147
#	0x62d8b4	github.com/pion/dtls/v2.(*Conn).writePackets+0x74	/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:375
#	0x631304	github.com/pion/dtls/v2.(*Conn).notify+0x344		/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:783
#	0x6323e4	github.com/pion/dtls/v2.(*Conn).close+0xc4		/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:928
#	0x62d4e4	github.com/pion/dtls/v2.(*Conn).Close+0x24		/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/conn.go:349
#	0x66bb81	github.com/pion/dtls/v2.TestNetTest.func1.1+0x41	/<<PKGBUILDDIR>>/_build/src/github.com/pion/dtls/v2/nettest_test.go:26
#	0x624afa	golang.org/x/net/nettest.timeoutWrapper.func1+0x1a	/<<PKGBUILDDIR>>/_build/src/golang.org/x/net/nettest/conntest.go:54
#	0x474e81	sync.(*Once).doSlow+0xc1				/usr/lib/go-1.19/src/sync/once.go:74
#	0x474d7e	sync.(*Once).Do+0x1e					/usr/lib/go-1.19/src/sync/once.go:65
#	0x6248c2	golang.org/x/net/nettest.timeoutWrapper+0x242		/<<PKGBUILDDIR>>/_build/src/golang.org/x/net/nettest/conntest.go:63
#	0x624584	golang.org/x/net/nettest.TestConn.func3+0x24		/<<PKGBUILDDIR>>/_build/src/golang.org/x/net/nettest/conntest.go:34
#	0x4ddb2a	testing.tRunner+0x10a					/usr/lib/go-1.19/src/testing/testing.go:1446

panic: timeout

goroutine 8994 [running]:
github.com/pion/transport/test.TimeOut.func1()
	/<<PKGBUILDDIR>>/_build/src/github.com/pion/transport/test/util.go:24 +0xa5
created by time.goFunc
	/usr/lib/go-1.19/src/time/sleep.go:176 +0x32
FAIL	github.com/pion/dtls/v2	92.621s
=== RUN   TestPionE2ELossy
=== RUN   TestPionE2ELossy/Loss0_MTU0
=== RUN   TestPionE2ELossy/Loss10_MTU0
=== RUN   TestPionE2ELossy/Loss20_MTU0
=== RUN   TestPionE2ELossy/Loss50_MTU0
=== RUN   TestPionE2ELossy/Loss0_MTU0_WithCliAuth
=== RUN   TestPionE2ELossy/Loss10_MTU0_WithCliAuth
=== RUN   TestPionE2ELossy/Loss20_MTU0_WithCliAuth
=== RUN   TestPionE2ELossy/Loss50_MTU0_WithCliAuth
=== RUN   TestPionE2ELossy/Loss0_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
=== RUN   TestPionE2ELossy/Loss10_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
=== RUN   TestPionE2ELossy/Loss20_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
=== RUN   TestPionE2ELossy/Loss50_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
=== RUN   TestPionE2ELossy/Loss10_MTU100_WithCliAuth
=== RUN   TestPionE2ELossy/Loss20_MTU100_WithCliAuth
=== RUN   TestPionE2ELossy/Loss50_MTU100_WithCliAuth
--- PASS: TestPionE2ELossy (6.48s)
     --- PASS: TestPionE2ELossy/Loss0_MTU0 (0.17s)
     --- PASS: TestPionE2ELossy/Loss10_MTU0 (0.35s)
     --- PASS: TestPionE2ELossy/Loss20_MTU0 (0.26s)
     --- PASS: TestPionE2ELossy/Loss50_MTU0 (0.25s)
     --- PASS: TestPionE2ELossy/Loss0_MTU0_WithCliAuth (0.05s)
     --- PASS: TestPionE2ELossy/Loss10_MTU0_WithCliAuth (0.06s)
     --- PASS: TestPionE2ELossy/Loss20_MTU0_WithCliAuth (0.25s)
     --- PASS: TestPionE2ELossy/Loss50_MTU0_WithCliAuth (0.16s)
     --- PASS: TestPionE2ELossy/Loss0_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0.06s)
     --- PASS: TestPionE2ELossy/Loss10_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0.05s)
     --- PASS: TestPionE2ELossy/Loss20_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0.25s)
     --- PASS: TestPionE2ELossy/Loss50_MTU0_WithTLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0.76s)
     --- PASS: TestPionE2ELossy/Loss10_MTU100_WithCliAuth (0.45s)
     --- PASS: TestPionE2ELossy/Loss20_MTU100_WithCliAuth (0.79s)
     --- PASS: TestPionE2ELossy/Loss50_MTU100_WithCliAuth (2.16s)
=== RUN   TestPionE2ESimple
=== RUN   TestPionE2ESimple/TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
=== RUN   TestPionE2ESimple/TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
=== RUN   TestPionE2ESimple/TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
--- PASS: TestPionE2ESimple (0.41s)
     --- PASS: TestPionE2ESimple/TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0.00s)
     --- PASS: TestPionE2ESimple/TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (0.00s)
     --- PASS: TestPionE2ESimple/TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0.00s)
=== RUN   TestPionE2ESimplePSK
=== RUN   TestPionE2ESimplePSK/TLS_PSK_WITH_AES_128_CCM
=== RUN   TestPionE2ESimplePSK/TLS_PSK_WITH_AES_128_CCM_8
=== RUN   TestPionE2ESimplePSK/TLS_PSK_WITH_AES_256_CCM_8
=== RUN   TestPionE2ESimplePSK/TLS_PSK_WITH_AES_128_GCM_SHA256
=== RUN   TestPionE2ESimplePSK/TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256
--- PASS: TestPionE2ESimplePSK (0.42s)
     --- PASS: TestPionE2ESimplePSK/TLS_PSK_WITH_AES_128_CCM (0.00s)
     --- PASS: TestPionE2ESimplePSK/TLS_PSK_WITH_AES_128_CCM_8 (0.00s)
     --- PASS: TestPionE2ESimplePSK/TLS_PSK_WITH_AES_256_CCM_8 (0.00s)
     --- PASS: TestPionE2ESimplePSK/TLS_PSK_WITH_AES_128_GCM_SHA256 (0.00s)
     --- PASS: TestPionE2ESimplePSK/TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 (0.00s)
=== RUN   TestPionE2EMTUs
=== RUN   TestPionE2EMTUs/MTU10000
=== RUN   TestPionE2EMTUs/MTU1000
=== RUN   TestPionE2EMTUs/MTU100
--- PASS: TestPionE2EMTUs (0.41s)
     --- PASS: TestPionE2EMTUs/MTU10000 (0.00s)
     --- PASS: TestPionE2EMTUs/MTU1000 (0.00s)
     --- PASS: TestPionE2EMTUs/MTU100 (0.00s)
=== RUN   TestPionE2ESimpleED25519
=== RUN   TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_128_CCM
=== RUN   TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8
=== RUN   TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
=== RUN   TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
=== RUN   TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA
--- PASS: TestPionE2ESimpleED25519 (0.42s)
     --- PASS: TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_128_CCM (0.01s)
     --- PASS: TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 (0.00s)
     --- PASS: TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (0.00s)
     --- PASS: TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (0.00s)
     --- PASS: TestPionE2ESimpleED25519/TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (0.00s)
PASS
ok  	github.com/pion/dtls/v2/e2e	8.154s
?   	github.com/pion/dtls/v2/examples/dial/psk	[no test files]
?   	github.com/pion/dtls/v2/examples/dial/selfsign	[no test files]
?   	github.com/pion/dtls/v2/examples/dial/verify	[no test files]
?   	github.com/pion/dtls/v2/examples/listen/psk	[no test files]
?   	github.com/pion/dtls/v2/examples/listen/selfsign	[no test files]
?   	github.com/pion/dtls/v2/examples/listen/verify	[no test files]
?   	github.com/pion/dtls/v2/examples/util	[no test files]
?   	github.com/pion/dtls/v2/internal/ciphersuite	[no test files]
?   	github.com/pion/dtls/v2/internal/ciphersuite/types	[no test files]
?   	github.com/pion/dtls/v2/internal/closer	[no test files]
=== RUN   TestNetTest
=== RUN   TestNetTest/BasicIO
=== RUN   TestNetTest/PingPong
=== RUN   TestNetTest/RacyRead
=== RUN   TestNetTest/RacyWrite
=== RUN   TestNetTest/ReadTimeout
=== RUN   TestNetTest/WriteTimeout
=== RUN   TestNetTest/PastTimeout
=== RUN   TestNetTest/PresentTimeout
=== RUN   TestNetTest/FutureTimeout
=== RUN   TestNetTest/CloseTimeout
=== RUN   TestNetTest/ConcurrentMethods
--- PASS: TestNetTest (0.33s)
     --- PASS: TestNetTest/BasicIO (0.00s)
     --- PASS: TestNetTest/PingPong (0.00s)
     --- PASS: TestNetTest/RacyRead (0.00s)
     --- PASS: TestNetTest/RacyWrite (0.00s)
     --- PASS: TestNetTest/ReadTimeout (0.00s)
     --- PASS: TestNetTest/WriteTimeout (0.00s)
     --- PASS: TestNetTest/PastTimeout (0.00s)
     --- PASS: TestNetTest/PresentTimeout (0.10s)
     --- PASS: TestNetTest/FutureTimeout (0.10s)
     --- PASS: TestNetTest/CloseTimeout (0.10s)
     --- PASS: TestNetTest/ConcurrentMethods (0.00s)
=== RUN   TestPipe
=== RUN   TestPipe/AtoB
=== RUN   TestPipe/BtoA
--- PASS: TestPipe (0.01s)
     --- PASS: TestPipe/AtoB (0.00s)
     --- PASS: TestPipe/BtoA (0.00s)
PASS
ok  	github.com/pion/dtls/v2/internal/net/dpipe	0.344s
?   	github.com/pion/dtls/v2/internal/util	[no test files]
=== RUN   TestRFC3610Vectors
=== RUN   TestRFC3610Vectors/packet_vector_#1
=== RUN   TestRFC3610Vectors/packet_vector_#1/seal
=== RUN   TestRFC3610Vectors/packet_vector_#1/open
=== RUN   TestRFC3610Vectors/packet_vector_#2
=== RUN   TestRFC3610Vectors/packet_vector_#2/seal
=== RUN   TestRFC3610Vectors/packet_vector_#2/open
=== RUN   TestRFC3610Vectors/packet_vector_#3
=== RUN   TestRFC3610Vectors/packet_vector_#3/seal
=== RUN   TestRFC3610Vectors/packet_vector_#3/open
=== RUN   TestRFC3610Vectors/packet_vector_#4
=== RUN   TestRFC3610Vectors/packet_vector_#4/seal
=== RUN   TestRFC3610Vectors/packet_vector_#4/open
=== RUN   TestRFC3610Vectors/packet_vector_#5
=== RUN   TestRFC3610Vectors/packet_vector_#5/seal
=== RUN   TestRFC3610Vectors/packet_vector_#5/open
=== RUN   TestRFC3610Vectors/packet_vector_#6
=== RUN   TestRFC3610Vectors/packet_vector_#6/seal
=== RUN   TestRFC3610Vectors/packet_vector_#6/open
=== RUN   TestRFC3610Vectors/packet_vector_#7
=== RUN   TestRFC3610Vectors/packet_vector_#7/seal
=== RUN   TestRFC3610Vectors/packet_vector_#7/open
=== RUN   TestRFC3610Vectors/packet_vector_#8
=== RUN   TestRFC3610Vectors/packet_vector_#8/seal
=== RUN   TestRFC3610Vectors/packet_vector_#8/open
=== RUN   TestRFC3610Vectors/packet_vector_#9
=== RUN   TestRFC3610Vectors/packet_vector_#9/seal
=== RUN   TestRFC3610Vectors/packet_vector_#9/open
=== RUN   TestRFC3610Vectors/packet_vector_#10
=== RUN   TestRFC3610Vectors/packet_vector_#10/seal
=== RUN   TestRFC3610Vectors/packet_vector_#10/open
=== RUN   TestRFC3610Vectors/packet_vector_#11
=== RUN   TestRFC3610Vectors/packet_vector_#11/seal
=== RUN   TestRFC3610Vectors/packet_vector_#11/open
=== RUN   TestRFC3610Vectors/packet_vector_#12
=== RUN   TestRFC3610Vectors/packet_vector_#12/seal
=== RUN   TestRFC3610Vectors/packet_vector_#12/open
=== RUN   TestRFC3610Vectors/packet_vector_#13
=== RUN   TestRFC3610Vectors/packet_vector_#13/seal
=== RUN   TestRFC3610Vectors/packet_vector_#13/open
=== RUN   TestRFC3610Vectors/packet_vector_#14
=== RUN   TestRFC3610Vectors/packet_vector_#14/seal
=== RUN   TestRFC3610Vectors/packet_vector_#14/open
=== RUN   TestRFC3610Vectors/packet_vector_#15
=== RUN   TestRFC3610Vectors/packet_vector_#15/seal
=== RUN   TestRFC3610Vectors/packet_vector_#15/open
=== RUN   TestRFC3610Vectors/packet_vector_#16
=== RUN   TestRFC3610Vectors/packet_vector_#16/seal
=== RUN   TestRFC3610Vectors/packet_vector_#16/open
=== RUN   TestRFC3610Vectors/packet_vector_#17
=== RUN   TestRFC3610Vectors/packet_vector_#17/seal
=== RUN   TestRFC3610Vectors/packet_vector_#17/open
=== RUN   TestRFC3610Vectors/packet_vector_#18
=== RUN   TestRFC3610Vectors/packet_vector_#18/seal
=== RUN   TestRFC3610Vectors/packet_vector_#18/open
=== RUN   TestRFC3610Vectors/packet_vector_#19
=== RUN   TestRFC3610Vectors/packet_vector_#19/seal
=== RUN   TestRFC3610Vectors/packet_vector_#19/open
=== RUN   TestRFC3610Vectors/packet_vector_#20
=== RUN   TestRFC3610Vectors/packet_vector_#20/seal
=== RUN   TestRFC3610Vectors/packet_vector_#20/open
=== RUN   TestRFC3610Vectors/packet_vector_#21
=== RUN   TestRFC3610Vectors/packet_vector_#21/seal
=== RUN   TestRFC3610Vectors/packet_vector_#21/open
=== RUN   TestRFC3610Vectors/packet_vector_#22
=== RUN   TestRFC3610Vectors/packet_vector_#22/seal
=== RUN   TestRFC3610Vectors/packet_vector_#22/open
=== RUN   TestRFC3610Vectors/packet_vector_#23
=== RUN   TestRFC3610Vectors/packet_vector_#23/seal
=== RUN   TestRFC3610Vectors/packet_vector_#23/open
=== RUN   TestRFC3610Vectors/packet_vector_#24
=== RUN   TestRFC3610Vectors/packet_vector_#24/seal
=== RUN   TestRFC3610Vectors/packet_vector_#24/open
--- PASS: TestRFC3610Vectors (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#1 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#1/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#1/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#2 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#2/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#2/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#3 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#3/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#3/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#4 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#4/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#4/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#5 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#5/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#5/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#6 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#6/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#6/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#7 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#7/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#7/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#8 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#8/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#8/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#9 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#9/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#9/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#10 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#10/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#10/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#11 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#11/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#11/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#12 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#12/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#12/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#13 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#13/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#13/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#14 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#14/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#14/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#15 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#15/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#15/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#16 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#16/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#16/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#17 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#17/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#17/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#18 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#18/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#18/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#19 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#19/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#19/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#20 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#20/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#20/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#21 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#21/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#21/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#22 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#22/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#22/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#23 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#23/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#23/open (0.00s)
     --- PASS: TestRFC3610Vectors/packet_vector_#24 (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#24/seal (0.00s)
         --- PASS: TestRFC3610Vectors/packet_vector_#24/open (0.00s)
=== RUN   TestNewCCMError
=== RUN   TestNewCCMError/ShortNonceLength
=== RUN   TestNewCCMError/LongNonceLength
=== RUN   TestNewCCMError/ShortTag
=== RUN   TestNewCCMError/LongTag
--- PASS: TestNewCCMError (0.00s)
     --- PASS: TestNewCCMError/ShortNonceLength (0.00s)
     --- PASS: TestNewCCMError/LongNonceLength (0.00s)
     --- PASS: TestNewCCMError/ShortTag (0.00s)
     --- PASS: TestNewCCMError/LongTag (0.00s)
=== RUN   TestSealError
=== RUN   TestSealError/InvalidNonceLength
=== RUN   TestSealError/PlaintextTooLong
--- PASS: TestSealError (0.00s)
     --- PASS: TestSealError/InvalidNonceLength (0.00s)
     --- PASS: TestSealError/PlaintextTooLong (0.00s)
=== RUN   TestOpenError
=== RUN   TestOpenError/CiphertextTooShort
=== RUN   TestOpenError/CiphertextTooLong
--- PASS: TestOpenError (0.00s)
     --- PASS: TestOpenError/CiphertextTooShort (0.00s)
     --- PASS: TestOpenError/CiphertextTooLong (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/crypto/ccm	0.004s
?   	github.com/pion/dtls/v2/pkg/crypto/ciphersuite	[no test files]
?   	github.com/pion/dtls/v2/pkg/crypto/clientcertificate	[no test files]
?   	github.com/pion/dtls/v2/pkg/crypto/elliptic	[no test files]
=== RUN   TestFingerprint
--- PASS: TestFingerprint (0.00s)
=== RUN   TestFingerprint_UnavailableHash
--- PASS: TestFingerprint_UnavailableHash (0.00s)
=== RUN   TestHashFromString
=== RUN   TestHashFromString/InvalidHashAlgorithm
=== RUN   TestHashFromString/ValidHashAlgorithm
--- PASS: TestHashFromString (0.00s)
     --- PASS: TestHashFromString/InvalidHashAlgorithm (0.00s)
     --- PASS: TestHashFromString/ValidHashAlgorithm (0.00s)
=== RUN   TestStringFromHash_Roundtrip
--- PASS: TestStringFromHash_Roundtrip (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/crypto/fingerprint	0.004s
=== RUN   TestHashAlgorithm_StringRoundtrip
--- PASS: TestHashAlgorithm_StringRoundtrip (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/crypto/hash	0.003s
=== RUN   TestPreMasterSecret
--- PASS: TestPreMasterSecret (0.00s)
=== RUN   TestMasterSecret
--- PASS: TestMasterSecret (0.00s)
=== RUN   TestEncryptionKeys
--- PASS: TestEncryptionKeys (0.00s)
=== RUN   TestVerifyData
--- PASS: TestVerifyData (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/crypto/prf	0.003s
?   	github.com/pion/dtls/v2/pkg/crypto/selfsign	[no test files]
?   	github.com/pion/dtls/v2/pkg/crypto/signature	[no test files]
=== RUN   TestParseSignatureSchemes_Ed25519
=== RUN   TestParseSignatureSchemes_Ed25519/Translate
--- PASS: TestParseSignatureSchemes_Ed25519 (0.00s)
     --- PASS: TestParseSignatureSchemes_Ed25519/Translate (0.00s)
=== RUN   TestParseSignatureSchemes
=== RUN   TestParseSignatureSchemes/OnlyInsecureHashAlgorithm
=== RUN   TestParseSignatureSchemes/Translate
=== RUN   TestParseSignatureSchemes/InvalidSignatureAlgorithm
=== RUN   TestParseSignatureSchemes/InvalidHashAlgorithm
=== RUN   TestParseSignatureSchemes/InsecureHashAlgorithmDenied
=== RUN   TestParseSignatureSchemes/InsecureHashAlgorithmAllowed
--- PASS: TestParseSignatureSchemes (0.00s)
     --- PASS: TestParseSignatureSchemes/OnlyInsecureHashAlgorithm (0.00s)
     --- PASS: TestParseSignatureSchemes/Translate (0.00s)
     --- PASS: TestParseSignatureSchemes/InvalidSignatureAlgorithm (0.00s)
     --- PASS: TestParseSignatureSchemes/InvalidHashAlgorithm (0.00s)
     --- PASS: TestParseSignatureSchemes/InsecureHashAlgorithmDenied (0.00s)
     --- PASS: TestParseSignatureSchemes/InsecureHashAlgorithmAllowed (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/crypto/signaturehash	0.003s
=== RUN   TestChangeCipherSpecRoundTrip
--- PASS: TestChangeCipherSpecRoundTrip (0.00s)
=== RUN   TestChangeCipherSpecInvalid
--- PASS: TestChangeCipherSpecInvalid (0.00s)
=== RUN   TestDecodeCompressionMethods
--- PASS: TestDecodeCompressionMethods (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/protocol	0.004s
=== RUN   TestAlert
--- PASS: TestAlert (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/protocol/alert	0.003s
=== RUN   TestALPN
--- PASS: TestALPN (0.00s)
=== RUN   TestALPNProtocolSelection
--- PASS: TestALPNProtocolSelection (0.00s)
=== RUN   TestExtensions
=== RUN   TestExtensions/Zero
=== RUN   TestExtensions/Invalid
--- PASS: TestExtensions (0.00s)
     --- PASS: TestExtensions/Zero (0.00s)
     --- PASS: TestExtensions/Invalid (0.00s)
=== RUN   TestRenegotiationInfo
--- PASS: TestRenegotiationInfo (0.00s)
=== RUN   TestServerName
--- PASS: TestServerName (0.00s)
=== RUN   TestExtensionSupportedGroups
--- PASS: TestExtensionSupportedGroups (0.00s)
=== RUN   TestExtensionSupportedPointFormats
--- PASS: TestExtensionSupportedPointFormats (0.00s)
=== RUN   TestExtensionSupportedSignatureAlgorithms
--- PASS: TestExtensionSupportedSignatureAlgorithms (0.00s)
=== RUN   TestExtensionUseSRTP
--- PASS: TestExtensionUseSRTP (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/protocol/extension	0.005s
=== RUN   TestDecodeCipherSuiteIDs
--- PASS: TestDecodeCipherSuiteIDs (0.00s)
=== RUN   TestHandshakeMessageCertificateRequest
--- PASS: TestHandshakeMessageCertificateRequest (0.00s)
=== RUN   TestHandshakeMessageCertificate
--- PASS: TestHandshakeMessageCertificate (0.00s)
=== RUN   TestEmptyHandshakeMessageCertificate
--- PASS: TestEmptyHandshakeMessageCertificate (0.00s)
=== RUN   TestHandshakeMessageCertificateVerify
--- PASS: TestHandshakeMessageCertificateVerify (0.00s)
=== RUN   TestHandshakeMessageClientHello
--- PASS: TestHandshakeMessageClientHello (0.00s)
=== RUN   TestHandshakeMessageClientHelloSessionID
--- PASS: TestHandshakeMessageClientHelloSessionID (0.00s)
=== RUN   TestHandshakeMessageClientKeyExchange
--- PASS: TestHandshakeMessageClientKeyExchange (0.00s)
=== RUN   TestHandshakeMessageFinished
--- PASS: TestHandshakeMessageFinished (0.00s)
=== RUN   TestHandshakeMessageHelloVerifyRequest
--- PASS: TestHandshakeMessageHelloVerifyRequest (0.00s)
=== RUN   TestHandshakeMessageServerHelloDone
--- PASS: TestHandshakeMessageServerHelloDone (0.00s)
=== RUN   TestHandshakeMessageServerHello
--- PASS: TestHandshakeMessageServerHello (0.00s)
=== RUN   TestHandshakeMessageServerHelloSessionID
--- PASS: TestHandshakeMessageServerHelloSessionID (0.00s)
=== RUN   TestHandshakeMessageServerKeyExchange
=== RUN   TestHandshakeMessageServerKeyExchange/Hash+Signature
=== RUN   TestHandshakeMessageServerKeyExchange/Anonymous
--- PASS: TestHandshakeMessageServerKeyExchange (0.00s)
     --- PASS: TestHandshakeMessageServerKeyExchange/Hash+Signature (0.00s)
     --- PASS: TestHandshakeMessageServerKeyExchange/Anonymous (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/protocol/handshake	0.004s
=== RUN   TestUDPDecode
--- PASS: TestUDPDecode (0.00s)
=== RUN   TestRecordLayerRoundTrip
--- PASS: TestRecordLayerRoundTrip (0.00s)
PASS
ok  	github.com/pion/dtls/v2/pkg/protocol/recordlayer	0.003s
FAIL
dh_auto_test: error: cd _build && go test -vet=off -v -p 1 github.com/pion/dtls/v2 github.com/pion/dtls/v2/e2e github.com/pion/dtls/v2/examples/dial/psk github.com/pion/dtls/v2/examples/dial/selfsign github.com/pion/dtls/v2/examples/dial/verify github.com/pion/dtls/v2/examples/listen/psk github.com/pion/dtls/v2/examples/listen/selfsign github.com/pion/dtls/v2/examples/listen/verify github.com/pion/dtls/v2/examples/util github.com/pion/dtls/v2/internal/ciphersuite github.com/pion/dtls/v2/internal/ciphersuite/types github.com/pion/dtls/v2/internal/closer github.com/pion/dtls/v2/internal/net/dpipe github.com/pion/dtls/v2/internal/util github.com/pion/dtls/v2/pkg/crypto/ccm github.com/pion/dtls/v2/pkg/crypto/ciphersuite github.com/pion/dtls/v2/pkg/crypto/clientcertificate github.com/pion/dtls/v2/pkg/crypto/elliptic github.com/pion/dtls/v2/pkg/crypto/fingerprint github.com/pion/dtls/v2/pkg/crypto/hash github.com/pion/dtls/v2/pkg/crypto/prf github.com/pion/dtls/v2/pkg/crypto/selfsign github.com/pion/dtls/v2/pkg/crypto/signature github.com/pion/dtls/v2/pkg/crypto/signaturehash github.com/pion/dtls/v2/pkg/protocol github.com/pion/dtls/v2/pkg/protocol/alert github.com/pion/dtls/v2/pkg/protocol/extension github.com/pion/dtls/v2/pkg/protocol/handshake github.com/pion/dtls/v2/pkg/protocol/recordlayer returned exit code 1
make: *** [debian/rules:4: binary-indep] Error 25
dpkg-buildpackage: error: debian/rules binary-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

(The above is just how the build ends and not necessarily the most relevant part)

Note: I've used the word "randomly" in the subject, but it's not purely random.
After building several times on systems with 1 and 2 CPUs, I've noticed that
the failure rate on systems with one CPU is a lot higher.

Therefore, to reproduce, please try first setting GRUB_CMDLINE_LINUX="nr_cpus=1"
in /etc/default/grub. If that does not work, then the general offer below
still applies.
--------------------------------------------------------------------- About the archive rebuild: The build was made using virtual machines from Hetzner, with enough memory, enough disk, and either one or two CPUs, using a reduced chroot with only build-essential packages (plus debhelper). If you could not 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 affects, so that this is still visible in the BTS web page for this package. Thanks.
#1031058#10
Date:
2026-06-13 05:44:56 UTC
From:
To:
Hi.  I'm not sure this is the same error message, but the general
problem with a random FTBFS still exists:

https://ci.debian.net/packages/g/golang-github-pion-dtls.v2/testing/riscv64/71982732/#L1079

828s === RUN   TestNetTest/PingPong
828s     conntest.go:56: test timed out; terminating pipe
828s     conntest.go:130: unexpected Close error: dtls fatal: conn is closed
828s === RUN   TestNetTest/RacyRead
828s === RUN   TestNetTest/RacyWrite
828s === RUN   TestNetTest/ReadTimeout
828s === RUN   TestNetTest/WriteTimeout
828s === RUN   TestNetTest/PastTimeout
828s === RUN   TestNetTest/PresentTimeout
828s === RUN   TestNetTest/FutureTimeout
828s === RUN   TestNetTest/CloseTimeout
828s === RUN   TestNetTest/ConcurrentMethods
828s --- FAIL: TestNetTest (61.59s)
828s     --- PASS: TestNetTest/BasicIO (0.49s)
828s     --- FAIL: TestNetTest/PingPong (60.09s)

/Simon