Package: src:paramiko
Version: 3.4.0-1
Severity: important
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config
running config
I: pybuild base:311: python3.11 setup.py config
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3.12 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/hostkeys.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/transport.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/kex_gss.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/kex_curve25519.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/auth_handler.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/agent.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/server.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/ber.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/pipe.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/rsakey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/proxy.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/message.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/win_pageant.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/sftp_attr.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/sftp.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/_version.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/kex_group1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/util.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/sftp_si.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/pkey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/_winapi.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/kex_group14.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/compress.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/ecdsakey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/primes.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/win_openssh.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/dsskey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/ssh_gss.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/sftp_client.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/sftp_server.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/kex_group16.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/channel.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/auth_strategy.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/common.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/ssh_exception.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/sftp_file.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/packet.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/kex_ecdh_nist.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/client.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/file.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/buffered_pipe.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/sftp_handle.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/kex_gex.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/ed25519key.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
copying paramiko/config.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko
I: pybuild base:311: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/hostkeys.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/transport.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/kex_gss.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/kex_curve25519.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/auth_handler.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/__init__.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/agent.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/server.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/ber.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/pipe.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/rsakey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/proxy.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/message.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/win_pageant.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/sftp_attr.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/sftp.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/_version.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/kex_group1.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/util.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/sftp_si.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/pkey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/_winapi.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/kex_group14.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/compress.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/ecdsakey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/primes.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/win_openssh.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/dsskey.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/ssh_gss.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/sftp_client.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/sftp_server.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/kex_group16.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/channel.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/auth_strategy.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/common.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/ssh_exception.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/sftp_file.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/packet.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/kex_ecdh_nist.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/client.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/file.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/buffered_pipe.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/sftp_handle.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/kex_gex.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/ed25519key.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
copying paramiko/config.py -> 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build; 
python3.12 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.1.2, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build
configfile: pytest.ini
collected 457 items

tests/test_buffered_pipe.py ....                                         [  0%]
tests/test_channelfile.py ...........                                    [  3%]
tests/test_client.py ..ss................s..........s.........           [ 12%]
tests/test_config.py ................................................... [ 23%]
.s........ssssss.....................................................    [ 38%]
tests/test_file.py ...........s...                                       [ 41%]
tests/test_gssapi.py sss                                                 [ 42%]
tests/test_hostkeys.py ............                                      [ 45%]
tests/test_kex.py ..................                                     [ 49%]
tests/test_kex_gss.py ss                                                 [ 49%]
tests/test_message.py .....                                              [ 50%]
tests/test_packetizer.py ...                                             [ 51%]
tests/test_pkey.py ......s........................................       [ 61%]
tests/test_proxy.py ...........                                          [ 63%]
tests/test_sftp.py ...........s....................s.s.s.                [ 72%]
tests/test_sftp_big.py ...........                                       [ 74%]
tests/test_ssh_exception.py .........                                    [ 76%]
tests/test_ssh_gss.py ss                                                 [ 77%]
tests/test_transport.py ...s...................................s........ [ 87%]
.................................................F..                     [ 98%]
tests/test_util.py .....                                                 [100%]

=================================== FAILURES ===================================
_______ TestStrictKex.test_sequence_numbers_reset_on_newkeys_when_strict _______

self = <tests.test_transport.TestStrictKex object at 0x7f1d3229eff0>

    def test_sequence_numbers_reset_on_newkeys_when_strict(self):
        with server(defer=True) as (tc, ts):
            # When in strict mode, these should all be zero or close to it
            # (post-kexinit, pre-auth).
            # Server->client will be 1 (EXT_INFO got sent after NEWKEYS)
          assert tc.packetizer._Packetizer__sequence_number_in == 1
E           assert 0 == 1
E            +  where 0 = <paramiko.packet.Packetizer object at 
0x7f1d3042b0b0>._Packetizer__sequence_number_in
E            +    where <paramiko.packet.Packetizer object at 0x7f1d3042b0b0> = 
<paramiko.Transport at 0x3042ad50 (cipher aes128-ctr, 128 bits) (connected; awaiting 
auth)>.packetizer

