Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 Mock Version: 1.1.14 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/libssh2-python.spec'], False, '/var/lib/mock/fedora-16-x86_64/root/', None, 0, True, False, 500, 475, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/libssh2-python.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libssh2-python-0.7.1-4.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libssh2-python.spec'], False, '/var/lib/mock/fedora-16-x86_64/root/', None, 0, True, False, 500, 475, None, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libssh2-python.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HOey2f + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf libssh2-python-0.7.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/libssh2-python-0.7.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd libssh2-python-0.7.1 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.u23KLk + umask 022 + cd /builddir/build/BUILD + cd libssh2-python-0.7.1 + LANG=C + export LANG + unset DISPLAY + python setup.py build running build running build_ext building 'libssh2' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMODULE_VERSION="0.7.1" -I/usr/include/python2.7 -c src/ssh2.c -o build/temp.linux-x86_64-2.7/src/ssh2.o src/ssh2.c: In function 'initlibssh2': src/ssh2.c:53:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed src/ssh2.c:187:1: warning: ob_refcnt of '*module' is 1 too low [enabled by default] src/ssh2.c:187:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/ssh2.c:187:1: note: but final ob_refcnt is N + -1 src/ssh2.c:62:5: note: borrowed reference returned by Py_InitModule4_64() allocated at: if ((module = Py_InitModule("libssh2", NULL)) == NULL) src/ssh2.c:62:5: note: when Py_InitModule4_64() succeeds at: if ((module = Py_InitModule("libssh2", NULL)) == NULL) src/ssh2.c:62:5: note: ob_refcnt is now refs: 0 + N where N >= 1 src/ssh2.c:62:5: note: taking False path at: if ((module = Py_InitModule("libssh2", NULL)) == NULL) src/ssh2.c:67:37: note: reaching: SSH2_API[SSH2_Session_New_NUM] = (void *)SSH2_Session_New; src/ssh2.c:71:15: note: when PyCObject_FromVoidPtr() succeeds at: c_api_object = PyCObject_FromVoidPtr((void *)SSH2_API, NULL); src/ssh2.c:72:5: note: taking True path at: if (c_api_object != NULL) src/ssh2.c:73:21: note: reaching: PyModule_AddObject(module, "_C_API", c_api_object); src/ssh2.c:73:21: note: when PyModule_AddObject() succeeds at: PyModule_AddObject(module, "_C_API", c_api_object); src/ssh2.c:75:33: note: reaching: SSH2_Error = PyErr_NewException("libssh2.Error", NULL, NULL); src/ssh2.c:75:33: note: when PyErr_NewException() succeeds at: SSH2_Error = PyErr_NewException("libssh2.Error", NULL, NULL); src/ssh2.c:76:5: note: taking False path at: if (SSH2_Error == NULL) src/ssh2.c:78:24: note: reaching: if (PyModule_AddObject(module, "Error", SSH2_Error) != 0) src/ssh2.c:78:24: note: when PyModule_AddObject() succeeds at: if (PyModule_AddObject(module, "Error", SSH2_Error) != 0) src/ssh2.c:78:5: note: taking False path at: if (PyModule_AddObject(module, "Error", SSH2_Error) != 0) src/ssh2.c:81:28: note: reaching: PyModule_AddStringConstant(module, "__version__", MODULE_VERSION); src/ssh2.c:81:28: note: when PyModule_AddStringConstant() succeeds at: PyModule_AddStringConstant(module, "__version__", MODULE_VERSION); src/ssh2.c:84:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_MD5", 0x0000); src/ssh2.c:85:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_SHA1", 0x0001); src/ssh2.c:86:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_HEX", 0x0000); src/ssh2.c:87:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_RAW", 0x0002); src/ssh2.c:90:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "HOSTKEY_HASH_MD5", LIBSSH2_HOSTKEY_HASH_MD5); src/ssh2.c:91:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "HOSTKEY_HASH_SHA1", LIBSSH2_HOSTKEY_HASH_SHA1); src/ssh2.c:94:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_KEX", LIBSSH2_METHOD_KEX); src/ssh2.c:95:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_HOSTKEY", LIBSSH2_METHOD_HOSTKEY); src/ssh2.c:96:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_CRYPT_CS", LIBSSH2_METHOD_CRYPT_CS); src/ssh2.c:97:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_CRYPT_SC", LIBSSH2_METHOD_CRYPT_SC); src/ssh2.c:98:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_MAC_CS", LIBSSH2_METHOD_MAC_CS); src/ssh2.c:99:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_MAC_SC", LIBSSH2_METHOD_MAC_SC); src/ssh2.c:100:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_COMP_CS", LIBSSH2_METHOD_COMP_CS); src/ssh2.c:101:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_COMP_SC", LIBSSH2_METHOD_COMP_SC); src/ssh2.c:102:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_LANG_CS", LIBSSH2_METHOD_LANG_CS); src/ssh2.c:103:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_LANG_SC", LIBSSH2_METHOD_LANG_SC); src/ssh2.c:105:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "SFTP_STAT", LIBSSH2_SFTP_STAT); src/ssh2.c:106:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "SFTP_LSTAT", LIBSSH2_SFTP_LSTAT); src/ssh2.c:108:28: note: when PyModule_AddStringConstant() succeeds at: PyModule_AddStringConstant(module, "DEFAULT_BANNER", LIBSSH2_SSH_DEFAULT_BANNER); src/ssh2.c:109:28: note: when PyModule_AddStringConstant() succeeds at: PyModule_AddStringConstant(module, "LIBSSH2_VERSION", LIBSSH2_VERSION); src/ssh2.c:111:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_IGNORE", LIBSSH2_CALLBACK_IGNORE); src/ssh2.c:112:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_DEBUG", LIBSSH2_CALLBACK_DEBUG); src/ssh2.c:113:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_DISCONNECT", LIBSSH2_CALLBACK_DISCONNECT); src/ssh2.c:114:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_MACERROR", LIBSSH2_CALLBACK_MACERROR); src/ssh2.c:115:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_X11", LIBSSH2_CALLBACK_X11); src/ssh2.c:117:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_NONE", LIBSSH2_ERROR_SOCKET_NONE); src/ssh2.c:118:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BANNER_NONE", LIBSSH2_ERROR_BANNER_NONE); src/ssh2.c:119:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BANNER_SEND", LIBSSH2_ERROR_BANNER_SEND); src/ssh2.c:120:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_INVALID_MAC", LIBSSH2_ERROR_INVALID_MAC); src/ssh2.c:121:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_KEX_FAILURE", LIBSSH2_ERROR_KEX_FAILURE); src/ssh2.c:122:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_ALLOC", LIBSSH2_ERROR_ALLOC); src/ssh2.c:123:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_SEND", LIBSSH2_ERROR_SOCKET_SEND); src/ssh2.c:124:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_KEY_EXCHANGE_FAILURE", LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE); src/ssh2.c:125:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_TIMEOUT", LIBSSH2_ERROR_TIMEOUT); src/ssh2.c:126:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_HOSTKEY_INIT", LIBSSH2_ERROR_HOSTKEY_INIT); src/ssh2.c:127:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_HOSTKEY_SIGN", LIBSSH2_ERROR_HOSTKEY_SIGN); src/ssh2.c:128:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_DECRYPT", LIBSSH2_ERROR_DECRYPT); src/ssh2.c:129:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_DISCONNECT", LIBSSH2_ERROR_SOCKET_DISCONNECT); src/ssh2.c:130:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PROTO", LIBSSH2_ERROR_PROTO); src/ssh2.c:131:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PASSWORD_EXPIRED", LIBSSH2_ERROR_PASSWORD_EXPIRED); src/ssh2.c:132:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_FILE", LIBSSH2_ERROR_FILE); src/ssh2.c:133:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_METHOD_NONE", LIBSSH2_ERROR_METHOD_NONE); src/ssh2.c:134:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PUBLICKEY_UNRECOGNIZED", LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED); src/ssh2.c:135:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PUBLICKEY_UNVERIFIED", LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED); src/ssh2.c:136:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_OUTOFORDER", LIBSSH2_ERROR_CHANNEL_OUTOFORDER); src/ssh2.c:137:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_FAILURE", LIBSSH2_ERROR_CHANNEL_FAILURE); src/ssh2.c:138:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_REQUEST_DENIED", LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED); src/ssh2.c:139:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_UNKNOWN", LIBSSH2_ERROR_CHANNEL_UNKNOWN); src/ssh2.c:140:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_WINDOW_EXCEEDED", LIBSSH2_ERROR_CHANNEL_WINDOW_EXCEEDED); src/ssh2.c:141:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_PACKET_EXCEEDED", LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED); src/ssh2.c:142:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_CLOSED", LIBSSH2_ERROR_CHANNEL_CLOSED); src/ssh2.c:143:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_EOF_SENT", LIBSSH2_ERROR_CHANNEL_EOF_SENT); src/ssh2.c:144:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SCP_PROTOCOL", LIBSSH2_ERROR_SCP_PROTOCOL); src/ssh2.c:145:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_ZLIB", LIBSSH2_ERROR_ZLIB); src/ssh2.c:146:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_TIMEOUT", LIBSSH2_ERROR_SOCKET_TIMEOUT); src/ssh2.c:147:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SFTP_PROTOCOL", LIBSSH2_ERROR_SFTP_PROTOCOL); src/ssh2.c:148:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_REQUEST_DENIED", LIBSSH2_ERROR_REQUEST_DENIED); src/ssh2.c:149:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_METHOD_NOT_SUPPORTED", LIBSSH2_ERROR_METHOD_NOT_SUPPORTED); src/ssh2.c:150:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_INVAL", LIBSSH2_ERROR_INVAL); src/ssh2.c:151:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_INVALID_POLL_TYPE", LIBSSH2_ERROR_INVALID_POLL_TYPE); src/ssh2.c:152:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PUBLICKEY_PROTOCOL", LIBSSH2_ERROR_PUBLICKEY_PROTOCOL); src/ssh2.c:153:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_EAGAIN", LIBSSH2_ERROR_EAGAIN); src/ssh2.c:154:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BUFFER_TOO_SMALL", LIBSSH2_ERROR_BUFFER_TOO_SMALL); src/ssh2.c:155:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BAD_USE", LIBSSH2_ERROR_BAD_USE); src/ssh2.c:156:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_COMPRESS", LIBSSH2_ERROR_COMPRESS); src/ssh2.c:157:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_OUT_OF_BOUNDARY", LIBSSH2_ERROR_OUT_OF_BOUNDARY); src/ssh2.c:159:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_AUTHENTICATION_FAILED", LIBSSH2_ERROR_AUTHENTICATION_FAILED); src/ssh2.c:160:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_AGENT_PROTOCOL", LIBSSH2_ERROR_AGENT_PROTOCOL); src/ssh2.c:163:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "STDERR", SSH_EXTENDED_DATA_STDERR); src/ssh2.c:165:5: note: when considering range: -0x80000000 <= value <= -1 at: if (init_SSH2_Session(module) != 0) src/ssh2.c:165:5: note: taking True path at: if (init_SSH2_Session(module) != 0) src/ssh2.c:183:2: note: ob_refcnt is now refs: -1 + N where N >= 1 src/ssh2.c:183:2: note: when taking True path at: Py_DECREF(module); src/ssh2.c:187:1: note: returning src/ssh2.c:187:1: note: found 9 similar trace(s) to this src/ssh2.c:187:1: warning: ob_refcnt of '*SSH2_Error.1' is 1 too low [enabled by default] src/ssh2.c:187:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) src/ssh2.c:187:1: note: due to object being referenced by: SSH2_Error src/ssh2.c:187:1: note: but final ob_refcnt is N + 0 src/ssh2.c:75:33: note: new exception object from PyErr_NewException allocated at: SSH2_Error = PyErr_NewException("libssh2.Error", NULL, NULL); src/ssh2.c:62:5: note: when Py_InitModule4_64() succeeds at: if ((module = Py_InitModule("libssh2", NULL)) == NULL) src/ssh2.c:62:5: note: taking False path at: if ((module = Py_InitModule("libssh2", NULL)) == NULL) src/ssh2.c:67:37: note: reaching: SSH2_API[SSH2_Session_New_NUM] = (void *)SSH2_Session_New; src/ssh2.c:71:15: note: when PyCObject_FromVoidPtr() succeeds at: c_api_object = PyCObject_FromVoidPtr((void *)SSH2_API, NULL); src/ssh2.c:72:5: note: taking True path at: if (c_api_object != NULL) src/ssh2.c:73:21: note: reaching: PyModule_AddObject(module, "_C_API", c_api_object); src/ssh2.c:73:21: note: when PyModule_AddObject() succeeds at: PyModule_AddObject(module, "_C_API", c_api_object); src/ssh2.c:75:33: note: reaching: SSH2_Error = PyErr_NewException("libssh2.Error", NULL, NULL); src/ssh2.c:75:33: note: when PyErr_NewException() succeeds at: SSH2_Error = PyErr_NewException("libssh2.Error", NULL, NULL); src/ssh2.c:75:33: note: ob_refcnt is now refs: 1 + N where N >= 0 src/ssh2.c:75:13: note: '*SSH2_Error.1' is now referenced by 1 non-stack value(s): SSH2_Error src/ssh2.c:76:5: note: taking False path at: if (SSH2_Error == NULL) src/ssh2.c:78:24: note: reaching: if (PyModule_AddObject(module, "Error", SSH2_Error) != 0) src/ssh2.c:78:24: note: when PyModule_AddObject() succeeds at: if (PyModule_AddObject(module, "Error", SSH2_Error) != 0) src/ssh2.c:78:24: note: ob_refcnt is now refs: 0 + N where N >= 1 src/ssh2.c:78:5: note: taking False path at: if (PyModule_AddObject(module, "Error", SSH2_Error) != 0) src/ssh2.c:81:28: note: reaching: PyModule_AddStringConstant(module, "__version__", MODULE_VERSION); src/ssh2.c:81:28: note: when PyModule_AddStringConstant() succeeds at: PyModule_AddStringConstant(module, "__version__", MODULE_VERSION); src/ssh2.c:84:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_MD5", 0x0000); src/ssh2.c:85:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_SHA1", 0x0001); src/ssh2.c:86:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_HEX", 0x0000); src/ssh2.c:87:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "FINGERPRINT_RAW", 0x0002); src/ssh2.c:90:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "HOSTKEY_HASH_MD5", LIBSSH2_HOSTKEY_HASH_MD5); src/ssh2.c:91:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "HOSTKEY_HASH_SHA1", LIBSSH2_HOSTKEY_HASH_SHA1); src/ssh2.c:94:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_KEX", LIBSSH2_METHOD_KEX); src/ssh2.c:95:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_HOSTKEY", LIBSSH2_METHOD_HOSTKEY); src/ssh2.c:96:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_CRYPT_CS", LIBSSH2_METHOD_CRYPT_CS); src/ssh2.c:97:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_CRYPT_SC", LIBSSH2_METHOD_CRYPT_SC); src/ssh2.c:98:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_MAC_CS", LIBSSH2_METHOD_MAC_CS); src/ssh2.c:99:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_MAC_SC", LIBSSH2_METHOD_MAC_SC); src/ssh2.c:100:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_COMP_CS", LIBSSH2_METHOD_COMP_CS); src/ssh2.c:101:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_COMP_SC", LIBSSH2_METHOD_COMP_SC); src/ssh2.c:102:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_LANG_CS", LIBSSH2_METHOD_LANG_CS); src/ssh2.c:103:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "METHOD_LANG_SC", LIBSSH2_METHOD_LANG_SC); src/ssh2.c:105:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "SFTP_STAT", LIBSSH2_SFTP_STAT); src/ssh2.c:106:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "SFTP_LSTAT", LIBSSH2_SFTP_LSTAT); src/ssh2.c:108:28: note: when PyModule_AddStringConstant() succeeds at: PyModule_AddStringConstant(module, "DEFAULT_BANNER", LIBSSH2_SSH_DEFAULT_BANNER); src/ssh2.c:109:28: note: when PyModule_AddStringConstant() succeeds at: PyModule_AddStringConstant(module, "LIBSSH2_VERSION", LIBSSH2_VERSION); src/ssh2.c:111:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_IGNORE", LIBSSH2_CALLBACK_IGNORE); src/ssh2.c:112:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_DEBUG", LIBSSH2_CALLBACK_DEBUG); src/ssh2.c:113:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_DISCONNECT", LIBSSH2_CALLBACK_DISCONNECT); src/ssh2.c:114:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_MACERROR", LIBSSH2_CALLBACK_MACERROR); src/ssh2.c:115:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "CALLBACK_X11", LIBSSH2_CALLBACK_X11); src/ssh2.c:117:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_NONE", LIBSSH2_ERROR_SOCKET_NONE); src/ssh2.c:118:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BANNER_NONE", LIBSSH2_ERROR_BANNER_NONE); src/ssh2.c:119:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BANNER_SEND", LIBSSH2_ERROR_BANNER_SEND); src/ssh2.c:120:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_INVALID_MAC", LIBSSH2_ERROR_INVALID_MAC); src/ssh2.c:121:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_KEX_FAILURE", LIBSSH2_ERROR_KEX_FAILURE); src/ssh2.c:122:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_ALLOC", LIBSSH2_ERROR_ALLOC); src/ssh2.c:123:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_SEND", LIBSSH2_ERROR_SOCKET_SEND); src/ssh2.c:124:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_KEY_EXCHANGE_FAILURE", LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE); src/ssh2.c:125:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_TIMEOUT", LIBSSH2_ERROR_TIMEOUT); src/ssh2.c:126:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_HOSTKEY_INIT", LIBSSH2_ERROR_HOSTKEY_INIT); src/ssh2.c:127:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_HOSTKEY_SIGN", LIBSSH2_ERROR_HOSTKEY_SIGN); src/ssh2.c:128:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_DECRYPT", LIBSSH2_ERROR_DECRYPT); src/ssh2.c:129:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_DISCONNECT", LIBSSH2_ERROR_SOCKET_DISCONNECT); src/ssh2.c:130:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PROTO", LIBSSH2_ERROR_PROTO); src/ssh2.c:131:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PASSWORD_EXPIRED", LIBSSH2_ERROR_PASSWORD_EXPIRED); src/ssh2.c:132:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_FILE", LIBSSH2_ERROR_FILE); src/ssh2.c:133:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_METHOD_NONE", LIBSSH2_ERROR_METHOD_NONE); src/ssh2.c:134:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PUBLICKEY_UNRECOGNIZED", LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED); src/ssh2.c:135:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PUBLICKEY_UNVERIFIED", LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED); src/ssh2.c:136:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_OUTOFORDER", LIBSSH2_ERROR_CHANNEL_OUTOFORDER); src/ssh2.c:137:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_FAILURE", LIBSSH2_ERROR_CHANNEL_FAILURE); src/ssh2.c:138:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_REQUEST_DENIED", LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED); src/ssh2.c:139:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_UNKNOWN", LIBSSH2_ERROR_CHANNEL_UNKNOWN); src/ssh2.c:140:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_WINDOW_EXCEEDED", LIBSSH2_ERROR_CHANNEL_WINDOW_EXCEEDED); src/ssh2.c:141:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_PACKET_EXCEEDED", LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED); src/ssh2.c:142:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_CLOSED", LIBSSH2_ERROR_CHANNEL_CLOSED); src/ssh2.c:143:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_CHANNEL_EOF_SENT", LIBSSH2_ERROR_CHANNEL_EOF_SENT); src/ssh2.c:144:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SCP_PROTOCOL", LIBSSH2_ERROR_SCP_PROTOCOL); src/ssh2.c:145:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_ZLIB", LIBSSH2_ERROR_ZLIB); src/ssh2.c:146:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SOCKET_TIMEOUT", LIBSSH2_ERROR_SOCKET_TIMEOUT); src/ssh2.c:147:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_SFTP_PROTOCOL", LIBSSH2_ERROR_SFTP_PROTOCOL); src/ssh2.c:148:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_REQUEST_DENIED", LIBSSH2_ERROR_REQUEST_DENIED); src/ssh2.c:149:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_METHOD_NOT_SUPPORTED", LIBSSH2_ERROR_METHOD_NOT_SUPPORTED); src/ssh2.c:150:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_INVAL", LIBSSH2_ERROR_INVAL); src/ssh2.c:151:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_INVALID_POLL_TYPE", LIBSSH2_ERROR_INVALID_POLL_TYPE); src/ssh2.c:152:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_PUBLICKEY_PROTOCOL", LIBSSH2_ERROR_PUBLICKEY_PROTOCOL); src/ssh2.c:153:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_EAGAIN", LIBSSH2_ERROR_EAGAIN); src/ssh2.c:154:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BUFFER_TOO_SMALL", LIBSSH2_ERROR_BUFFER_TOO_SMALL); src/ssh2.c:155:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_BAD_USE", LIBSSH2_ERROR_BAD_USE); src/ssh2.c:156:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_COMPRESS", LIBSSH2_ERROR_COMPRESS); src/ssh2.c:157:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_OUT_OF_BOUNDARY", LIBSSH2_ERROR_OUT_OF_BOUNDARY); src/ssh2.c:159:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_AUTHENTICATION_FAILED", LIBSSH2_ERROR_AUTHENTICATION_FAILED); src/ssh2.c:160:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "ERROR_AGENT_PROTOCOL", LIBSSH2_ERROR_AGENT_PROTOCOL); src/ssh2.c:163:25: note: when PyModule_AddIntConstant() succeeds at: PyModule_AddIntConstant(module, "STDERR", SSH_EXTENDED_DATA_STDERR); src/ssh2.c:165:5: note: when considering range: -0x80000000 <= value <= -1 at: if (init_SSH2_Session(module) != 0) src/ssh2.c:165:5: note: taking True path at: if (init_SSH2_Session(module) != 0) src/ssh2.c:183:2: note: when taking True path at: Py_DECREF(module); src/ssh2.c:187:1: note: returning src/ssh2.c:187:1: note: found 20 similar trace(s) to this src/ssh2.c:53:1: note: graphical error report for function 'initlibssh2' written out to 'build/temp.linux-x86_64-2.7/src/ssh2.c.initlibssh2-refcount-errors.html' gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DMODULE_VERSION="0.7.1" -I/usr/include/python2.7 -c src/session.c -o build/temp.linux-x86_64-2.7/src/session.o src/session.c: In function 'passwd_changereq_callback': src/session.c:181:2: warning: passing argument 3 of 'PyString_AsStringAndSize' from incompatible pointer type [enabled by default] /usr/include/python2.7/stringobject.h:172:17: note: expected 'Py_ssize_t *' but argument is of type 'int *' src/session.c: In function 'session_forward_listen': src/session.c:777:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "siii:forward_listen" [enabled by default] argument 3 ("&host") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:777:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "siii:forward_listen" [enabled by default] argument 5 ("&bound_port") had type "int * *" but was expecting "int *" (pointing to 32 bits) for format code "i" src/session.c:787:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:787:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:787:1: note: but final ob_refcnt is N + 1 src/session.c:784:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_POINTER(listener, self) src/session.c:777:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "siii:forward_listen", &host, &port, &bound_port, &queue_maxsize)) src/session.c:777:5: note: taking False path at: if (!PyArg_ParseTuple(args, "siii:forward_listen", &host, &port, &bound_port, &queue_maxsize)) src/session.c:780:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:780:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:782:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:784:2: note: when treating unknown struct LIBSSH2_LISTENER * from src/session.c:781 as NULL at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: taking True path at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: reaching: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:784:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:787:1: note: returning src/session.c:787:1: note: found 3 similar trace(s) to this src/session.c:787:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:787:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:787:1: note: but final ob_refcnt is N + 1 src/session.c:784:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_POINTER(listener, self) src/session.c:777:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "siii:forward_listen", &host, &port, &bound_port, &queue_maxsize)) src/session.c:777:5: note: taking False path at: if (!PyArg_ParseTuple(args, "siii:forward_listen", &host, &port, &bound_port, &queue_maxsize)) src/session.c:780:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:780:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:782:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:784:2: note: when treating unknown struct LIBSSH2_LISTENER * from src/session.c:781 as NULL at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: taking True path at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: reaching: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:784:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(listener, self) src/session.c:787:1: note: returning src/session.c:787:1: note: found 1 similar trace(s) to this src/session.c:784:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:784 [enabled by default] src/session.c:777:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "siii:forward_listen", &host, &port, &bound_port, &queue_maxsize)) src/session.c:777:5: note: taking False path at: if (!PyArg_ParseTuple(args, "siii:forward_listen", &host, &port, &bound_port, &queue_maxsize)) src/session.c:780:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:780:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:782:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:784:2: note: when treating unknown struct LIBSSH2_LISTENER * from src/session.c:781 as NULL at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: taking True path at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: reaching: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(listener, self) src/session.c:784:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:784:2: note: found 1 similar trace(s) to this src/session.c:770:1: note: graphical error report for function 'session_forward_listen' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_forward_listen-refcount-errors.html' src/session.c: In function 'session_direct_tcpip': src/session.c:756:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|si:direct_tcpip" [enabled by default] argument 3 ("&host") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:756:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|si:direct_tcpip" [enabled by default] argument 5 ("&shost") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:766:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:766:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:766:1: note: but final ob_refcnt is N + 1 src/session.c:763:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:756:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "si|si:direct_tcpip", &host, &port, &shost, &sport)) src/session.c:756:5: note: taking False path at: if (!PyArg_ParseTuple(args, "si|si:direct_tcpip", &host, &port, &shost, &sport)) src/session.c:759:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:759:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:761:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:763:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:760 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:763:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:766:1: note: returning src/session.c:766:1: note: found 3 similar trace(s) to this src/session.c:766:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:766:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:766:1: note: but final ob_refcnt is N + 1 src/session.c:763:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:756:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "si|si:direct_tcpip", &host, &port, &shost, &sport)) src/session.c:756:5: note: taking False path at: if (!PyArg_ParseTuple(args, "si|si:direct_tcpip", &host, &port, &shost, &sport)) src/session.c:759:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:759:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:761:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:763:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:760 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:763:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:766:1: note: returning src/session.c:766:1: note: found 1 similar trace(s) to this src/session.c:763:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:763 [enabled by default] src/session.c:756:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "si|si:direct_tcpip", &host, &port, &shost, &sport)) src/session.c:756:5: note: taking False path at: if (!PyArg_ParseTuple(args, "si|si:direct_tcpip", &host, &port, &shost, &sport)) src/session.c:759:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:759:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:761:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:763:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:760 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:763:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:763:2: note: found 1 similar trace(s) to this src/session.c:749:1: note: graphical error report for function 'session_direct_tcpip' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_direct_tcpip-refcount-errors.html' src/session.c: In function 'session_scp_send': src/session.c:718:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "sik|ll:scp_send" [enabled by default] argument 3 ("&path") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:728:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:728:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:728:1: note: but final ob_refcnt is N + 1 src/session.c:725:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:718:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "sik|ll:scp_send", &path, &mode, &filesize, &mtime, &atime)) src/session.c:718:5: note: taking False path at: if (!PyArg_ParseTuple(args, "sik|ll:scp_send", &path, &mode, &filesize, &mtime, &atime)) src/session.c:721:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:721:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:723:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:725:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:722 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:725:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:728:1: note: returning src/session.c:728:1: note: found 3 similar trace(s) to this src/session.c:728:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:728:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:728:1: note: but final ob_refcnt is N + 1 src/session.c:725:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:718:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "sik|ll:scp_send", &path, &mode, &filesize, &mtime, &atime)) src/session.c:718:5: note: taking False path at: if (!PyArg_ParseTuple(args, "sik|ll:scp_send", &path, &mode, &filesize, &mtime, &atime)) src/session.c:721:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:721:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:723:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:725:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:722 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:725:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:728:1: note: returning src/session.c:728:1: note: found 1 similar trace(s) to this src/session.c:725:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:725 [enabled by default] src/session.c:718:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "sik|ll:scp_send", &path, &mode, &filesize, &mtime, &atime)) src/session.c:718:5: note: taking False path at: if (!PyArg_ParseTuple(args, "sik|ll:scp_send", &path, &mode, &filesize, &mtime, &atime)) src/session.c:721:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:721:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:723:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:725:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:722 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:725:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:725:2: note: found 1 similar trace(s) to this src/session.c:710:1: note: graphical error report for function 'session_scp_send' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_scp_send-refcount-errors.html' src/session.c: In function 'session_scp_recv': src/session.c:696:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s:scp_recv" [enabled by default] argument 3 ("&path") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:706:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:706:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:706:1: note: but final ob_refcnt is N + 1 src/session.c:703:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:696:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s:scp_recv", &path)) src/session.c:696:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s:scp_recv", &path)) src/session.c:699:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:699:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:701:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:703:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:700 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:703:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:706:1: note: returning src/session.c:706:1: note: found 3 similar trace(s) to this src/session.c:706:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:706:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:706:1: note: but final ob_refcnt is N + 1 src/session.c:703:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:696:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s:scp_recv", &path)) src/session.c:696:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s:scp_recv", &path)) src/session.c:699:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:699:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:701:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:703:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:700 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:703:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:706:1: note: returning src/session.c:706:1: note: found 1 similar trace(s) to this src/session.c:703:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:703 [enabled by default] src/session.c:696:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s:scp_recv", &path)) src/session.c:696:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s:scp_recv", &path)) src/session.c:699:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:699:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:701:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:703:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:700 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:703:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:703:2: note: found 1 similar trace(s) to this src/session.c:692:1: note: graphical error report for function 'session_scp_recv' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_scp_recv-refcount-errors.html' src/session.c: In function 'session_channel': src/session.c:688:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:688:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:688:1: note: but final ob_refcnt is N + 1 src/session.c:685:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:681:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:683:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:685:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:682 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:685:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:688:1: note: returning src/session.c:688:1: note: found 3 similar trace(s) to this src/session.c:688:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:688:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:688:1: note: but final ob_refcnt is N + 1 src/session.c:685:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_POINTER(channel, self) src/session.c:681:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:683:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:685:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:682 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:685:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: calling PyErr_SetObject() at: CHECK_RETURN_POINTER(channel, self) src/session.c:688:1: note: returning src/session.c:688:1: note: found 1 similar trace(s) to this src/session.c:685:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:685 [enabled by default] src/session.c:681:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:683:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:685:2: note: when treating unknown struct LIBSSH2_CHANNEL * from src/session.c:682 as NULL at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: taking True path at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: reaching: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_POINTER(channel, self) src/session.c:685:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:685:2: note: found 1 similar trace(s) to this src/session.c:678:1: note: graphical error report for function 'session_channel' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_channel-refcount-errors.html' src/session.c: In function 'x11_callback': src/session.c:621:2: warning: dereferencing NULL (MEM[(struct PyObject *)channel_obj].ob_refcnt) at src/session.c:621 [enabled by default] src/session.c:610:19: note: when treating unknown void * * from src/session.c:609 as non-NULL at: SSH2_SessionObj *session_obj = (SSH2_SessionObj *) *abstract; src/session.c:611:19: note: when SSH2_Channel_New() fails at: SSH2_ChannelObj *channel_obj = SSH2_Channel_New(channel, session_obj); src/session.c:613:19: note: PyGILState_Ensure at: PyGILState_STATE gstate = PyGILState_Ensure(); src/session.c:615:28: note: when treating unknown void * from src/session.c:610 as non-NULL at: rv = PyObject_CallFunction(session_obj->cb_x11, "Osi", channel_obj, host, port); src/session.c:615:5: note: when _PyObject_CallFunction_SizeT() fails at: rv = PyObject_CallFunction(session_obj->cb_x11, "Osi", channel_obj, host, port); src/session.c:616:5: note: taking True path at: if (rv == NULL) src/session.c:617:24: note: reaching: PyErr_WriteUnraisable(session_obj->cb_x11); src/session.c:609:71: note: graphical error report for function 'x11_callback' written out to 'build/temp.linux-x86_64-2.7/src/session.c.x11_callback-refcount-errors.html' src/session.c: In function 'session_method_pref': src/session.c:524:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "is:method_pref" [enabled by default] argument 4 ("&pref") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:532:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:532:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:532:1: note: but final ob_refcnt is N + 1 src/session.c:529:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:524:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "is:method_pref", &method, &pref)) src/session.c:524:5: note: taking False path at: if (!PyArg_ParseTuple(args, "is:method_pref", &method, &pref)) src/session.c:527:35: note: reaching: ret = libssh2_session_method_pref(self->session, method, pref); src/session.c:529:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:529:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:532:1: note: returning src/session.c:532:1: note: found 3 similar trace(s) to this src/session.c:532:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:532:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:532:1: note: but final ob_refcnt is N + 1 src/session.c:529:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:524:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "is:method_pref", &method, &pref)) src/session.c:524:5: note: taking False path at: if (!PyArg_ParseTuple(args, "is:method_pref", &method, &pref)) src/session.c:527:35: note: reaching: ret = libssh2_session_method_pref(self->session, method, pref); src/session.c:529:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:529:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:532:1: note: returning src/session.c:532:1: note: found 1 similar trace(s) to this src/session.c:529:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:529 [enabled by default] src/session.c:524:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "is:method_pref", &method, &pref)) src/session.c:524:5: note: taking False path at: if (!PyArg_ParseTuple(args, "is:method_pref", &method, &pref)) src/session.c:527:35: note: reaching: ret = libssh2_session_method_pref(self->session, method, pref); src/session.c:529:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:529:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:529:2: note: found 1 similar trace(s) to this src/session.c:519:1: note: graphical error report for function 'session_method_pref' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_method_pref-refcount-errors.html' src/session.c: In function 'session_userauth_keyboard_interactive': src/session.c:478:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#O:userauth_keyboard_interactive" [enabled by default] argument 3 ("&username") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:472:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed src/session.c:500:1: warning: ob_refcnt of _Py_NoneStruct is 1 too high [enabled by default] src/session.c:500:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:500:1: note: but final ob_refcnt is N + 1 src/session.c:478:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:478:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:482:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:482:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:482:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:485:2: note: reaching: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when treating unknown struct PyObject * from src/session.c:485 as non-NULL at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:486:2: note: reaching: Py_INCREF(callback); src/session.c:489:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:491:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:493:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:493:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:494:2: note: reaching: Py_INCREF(Py_None); src/session.c:493:2: note: ob_refcnt is now refs: 0 + N where N >= 1 src/session.c:494:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:497:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:500:1: note: returning src/session.c:500:1: note: found 11 similar trace(s) to this src/session.c:500:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:500:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:500:1: note: but final ob_refcnt is N + 1 src/session.c:497:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:478:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:478:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:482:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:482:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:482:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:485:2: note: reaching: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when treating unknown struct PyObject * from src/session.c:485 as non-NULL at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:486:2: note: reaching: Py_INCREF(callback); src/session.c:489:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:491:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:493:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:493:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:494:2: note: reaching: Py_INCREF(Py_None); src/session.c:497:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:497:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:500:1: note: returning src/session.c:500:1: note: found 11 similar trace(s) to this src/session.c:500:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:500:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:500:1: note: but final ob_refcnt is N + 1 src/session.c:497:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:478:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:478:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:482:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:482:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:482:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:485:2: note: reaching: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when treating unknown struct PyObject * from src/session.c:485 as non-NULL at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:486:2: note: reaching: Py_INCREF(callback); src/session.c:489:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:491:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:493:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:493:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:494:2: note: reaching: Py_INCREF(Py_None); src/session.c:497:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:497:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:500:1: note: returning src/session.c:500:1: note: found 5 similar trace(s) to this src/session.c:497:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:497 [enabled by default] src/session.c:478:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:478:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:482:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:482:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:482:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:485:2: note: reaching: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when treating unknown struct PyObject * from src/session.c:485 as non-NULL at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:486:2: note: reaching: Py_INCREF(callback); src/session.c:489:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:491:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:493:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:493:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:494:2: note: reaching: Py_INCREF(Py_None); src/session.c:497:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:497:2: note: found 5 similar trace(s) to this src/session.c:500:1: warning: ob_refcnt of return value is 1 too high [enabled by default] src/session.c:500:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) src/session.c:500:1: note: due to object being referenced by: return value src/session.c:500:1: note: but final ob_refcnt is N + 2 src/session.c:478:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:478:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#O:userauth_keyboard_interactive", src/session.c:482:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:482:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:482:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:485:2: note: reaching: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when treating unknown struct PyObject * from src/session.c:485 as non-NULL at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:485:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:486:2: note: reaching: Py_INCREF(callback); src/session.c:489:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:491:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:493:2: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_kbdint_response); src/session.c:493:2: note: taking True path at: Py_DECREF(self->cb_kbdint_response); src/session.c:494:2: note: reaching: Py_INCREF(Py_None); src/session.c:493:2: note: ob_refcnt is now refs: 0 + N where N >= 1 src/session.c:494:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:497:2: note: when considering range: 0 <= value <= 0x7fffffff at: CHECK_RETURN_CODE(ret, self) src/session.c:497:2: note: taking False path at: CHECK_RETURN_CODE(ret, self) src/session.c:499:2: note: reaching: Py_RETURN_NONE; src/session.c:499:2: note: ob_refcnt is now refs: 2 + N where N >= 1 src/session.c:500:1: note: returning src/session.c:500:1: note: found 2 similar trace(s) to this src/session.c:472:1: note: graphical error report for function 'session_userauth_keyboard_interactive' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_userauth_keyboard_interactive-refcount-errors.html' src/session.c: In function 'kbdint_response_callback': src/session.c:390:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed src/session.c: In function 'session_userauth_hostbased_fromfile': src/session.c:359:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ssss#|s#:userauth_hostbased_fromfile" [enabled by default] argument 3 ("&username") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:359:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ssss#|s#:userauth_hostbased_fromfile" [enabled by default] argument 5 ("&publickey") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:359:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ssss#|s#:userauth_hostbased_fromfile" [enabled by default] argument 6 ("&privatekey") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:359:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ssss#|s#:userauth_hostbased_fromfile" [enabled by default] argument 7 ("&passphrase") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:359:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ssss#|s#:userauth_hostbased_fromfile" [enabled by default] argument 8 ("&hostname") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:359:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ssss#|s#:userauth_hostbased_fromfile" [enabled by default] argument 10 ("&local_username") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:382:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:382:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:382:1: note: but final ob_refcnt is N + 1 src/session.c:379:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:359:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#ssss#|s#:userauth_hostbased_fromfile", src/session.c:359:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#ssss#|s#:userauth_hostbased_fromfile", src/session.c:366:21: note: reaching: if (local_username == NULL) { src/session.c:366:5: note: when treating unknown const char * from src/session.c:359 as non-NULL at: if (local_username == NULL) { src/session.c:366:5: note: taking False path at: if (local_username == NULL) { src/session.c:371:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:371:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:377:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:379:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:379:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:382:1: note: returning src/session.c:382:1: note: found 7 similar trace(s) to this src/session.c:382:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:382:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:382:1: note: but final ob_refcnt is N + 1 src/session.c:379:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:359:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#ssss#|s#:userauth_hostbased_fromfile", src/session.c:359:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#ssss#|s#:userauth_hostbased_fromfile", src/session.c:366:21: note: reaching: if (local_username == NULL) { src/session.c:366:5: note: when treating unknown const char * from src/session.c:359 as non-NULL at: if (local_username == NULL) { src/session.c:366:5: note: taking False path at: if (local_username == NULL) { src/session.c:371:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:371:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:377:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:379:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:379:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:382:1: note: returning src/session.c:382:1: note: found 3 similar trace(s) to this src/session.c:379:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:379 [enabled by default] src/session.c:359:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#ssss#|s#:userauth_hostbased_fromfile", src/session.c:359:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#ssss#|s#:userauth_hostbased_fromfile", src/session.c:366:21: note: reaching: if (local_username == NULL) { src/session.c:366:5: note: when treating unknown const char * from src/session.c:359 as non-NULL at: if (local_username == NULL) { src/session.c:366:5: note: taking False path at: if (local_username == NULL) { src/session.c:371:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:371:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:377:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:379:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:379:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:379:2: note: found 3 similar trace(s) to this src/session.c:347:1: note: graphical error report for function 'session_userauth_hostbased_fromfile' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_userauth_hostbased_fromfile-refcount-errors.html' src/session.c: In function 'session_userauth_publickey': src/session.c:324:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "ss#O:userauth_publickey" [enabled by default] argument 3 ("&username") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:324:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "ss#O:userauth_publickey" [enabled by default] argument 4 ("&pubkeydata") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:342:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:342:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:342:1: note: but final ob_refcnt is N + 1 src/session.c:339:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:324:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "ss#O:userauth_publickey", &username, &pubkeydata, &pubkeydata_len, &callback)) src/session.c:324:5: note: taking False path at: if (!PyArg_ParseTuple(args, "ss#O:userauth_publickey", &username, &pubkeydata, &pubkeydata_len, &callback)) src/session.c:330:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:330:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:330:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:333:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:333:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:337:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:339:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:339:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:342:1: note: returning src/session.c:342:1: note: found 3 similar trace(s) to this src/session.c:342:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:342:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:342:1: note: but final ob_refcnt is N + 1 src/session.c:339:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:324:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "ss#O:userauth_publickey", &username, &pubkeydata, &pubkeydata_len, &callback)) src/session.c:324:5: note: taking False path at: if (!PyArg_ParseTuple(args, "ss#O:userauth_publickey", &username, &pubkeydata, &pubkeydata_len, &callback)) src/session.c:330:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:330:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:330:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:333:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:333:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:337:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:339:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:339:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:342:1: note: returning src/session.c:342:1: note: found 1 similar trace(s) to this src/session.c:339:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:339 [enabled by default] src/session.c:324:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "ss#O:userauth_publickey", &username, &pubkeydata, &pubkeydata_len, &callback)) src/session.c:324:5: note: taking False path at: if (!PyArg_ParseTuple(args, "ss#O:userauth_publickey", &username, &pubkeydata, &pubkeydata_len, &callback)) src/session.c:330:23: note: reaching: if (!PyCallable_Check(callback)) src/session.c:330:23: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:330:5: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:333:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:333:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:337:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:339:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:339:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:339:2: note: found 1 similar trace(s) to this src/session.c:316:1: note: graphical error report for function 'session_userauth_publickey' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_userauth_publickey-refcount-errors.html' src/session.c: In function 'session_userauth_publickey_fromfile': src/session.c:261:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ss|s:userauth_publickey_fromfile" [enabled by default] argument 3 ("&username") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:261:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ss|s:userauth_publickey_fromfile" [enabled by default] argument 5 ("&publickey") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:261:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ss|s:userauth_publickey_fromfile" [enabled by default] argument 6 ("&privatekey") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:261:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#ss|s:userauth_publickey_fromfile" [enabled by default] argument 7 ("&passphrase") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:275:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:275:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:275:1: note: but final ob_refcnt is N + 1 src/session.c:272:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:261:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#ss|s:userauth_publickey_fromfile", src/session.c:261:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#ss|s:userauth_publickey_fromfile", src/session.c:266:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:266:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:270:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:272:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:272:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:275:1: note: returning src/session.c:275:1: note: found 3 similar trace(s) to this src/session.c:275:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:275:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:275:1: note: but final ob_refcnt is N + 1 src/session.c:272:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:261:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#ss|s:userauth_publickey_fromfile", src/session.c:261:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#ss|s:userauth_publickey_fromfile", src/session.c:266:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:266:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:270:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:272:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:272:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:275:1: note: returning src/session.c:275:1: note: found 1 similar trace(s) to this src/session.c:272:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:272 [enabled by default] src/session.c:261:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#ss|s:userauth_publickey_fromfile", src/session.c:261:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#ss|s:userauth_publickey_fromfile", src/session.c:266:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:266:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:270:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:272:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:272:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:272:2: note: found 1 similar trace(s) to this src/session.c:253:1: note: graphical error report for function 'session_userauth_publickey_fromfile' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_userauth_publickey_fromfile-refcount-errors.html' src/session.c: In function 'session_userauth_password': src/session.c:216:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#s#|O:userauth_password" [enabled by default] argument 3 ("&username") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:216:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#s#|O:userauth_password" [enabled by default] argument 5 ("&password") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c:208:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed src/session.c:249:1: warning: ob_refcnt of _Py_NoneStruct is 1 too high [enabled by default] src/session.c:249:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:249:1: note: but final ob_refcnt is N + 1 src/session.c:216:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:216:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:221:15: note: reaching: if (callback != NULL) { src/session.c:221:5: note: taking True path at: if (callback != NULL) { src/session.c:222:24: note: reaching: if (!PyCallable_Check(callback)) src/session.c:222:24: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:222:6: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:225:3: note: reaching: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when treating unknown struct PyObject * from src/session.c:225 as non-NULL at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:226:3: note: reaching: Py_INCREF(callback); src/session.c:229:3: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:233:3: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:235:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:235:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:236:3: note: reaching: Py_INCREF(Py_None); src/session.c:235:3: note: ob_refcnt is now refs: 0 + N where N >= 1 src/session.c:236:3: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:246:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:249:1: note: returning src/session.c:249:1: note: found 11 similar trace(s) to this src/session.c:249:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:249:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:249:1: note: but final ob_refcnt is N + 1 src/session.c:246:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:216:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:216:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:221:15: note: reaching: if (callback != NULL) { src/session.c:221:5: note: taking True path at: if (callback != NULL) { src/session.c:222:24: note: reaching: if (!PyCallable_Check(callback)) src/session.c:222:24: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:222:6: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:225:3: note: reaching: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when treating unknown struct PyObject * from src/session.c:225 as non-NULL at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:226:3: note: reaching: Py_INCREF(callback); src/session.c:229:3: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:233:3: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:235:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:235:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:236:3: note: reaching: Py_INCREF(Py_None); src/session.c:246:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:246:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:249:1: note: returning src/session.c:249:1: note: found 11 similar trace(s) to this src/session.c:249:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:249:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:249:1: note: but final ob_refcnt is N + 1 src/session.c:246:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:216:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:216:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:221:15: note: reaching: if (callback != NULL) { src/session.c:221:5: note: taking True path at: if (callback != NULL) { src/session.c:222:24: note: reaching: if (!PyCallable_Check(callback)) src/session.c:222:24: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:222:6: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:225:3: note: reaching: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when treating unknown struct PyObject * from src/session.c:225 as non-NULL at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:226:3: note: reaching: Py_INCREF(callback); src/session.c:229:3: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:233:3: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:235:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:235:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:236:3: note: reaching: Py_INCREF(Py_None); src/session.c:246:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:246:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:249:1: note: returning src/session.c:249:1: note: found 5 similar trace(s) to this src/session.c:246:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:246 [enabled by default] src/session.c:216:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:216:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:221:15: note: reaching: if (callback != NULL) { src/session.c:221:5: note: taking True path at: if (callback != NULL) { src/session.c:222:24: note: reaching: if (!PyCallable_Check(callback)) src/session.c:222:24: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:222:6: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:225:3: note: reaching: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when treating unknown struct PyObject * from src/session.c:225 as non-NULL at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:226:3: note: reaching: Py_INCREF(callback); src/session.c:229:3: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:233:3: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:235:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:235:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:236:3: note: reaching: Py_INCREF(Py_None); src/session.c:246:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:246:2: note: found 5 similar trace(s) to this src/session.c:249:1: warning: ob_refcnt of return value is 1 too high [enabled by default] src/session.c:249:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) src/session.c:249:1: note: due to object being referenced by: return value src/session.c:249:1: note: but final ob_refcnt is N + 2 src/session.c:216:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:216:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s#s#|O:userauth_password", &username, &username_len, src/session.c:221:15: note: reaching: if (callback != NULL) { src/session.c:221:5: note: taking True path at: if (callback != NULL) { src/session.c:222:24: note: reaching: if (!PyCallable_Check(callback)) src/session.c:222:24: note: when PyCallable_Check() returns 1 (true) at: if (!PyCallable_Check(callback)) src/session.c:222:6: note: taking False path at: if (!PyCallable_Check(callback)) src/session.c:225:3: note: reaching: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when treating unknown struct PyObject * from src/session.c:225 as non-NULL at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:225:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:226:3: note: reaching: Py_INCREF(callback); src/session.c:229:3: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:233:3: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:235:3: note: when considering range: -0x8000000000000000 <= value <= -1 at: Py_DECREF(self->cb_passwd_changereq); src/session.c:235:3: note: taking True path at: Py_DECREF(self->cb_passwd_changereq); src/session.c:236:3: note: reaching: Py_INCREF(Py_None); src/session.c:235:3: note: ob_refcnt is now refs: 0 + N where N >= 1 src/session.c:236:3: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:246:2: note: when considering range: 0 <= value <= 0x7fffffff at: CHECK_RETURN_CODE(ret, self) src/session.c:246:2: note: taking False path at: CHECK_RETURN_CODE(ret, self) src/session.c:248:2: note: reaching: Py_RETURN_NONE; src/session.c:248:2: note: ob_refcnt is now refs: 2 + N where N >= 1 src/session.c:249:1: note: returning src/session.c:249:1: note: found 2 similar trace(s) to this src/session.c:208:1: note: graphical error report for function 'session_userauth_password' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_userauth_password-refcount-errors.html' src/session.c: In function 'session_userauth_list': src/session.c:158:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#:userauth_list" [enabled by default] argument 3 ("&username") had type "char * *" but was expecting "const char * *" for format code "s#" src/session.c: In function 'session_disconnect': src/session.c:121:34: warning: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "|iss:disconnect" [enabled by default] argument 6 ("&description") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:121:34: warning: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "|iss:disconnect" [enabled by default] argument 7 ("&lang") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c:133:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:133:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:133:1: note: but final ob_refcnt is N + 1 src/session.c:128:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:121:34: note: when _PyArg_ParseTupleAndKeywords_SizeT() succeeds at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iss:disconnect", kwlist, &reason, &description, &lang)) src/session.c:121:5: note: taking False path at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iss:disconnect", kwlist, &reason, &description, &lang)) src/session.c:124:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:124:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:126:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:128:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:128:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:133:1: note: returning src/session.c:133:1: note: found 3 similar trace(s) to this src/session.c:133:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:133:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:133:1: note: but final ob_refcnt is N + 1 src/session.c:128:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:121:34: note: when _PyArg_ParseTupleAndKeywords_SizeT() succeeds at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iss:disconnect", kwlist, &reason, &description, &lang)) src/session.c:121:5: note: taking False path at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iss:disconnect", kwlist, &reason, &description, &lang)) src/session.c:124:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:124:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:126:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:128:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:128:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:133:1: note: returning src/session.c:133:1: note: found 1 similar trace(s) to this src/session.c:128:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:128 [enabled by default] src/session.c:121:34: note: when _PyArg_ParseTupleAndKeywords_SizeT() succeeds at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iss:disconnect", kwlist, &reason, &description, &lang)) src/session.c:121:5: note: taking False path at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|iss:disconnect", kwlist, &reason, &description, &lang)) src/session.c:124:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:124:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:126:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:128:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:128:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:128:2: note: found 1 similar trace(s) to this src/session.c:114:1: note: graphical error report for function 'session_disconnect' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_disconnect-refcount-errors.html' src/session.c: In function 'session_startup': src/session.c:110:1: warning: ob_refcnt of '*_exc' is 1 too high [enabled by default] src/session.c:110:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:110:1: note: but final ob_refcnt is N + 1 src/session.c:101:2: note: new ref from call to _PyObject_CallFunction_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:89:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "O:startup", &sock)) src/session.c:89:5: note: taking False path at: if (!PyArg_ParseTuple(args, "O:startup", &sock)) src/session.c:92:37: note: reaching: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: when PyObject_AsFileDescriptor() returns at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: when considering range: -0x80000000 <= value <= -2 at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: taking False path at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:97:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:97:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:99:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:101:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:101:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: ob_refcnt is now refs: 1 + N where N >= 1 src/session.c:110:1: note: returning src/session.c:110:1: note: found 7 similar trace(s) to this src/session.c:110:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] src/session.c:110:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/session.c:110:1: note: but final ob_refcnt is N + 1 src/session.c:101:2: note: new ref from call to _Py_BuildValue_SizeT allocated at: CHECK_RETURN_CODE(ret, self) src/session.c:89:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "O:startup", &sock)) src/session.c:89:5: note: taking False path at: if (!PyArg_ParseTuple(args, "O:startup", &sock)) src/session.c:92:37: note: reaching: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: when PyObject_AsFileDescriptor() returns at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: when considering range: -0x80000000 <= value <= -2 at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: taking False path at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:97:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:97:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:99:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:101:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: when _PyObject_CallFunction_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:101:2: note: when PyObject_SetAttrString() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: calling PyErr_SetObject() at: CHECK_RETURN_CODE(ret, self) src/session.c:110:1: note: returning src/session.c:110:1: note: found 3 similar trace(s) to this src/session.c:101:2: warning: calling PyObject_SetAttrString with NULL as argument 1 (_exc) at src/session.c:101 [enabled by default] src/session.c:89:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "O:startup", &sock)) src/session.c:89:5: note: taking False path at: if (!PyArg_ParseTuple(args, "O:startup", &sock)) src/session.c:92:37: note: reaching: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: when PyObject_AsFileDescriptor() returns at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: when considering range: -0x80000000 <= value <= -2 at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:92:5: note: taking False path at: if ((fd = PyObject_AsFileDescriptor(sock)) == -1) { src/session.c:97:2: note: reaching: Py_BEGIN_ALLOW_THREADS src/session.c:97:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS src/session.c:99:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS src/session.c:101:2: note: when considering range: -0x80000000 <= value <= -1 at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: taking True path at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: reaching: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: when _PyObject_CallFunction_SizeT() fails at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: when _Py_BuildValue_SizeT() succeeds at: CHECK_RETURN_CODE(ret, self) src/session.c:101:2: note: PyObject_SetAttrString() invokes Py_TYPE() on the pointer, thus accessing (NULL)->ob_type src/session.c:101:2: note: found 3 similar trace(s) to this src/session.c:84:1: note: graphical error report for function 'session_startup' written out to 'build/temp.linux-x86_64-2.7/src/session.c.session_startup-refcount-errors.html' src/session.c: In function 'session_banner_set': src/session.c:73:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s:banner_set" [enabled by default] argument 3 ("&banner") had type "char * *" but was expecting "const char * *" for format code "s" src/session.c: In function 'session_dealloc': src/session.c:855:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed src/session.c: In function 'init_SSH2_Session': src/session.c:931:24: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/__init__.py", line 79, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/__init__.py", line 85, in _check_refcounts dump_json=self.dump_json) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 4161, in check_refcounts maxtrans) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 4016, in impl_check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3026, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2079, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2095, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2266, in _get_transitions_for_GimpleCall return meth(stmt, *args) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 2398, in impl_PyModule_AddObject s_success.cpython.steal_reference(v_value, stmt.loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 604, in steal_reference _steal_ref) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 399, in change_refcount check_isinstance(oldvalue, RefcountValue) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/gccutils.py", line 636, in check_isinstance raise TypeError('%s / %r is not an instance of %s' % (obj, obj, types)) TypeError: (Py_ssize_t)val [-0x7fffffffffffffff <= val <= 0x7fffffffffffffff] from src/session.c:930 / WithinRange(gcctype='Py_ssize_t', loc=gcc.Location(file='src/session.c', line=930), minvalue=-0x7fffffffffffffff, maxvalue=0x7fffffffffffffff) is not an instance of src/session.c: In function 'SSH2_Session_New': src/session.c:65:1: warning: ob_refcnt of return value is 1 too low [enabled by default] src/session.c:65:1: note: was expecting final ob_refcnt to be N + 2 (for some unknown N) src/session.c:65:1: note: due to object being referenced by: return value, heap-region-83 src/session.c:65:1: note: but final ob_refcnt is N + 1 src/session.c:36:5: note: _PyObject_New allocated at: if ((self = PyObject_New(SSH2_SessionObj, &SSH2_Session_Type)) == NULL) src/session.c:36:5: note: when _PyObject_New() succeeds at: if ((self = PyObject_New(SSH2_SessionObj, &SSH2_Session_Type)) == NULL) src/session.c:36:5: note: ob_refcnt is now refs: 1 + N where N >= 0 src/session.c:36:5: note: taking False path at: if ((self = PyObject_New(SSH2_SessionObj, &SSH2_Session_Type)) == NULL) src/session.c:39:16: note: reaching: self->session = session; src/session.c:61:37: note: when treating unknown void * * from src/session.c:61 as non-NULL at: *libssh2_session_abstract(session) = self; src/session.c:61:37: note: return value is now referenced by 1 non-stack value(s): heap-region-83 src/session.c:65:1: note: returning src/session.c:33:1: note: graphical error report for function 'SSH2_Session_New' written out to 'build/temp.linux-x86_64-2.7/src/session.c.SSH2_Session_New-refcount-errors.html' error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.u23KLk (%build) Bad exit status from /var/tmp/rpm-tmp.u23KLk (%build) RPM build errors: Child returncode was: 1 EXCEPTION: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libssh2-python.spec'] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 70, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 328, in do raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libssh2-python.spec'] LEAVE do --> EXCEPTION RAISED