golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.42k stars 17.71k forks source link

x/crypto/ssh/test: TestCiphers failures on macOS #65732

Open gopherbot opened 9 months ago

gopherbot commented 9 months ago
#!watchflakes
post <- goos == "darwin" && pkg == "golang.org/x/crypto/ssh/test" && test ~ `TestCiphers`

Issue created automatically to collect these failures.

Example (log):

=== RUN   TestCiphers/chacha20-poly1305@openssh.com
    session_test.go:362: SendRequest: EOF
    test_unix_test.go:241: sshd:
        Error reading managed configuration (2: No such file or directory). Proceeding with default configuration.
        /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 10: Deprecated option KeyRegenerationInterval
        /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 11: Deprecated option ServerKeyBits
        /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 17: Deprecated option RSAAuthentication
        /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 22: Deprecated option RhostsRSAAuthentication
        debug1: inetd sockets after dupping: 4, 5
        BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known
...
        debug1: restore_uid: (unprivileged)
        debug1: auth_activate_options: setting new authentication options
        Accepted publickey for swarming from UNKNOWN port 65535 ssh2: ECDSA SHA256:DbuSF5a8c3JMmpZ5WiK8oLAx97Uu8zIAFReb/NyTPuo
        debug1: monitor_child_preauth: user swarming authenticated by privileged process
        debug1: auth_activate_options: setting new authentication options [preauth]
        debug2: userauth_pubkey: authenticated 1 pkalg ecdsa-sha2-nistp256 [preauth]
        debug1: monitor_read_log: child log fd closed
        BSM audit: bsm_audit_session_setup: setaudit_addr failed: Invalid argument
        debug1: do_cleanup
--- FAIL: TestCiphers/chacha20-poly1305@openssh.com (0.10s)

watchflakes

gopherbot commented 9 months ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/crypto/ssh/test" && test == "TestCiphers/chacha20-poly1305@openssh.com"
2024-02-07 19:12 x_crypto-go1.22-darwin-amd64-longtest crypto@405cb3bd release-branch.go1.22@20107e05 x/crypto/ssh/test.TestCiphers/chacha20-poly1305@openssh.com (log) === RUN TestCiphers/chacha20-poly1305@openssh.com session_test.go:362: SendRequest: EOF test_unix_test.go:241: sshd: Error reading managed configuration (2: No such file or directory). Proceeding with default configuration. /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 10: Deprecated option KeyRegenerationInterval /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 11: Deprecated option ServerKeyBits /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 17: Deprecated option RSAAuthentication /Users/swarming/.swarming/w/ir/x/t/sshtest1184070208/sshd_config line 22: Deprecated option RhostsRSAAuthentication debug1: inetd sockets after dupping: 4, 5 BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known ... debug1: restore_uid: (unprivileged) debug1: auth_activate_options: setting new authentication options Accepted publickey for swarming from UNKNOWN port 65535 ssh2: ECDSA SHA256:DbuSF5a8c3JMmpZ5WiK8oLAx97Uu8zIAFReb/NyTPuo debug1: monitor_child_preauth: user swarming authenticated by privileged process debug1: auth_activate_options: setting new authentication options [preauth] debug2: userauth_pubkey: authenticated 1 pkalg ecdsa-sha2-nistp256 [preauth] debug1: monitor_read_log: child log fd closed BSM audit: bsm_audit_session_setup: setaudit_addr failed: Invalid argument debug1: do_cleanup --- FAIL: TestCiphers/chacha20-poly1305@openssh.com (0.10s)

watchflakes

gopherbot commented 9 months ago

Found new dashboard test flakes for:

#!watchflakes
default <- pkg == "golang.org/x/crypto/ssh/test" && test ~ `TestCiphers`
2024-02-08 16:32 x_crypto-go1.22-darwin-amd64-longtest crypto@62c9f179 release-branch.go1.22@20107e05 x/crypto/ssh/test.TestCiphers/3des-cbc (log) === RUN TestCiphers/3des-cbc session_test.go:369: NewSession: write unix ->/Users/swarming/.swarming/w/ir/x/t/unixConnection2186664944/ssh: write: broken pipe test_unix_test.go:241: sshd: Error reading managed configuration (2: No such file or directory). Proceeding with default configuration. /Users/swarming/.swarming/w/ir/x/t/sshtest2583648940/sshd_config line 10: Deprecated option KeyRegenerationInterval /Users/swarming/.swarming/w/ir/x/t/sshtest2583648940/sshd_config line 11: Deprecated option ServerKeyBits /Users/swarming/.swarming/w/ir/x/t/sshtest2583648940/sshd_config line 17: Deprecated option RSAAuthentication /Users/swarming/.swarming/w/ir/x/t/sshtest2583648940/sshd_config line 22: Deprecated option RhostsRSAAuthentication debug1: inetd sockets after dupping: 4, 5 BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known ... debug1: restore_uid: (unprivileged) debug1: auth_activate_options: setting new authentication options Accepted publickey for swarming from UNKNOWN port 65535 ssh2: ECDSA SHA256:DbuSF5a8c3JMmpZ5WiK8oLAx97Uu8zIAFReb/NyTPuo debug1: monitor_child_preauth: user swarming authenticated by privileged process debug1: auth_activate_options: setting new authentication options [preauth] debug2: userauth_pubkey: authenticated 1 pkalg ecdsa-sha2-nistp256 [preauth] debug1: monitor_read_log: child log fd closed BSM audit: bsm_audit_session_setup: setaudit_addr failed: Invalid argument debug1: do_cleanup --- FAIL: TestCiphers/3des-cbc (0.13s)