tests/test_transport.py:1398: AssertionError
----------------------------- Captured stderr call -----------------------------
[75037.49418258667]     DEBUG:paramiko.transport:starting thread (server mode): 
0x30428140
[75037.63389587402]     DEBUG:paramiko.transport:Local version/idstring: 
SSH-2.0-paramiko_3.4.0
[75037.75000572205]     DEBUG:paramiko.transport:starting thread (client mode): 
0x3042ad50
[75037.8348827362]      DEBUG:paramiko.transport:Local version/idstring: 
SSH-2.0-paramiko_3.4.0
[75037.90402412415]     DEBUG:paramiko.transport:Remote version/idstring: 
SSH-2.0-paramiko_3.4.0
[75037.96863555908]     INFO:paramiko.transport:Connected (version 2.0, client 
paramiko_3.4.0)
[75038.09762001038]     DEBUG:paramiko.transport:Remote version/idstring: 
SSH-2.0-paramiko_3.4.0
[75038.17129135132]     INFO:paramiko.transport:Connected (version 2.0, client 
paramiko_3.4.0)
[75038.5193824768]      DEBUG:paramiko.transport:=== Key exchange possibilities 
===
[75038.59400749207]     DEBUG:paramiko.transport:kex algos: 
curve25519-sha...@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, 
ecdh-sha2-nistp521, diffie-hellman-group16-sha512, 
diffie-hellman-group-exchange-sha256, diffie-hellman-group14-sha256, 
diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1, 
diffie-hellman-group1-sha1, ext-info-c, kex-strict-c-...@openssh.com
[75038.65766525269]     DEBUG:paramiko.transport:server key: ssh-ed25519, 
ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, rsa-sha2-512, 
rsa-sha2-256, ssh-rsa, ssh-dss, ssh-ed25519-cert-...@openssh.com, 
ecdsa-sha2-nistp256-cert-...@openssh.com, 
ecdsa-sha2-nistp384-cert-...@openssh.com, 
ecdsa-sha2-nistp521-cert-...@openssh.com, rsa-sha2-512-cert-...@openssh.com, 
rsa-sha2-256-cert-...@openssh.com, ssh-rsa-cert-...@openssh.com, 
ssh-dss-cert-...@openssh.com
[75038.7191772461]      DEBUG:paramiko.transport:client encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
[75038.77806663513]     DEBUG:paramiko.transport:server encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
[75038.83719444275]     DEBUG:paramiko.transport:client mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
[75038.89870643616]     DEBUG:paramiko.transport:server mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
[75038.95711898804]     DEBUG:paramiko.transport:client compress: none
[75039.01600837708]     DEBUG:paramiko.transport:server compress: none
[75039.07799720764]     DEBUG:paramiko.transport:client lang: <none>
[75039.14546966553]     DEBUG:paramiko.transport:server lang: <none>
[75039.2017364502]      DEBUG:paramiko.transport:EOF in transport thread
[75039.27898406982]     DEBUG:paramiko.transport:=== Key exchange possibilities 
===
[75039.36243057251]     DEBUG:paramiko.transport:kex follows: False
[75039.6101474762]      DEBUG:paramiko.transport:EOF in transport thread
[75039.87169265747]     DEBUG:paramiko.transport:kex algos: 
curve25519-sha...@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, 
ecdh-sha2-nistp521, diffie-hellman-group16-sha512, 
diffie-hellman-group-exchange-sha256, diffie-hellman-group14-sha256, 
diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1, 
diffie-hellman-group1-sha1, kex-strict-s-...@openssh.com
[75040.03024101257]     DEBUG:paramiko.transport:=== Key exchange agreements ===
[75040.21763801575]     DEBUG:paramiko.transport:server key: rsa-sha2-512, 
rsa-sha2-256, ssh-rsa
[75040.29822349548]     DEBUG:paramiko.transport:Strict kex mode: True
[75040.37237167358]     DEBUG:paramiko.transport:client encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
[75040.45987129211]     DEBUG:paramiko.transport:Kex: 
curve25519-sha...@libssh.org
[75040.53211212158]     DEBUG:paramiko.transport:server encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
[75040.62223434448]     DEBUG:paramiko.transport:HostKey: rsa-sha2-512
[75040.70091247559]     DEBUG:paramiko.transport:client mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
[75040.771484375]       DEBUG:paramiko.transport:Cipher: aes128-ctr
[75040.83943367004]     DEBUG:paramiko.transport:server mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
[75040.92335700989]     DEBUG:paramiko.transport:MAC: hmac-sha2-256
[75041.00036621094]     DEBUG:paramiko.transport:client compress: none
[75041.08047485352]     DEBUG:paramiko.transport:Compression: none
[75041.15533828735]     DEBUG:paramiko.transport:server compress: none
[75041.22710227966]     DEBUG:paramiko.transport:=== End of kex handshake ===
[75041.2986278534]      DEBUG:paramiko.transport:client lang: <none>
[75041.56422615051]     DEBUG:paramiko.transport:server lang: <none>
[75041.61167144775]     DEBUG:paramiko.transport:kex follows: False
[75041.64600372314]     DEBUG:paramiko.transport:=== Key exchange agreements ===
[75041.6796207428]      DEBUG:paramiko.transport:Strict kex mode: True
[75041.71943664551]     DEBUG:paramiko.transport:Kex: 
curve25519-sha...@libssh.org
[75041.76306724548]     DEBUG:paramiko.transport:HostKey: rsa-sha2-512
[75041.80312156677]     DEBUG:paramiko.transport:Cipher: aes128-ctr
[75041.84293746948]     DEBUG:paramiko.transport:MAC: hmac-sha2-256
[75041.87893867493]     DEBUG:paramiko.transport:Compression: none
[75041.90921783447]     DEBUG:paramiko.transport:=== End of kex handshake ===
[75042.57655143738]     DEBUG:paramiko.transport:Resetting outbound seqno after 
NEWKEYS due to strict mode
[75042.64545440674]     DEBUG:paramiko.transport:kex engine KexCurve25519 specified 
hash_algo <built-in function openssl_sha256>
[75043.02287101746]     DEBUG:paramiko.transport:Resetting outbound seqno after 
NEWKEYS due to strict mode
[75043.11037063599]     DEBUG:paramiko.transport:kex engine KexCurve25519 specified 
hash_algo <built-in function openssl_sha256>
[75043.23172569275]     DEBUG:paramiko.transport:Switch to new keys ...
[75043.41459274292]     DEBUG:paramiko.transport:Switch to new keys ...
[75043.61200332642]     DEBUG:paramiko.transport:Resetting inbound seqno after 
NEWKEYS due to strict mode
[75043.75052452087]     DEBUG:paramiko.transport:Resetting inbound seqno after 
NEWKEYS due to strict mode
------------------------------ Captured log call -------------------------------
DEBUG    paramiko.transport:transport.py:1909 starting thread (server mode): 
0x30428140
DEBUG    paramiko.transport:transport.py:1909 Local version/idstring: 
SSH-2.0-paramiko_3.4.0
DEBUG    paramiko.transport:transport.py:1909 starting thread (client mode): 
0x3042ad50
DEBUG    paramiko.transport:transport.py:1909 Local version/idstring: 
SSH-2.0-paramiko_3.4.0
DEBUG    paramiko.transport:transport.py:1909 Remote version/idstring: 
SSH-2.0-paramiko_3.4.0
INFO     paramiko.transport:transport.py:1909 Connected (version 2.0, client 
paramiko_3.4.0)
DEBUG    paramiko.transport:transport.py:1909 Remote version/idstring: 
SSH-2.0-paramiko_3.4.0
INFO     paramiko.transport:transport.py:1909 Connected (version 2.0, client 
paramiko_3.4.0)
DEBUG    paramiko.transport:transport.py:1909 === Key exchange possibilities ===
DEBUG    paramiko.transport:transport.py:1909 kex algos: 
curve25519-sha...@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, 
ecdh-sha2-nistp521, diffie-hellman-group16-sha512, 
diffie-hellman-group-exchange-sha256, diffie-hellman-group14-sha256, 
diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1, 
diffie-hellman-group1-sha1, ext-info-c, kex-strict-c-...@openssh.com
DEBUG    paramiko.transport:transport.py:1909 server key: ssh-ed25519, 
ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, ecdsa-sha2-nistp521, rsa-sha2-512, 
rsa-sha2-256, ssh-rsa, ssh-dss, ssh-ed25519-cert-...@openssh.com, 
ecdsa-sha2-nistp256-cert-...@openssh.com, 
ecdsa-sha2-nistp384-cert-...@openssh.com, 
ecdsa-sha2-nistp521-cert-...@openssh.com, rsa-sha2-512-cert-...@openssh.com, 
rsa-sha2-256-cert-...@openssh.com, ssh-rsa-cert-...@openssh.com, 
ssh-dss-cert-...@openssh.com
DEBUG    paramiko.transport:transport.py:1909 client encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
DEBUG    paramiko.transport:transport.py:1909 server encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
DEBUG    paramiko.transport:transport.py:1909 client mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
DEBUG    paramiko.transport:transport.py:1909 server mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
DEBUG    paramiko.transport:transport.py:1909 client compress: none
DEBUG    paramiko.transport:transport.py:1909 server compress: none
DEBUG    paramiko.transport:transport.py:1909 client lang: <none>
DEBUG    paramiko.transport:transport.py:1909 server lang: <none>
DEBUG    paramiko.transport:transport.py:1909 EOF in transport thread
DEBUG    paramiko.transport:transport.py:1909 === Key exchange possibilities ===
DEBUG    paramiko.transport:transport.py:1909 kex follows: False
DEBUG    paramiko.transport:transport.py:1909 EOF in transport thread
DEBUG    paramiko.transport:transport.py:1909 kex algos: 
curve25519-sha...@libssh.org, ecdh-sha2-nistp256, ecdh-sha2-nistp384, 
ecdh-sha2-nistp521, diffie-hellman-group16-sha512, 
diffie-hellman-group-exchange-sha256, diffie-hellman-group14-sha256, 
diffie-hellman-group-exchange-sha1, diffie-hellman-group14-sha1, 
diffie-hellman-group1-sha1, kex-strict-s-...@openssh.com
DEBUG    paramiko.transport:transport.py:1909 === Key exchange agreements ===
DEBUG    paramiko.transport:transport.py:1909 server key: rsa-sha2-512, 
rsa-sha2-256, ssh-rsa
DEBUG    paramiko.transport:transport.py:1909 Strict kex mode: True
DEBUG    paramiko.transport:transport.py:1909 client encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
DEBUG    paramiko.transport:transport.py:1909 Kex: curve25519-sha...@libssh.org
DEBUG    paramiko.transport:transport.py:1909 server encrypt: aes128-ctr, 
aes192-ctr, aes256-ctr, aes128-cbc, aes192-cbc, aes256-cbc, 3des-cbc
DEBUG    paramiko.transport:transport.py:1909 HostKey: rsa-sha2-512
DEBUG    paramiko.transport:transport.py:1909 client mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
DEBUG    paramiko.transport:transport.py:1909 Cipher: aes128-ctr
DEBUG    paramiko.transport:transport.py:1909 server mac: hmac-sha2-256, 
hmac-sha2-512, hmac-sha2-256-...@openssh.com, hmac-sha2-512-...@openssh.com, 
hmac-sha1, hmac-md5, hmac-sha1-96, hmac-md5-96
DEBUG    paramiko.transport:transport.py:1909 MAC: hmac-sha2-256
DEBUG    paramiko.transport:transport.py:1909 client compress: none
DEBUG    paramiko.transport:transport.py:1909 Compression: none
DEBUG    paramiko.transport:transport.py:1909 server compress: none
DEBUG    paramiko.transport:transport.py:1909 === End of kex handshake ===
DEBUG    paramiko.transport:transport.py:1909 client lang: <none>
DEBUG    paramiko.transport:transport.py:1909 server lang: <none>
DEBUG    paramiko.transport:transport.py:1909 kex follows: False
DEBUG    paramiko.transport:transport.py:1909 === Key exchange agreements ===
DEBUG    paramiko.transport:transport.py:1909 Strict kex mode: True
DEBUG    paramiko.transport:transport.py:1909 Kex: curve25519-sha...@libssh.org
DEBUG    paramiko.transport:transport.py:1909 HostKey: rsa-sha2-512
DEBUG    paramiko.transport:transport.py:1909 Cipher: aes128-ctr
DEBUG    paramiko.transport:transport.py:1909 MAC: hmac-sha2-256
DEBUG    paramiko.transport:transport.py:1909 Compression: none
DEBUG    paramiko.transport:transport.py:1909 === End of kex handshake ===
DEBUG    paramiko.transport:transport.py:1909 Resetting outbound seqno after 
NEWKEYS due to strict mode
DEBUG    paramiko.transport:transport.py:1909 kex engine KexCurve25519 specified 
hash_algo <built-in function openssl_sha256>
DEBUG    paramiko.transport:transport.py:1909 Resetting outbound seqno after 
NEWKEYS due to strict mode
DEBUG    paramiko.transport:transport.py:1909 kex engine KexCurve25519 specified 
hash_algo <built-in function openssl_sha256>
DEBUG    paramiko.transport:transport.py:1909 Switch to new keys ...
DEBUG    paramiko.transport:transport.py:1909 Switch to new keys ...
DEBUG    paramiko.transport:transport.py:1909 Resetting inbound seqno after 
NEWKEYS due to strict mode
DEBUG    paramiko.transport:transport.py:1909 Resetting inbound seqno after 
NEWKEYS due to strict mode
--------------------------- Captured stderr teardown ---------------------------
[75047.59192466736]     DEBUG:paramiko.transport:Got EXT_INFO: 
{'server-sig-algs': 
b'ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss'}
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:178
  /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:178: 
