ParallelSSH/ssh-python

Running python3 setup.py test fails on Fedora 29

adelton opened this issue · 5 comments

Running

git clone --depth 10 https://github.com/ParallelSSH/ssh-python.git
cd ssh-python
python3 setup.py build_ext --inplace
python3 setup.py test

fails on Fedora 29 with

======================================================================
FAIL: test_channel_exec (tests.test_channel.ChannelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/ssh-python/tests/test_channel.py", line 62, in test_channel_exec
    self.assertFalse(chan.is_open())
AssertionError: True is not false

----------------------------------------------------------------------
Ran 36 tests in 15.551s

FAILED (failures=1)
Test failed: <unittest.runner.TextTestResult run=36 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=36 errors=0 failures=1>

The following package versions were installed:

cmake-3.12.1-1.fc29.x86_64
gcc-8.3.1-2.fc29.x86_64
gcc-c++-8.3.1-2.fc29.x86_64
zlib-devel-1.2.11-14.fc29.x86_64
openssl-devel-1.1.1b-2.fc29.x86_64
python3-jinja2-2.10-6.fc29.noarch

Hi there,

Thanks for the report. Can you please include the full log output from the above commands?

# git clone --depth 10 https://github.com/ParallelSSH/ssh-python.git
Cloning into 'ssh-python'...
remote: Enumerating objects: 506, done.
remote: Counting objects: 100% (506/506), done.
remote: Compressing objects: 100% (401/401), done.
remote: Total 506 (delta 141), reused 405 (delta 92), pack-reused 0
Receiving objects: 100% (506/506), 17.30 MiB | 10.33 MiB/s, done.
Resolving deltas: 100% (141/141), done.
# cd ssh-python
# python3 setup.py build_ext --inplace
-- The C compiler identification is GNU 8.3.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test WITH_FPIC
-- Performing Test WITH_FPIC - Success
-- Performing Test WITH_STACK_PROTECTOR
-- Performing Test WITH_STACK_PROTECTOR - Success
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
-- Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.1.1b")  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found GSSAPI: /usr/lib64/libgssapi_krb5.so;/usr/lib64/libkrb5.so;/usr/lib64/libk5crypto.so;/usr/lib64/libcom_err.so  
-- Could NOT find NaCl (missing: NACL_LIBRARIES NACL_INCLUDE_DIRS) 
-- Performing Test WITH_VISIBILITY_HIDDEN
-- Performing Test WITH_VISIBILITY_HIDDEN - Success
-- Looking for argp.h
-- Looking for argp.h - found
-- Looking for pty.h
-- Looking for pty.h - found
-- Looking for utmp.h
-- Looking for utmp.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for util.h
-- Looking for util.h - not found
-- Looking for libutil.h
-- Looking for libutil.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/utime.h
-- Looking for sys/utime.h - not found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for byteswap.h
-- Looking for byteswap.h - found
-- Looking for glob.h
-- Looking for glob.h - found
-- Looking for openssl/des.h
-- Looking for openssl/des.h - found
-- Looking for openssl/aes.h
-- Looking for openssl/aes.h - found
-- Looking for openssl/blowfish.h
-- Looking for openssl/blowfish.h - found
-- Looking for openssl/ecdh.h
-- Looking for openssl/ecdh.h - found
-- Looking for openssl/ec.h
-- Looking for openssl/ec.h - found
-- Looking for openssl/ecdsa.h
-- Looking for openssl/ecdsa.h - found
-- Looking for EVP_aes_128_ctr
-- Looking for EVP_aes_128_ctr - found
-- Looking for EVP_aes_128_cbc
-- Looking for EVP_aes_128_cbc - found
-- Looking for CRYPTO_THREADID_set_callback
-- Looking for CRYPTO_THREADID_set_callback - not found
-- Looking for CRYPTO_ctr128_encrypt
-- Looking for CRYPTO_ctr128_encrypt - found
-- Looking for EVP_CIPHER_CTX_new
-- Looking for EVP_CIPHER_CTX_new - found
-- Looking for isblank
-- Looking for isblank - found
-- Looking for strncpy
-- Looking for strncpy - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for explicit_bzero
-- Looking for explicit_bzero - found
-- Looking for memset_s
-- Looking for memset_s - not found
-- Looking for glob
-- Looking for glob - found
-- Looking for vsnprintf
-- Looking for vsnprintf - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for poll
-- Looking for poll - found
-- Looking for select
-- Looking for select - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for ntohll
-- Looking for ntohll - not found
-- Looking for htonll
-- Looking for htonll - not found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for forkpty in util
-- Looking for forkpty in util - found
-- Looking for cfmakeraw
-- Looking for cfmakeraw - found
-- Looking for __strtoull
-- Looking for __strtoull - not found
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_GCC_THREAD_LOCAL_STORAGE - Success
-- Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE
-- Performing Test HAVE_MSC_THREAD_LOCAL_STORAGE - Failed
-- Performing Test HAVE_FALLTHROUGH_ATTRIBUTE
-- Performing Test HAVE_FALLTHROUGH_ATTRIBUTE - Success
-- Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION
-- Performing Test HAVE_GCC_VOLATILE_MEMORY_PROTECTION - Success
-- Performing Test HAVE_GCC_NARG_MACRO
-- Performing Test HAVE_GCC_NARG_MACRO - Success
-- Performing Test HAVE_COMPILER__FUNC__
-- Performing Test HAVE_COMPILER__FUNC__ - Success
-- Performing Test HAVE_COMPILER__FUNCTION__
-- Performing Test HAVE_COMPILER__FUNCTION__ - Failed
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
CMake Warning (dev) at /usr/share/cmake/Modules/CheckIncludeFile.cmake:70 (message):
  Policy CMP0075 is not set: Include file check macros honor
  CMAKE_REQUIRED_LIBRARIES.  Run "cmake --help-policy CMP0075" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  CMAKE_REQUIRED_LIBRARIES is set to:

    /usr/lib64/libcrypto.so;rt

  For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/CheckTypeSize.cmake:225 (check_include_file)
  /usr/share/cmake/Modules/TestBigEndian.cmake:32 (CHECK_TYPE_SIZE)
  ConfigureChecks.cmake:347 (test_big_endian)
  CMakeLists.txt:90 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Threads_FOUND=TRUE
-- threads library: Threads_FOUND=TRUE
-- libssh_threads_SRCS=pthread.c
-- The CXX compiler identification is GNU 8.3.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ********************************************
-- ********** libssh build options : **********
-- zlib support: ON
-- libgcrypt support: OFF
-- libmbedTLS support: OFF
-- libnacl support: OFF
-- SSH-1 support: OFF
-- SFTP support: ON
-- Server support : ON
-- GSSAPI support : ON
-- Pcap debugging support : ON
-- With static library: OFF
-- Unit testing: OFF
-- Client code Unit testing: OFF
-- Public API documentation generation
-- Benchmarks: OFF
-- ********************************************
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ssh-python/src
Scanning dependencies of target ssh_shared
[  1%] Building C object src/CMakeFiles/ssh_shared.dir/agent.c.o
[  2%] Building C object src/CMakeFiles/ssh_shared.dir/auth.c.o
[  3%] Building C object src/CMakeFiles/ssh_shared.dir/base64.c.o
[  4%] Building C object src/CMakeFiles/ssh_shared.dir/bignum.c.o
[  5%] Building C object src/CMakeFiles/ssh_shared.dir/buffer.c.o
[  6%] Building C object src/CMakeFiles/ssh_shared.dir/callbacks.c.o
[  7%] Building C object src/CMakeFiles/ssh_shared.dir/channels.c.o
[  8%] Building C object src/CMakeFiles/ssh_shared.dir/client.c.o
[  9%] Building C object src/CMakeFiles/ssh_shared.dir/config.c.o
[ 10%] Building C object src/CMakeFiles/ssh_shared.dir/connect.c.o
[ 11%] Building C object src/CMakeFiles/ssh_shared.dir/connector.c.o
[ 11%] Building C object src/CMakeFiles/ssh_shared.dir/curve25519.c.o
[ 12%] Building C object src/CMakeFiles/ssh_shared.dir/dh.c.o
[ 13%] Building C object src/CMakeFiles/ssh_shared.dir/ecdh.c.o
[ 14%] Building C object src/CMakeFiles/ssh_shared.dir/error.c.o
[ 15%] Building C object src/CMakeFiles/ssh_shared.dir/getpass.c.o
[ 16%] Building C object src/CMakeFiles/ssh_shared.dir/init.c.o
[ 17%] Building C object src/CMakeFiles/ssh_shared.dir/kex.c.o
[ 18%] Building C object src/CMakeFiles/ssh_shared.dir/known_hosts.c.o
[ 19%] Building C object src/CMakeFiles/ssh_shared.dir/knownhosts.c.o
[ 20%] Building C object src/CMakeFiles/ssh_shared.dir/legacy.c.o
[ 21%] Building C object src/CMakeFiles/ssh_shared.dir/log.c.o
/root/ssh-python/libssh/src/log.c: In function ‘ssh_log_function’:
/root/ssh-python/libssh/src/log.c:71:32: warning: ‘%06ld’ directive output may be truncated writing between 6 and 20 bytes into a region of size between 0 and 63 [-Wformat-truncation=]
         snprintf(buf, len, "%s.%06ld", tbuf, (long)tv.tv_usec);
                                ^~~~~
/root/ssh-python/libssh/src/log.c:71:9: note: ‘snprintf’ output between 8 and 85 bytes into a destination of size 64
         snprintf(buf, len, "%s.%06ld", tbuf, (long)tv.tv_usec);
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 22%] Building C object src/CMakeFiles/ssh_shared.dir/match.c.o
[ 23%] Building C object src/CMakeFiles/ssh_shared.dir/messages.c.o
[ 24%] Building C object src/CMakeFiles/ssh_shared.dir/misc.c.o
[ 25%] Building C object src/CMakeFiles/ssh_shared.dir/options.c.o
[ 26%] Building C object src/CMakeFiles/ssh_shared.dir/packet.c.o
[ 27%] Building C object src/CMakeFiles/ssh_shared.dir/packet_cb.c.o
[ 27%] Building C object src/CMakeFiles/ssh_shared.dir/packet_crypt.c.o
[ 28%] Building C object src/CMakeFiles/ssh_shared.dir/pcap.c.o
[ 29%] Building C object src/CMakeFiles/ssh_shared.dir/pki.c.o
[ 30%] Building C object src/CMakeFiles/ssh_shared.dir/pki_container_openssh.c.o
[ 31%] Building C object src/CMakeFiles/ssh_shared.dir/pki_ed25519.c.o
[ 32%] Building C object src/CMakeFiles/ssh_shared.dir/poll.c.o
[ 33%] Building C object src/CMakeFiles/ssh_shared.dir/session.c.o
[ 34%] Building C object src/CMakeFiles/ssh_shared.dir/scp.c.o
[ 35%] Building C object src/CMakeFiles/ssh_shared.dir/socket.c.o
[ 36%] Building C object src/CMakeFiles/ssh_shared.dir/string.c.o
[ 37%] Building C object src/CMakeFiles/ssh_shared.dir/threads.c.o
[ 38%] Building C object src/CMakeFiles/ssh_shared.dir/wrapper.c.o
[ 39%] Building C object src/CMakeFiles/ssh_shared.dir/external/bcrypt_pbkdf.c.o
[ 40%] Building C object src/CMakeFiles/ssh_shared.dir/external/blowfish.c.o
[ 41%] Building C object src/CMakeFiles/ssh_shared.dir/external/ed25519.c.o
[ 42%] Building C object src/CMakeFiles/ssh_shared.dir/external/fe25519.c.o
[ 43%] Building C object src/CMakeFiles/ssh_shared.dir/external/ge25519.c.o
[ 44%] Building C object src/CMakeFiles/ssh_shared.dir/external/sc25519.c.o
[ 44%] Building C object src/CMakeFiles/ssh_shared.dir/pki_crypto.c.o
[ 45%] Building C object src/CMakeFiles/ssh_shared.dir/ecdh_crypto.c.o
[ 46%] Building C object src/CMakeFiles/ssh_shared.dir/libcrypto.c.o
[ 47%] Building C object src/CMakeFiles/ssh_shared.dir/sftp.c.o
[ 48%] Building C object src/CMakeFiles/ssh_shared.dir/sftpserver.c.o
[ 49%] Building C object src/CMakeFiles/ssh_shared.dir/server.c.o
[ 50%] Building C object src/CMakeFiles/ssh_shared.dir/bind.c.o
[ 51%] Building C object src/CMakeFiles/ssh_shared.dir/gzip.c.o
[ 52%] Building C object src/CMakeFiles/ssh_shared.dir/gssapi.c.o
[ 53%] Building C object src/CMakeFiles/ssh_shared.dir/external/curve25519_ref.c.o
[ 54%] Linking C shared library libssh.so
[ 54%] Built target ssh_shared
Scanning dependencies of target ssh_threads_shared
[ 55%] Building C object src/threads/CMakeFiles/ssh_threads_shared.dir/pthread.c.o
[ 56%] Linking C shared library libssh_threads.so
[ 56%] Built target ssh_threads_shared
Scanning dependencies of target libsshpp_noexcept
[ 57%] Building CXX object examples/CMakeFiles/libsshpp_noexcept.dir/libsshpp_noexcept.cpp.o
[ 58%] Linking CXX executable libsshpp_noexcept
[ 58%] Built target libsshpp_noexcept
Scanning dependencies of target ssh-client
[ 58%] Building C object examples/CMakeFiles/ssh-client.dir/ssh_client.c.o
[ 59%] Building C object examples/CMakeFiles/ssh-client.dir/authentication.c.o
[ 60%] Building C object examples/CMakeFiles/ssh-client.dir/knownhosts.c.o
[ 61%] Building C object examples/CMakeFiles/ssh-client.dir/connect_ssh.c.o
[ 62%] Linking C executable ssh-client
[ 62%] Built target ssh-client
Scanning dependencies of target sshnetcat
[ 63%] Building C object examples/CMakeFiles/sshnetcat.dir/sshnetcat.c.o
[ 64%] Building C object examples/CMakeFiles/sshnetcat.dir/authentication.c.o
[ 65%] Building C object examples/CMakeFiles/sshnetcat.dir/knownhosts.c.o
[ 66%] Building C object examples/CMakeFiles/sshnetcat.dir/connect_ssh.c.o
[ 67%] Linking C executable sshnetcat
[ 67%] Built target sshnetcat
Scanning dependencies of target libssh_scp
[ 68%] Building C object examples/CMakeFiles/libssh_scp.dir/libssh_scp.c.o
[ 69%] Building C object examples/CMakeFiles/libssh_scp.dir/authentication.c.o
[ 70%] Building C object examples/CMakeFiles/libssh_scp.dir/knownhosts.c.o
[ 71%] Building C object examples/CMakeFiles/libssh_scp.dir/connect_ssh.c.o
[ 72%] Linking C executable libssh_scp
[ 72%] Built target libssh_scp
Scanning dependencies of target scp_download
[ 73%] Building C object examples/CMakeFiles/scp_download.dir/scp_download.c.o
[ 74%] Building C object examples/CMakeFiles/scp_download.dir/authentication.c.o
[ 75%] Building C object examples/CMakeFiles/scp_download.dir/knownhosts.c.o
[ 76%] Building C object examples/CMakeFiles/scp_download.dir/connect_ssh.c.o
[ 77%] Linking C executable scp_download
[ 77%] Built target scp_download
Scanning dependencies of target samplesshd-cb
[ 78%] Building C object examples/CMakeFiles/samplesshd-cb.dir/samplesshd-cb.c.o
[ 79%] Linking C executable samplesshd-cb
[ 79%] Built target samplesshd-cb
Scanning dependencies of target proxy
[ 80%] Building C object examples/CMakeFiles/proxy.dir/proxy.c.o
[ 81%] Linking C executable proxy
[ 81%] Built target proxy
Scanning dependencies of target samplesftp
[ 82%] Building C object examples/CMakeFiles/samplesftp.dir/samplesftp.c.o
[ 82%] Building C object examples/CMakeFiles/samplesftp.dir/authentication.c.o
[ 83%] Building C object examples/CMakeFiles/samplesftp.dir/knownhosts.c.o
[ 84%] Building C object examples/CMakeFiles/samplesftp.dir/connect_ssh.c.o
[ 85%] Linking C executable samplesftp
[ 85%] Built target samplesftp
Scanning dependencies of target samplesshd-kbdint
[ 86%] Building C object examples/CMakeFiles/samplesshd-kbdint.dir/samplesshd-kbdint.c.o
[ 87%] Linking C executable samplesshd-kbdint
[ 87%] Built target samplesshd-kbdint
Scanning dependencies of target ssh_server_fork
[ 88%] Building C object examples/CMakeFiles/ssh_server_fork.dir/ssh_server_fork.c.o
[ 89%] Linking C executable ssh_server_fork
[ 89%] Built target ssh_server_fork
Scanning dependencies of target exec
[ 89%] Building C object examples/CMakeFiles/exec.dir/exec.c.o
[ 90%] Building C object examples/CMakeFiles/exec.dir/authentication.c.o
[ 91%] Building C object examples/CMakeFiles/exec.dir/knownhosts.c.o
[ 92%] Building C object examples/CMakeFiles/exec.dir/connect_ssh.c.o
[ 93%] Linking C executable exec
[ 93%] Built target exec
Scanning dependencies of target senddata
[ 94%] Building C object examples/CMakeFiles/senddata.dir/senddata.c.o
[ 95%] Building C object examples/CMakeFiles/senddata.dir/authentication.c.o
[ 96%] Building C object examples/CMakeFiles/senddata.dir/knownhosts.c.o
[ 97%] Building C object examples/CMakeFiles/senddata.dir/connect_ssh.c.o
[ 98%] Linking C executable senddata
[ 98%] Built target senddata
Scanning dependencies of target libsshpp
[ 99%] Building CXX object examples/CMakeFiles/libsshpp.dir/libsshpp.cpp.o
[100%] Linking CXX executable libsshpp
[100%] Built target libsshpp
running build_ext
building 'ssh.callbacks' extension
creating build
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/ssh
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/callbacks.c -o build/temp.linux-x86_64-3.7/ssh/callbacks.o -O3
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/ssh
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/callbacks.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/callbacks.cpython-37m-x86_64-linux-gnu.so
building 'ssh.channel' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/channel.c -o build/temp.linux-x86_64-3.7/ssh/channel.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/channel.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/channel.cpython-37m-x86_64-linux-gnu.so
building 'ssh.connector' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/connector.c -o build/temp.linux-x86_64-3.7/ssh/connector.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/connector.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/connector.cpython-37m-x86_64-linux-gnu.so
building 'ssh.error_codes' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/error_codes.c -o build/temp.linux-x86_64-3.7/ssh/error_codes.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/error_codes.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/error_codes.cpython-37m-x86_64-linux-gnu.so
building 'ssh.event' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/event.c -o build/temp.linux-x86_64-3.7/ssh/event.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/event.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/event.cpython-37m-x86_64-linux-gnu.so
building 'ssh.exceptions' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/exceptions.c -o build/temp.linux-x86_64-3.7/ssh/exceptions.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/exceptions.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/exceptions.cpython-37m-x86_64-linux-gnu.so
building 'ssh.helper' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/helper.c -o build/temp.linux-x86_64-3.7/ssh/helper.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/helper.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/helper.cpython-37m-x86_64-linux-gnu.so
building 'ssh.key' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/key.c -o build/temp.linux-x86_64-3.7/ssh/key.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/key.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/key.cpython-37m-x86_64-linux-gnu.so
building 'ssh.keytypes' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/keytypes.c -o build/temp.linux-x86_64-3.7/ssh/keytypes.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/keytypes.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/keytypes.cpython-37m-x86_64-linux-gnu.so
building 'ssh.options' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/options.c -o build/temp.linux-x86_64-3.7/ssh/options.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/options.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/options.cpython-37m-x86_64-linux-gnu.so
building 'ssh.scp' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/scp.c -o build/temp.linux-x86_64-3.7/ssh/scp.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/scp.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/scp.cpython-37m-x86_64-linux-gnu.so
building 'ssh.session' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/session.c -o build/temp.linux-x86_64-3.7/ssh/session.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/session.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/session.cpython-37m-x86_64-linux-gnu.so
building 'ssh.sftp' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/sftp.c -o build/temp.linux-x86_64-3.7/ssh/sftp.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/sftp.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/sftp.cpython-37m-x86_64-linux-gnu.so
building 'ssh.sftp_attributes' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/sftp_attributes.c -o build/temp.linux-x86_64-3.7/ssh/sftp_attributes.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/sftp_attributes.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/sftp_attributes.cpython-37m-x86_64-linux-gnu.so
building 'ssh.sftp_handles' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/sftp_handles.c -o build/temp.linux-x86_64-3.7/ssh/sftp_handles.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/sftp_handles.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/sftp_handles.cpython-37m-x86_64-linux-gnu.so
building 'ssh.sftp_statvfs' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/sftp_statvfs.c -o build/temp.linux-x86_64-3.7/ssh/sftp_statvfs.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/sftp_statvfs.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/sftp_statvfs.cpython-37m-x86_64-linux-gnu.so
building 'ssh.utils' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ilibssh/include -I/usr/include/python3.7m -c ssh/utils.c -o build/temp.linux-x86_64-3.7/ssh/utils.o -O3
gcc -pthread -shared -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -g build/temp.linux-x86_64-3.7/ssh/utils.o -L/root/ssh-python/src/src -L/usr/lib64 -Wl,--enable-new-dtags,-R$ORIGIN/. -lssh -lpython3.7m -o build/lib.linux-x86_64-3.7/ssh/utils.cpython-37m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.7/ssh/callbacks.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/channel.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/connector.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/error_codes.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/event.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/exceptions.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/helper.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/key.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/keytypes.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/options.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/scp.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/session.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp_attributes.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp_handles.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp_statvfs.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/utils.cpython-37m-x86_64-linux-gnu.so -> ssh
# python3 setup.py test
-- Could NOT find NaCl (missing: NACL_LIBRARIES NACL_INCLUDE_DIRS) 
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Threads_FOUND=TRUE
-- threads library: Threads_FOUND=TRUE
-- libssh_threads_SRCS=pthread.c
-- ********************************************
-- ********** libssh build options : **********
-- zlib support: ON
-- libgcrypt support: OFF
-- libmbedTLS support: OFF
-- libnacl support: OFF
-- SSH-1 support: OFF
-- SFTP support: ON
-- Server support : ON
-- GSSAPI support : ON
-- Pcap debugging support : ON
-- With static library: OFF
-- Unit testing: OFF
-- Client code Unit testing: OFF
-- Public API documentation generation
-- Benchmarks: OFF
-- ********************************************
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ssh-python/src
[ 54%] Built target ssh_shared
[ 56%] Built target ssh_threads_shared
[ 58%] Built target libsshpp_noexcept
[ 62%] Built target ssh-client
[ 67%] Built target sshnetcat
[ 72%] Built target libssh_scp
[ 77%] Built target scp_download
[ 79%] Built target samplesshd-cb
[ 81%] Built target proxy
[ 85%] Built target samplesftp
[ 87%] Built target samplesshd-kbdint
[ 89%] Built target ssh_server_fork
[ 93%] Built target exec
[ 98%] Built target senddata
[100%] Built target libsshpp
running test
running egg_info
creating ssh_python.egg-info
writing ssh_python.egg-info/PKG-INFO
writing dependency_links to ssh_python.egg-info/dependency_links.txt
writing top-level names to ssh_python.egg-info/top_level.txt
writing manifest file 'ssh_python.egg-info/SOURCES.txt'
reading manifest file 'ssh_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*' found under directory 'docker'
warning: no previously-included files found matching '.travis.yml'
writing manifest file 'ssh_python.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.7/ssh/callbacks.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/channel.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/connector.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/error_codes.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/event.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/exceptions.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/helper.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/key.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/keytypes.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/options.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/scp.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/session.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp_attributes.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp_handles.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/sftp_statvfs.cpython-37m-x86_64-linux-gnu.so -> ssh
copying build/lib.linux-x86_64-3.7/ssh/utils.cpython-37m-x86_64-linux-gnu.so -> ssh
WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.
/root/ssh-python/tests/embedded_server/openssh.py:68: ResourceWarning: unclosed <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 56640), raddr=('127.0.0.1', 2222)>
  del sock
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_channel_exec (tests.test_channel.ChannelTest) ... FAIL
test_close (tests.test_channel.ChannelTest) ... ok
test_exit_code (tests.test_channel.ChannelTest) ... ok
test_long_running_execute (tests.test_channel.ChannelTest) ... ok
test_pty (tests.test_channel.ChannelTest) ... ok
test_read_stderr (tests.test_channel.ChannelTest) ... ok
WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.
/root/ssh-python/tests/embedded_server/openssh.py:68: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 56656), raddr=('127.0.0.1', 2222)>
  del sock
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_connector (tests.test_connector.ConnectorTest) ... /usr/lib64/python3.7/unittest/case.py:632: ResourceWarning: unclosed <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  testMethod()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.
/root/ssh-python/tests/embedded_server/openssh.py:68: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 56662), raddr=('127.0.0.1', 2222)>
  del sock
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_callbacks (tests.test_event.CallbacksTest) ... ok
WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.
/root/ssh-python/tests/embedded_server/openssh.py:68: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 56666), raddr=('127.0.0.1', 2222)>
  del sock
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_event_connector (tests.test_event.EventTest) ... /usr/lib64/python3.7/unittest/case.py:632: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  testMethod()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
test_event_session (tests.test_event.EventTest) ... ok
WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.
/root/ssh-python/tests/embedded_server/openssh.py:68: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 56672), raddr=('127.0.0.1', 2222)>
  del sock
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_connect (tests.test_session.SessionTest) ... ok
test_disconnect (tests.test_session.SessionTest) ... ok
test_key_auth (tests.test_session.SessionTest) ... ok
test_open_channel (tests.test_session.SessionTest) ... ok
test_scp_push (tests.test_session.SessionTest) ... ok
test_should_not_segfault (tests.test_session.SessionTest) ... ok
test_socket_connect (tests.test_session.SessionTest) ... /usr/lib64/python3.7/unittest/case.py:632: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  testMethod()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
ok
WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems.
/root/ssh-python/tests/embedded_server/openssh.py:68: ResourceWarning: unclosed <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 56688), raddr=('127.0.0.1', 2222)>
  del sock
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_canonicalize_path (tests.test_sftp.SFTPTest) ... ok
test_fstatvfs (tests.test_sftp.SFTPTest) ... ok
test_fsync (tests.test_sftp.SFTPTest) ... ok
test_handle_open_nonblocking (tests.test_sftp.SFTPTest) ... ok
test_mkdir (tests.test_sftp.SFTPTest) ... ok
test_readdir (tests.test_sftp.SFTPTest) ... ok
test_readdir_failure (tests.test_sftp.SFTPTest) ... ok
test_sftp_attrs_cls (tests.test_sftp.SFTPTest) ... ok
test_sftp_dir (tests.test_sftp.SFTPTest) ... ok
test_sftp_fail (tests.test_sftp.SFTPTest) ... ok
test_sftp_file_read (tests.test_sftp.SFTPTest) ... ok
test_sftp_fstat (tests.test_sftp.SFTPTest) ... ok
test_sftp_init (tests.test_sftp.SFTPTest) ... ok
test_sftp_readdir (tests.test_sftp.SFTPTest) ... ok
test_sftp_setstat (tests.test_sftp.SFTPTest) ... ok
test_sftp_stat (tests.test_sftp.SFTPTest) ... ok
test_sftp_symlink_realpath_lstat (tests.test_sftp.SFTPTest) ... ok
test_sftp_write (tests.test_sftp.SFTPTest) ... ok
test_statvfs (tests.test_sftp.SFTPTest) ... ok

======================================================================
FAIL: test_channel_exec (tests.test_channel.ChannelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/ssh-python/tests/test_channel.py", line 62, in test_channel_exec
    self.assertFalse(chan.is_open())
AssertionError: True is not false

----------------------------------------------------------------------
Ran 36 tests in 15.174s

FAILED (failures=1)
Test failed: <unittest.runner.TextTestResult run=36 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=36 errors=0 failures=1>

Thank you, much appreciated.

This looks like flakiness in the test - it's expecting is_open to return False after reading all data but before closing channel - this is not guaranteed to be the case.

The test needs updating to close the channel before checking is_open so it is explicit and not flaky. The time.sleep line can also be removed after closing channel.

I'd expect security-related code like libssh not to be flaky in this way. It is possible that the behaviour has changed between libssh versions but that should likely be confirmed with the libssh folks to see if the change is expected and documented.

Channel now closed in test.
It is correct SSH behaviour as far as the protocol is concerned. channel not closed == is_open is True.