watchflakes

bcmills commented 9 months ago

This may be related to #64959 (attn @drakkan).

gopherbot commented 9 months ago

Change https://go.dev/cl/564457 mentions this issue: ssh/test: workaround for TestCiphers failures on macOS

gopherbot commented 9 months ago

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "darwin" && pkg == "golang.org/x/crypto/ssh/test" && test ~ `TestCiphers`
2024-02-15 13:30 x_crypto-gotip-darwin-amd64-longtest crypto@1a865804 go@af5943f9 x/crypto/ssh/test.TestCiphers/arcfour256 (log) === RUN TestCiphers/arcfour256 session_test.go:369: NewSession: write unix ->/Users/swarming/.swarming/w/ir/x/t/unixConnection32437896/ssh: write: broken pipe test_unix_test.go:241: sshd: Error reading managed configuration (2: No such file or directory). Proceeding with default configuration. /Users/swarming/.swarming/w/ir/x/t/sshtest2448938609/sshd_config line 10: Deprecated option KeyRegenerationInterval /Users/swarming/.swarming/w/ir/x/t/sshtest2448938609/sshd_config line 11: Deprecated option ServerKeyBits /Users/swarming/.swarming/w/ir/x/t/sshtest2448938609/sshd_config line 17: Deprecated option RSAAuthentication /Users/swarming/.swarming/w/ir/x/t/sshtest2448938609/sshd_config line 22: Deprecated option RhostsRSAAuthentication debug1: inetd sockets after dupping: 4, 5 BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known ... debug1: restore_uid: (unprivileged) debug1: auth_activate_options: setting new authentication options Accepted publickey for swarming from UNKNOWN port 65535 ssh2: ECDSA SHA256:DbuSF5a8c3JMmpZ5WiK8oLAx97Uu8zIAFReb/NyTPuo debug1: monitor_child_preauth: user swarming authenticated by privileged process debug1: auth_activate_options: setting new authentication options [preauth] debug2: userauth_pubkey: authenticated 1 pkalg ecdsa-sha2-nistp256 [preauth] debug1: monitor_read_log: child log fd closed BSM audit: bsm_audit_session_setup: setaudit_addr failed: Invalid argument debug1: do_cleanup --- FAIL: TestCiphers/arcfour256 (0.13s)

watchflakes