DeprecationWarning: the imp module was removed in favour of importlib. Someone 
brought it back, but it's not a good idea to use it.
    exec(co, module.__dict__)

tests/_util.py:211
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/tests/_util.py:211: 
PytestCollectionWarning: cannot collect test class 'TestServer' because it has a __init__ 
constructor (from: tests/_util.py)
    class TestServer(ServerInterface):

tests/test_channelfile.py::TestChannelStdinFile::test_defaults_to_unbuffered_reading
tests/test_channelfile.py::TestChannelStdinFile::test_can_override_mode_and_bufsize
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: 
PytestUnraisableExceptionWarning: Exception ignored in: <function 
BufferedFile.__del__ at 0x7f1d332f1bc0>
Traceback (most recent call last):
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko/file.py", line 
67, in __del__
      self.close()
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko/channel.py", 
line 1390, in close
      self.channel.shutdown_write()
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko/channel.py", 
line 989, in shutdown_write
      self.shutdown(1)
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/paramiko/channel.py", 
line 965, in shutdown
      self.transport._send_user_message(m)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'NoneType' object has no attribute '_send_user_message'
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

tests/test_client.py::SSHClientTest::test_update_environment
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build/tests/test_client.py:692:
 DeprecationWarning: isSet() is deprecated, use is_set() instead
    self.assertTrue(self.event.isSet())

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED 
tests/test_transport.py::TestStrictKex::test_sequence_numbers_reset_on_newkeys_when_strict
======= 1 failed, 430 passed, 26 skipped, 5 warnings in 74.06s (0:01:14) =======
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_paramiko/build; python3.12 -m pytest 
tests
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build; 
python3.11 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.1.2, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build
configfile: pytest.ini
collected 457 items

tests/test_buffered_pipe.py ....                                         [  0%]
tests/test_channelfile.py ...........                                    [  3%]
tests/test_client.py ..ss................s..........s.........           [ 12%]
tests/test_config.py ................................................... [ 23%]
.s........ssssss.....................................................    [ 38%]
tests/test_file.py ...........s...                                       [ 41%]
tests/test_gssapi.py sss                                                 [ 42%]
tests/test_hostkeys.py ............                                      [ 45%]
tests/test_kex.py ..................                                     [ 49%]
tests/test_kex_gss.py ss                                                 [ 49%]
tests/test_message.py .....                                              [ 50%]
tests/test_packetizer.py ...                                             [ 51%]
tests/test_pkey.py ......s........................................       [ 61%]
tests/test_proxy.py ...........                                          [ 63%]
tests/test_sftp.py ...........s....................s.s.s.                [ 72%]
tests/test_sftp_big.py ...........                                       [ 74%]
tests/test_ssh_exception.py .........                                    [ 76%]
tests/test_ssh_gss.py ss                                                 [ 77%]
tests/test_transport.py ...s...................................s........ [ 87%]
....................................................                     [ 98%]
tests/test_util.py .....                                                 
[100%][75914.22939300537]      DEBUG:paramiko.transport:EOF in transport thread