gopherbot commented 9 months ago

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "darwin" && pkg == "golang.org/x/crypto/ssh/test" && test ~ `TestCiphers`
2024-02-18 02:21 x_crypto-go1.22-darwin-amd64-longtest crypto@5bead598 release-branch.go1.22@6cbe522f x/crypto/ssh/test.TestCiphers/aes256-gcm@openssh.com (log) === RUN TestCiphers/aes256-gcm@openssh.com session_test.go:369: NewSession: write unix ->/Users/swarming/.swarming/w/ir/x/t/unixConnection3239750690/ssh: use of closed network connection test_unix_test.go:241: sshd: Error reading managed configuration (2: No such file or directory). Proceeding with default configuration. /Users/swarming/.swarming/w/ir/x/t/sshtest2393354808/sshd_config line 10: Deprecated option KeyRegenerationInterval /Users/swarming/.swarming/w/ir/x/t/sshtest2393354808/sshd_config line 11: Deprecated option ServerKeyBits /Users/swarming/.swarming/w/ir/x/t/sshtest2393354808/sshd_config line 17: Deprecated option RSAAuthentication /Users/swarming/.swarming/w/ir/x/t/sshtest2393354808/sshd_config line 22: Deprecated option RhostsRSAAuthentication debug1: inetd sockets after dupping: 4, 5 BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known ... debug1: restore_uid: (unprivileged) debug1: auth_activate_options: setting new authentication options Accepted publickey for swarming from UNKNOWN port 65535 ssh2: ECDSA SHA256:DbuSF5a8c3JMmpZ5WiK8oLAx97Uu8zIAFReb/NyTPuo debug1: monitor_child_preauth: user swarming authenticated by privileged process debug1: auth_activate_options: setting new authentication options [preauth] debug2: userauth_pubkey: authenticated 1 pkalg ecdsa-sha2-nistp256 [preauth] debug1: monitor_read_log: child log fd closed BSM audit: bsm_audit_session_setup: setaudit_addr failed: Invalid argument debug1: do_cleanup --- FAIL: TestCiphers/aes256-gcm@openssh.com (0.17s)
2024-02-26 19:05 x_crypto-gotip-darwin-amd64-longtest crypto@0aab8d07 go@2278ffcb x/crypto/ssh/test.TestCiphers/3des-cbc (log) === RUN TestCiphers/3des-cbc session_test.go:369: NewSession: write unix ->/Users/swarming/.swarming/w/ir/x/t/unixConnection3398320224/ssh: write: broken pipe test_unix_test.go:241: sshd: Error reading managed configuration (2: No such file or directory). Proceeding with default configuration. /Users/swarming/.swarming/w/ir/x/t/sshtest571752962/sshd_config line 10: Deprecated option KeyRegenerationInterval /Users/swarming/.swarming/w/ir/x/t/sshtest571752962/sshd_config line 11: Deprecated option ServerKeyBits /Users/swarming/.swarming/w/ir/x/t/sshtest571752962/sshd_config line 17: Deprecated option RSAAuthentication /Users/swarming/.swarming/w/ir/x/t/sshtest571752962/sshd_config line 22: Deprecated option RhostsRSAAuthentication debug1: inetd sockets after dupping: 4, 5 BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known ... debug1: restore_uid: (unprivileged) debug1: auth_activate_options: setting new authentication options Accepted publickey for swarming from UNKNOWN port 65535 ssh2: ECDSA SHA256:DbuSF5a8c3JMmpZ5WiK8oLAx97Uu8zIAFReb/NyTPuo debug1: monitor_child_preauth: user swarming authenticated by privileged process debug1: auth_activate_options: setting new authentication options [preauth] debug2: userauth_pubkey: authenticated 1 pkalg ecdsa-sha2-nistp256 [preauth] debug1: monitor_read_log: child log fd closed BSM audit: bsm_audit_session_setup: setaudit_addr failed: Invalid argument debug1: do_cleanup --- FAIL: TestCiphers/3des-cbc (0.13s)

watchflakes

gopherbot commented 7 months ago

Found new dashboard test flakes for:

#!watchflakes
post <- goos == "darwin" && pkg == "golang.org/x/crypto/ssh/test" && test ~ `TestCiphers`
2024-05-06 13:42 x_crypto-go1.22-darwin-amd64-longtest crypto@905d78a6 release-branch.go1.22@93d8777d x/crypto/ssh/test.TestCiphers/aes128-cbc (log) === RUN TestCiphers/aes128-cbc session_test.go:364: NewSession: EOF test_unix_test.go:241: sshd: Error reading managed configuration (2: No such file or directory). Proceeding with default configuration. /Users/swarming/.swarming/w/ir/x/t/sshtest2503863088/sshd_config line 10: Deprecated option KeyRegenerationInterval /Users/swarming/.swarming/w/ir/x/t/sshtest2503863088/sshd_config line 11: Deprecated option ServerKeyBits /Users/swarming/.swarming/w/ir/x/t/sshtest2503863088/sshd_config line 17: Deprecated option RSAAuthentication /Users/swarming/.swarming/w/ir/x/t/sshtest2503863088/sshd_config line 22: Deprecated option RhostsRSAAuthentication debug1: inetd sockets after dupping: 4, 5 BSM audit: getaddrinfo failed for UNKNOWN: nodename nor servname provided, or not known ... debug1: restore_uid: (unprivileged) debug1: auth_activate_options: setting new authentication options Accepted publickey for swarming from UNKNOWN port 65535 ssh2: ECDSA SHA256:DbuSF5a8c3JMmpZ5WiK8oLAx97Uu8zIAFReb/NyTPuo debug1: monitor_child_preauth: user swarming authenticated by privileged process debug1: auth_activate_options: setting new authentication options [preauth] debug2: userauth_pubkey: authenticated 1 pkalg ecdsa-sha2-nistp256 [preauth] debug1: monitor_read_log: child log fd closed BSM audit: bsm_audit_session_setup: setaudit_addr failed: Invalid argument debug1: do_cleanup --- FAIL: TestCiphers/aes128-cbc (0.15s)

watchflakes