=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:178
  /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:178: 
DeprecationWarning: the imp module is deprecated in favour of importlib and 
slated for removal in Python 3.12; see the module's documentation for 
alternative uses
    exec(co, module.__dict__)

tests/_util.py:211
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/tests/_util.py:211: 
PytestCollectionWarning: cannot collect test class 'TestServer' because it has a __init__ 
constructor (from: tests/_util.py)
    class TestServer(ServerInterface):

tests/test_channelfile.py::TestChannelStdinFile::test_defaults_to_unbuffered_reading
tests/test_channelfile.py::TestChannelStdinFile::test_can_override_mode_and_bufsize
  /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:80: 
PytestUnraisableExceptionWarning: Exception ignored in: <function 
BufferedFile.__del__ at 0x7f7fb5393420>
Traceback (most recent call last):
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko/file.py", line 
67, in __del__
      self.close()
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko/channel.py", 
line 1390, in close
      self.channel.shutdown_write()
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko/channel.py", 
line 989, in shutdown_write
      self.shutdown(1)
    File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/paramiko/channel.py", 
line 965, in shutdown
      self.transport._send_user_message(m)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  AttributeError: 'NoneType' object has no attribute '_send_user_message'
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))

tests/test_client.py::SSHClientTest::test_update_environment
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_paramiko/build/tests/test_client.py:692:
 DeprecationWarning: isSet() is deprecated, use is_set() instead
    self.assertTrue(self.event.isSet())

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============ 431 passed, 26 skipped, 5 warnings in 74.85s (0:01:14) ============
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 
3.11" returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The failure happens randomly, but in the tests I performed it
fails 35% of the time. I don't think this is suitable for release.

The test flakiness also happens in the official buildds, where it had to be
tried again:

https://buildd.debian.org/status/logs.php?pkg=paramiko&ver=3.4.0-1&arch=all

I've put a bunch of failed build logs here:

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

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

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 (in this case, the flakiness 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.

Reply via email to