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/python-ldap.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/python-ldap.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-ldap-2.4.6-2.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-ldap.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/python-ldap.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.vHrdV9 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf python-ldap-2.4.6 + /usr/bin/gzip -dc /builddir/build/SOURCES/python-ldap-2.4.6.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd python-ldap-2.4.6 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (python-ldap-2.4.6-dirs.patch):' Patch #0 (python-ldap-2.4.6-dirs.patch): + /bin/cat /builddir/build/SOURCES/python-ldap-2.4.6-dirs.patch + /usr/bin/patch -s -p1 -b --suffix .dirs --fuzz=0 + rm -rf Demo/Lib/ldap/.cvsignore Demo/.cvsignore Demo/Lib/ldif/.cvsignore Demo/Lib/ldap/async/.cvsignore Demo/Lib/.cvsignore Demo/Lib/ldapurl/.cvsignore + sed -i 's|#! python|#!/usr/bin/python|g' Demo/simplebrowse.py + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.FRU5O2 + umask 022 + cd /builddir/build/BUILD + cd python-ldap-2.4.6 + LANG=C + export LANG + unset DISPLAY + /usr/bin/python setup.py build defines: HAVE_SASL HAVE_TLS extra_compile_args: -g extra_objects: include_dirs: /usr/include/sasl libs: ldap_r running build running build_py file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found creating build creating build/lib.linux-x86_64-2.7 copying Lib/ldapurl.py -> build/lib.linux-x86_64-2.7 copying Lib/ldif.py -> build/lib.linux-x86_64-2.7 copying Lib/dsml.py -> build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/async.py -> build/lib.linux-x86_64-2.7/ldap creating build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-2.7/ldap/controls copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/dn.py -> build/lib.linux-x86_64-2.7/ldap creating build/lib.linux-x86_64-2.7/ldap/extop copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-2.7/ldap/extop copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-2.7/ldap/extop copying Lib/ldap/filter.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/functions.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/logger.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-2.7/ldap copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-2.7/ldap creating build/lib.linux-x86_64-2.7/ldap/schema copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-2.7/ldap/schema copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-2.7/ldap/schema copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-2.7/ldap/schema copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-2.7/ldap/schema copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-2.7/ldap file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found running egg_info writing requirements to Lib/python_ldap.egg-info/requires.txt writing Lib/python_ldap.egg-info/PKG-INFO writing top-level names to Lib/python_ldap.egg-info/top_level.txt writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'Makefile' warning: no files found matching 'Modules/LICENSE' writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' running build_ext building '_ldap' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/Modules 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 -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.6 -IModules -I/usr/include/sasl -I/usr/include/python2.7 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o -g Modules/LDAPObject.c: In function 'l_ldap_extended_operation': Modules/LDAPObject.c:1279:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sz#|OO" [enabled by default] argument 3 ("&reqoid") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:1279:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sz#|OO" [enabled by default] argument 4 ("&reqvalue.bv_val") had type "char * *" but was expecting "const char * *" for format code "z#" Modules/LDAPObject.c:1279:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sz#|OO" [enabled by default] argument 5 ("&reqvalue.bv_len") had type "ber_len_t *" (pointing to 64 bits) but was expecting "Py_ssize_t *" (pointing to 64 bits) for format code "z#" Modules/LDAPObject.c:1268:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:1309:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:1279:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "sz#|OO", &reqoid, &reqvalue.bv_val, &reqvalue.bv_len, &serverctrls, &clientctrls )) Modules/LDAPObject.c:1279:8: note: taking False path at: if (!PyArg_ParseTuple( args, "sz#|OO", &reqoid, &reqvalue.bv_val, &reqvalue.bv_len, &serverctrls, &clientctrls )) Modules/LDAPObject.c:1282:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1282:8: note: when considering value == (int)0 from Modules/LDAPObject.c:1282 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1282:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1284:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:1284:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:1285:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1285:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1285:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1289:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:1289:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:1290:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1290:12: note: when considering value == (int)0 from Modules/LDAPObject.c:1290 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1290:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1291:13: note: reaching: return NULL; Modules/LDAPObject.c:1309:1: note: returning Modules/LDAPObject.c:1309:1: note: found 2 similar trace(s) to this Modules/LDAPObject.c:1268:1: note: graphical error report for function 'l_ldap_extended_operation' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_extended_operation-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_cancel': Modules/LDAPObject.c:699:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:733:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:709:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "i|OO", &cancelid, &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:709:8: note: taking False path at: if (!PyArg_ParseTuple( args, "i|OO", &cancelid, &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:710:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:710:8: note: when considering value == (int)0 from Modules/LDAPObject.c:710 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:710:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:712:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:712:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:713:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:713:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:713:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:717:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:717:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:718:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:718:12: note: when considering value == (int)0 from Modules/LDAPObject.c:718 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:718:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:719:13: note: reaching: return NULL; Modules/LDAPObject.c:733:1: note: returning Modules/LDAPObject.c:733:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:699:1: note: graphical error report for function 'l_ldap_cancel' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_cancel-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_set_option': Modules/LDAPObject.c:1190:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:1184:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "iO:set_option", &option, &value)) Modules/LDAPObject.c:1184:8: note: taking False path at: if (!PyArg_ParseTuple(args, "iO:set_option", &option, &value)) Modules/LDAPObject.c:1186:24: note: reaching: if (LDAP_set_option((LDAPObject *)self, option, value) == -1) Modules/LDAPObject.c:1186:8: note: when considering value == (int)-1 from Modules/LDAPObject.c:1186 at: if (LDAP_set_option((LDAPObject *)self, option, value) == -1) Modules/LDAPObject.c:1186:8: note: taking True path at: if (LDAP_set_option((LDAPObject *)self, option, value) == -1) Modules/LDAPObject.c:1187:9: note: reaching: return NULL; Modules/LDAPObject.c:1190:1: note: returning Modules/LDAPObject.c:1180:1: note: graphical error report for function 'l_ldap_set_option' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_set_option-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_passwd': Modules/LDAPObject.c:1225:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "z#z#z#|OO" [enabled by default] argument 3 ("&user.bv_val") had type "char * *" but was expecting "const char * *" for format code "z#" Modules/LDAPObject.c:1225:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "z#z#z#|OO" [enabled by default] argument 5 ("&oldpw.bv_val") had type "char * *" but was expecting "const char * *" for format code "z#" Modules/LDAPObject.c:1225:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "z#z#z#|OO" [enabled by default] argument 7 ("&newpw.bv_val") had type "char * *" but was expecting "const char * *" for format code "z#" Modules/LDAPObject.c:1210:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:1261:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:1225:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "z#z#z#|OO", &user.bv_val, &user_len, &oldpw.bv_val, &oldpw_len, &newpw.bv_val, &newpw_len, &serverctrls, &clientctrls )) Modules/LDAPObject.c:1225:8: note: taking False path at: if (!PyArg_ParseTuple( args, "z#z#z#|OO", &user.bv_val, &user_len, &oldpw.bv_val, &oldpw_len, &newpw.bv_val, &newpw_len, &serverctrls, &clientctrls )) Modules/LDAPObject.c:1228:19: note: reaching: user.bv_len = (ber_len_t) user_len; Modules/LDAPObject.c:1232:8: note: when considering range: -0x80000000 <= value <= -1 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1232:8: note: taking True path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1232:26: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1261:1: note: returning Modules/LDAPObject.c:1210:1: note: graphical error report for function 'l_ldap_passwd' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_passwd-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_whoami_s': Modules/LDAPObject.c:1114:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:1151:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:1126:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "|OO", &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:1126:8: note: taking False path at: if (!PyArg_ParseTuple( args, "|OO", &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:1128:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:1128:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:1129:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1129:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1129:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1133:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:1133:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:1134:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1134:12: note: when considering value == (int)0 from Modules/LDAPObject.c:1134 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1134:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1135:13: note: reaching: return NULL; Modules/LDAPObject.c:1151:1: note: returning Modules/LDAPObject.c:1151:1: note: found 2 similar trace(s) to this Modules/LDAPObject.c:1114:1: note: graphical error report for function 'l_ldap_whoami_s' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_whoami_s-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_start_tls_s': Modules/LDAPObject.c:1172:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:1161:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "" )) return NULL; Modules/LDAPObject.c:1161:8: note: taking False path at: if (!PyArg_ParseTuple( args, "" )) return NULL; Modules/LDAPObject.c:1162:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1162:8: note: when considering range: -0x80000000 <= value <= -1 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1162:8: note: taking True path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1162:26: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1172:1: note: returning Modules/LDAPObject.c:1172:1: note: found 1 similar trace(s) to this Modules/LDAPObject.c:1158:1: note: graphical error report for function 'l_ldap_start_tls_s' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_start_tls_s-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_search_ext': Modules/LDAPObject.c:1069:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sis|OiOOdi" [enabled by default] argument 3 ("&base") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:1069:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sis|OiOOdi" [enabled by default] argument 5 ("&filter") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:1047:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:1107:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:1069:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "sis|OiOOdi", Modules/LDAPObject.c:1069:8: note: taking False path at: if (!PyArg_ParseTuple( args, "sis|OiOOdi", Modules/LDAPObject.c:1072:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1072:8: note: when considering value == (int)0 from Modules/LDAPObject.c:1072 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1072:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1074:25: note: reaching: if (!attrs_from_List( attrlist, &attrs )) Modules/LDAPObject.c:1074:8: note: when considering range: -0x80000000 <= value <= -1 at: if (!attrs_from_List( attrlist, &attrs )) Modules/LDAPObject.c:1074:8: note: taking False path at: if (!attrs_from_List( attrlist, &attrs )) Modules/LDAPObject.c:1077:17: note: reaching: if (timeout >= 0) { Modules/LDAPObject.c:1077:8: note: taking True path at: if (timeout >= 0) { Modules/LDAPObject.c:1078:13: note: reaching: tvp = &tv; Modules/LDAPObject.c:1084:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:1085:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1085:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1085:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:1089:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:1089:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:1090:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1090:12: note: when considering value == (int)0 from Modules/LDAPObject.c:1090 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1090:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:1091:13: note: reaching: return NULL; Modules/LDAPObject.c:1107:1: note: returning Modules/LDAPObject.c:1107:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:1047:1: note: graphical error report for function 'l_ldap_search_ext' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_search_ext-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_result4': Modules/LDAPObject.c:919:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:1040:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:935:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "|iidiii", &msgid, &all, &timeout, &add_ctrls, &add_intermediates, &add_extop )) Modules/LDAPObject.c:935:8: note: taking False path at: if (!PyArg_ParseTuple( args, "|iidiii", &msgid, &all, &timeout, &add_ctrls, &add_intermediates, &add_extop )) Modules/LDAPObject.c:937:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:937:8: note: when considering range: -0x80000000 <= value <= -1 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:937:8: note: taking True path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:937:26: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:1040:1: note: returning Modules/LDAPObject.c:919:1: note: graphical error report for function 'l_ldap_result4' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_result4-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_rename': Modules/LDAPObject.c:887:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "ss|ziOO" [enabled by default] argument 3 ("&dn") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:887:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "ss|ziOO" [enabled by default] argument 4 ("&newrdn") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:887:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "ss|ziOO" [enabled by default] argument 5 ("&newSuperior") had type "char * *" but was expecting "const char * *" for format code "z" Modules/LDAPObject.c:875:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:912:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:887:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "ss|ziOO", &dn, &newrdn, &newSuperior, &delold, &serverctrls, &clientctrls )) Modules/LDAPObject.c:887:8: note: taking False path at: if (!PyArg_ParseTuple( args, "ss|ziOO", &dn, &newrdn, &newSuperior, &delold, &serverctrls, &clientctrls )) Modules/LDAPObject.c:889:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:889:8: note: when considering value == (int)0 from Modules/LDAPObject.c:889 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:889:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:891:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:891:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:892:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:892:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:892:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:896:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:896:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:897:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:897:12: note: when considering value == (int)0 from Modules/LDAPObject.c:897 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:897:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:898:13: note: reaching: return NULL; Modules/LDAPObject.c:912:1: note: returning Modules/LDAPObject.c:912:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:875:1: note: graphical error report for function 'l_ldap_rename' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_rename-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_modify_ext': Modules/LDAPObject.c:839:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sO|OO" [enabled by default] argument 3 ("&dn") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:827:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:868:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:839:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "sO|OO", &dn, &modlist, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:839:8: note: taking False path at: if (!PyArg_ParseTuple( args, "sO|OO", &dn, &modlist, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:840:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:840:8: note: when considering value == (int)0 from Modules/LDAPObject.c:840 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:840:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:842:28: note: reaching: mods = List_to_LDAPMods( modlist, 0 ); Modules/LDAPObject.c:843:8: note: when treating unknown struct LDAPMod * * from Modules/LDAPObject.c:842 as non-NULL at: if (mods == NULL) Modules/LDAPObject.c:843:8: note: taking False path at: if (mods == NULL) Modules/LDAPObject.c:846:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:846:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:847:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:847:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:847:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:851:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:851:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:852:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:852:12: note: when considering value == (int)0 from Modules/LDAPObject.c:852 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:852:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:853:13: note: reaching: return NULL; Modules/LDAPObject.c:868:1: note: returning Modules/LDAPObject.c:868:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:827:1: note: graphical error report for function 'l_ldap_modify_ext' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_modify_ext-refcount-errors.html' Modules/LDAPObject.c: In function 'List_to_LDAPMods': Modules/LDAPObject.c:207:47: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:250:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] Modules/LDAPObject.c:250:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/LDAPObject.c:250:1: note: but final ob_refcnt is N + 1 Modules/LDAPObject.c:222:24: note: new ref from call to _Py_BuildValue_SizeT allocated at: PyErr_SetObject( PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:213:8: note: when considering range: -0x80000000 <= value <= -1 at: if (!PySequence_Check(list)) { Modules/LDAPObject.c:213:8: note: taking False path at: if (!PySequence_Check(list)) { Modules/LDAPObject.c:219:9: note: reaching: len = PySequence_Length(list); Modules/LDAPObject.c:219:9: note: when PySequence_Size() fails at: len = PySequence_Length(list); Modules/LDAPObject.c:221:8: note: taking True path at: if (len < 0) { Modules/LDAPObject.c:222:24: note: reaching: PyErr_SetObject( PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:222:24: note: when _Py_BuildValue_SizeT() succeeds at: PyErr_SetObject( PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:222:24: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/LDAPObject.c:222:24: note: calling PyErr_SetObject() at: PyErr_SetObject( PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:222:24: note: ob_refcnt is now refs: 1 + N where N >= 1 Modules/LDAPObject.c:250:1: note: returning Modules/LDAPObject.c:250:1: note: found 1 similar trace(s) to this Modules/LDAPObject.c:207:47: note: graphical error report for function 'List_to_LDAPMods' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.List_to_LDAPMods-refcount-errors.html' Modules/LDAPObject.c: In function 'Tuple_to_LDAPMod': Modules/LDAPObject.c:119:30: warning: Mismatching type in call to PyArg_ParseTuple with format code "sO" [enabled by default] argument 3 ("&type") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:123:30: warning: Mismatching type in call to PyArg_ParseTuple with format code "isO" [enabled by default] argument 4 ("&type") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:105:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:189:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] Modules/LDAPObject.c:189:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/LDAPObject.c:189:1: note: but final ob_refcnt is N + 1 Modules/LDAPObject.c:167:30: note: new ref from call to _Py_BuildValue_SizeT allocated at: PyErr_SetObject( PyExc_TypeError, Py_BuildValue( "sO", Modules/LDAPObject.c:112:8: note: when considering range: 1 <= value <= 0x4000000 at: if (!PyTuple_Check(tup)) { Modules/LDAPObject.c:112:8: note: taking False path at: if (!PyTuple_Check(tup)) { Modules/LDAPObject.c:118:8: note: reaching: if (no_op) { Modules/LDAPObject.c:118:8: note: when considering range: -0x80000000 <= value <= -1 at: if (no_op) { Modules/LDAPObject.c:118:8: note: taking True path at: if (no_op) { Modules/LDAPObject.c:119:30: note: reaching: if (!PyArg_ParseTuple( tup, "sO", &type, &list )) Modules/LDAPObject.c:119:30: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( tup, "sO", &type, &list )) Modules/LDAPObject.c:119:12: note: taking False path at: if (!PyArg_ParseTuple( tup, "sO", &type, &list )) Modules/LDAPObject.c:121:12: note: reaching: op = 0; Modules/LDAPObject.c:128:8: note: when treating unknown void * from Modules/LDAPObject.c:127 as non-NULL at: if (lm == NULL) Modules/LDAPObject.c:128:8: note: taking False path at: if (lm == NULL) Modules/LDAPObject.c:131:21: note: reaching: lm->mod_op = op | LDAP_MOD_BVALUES; Modules/LDAPObject.c:135:20: note: taking True path at: lm->mod_type = PyMem_NEW(char, len + 1); Modules/LDAPObject.c:135:20: note: reaching: lm->mod_type = PyMem_NEW(char, len + 1); Modules/LDAPObject.c:135:20: note: taking True path at: lm->mod_type = PyMem_NEW(char, len + 1); Modules/LDAPObject.c:135:20: note: reaching: lm->mod_type = PyMem_NEW(char, len + 1); Modules/LDAPObject.c:135:20: note: taking True path at: lm->mod_type = PyMem_NEW(char, len + 1); Modules/LDAPObject.c:135:20: note: reaching: lm->mod_type = PyMem_NEW(char, len + 1); Modules/LDAPObject.c:136:8: note: when treating unknown void * from Modules/LDAPObject.c:135 as non-NULL at: if (lm->mod_type == NULL) Modules/LDAPObject.c:136:8: note: taking False path at: if (lm->mod_type == NULL) Modules/LDAPObject.c:138:36: note: reaching: memcpy(lm->mod_type, type, len + 1); Modules/LDAPObject.c:140:8: note: taking False path at: if (list == Py_None) { Modules/LDAPObject.c:142:16: note: reaching: } else if (PyString_Check(list)) { Modules/LDAPObject.c:142:16: note: when treating unknown struct _typeobject * from Modules/LDAPObject.c:142 as non-NULL at: } else if (PyString_Check(list)) { Modules/LDAPObject.c:142:15: note: when considering value == (long int)0 from Modules/LDAPObject.c:142 at: } else if (PyString_Check(list)) { Modules/LDAPObject.c:142:15: note: taking False path at: } else if (PyString_Check(list)) { Modules/LDAPObject.c:153:32: note: reaching: } else if (PySequence_Check(list)) { Modules/LDAPObject.c:153:15: note: when considering range: -0x80000000 <= value <= -1 at: } else if (PySequence_Check(list)) { Modules/LDAPObject.c:153:15: note: taking True path at: } else if (PySequence_Check(list)) { Modules/LDAPObject.c:154:34: note: reaching: nstrs = PySequence_Length(list); Modules/LDAPObject.c:154:15: note: when PySequence_Size() succeeds at: nstrs = PySequence_Length(list); Modules/LDAPObject.c:155:27: note: when considering range: 1 <= value <= 0xfffffffffffffff at: lm->mod_bvalues = PyMem_NEW(struct berval *, nstrs + 1); Modules/LDAPObject.c:155:27: note: taking True path at: lm->mod_bvalues = PyMem_NEW(struct berval *, nstrs + 1); Modules/LDAPObject.c:155:27: note: reaching: lm->mod_bvalues = PyMem_NEW(struct berval *, nstrs + 1); Modules/LDAPObject.c:155:27: note: taking True path at: lm->mod_bvalues = PyMem_NEW(struct berval *, nstrs + 1); Modules/LDAPObject.c:155:27: note: reaching: lm->mod_bvalues = PyMem_NEW(struct berval *, nstrs + 1); Modules/LDAPObject.c:155:27: note: taking True path at: lm->mod_bvalues = PyMem_NEW(struct berval *, nstrs + 1); Modules/LDAPObject.c:155:27: note: reaching: lm->mod_bvalues = PyMem_NEW(struct berval *, nstrs + 1); Modules/LDAPObject.c:156:12: note: when treating unknown void * from Modules/LDAPObject.c:155 as non-NULL at: if (lm->mod_bvalues == NULL) Modules/LDAPObject.c:156:12: note: taking False path at: if (lm->mod_bvalues == NULL) Modules/LDAPObject.c:158:16: note: reaching: for (i = 0; i < nstrs; i++) { Modules/LDAPObject.c:158:9: note: when considering range: 1 <= nstrs <= 0x7fffffffffffffff at: for (i = 0; i < nstrs; i++) { Modules/LDAPObject.c:158:9: note: taking True path at: for (i = 0; i < nstrs; i++) { Modules/LDAPObject.c:159:15: note: reaching: lm->mod_bvalues[i] = PyMem_NEW(struct berval, 1); Modules/LDAPObject.c:160:14: note: when treating unknown void * from Modules/LDAPObject.c:159 as non-NULL at: if (lm->mod_bvalues[i] == NULL) Modules/LDAPObject.c:160:14: note: taking False path at: if (lm->mod_bvalues[i] == NULL) Modules/LDAPObject.c:162:15: note: reaching: lm->mod_bvalues[i+1] = NULL; Modules/LDAPObject.c:163:16: note: when PySequence_GetItem() succeeds at: item = PySequence_GetItem(list, i); Modules/LDAPObject.c:164:14: note: taking False path at: if (item == NULL) Modules/LDAPObject.c:166:16: note: reaching: if (!PyString_Check(item)) { Modules/LDAPObject.c:166:14: note: when considering value == (long int)0 from Modules/LDAPObject.c:166 at: if (!PyString_Check(item)) { Modules/LDAPObject.c:166:14: note: taking True path at: if (!PyString_Check(item)) { Modules/LDAPObject.c:167:30: note: reaching: PyErr_SetObject( PyExc_TypeError, Py_BuildValue( "sO", Modules/LDAPObject.c:167:30: note: when _Py_BuildValue_SizeT() succeeds at: PyErr_SetObject( PyExc_TypeError, Py_BuildValue( "sO", Modules/LDAPObject.c:167:30: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/LDAPObject.c:167:30: note: calling PyErr_SetObject() at: PyErr_SetObject( PyExc_TypeError, Py_BuildValue( "sO", Modules/LDAPObject.c:167:30: note: ob_refcnt is now refs: 1 + N where N >= 1 Modules/LDAPObject.c:169:15: note: taking True path at: Py_DECREF(item); Modules/LDAPObject.c:185:8: note: taking True path at: if (lm) Modules/LDAPObject.c:186:20: note: reaching: LDAPMod_DEL(lm); Modules/LDAPObject.c:189:1: note: returning Modules/LDAPObject.c:189:1: note: found 1 similar trace(s) to this Modules/LDAPObject.c:105:1: note: graphical error report for function 'Tuple_to_LDAPMod' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.Tuple_to_LDAPMod-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_delete_ext': Modules/LDAPObject.c:796:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "s|OO" [enabled by default] argument 3 ("&dn") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:786:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:820:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:796:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "s|OO", &dn, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:796:8: note: taking False path at: if (!PyArg_ParseTuple( args, "s|OO", &dn, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:797:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:797:8: note: when considering value == (int)0 from Modules/LDAPObject.c:797 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:797:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:799:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:799:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:800:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:800:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:800:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:804:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:804:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:805:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:805:12: note: when considering value == (int)0 from Modules/LDAPObject.c:805 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:805:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:806:13: note: reaching: return NULL; Modules/LDAPObject.c:820:1: note: returning Modules/LDAPObject.c:820:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:786:1: note: graphical error report for function 'l_ldap_delete_ext' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_delete_ext-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_compare_ext': Modules/LDAPObject.c:753:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sss#|OO" [enabled by default] argument 3 ("&dn") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:753:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sss#|OO" [enabled by default] argument 4 ("&attr") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:753:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sss#|OO" [enabled by default] argument 5 ("&value.bv_val") had type "char * *" but was expecting "const char * *" for format code "s#" Modules/LDAPObject.c:741:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:779:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:753:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "sss#|OO", &dn, &attr, &value.bv_val, &value_len, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:753:8: note: taking False path at: if (!PyArg_ParseTuple( args, "sss#|OO", &dn, &attr, &value.bv_val, &value_len, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:754:20: note: reaching: value.bv_len = (ber_len_t) value_len; Modules/LDAPObject.c:756:8: note: when considering value == (int)0 from Modules/LDAPObject.c:756 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:756:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:758:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:758:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:759:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:759:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:759:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:763:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:763:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:764:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:764:12: note: when considering value == (int)0 from Modules/LDAPObject.c:764 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:764:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:765:13: note: reaching: return NULL; Modules/LDAPObject.c:779:1: note: returning Modules/LDAPObject.c:779:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:741:1: note: graphical error report for function 'l_ldap_compare_ext' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_compare_ext-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_sasl_interactive_bind_s': Modules/LDAPObject.c:646:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sOOOI" [enabled by default] argument 3 ("&who") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:621:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:689:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:646:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "sOOOI", &who, &SASLObject, &serverctrls, &clientctrls, &sasl_flags )) Modules/LDAPObject.c:646:8: note: taking False path at: if (!PyArg_ParseTuple(args, "sOOOI", &who, &SASLObject, &serverctrls, &clientctrls, &sasl_flags )) Modules/LDAPObject.c:650:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:650:8: note: when considering value == (int)0 from Modules/LDAPObject.c:650 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:650:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:652:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:652:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:653:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:653:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:653:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:657:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:657:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:658:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:658:12: note: when considering value == (int)0 from Modules/LDAPObject.c:658 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:658:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:659:13: note: reaching: return NULL; Modules/LDAPObject.c:689:1: note: returning Modules/LDAPObject.c:689:1: note: found 1 similar trace(s) to this Modules/LDAPObject.c:621:1: note: graphical error report for function 'l_ldap_sasl_interactive_bind_s' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_sasl_interactive_bind_s-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_simple_bind': Modules/LDAPObject.c:466:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "ss#|OO" [enabled by default] argument 3 ("&who") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:466:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "ss#|OO" [enabled by default] argument 4 ("&cred.bv_val") had type "char * *" but was expecting "const char * *" for format code "s#" Modules/LDAPObject.c:455:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:492:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:466:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "ss#|OO", &who, &cred.bv_val, &cred_len, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:466:8: note: taking False path at: if (!PyArg_ParseTuple( args, "ss#|OO", &who, &cred.bv_val, &cred_len, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:467:19: note: reaching: cred.bv_len = (ber_len_t) cred_len; Modules/LDAPObject.c:469:8: note: when considering value == (int)0 from Modules/LDAPObject.c:469 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:469:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:471:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:471:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:472:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:472:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:472:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:476:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:476:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:477:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:477:12: note: when considering value == (int)0 from Modules/LDAPObject.c:477 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:477:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:478:13: note: reaching: return NULL; Modules/LDAPObject.c:492:1: note: returning Modules/LDAPObject.c:492:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:455:1: note: graphical error report for function 'l_ldap_simple_bind' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_simple_bind-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_add_ext': Modules/LDAPObject.c:421:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sO|OO" [enabled by default] argument 3 ("&dn") had type "char * *" but was expecting "const char * *" for format code "s" Modules/LDAPObject.c:409:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:449:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:421:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "sO|OO", &dn, &modlist, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:421:8: note: taking False path at: if (!PyArg_ParseTuple( args, "sO|OO", &dn, &modlist, &serverctrls, &clientctrls )) return NULL; Modules/LDAPObject.c:422:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:422:8: note: when considering value == (int)0 from Modules/LDAPObject.c:422 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:422:8: note: taking False path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:424:28: note: reaching: mods = List_to_LDAPMods( modlist, 1 ); Modules/LDAPObject.c:425:8: note: when treating unknown struct LDAPMod * * from Modules/LDAPObject.c:424 as non-NULL at: if (mods == NULL) Modules/LDAPObject.c:425:8: note: taking False path at: if (mods == NULL) Modules/LDAPObject.c:428:9: note: reaching: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:428:8: note: taking True path at: if (!PyNone_Check(serverctrls)) { Modules/LDAPObject.c:429:38: note: reaching: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:429:12: note: when considering range: 1 <= value <= 0x7fffffff at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:429:12: note: taking False path at: if (!LDAPControls_from_object(serverctrls, &server_ldcs)) Modules/LDAPObject.c:433:9: note: reaching: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:433:8: note: taking True path at: if (!PyNone_Check(clientctrls)) { Modules/LDAPObject.c:434:38: note: reaching: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:434:12: note: when considering value == (int)0 from Modules/LDAPObject.c:434 at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:434:12: note: taking True path at: if (!LDAPControls_from_object(clientctrls, &client_ldcs)) Modules/LDAPObject.c:435:13: note: reaching: return NULL; Modules/LDAPObject.c:449:1: note: returning Modules/LDAPObject.c:449:1: note: found 3 similar trace(s) to this Modules/LDAPObject.c:409:1: note: graphical error report for function 'l_ldap_add_ext' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_add_ext-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_abandon_ext': Modules/LDAPObject.c:369:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:403:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:378:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "i|OO", &msgid, &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:378:8: note: taking False path at: if (!PyArg_ParseTuple( args, "i|OO", &msgid, &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:379:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:379:8: note: when considering range: -0x80000000 <= value <= -1 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:379:8: note: taking True path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:379:26: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:403:1: note: returning Modules/LDAPObject.c:403:1: note: found 4 similar trace(s) to this Modules/LDAPObject.c:369:1: note: graphical error report for function 'l_ldap_abandon_ext' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_abandon_ext-refcount-errors.html' Modules/LDAPObject.c: In function 'l_ldap_unbind_ext': Modules/LDAPObject.c:329:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:363:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/LDAPObject.c:337:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple( args, "|OO", &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:337:8: note: taking False path at: if (!PyArg_ParseTuple( args, "|OO", &serverctrls, &clientctrls)) return NULL; Modules/LDAPObject.c:338:18: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:338:8: note: when considering range: -0x80000000 <= value <= -1 at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:338:8: note: taking True path at: if (not_valid(self)) return NULL; Modules/LDAPObject.c:338:26: note: reaching: if (not_valid(self)) return NULL; Modules/LDAPObject.c:363:1: note: returning Modules/LDAPObject.c:363:1: note: found 4 similar trace(s) to this 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 -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.6 -IModules -I/usr/include/sasl -I/usr/include/python2.7 -c Modules/ldapcontrol.c -o build/temp.linux-x86_64-2.7/Modules/ldapcontrol.o -g Modules/LDAPObject.c:329:1: note: graphical error report for function 'l_ldap_unbind_ext' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.l_ldap_unbind_ext-refcount-errors.html' Modules/LDAPObject.c: In function 'interaction': Modules/LDAPObject.c:590:1: warning: ob_refcnt of '*result' is 1 too high [enabled by default] Modules/LDAPObject.c:590:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/LDAPObject.c:590:1: note: but final ob_refcnt is N + 1 Modules/LDAPObject.c:559:10: note: new ref from call to _PyObject_CallMethod_SizeT allocated at: result = PyObject_CallMethod(SASLObject, Modules/LDAPObject.c:559:31: note: when treating unknown struct sasl_interact_t * from Modules/LDAPObject.c:553 as non-NULL at: result = PyObject_CallMethod(SASLObject, Modules/LDAPObject.c:559:10: note: when _PyObject_CallMethod_SizeT() succeeds at: result = PyObject_CallMethod(SASLObject, Modules/LDAPObject.c:559:10: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/LDAPObject.c:567:6: note: taking False path at: if (result == NULL) Modules/LDAPObject.c:570:12: note: reaching: c_result = PyString_AsString(result); /*xxx Error checking?? */ Modules/LDAPObject.c:570:12: note: when PyString_AsString() succeeds at: c_result = PyString_AsString(result); /*xxx Error checking?? */ Modules/LDAPObject.c:579:6: note: when treating unknown char * from Modules/LDAPObject.c:578 as NULL at: if (interact->result == NULL) Modules/LDAPObject.c:579:6: note: taking True path at: if (interact->result == NULL) Modules/LDAPObject.c:580:5: note: reaching: return LDAP_OPERATIONS_ERROR; Modules/LDAPObject.c:590:1: note: returning Modules/LDAPObject.c:590:1: note: found 1 similar trace(s) to this Modules/LDAPObject.c:555:1: note: graphical error report for function 'interaction' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.interaction-refcount-errors.html' Modules/LDAPObject.c: In function 'attrs_from_List': Modules/LDAPObject.c:259:54: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/LDAPObject.c:307:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] Modules/LDAPObject.c:307:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/LDAPObject.c:307:1: note: but final ob_refcnt is N + 1 Modules/LDAPObject.c:284:32: note: new ref from call to _Py_BuildValue_SizeT allocated at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:265:8: note: taking False path at: if (attrlist == Py_None) { Modules/LDAPObject.c:267:16: note: reaching: } else if (PyString_Check(attrlist)) { Modules/LDAPObject.c:267:15: note: when considering value == (long int)0 from Modules/LDAPObject.c:267 at: } else if (PyString_Check(attrlist)) { Modules/LDAPObject.c:267:15: note: taking False path at: } else if (PyString_Check(attrlist)) { Modules/LDAPObject.c:272:32: note: reaching: } else if (PySequence_Check(attrlist)) { Modules/LDAPObject.c:272:15: note: when considering range: -0x80000000 <= value <= -1 at: } else if (PySequence_Check(attrlist)) { Modules/LDAPObject.c:272:15: note: taking True path at: } else if (PySequence_Check(attrlist)) { Modules/LDAPObject.c:273:13: note: reaching: len = PySequence_Length(attrlist); Modules/LDAPObject.c:273:13: note: when PySequence_Size() succeeds at: len = PySequence_Length(attrlist); Modules/LDAPObject.c:274:17: note: when considering range: 1 <= value <= 0xfffffffffffffff at: attrs = PyMem_NEW(char *, len + 1); Modules/LDAPObject.c:274:17: note: taking True path at: attrs = PyMem_NEW(char *, len + 1); Modules/LDAPObject.c:274:17: note: reaching: attrs = PyMem_NEW(char *, len + 1); Modules/LDAPObject.c:274:17: note: taking True path at: attrs = PyMem_NEW(char *, len + 1); Modules/LDAPObject.c:274:17: note: reaching: attrs = PyMem_NEW(char *, len + 1); Modules/LDAPObject.c:274:17: note: taking True path at: attrs = PyMem_NEW(char *, len + 1); Modules/LDAPObject.c:274:17: note: reaching: attrs = PyMem_NEW(char *, len + 1); Modules/LDAPObject.c:275:12: note: when treating unknown void * from Modules/LDAPObject.c:274 as non-NULL at: if (attrs == NULL) Modules/LDAPObject.c:275:12: note: taking False path at: if (attrs == NULL) Modules/LDAPObject.c:278:16: note: reaching: for (i = 0; i < len; i++) { Modules/LDAPObject.c:278:9: note: when considering range: 1 <= len <= 0x7fffffffffffffff at: for (i = 0; i < len; i++) { Modules/LDAPObject.c:278:9: note: taking True path at: for (i = 0; i < len; i++) { Modules/LDAPObject.c:279:18: note: reaching: attrs[i] = NULL; Modules/LDAPObject.c:280:18: note: when PySequence_GetItem() succeeds at: item = PySequence_GetItem(attrlist, i); Modules/LDAPObject.c:281:16: note: taking False path at: if (item == NULL) Modules/LDAPObject.c:283:18: note: reaching: if (!PyString_Check(item)) { Modules/LDAPObject.c:283:16: note: when considering value == (long int)0 from Modules/LDAPObject.c:283 at: if (!PyString_Check(item)) { Modules/LDAPObject.c:283:16: note: taking True path at: if (!PyString_Check(item)) { Modules/LDAPObject.c:284:32: note: reaching: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:284:32: note: when _Py_BuildValue_SizeT() succeeds at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:284:32: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/LDAPObject.c:284:32: note: calling PyErr_SetObject() at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/LDAPObject.c:284:32: note: ob_refcnt is now refs: 1 + N where N >= 1 Modules/LDAPObject.c:286:17: note: taking True path at: Py_DECREF(item); Modules/LDAPObject.c:307:1: note: returning Modules/LDAPObject.c:259:54: note: graphical error report for function 'attrs_from_List' written out to 'build/temp.linux-x86_64-2.7/Modules/LDAPObject.c.attrs_from_List-refcount-errors.html' Modules/ldapcontrol.c: In function 'encode_assertion_control': Modules/ldapcontrol.c:343:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "s:encode_assertion_control" [enabled by default] argument 3 ("&assertion_filterstr") had type "char * *" but was expecting "const char * *" for format code "s" Modules/ldapcontrol.c: In function 'encode_rfc3876': Modules/ldapcontrol.c:212:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s:encode_valuesreturnfilter_control" [enabled by default] argument 3 ("&vrFilter") had type "char * *" but was expecting "const char * *" for format code "s" Modules/ldapcontrol.c:239:2: warning: ob_refcnt of new ref from (unknown) LDAPerr is 1 too high [enabled by default] Modules/ldapcontrol.c:239:2: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/ldapcontrol.c:239:2: note: but final ob_refcnt is N + 1 Modules/ldapcontrol.c:229:10: note: new ref from (unknown) LDAPerr allocated at: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:212:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s:encode_valuesreturnfilter_control", &vrFilter)) { Modules/ldapcontrol.c:212:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s:encode_valuesreturnfilter_control", &vrFilter)) { Modules/ldapcontrol.c:216:5: note: reaching: if (!(vrber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:216:5: note: when treating unknown struct BerElement * from Modules/ldapcontrol.c:216 as non-NULL at: if (!(vrber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:216:5: note: taking False path at: if (!(vrber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:221:25: note: reaching: err = ldap_put_vrFilter(vrber, vrFilter); Modules/ldapcontrol.c:222:5: note: when considering range: -0x80000000 <= value <= -2 at: if (err == -1) { Modules/ldapcontrol.c:222:5: note: taking False path at: if (err == -1) { Modules/ldapcontrol.c:227:6: note: reaching: err = ber_flatten(vrber, &ctrl_val); Modules/ldapcontrol.c:228:5: note: when considering value == (int)-1 from Modules/ldapcontrol.c:227 at: if (err == -1) { Modules/ldapcontrol.c:228:5: note: taking True path at: if (err == -1) { Modules/ldapcontrol.c:229:10: note: reaching: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:229:10: note: when LDAPerr() succeeds at: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:229:10: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/ldapcontrol.c:236:5: note: taking True path at: if (vrber) Modules/ldapcontrol.c:237:11: note: reaching: ber_free(vrber, 1); Modules/ldapcontrol.c:239:2: note: returning at: return res; Modules/ldapcontrol.c:239:2: note: found 3 similar trace(s) to this Modules/ldapcontrol.c:239:2: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/ldapcontrol.c:212:23: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "s:encode_valuesreturnfilter_control", &vrFilter)) { Modules/ldapcontrol.c:212:5: note: taking False path at: if (!PyArg_ParseTuple(args, "s:encode_valuesreturnfilter_control", &vrFilter)) { Modules/ldapcontrol.c:216:5: note: reaching: if (!(vrber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:216:5: note: when treating unknown struct BerElement * from Modules/ldapcontrol.c:216 as non-NULL at: if (!(vrber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:216:5: note: taking False path at: if (!(vrber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:221:25: note: reaching: err = ldap_put_vrFilter(vrber, vrFilter); Modules/ldapcontrol.c:222:5: note: when considering range: -0x80000000 <= value <= -2 at: if (err == -1) { Modules/ldapcontrol.c:222:5: note: taking False path at: if (err == -1) { Modules/ldapcontrol.c:227:6: note: reaching: err = ber_flatten(vrber, &ctrl_val); Modules/ldapcontrol.c:228:5: note: when considering value == (int)-1 from Modules/ldapcontrol.c:227 at: if (err == -1) { Modules/ldapcontrol.c:228:5: note: taking True path at: if (err == -1) { Modules/ldapcontrol.c:229:10: note: reaching: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:229:10: note: when LDAPerr() succeeds at: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:236:5: note: taking True path at: if (vrber) Modules/ldapcontrol.c:237:11: note: reaching: ber_free(vrber, 1); Modules/ldapcontrol.c:239:2: note: returning at: return res; Modules/ldapcontrol.c:239:2: note: found 3 similar trace(s) to this Modules/ldapcontrol.c:205:1: note: graphical error report for function 'encode_rfc3876' written out to 'build/temp.linux-x86_64-2.7/Modules/ldapcontrol.c.encode_rfc3876-refcount-errors.html' Modules/ldapcontrol.c: In function 'decode_rfc2696': Modules/ldapcontrol.c:309:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#:decode_page_control" [enabled by default] argument 3 ("&ldctl_value.bv_val") had type "char * *" but was expecting "const char * *" for format code "s#" Modules/ldapcontrol.c:326:9: 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 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3028, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2081, 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 2097, 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 2268, 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 1213, in impl__Py_BuildValue_SizeT v_fmt, args, with_size_t=True) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 1179, in _handle_Py_BuildValue fmt = PyBuildValueFmt.from_string(fmt_string, with_size_t) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/Py_BuildValue.py", line 262, in from_string result.add_complex_argument() TypeError: add_complex_argument() takes exactly 2 arguments (1 given) Modules/ldapcontrol.c: In function 'encode_rfc2696': Modules/ldapcontrol.c:252:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "is#:encode_page_control" [enabled by default] argument 3 ("&size") had type "long unsigned int *" (pointing to 64 bits) but was expecting "int *" (pointing to 32 bits) for format code "i" Modules/ldapcontrol.c:252:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "is#:encode_page_control" [enabled by default] argument 4 ("&cookie.bv_val") had type "char * *" but was expecting "const char * *" for format code "s#" Modules/ldapcontrol.c:294:5: warning: ob_refcnt of new ref from (unknown) LDAPerr is 1 too high [enabled by default] Modules/ldapcontrol.c:294:5: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/ldapcontrol.c:294:5: note: but final ob_refcnt is N + 1 Modules/ldapcontrol.c:285:16: note: new ref from (unknown) LDAPerr allocated at: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:252:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "is#:encode_page_control", &size, Modules/ldapcontrol.c:252:8: note: taking False path at: if (!PyArg_ParseTuple(args, "is#:encode_page_control", &size, Modules/ldapcontrol.c:256:21: note: reaching: cookie.bv_len = (ber_len_t) cookie_len; Modules/ldapcontrol.c:258:8: note: when treating unknown struct BerElement * from Modules/ldapcontrol.c:258 as non-NULL at: if (!(ber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:258:8: note: taking False path at: if (!(ber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:263:21: note: reaching: tag = ber_printf(ber, "{i", size); Modules/ldapcontrol.c:264:8: note: taking False path at: if (tag == LBER_ERROR) { Modules/ldapcontrol.c:269:16: note: reaching: if (!cookie.bv_len) Modules/ldapcontrol.c:269:8: note: when considering range: -0x8000000000000000 <= value <= -1 at: if (!cookie.bv_len) Modules/ldapcontrol.c:269:8: note: taking False path at: if (!cookie.bv_len) Modules/ldapcontrol.c:272:25: note: reaching: tag = ber_printf(ber, "O", &cookie); Modules/ldapcontrol.c:273:8: note: taking False path at: if (tag == LBER_ERROR) { Modules/ldapcontrol.c:278:21: note: reaching: tag = ber_printf(ber, /*{ */ "N}"); Modules/ldapcontrol.c:279:8: note: taking False path at: if (tag == LBER_ERROR) { Modules/ldapcontrol.c:284:26: note: reaching: if (-1 == ber_flatten(ber, &ctrl_val)) { Modules/ldapcontrol.c:284:8: note: when considering value == (int)-1 from Modules/ldapcontrol.c:284 at: if (-1 == ber_flatten(ber, &ctrl_val)) { Modules/ldapcontrol.c:284:8: note: taking True path at: if (-1 == ber_flatten(ber, &ctrl_val)) { Modules/ldapcontrol.c:285:16: note: reaching: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:285:16: note: when LDAPerr() succeeds at: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:285:16: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/ldapcontrol.c:292:8: note: taking True path at: if (ber) Modules/ldapcontrol.c:293:17: note: reaching: ber_free(ber, 1); Modules/ldapcontrol.c:294:5: note: returning at: return res; Modules/ldapcontrol.c:294:5: note: found 3 similar trace(s) to this Modules/ldapcontrol.c:294:5: warning: returning (PyObject*)NULL without setting an exception [enabled by default] Modules/ldapcontrol.c:252:26: note: when _PyArg_ParseTuple_SizeT() succeeds at: if (!PyArg_ParseTuple(args, "is#:encode_page_control", &size, Modules/ldapcontrol.c:252:8: note: taking False path at: if (!PyArg_ParseTuple(args, "is#:encode_page_control", &size, Modules/ldapcontrol.c:256:21: note: reaching: cookie.bv_len = (ber_len_t) cookie_len; Modules/ldapcontrol.c:258:8: note: when treating unknown struct BerElement * from Modules/ldapcontrol.c:258 as non-NULL at: if (!(ber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:258:8: note: taking False path at: if (!(ber = ber_alloc_t(LBER_USE_DER))) { Modules/ldapcontrol.c:263:21: note: reaching: tag = ber_printf(ber, "{i", size); Modules/ldapcontrol.c:264:8: note: taking False path at: if (tag == LBER_ERROR) { Modules/ldapcontrol.c:269:16: note: reaching: if (!cookie.bv_len) Modules/ldapcontrol.c:269:8: note: when considering range: -0x8000000000000000 <= value <= -1 at: if (!cookie.bv_len) Modules/ldapcontrol.c:269:8: note: taking False path at: if (!cookie.bv_len) Modules/ldapcontrol.c:272:25: note: reaching: tag = ber_printf(ber, "O", &cookie); Modules/ldapcontrol.c:273:8: note: taking False path at: if (tag == LBER_ERROR) { Modules/ldapcontrol.c:278:21: note: reaching: tag = ber_printf(ber, /*{ */ "N}"); Modules/ldapcontrol.c:279:8: note: taking False path at: if (tag == LBER_ERROR) { Modules/ldapcontrol.c:284:26: note: reaching: if (-1 == ber_flatten(ber, &ctrl_val)) { Modules/ldapcontrol.c:284:8: note: when considering value == (int)-1 from Modules/ldapcontrol.c:284 at: if (-1 == ber_flatten(ber, &ctrl_val)) { Modules/ldapcontrol.c:284:8: note: taking True path at: if (-1 == ber_flatten(ber, &ctrl_val)) { Modules/ldapcontrol.c:285:16: note: reaching: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:285:16: note: when LDAPerr() succeeds at: LDAPerr(LDAP_NO_MEMORY); Modules/ldapcontrol.c:292:8: note: taking True path at: if (ber) Modules/ldapcontrol.c:293:17: note: reaching: ber_free(ber, 1); Modules/ldapcontrol.c:294:5: note: returning at: return res; Modules/ldapcontrol.c:294:5: note: found 3 similar trace(s) to this Modules/ldapcontrol.c:244:1: note: graphical error report for function 'encode_rfc2696' written out to 'build/temp.linux-x86_64-2.7/Modules/ldapcontrol.c.encode_rfc2696-refcount-errors.html' Modules/ldapcontrol.c: In function 'LDAPControls_to_List': Modules/ldapcontrol.c:183:12: 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 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3028, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2081, 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 2097, 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 2268, 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 1213, in impl__Py_BuildValue_SizeT v_fmt, args, with_size_t=True) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 1179, in _handle_Py_BuildValue fmt = PyBuildValueFmt.from_string(fmt_string, with_size_t) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/Py_BuildValue.py", line 262, in from_string result.add_complex_argument() TypeError: add_complex_argument() takes exactly 2 arguments (1 given) Modules/ldapcontrol.c: In function 'LDAPControls_from_object': Modules/ldapcontrol.c:127:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed Modules/ldapcontrol.c:167:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] Modules/ldapcontrol.c:167:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/ldapcontrol.c:167:1: note: but final ob_refcnt is N + 1 Modules/ldapcontrol.c:134:17: note: new ref from call to _Py_BuildValue_SizeT allocated at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:133:8: note: when considering value == (int)0 from Modules/ldapcontrol.c:133 at: if (!PySequence_Check(list)) { Modules/ldapcontrol.c:133:8: note: taking True path at: if (!PySequence_Check(list)) { Modules/ldapcontrol.c:134:17: note: reaching: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:134:17: note: when _Py_BuildValue_SizeT() succeeds at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:134:17: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/ldapcontrol.c:134:17: note: calling PyErr_SetObject() at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:134:17: note: ob_refcnt is now refs: 1 + N where N >= 1 Modules/ldapcontrol.c:167:1: note: returning Modules/ldapcontrol.c:127:1: note: graphical error report for function 'LDAPControls_from_object' written out to 'build/temp.linux-x86_64-2.7/Modules/ldapcontrol.c.LDAPControls_from_object-refcount-errors.html' Modules/ldapcontrol.c: In function 'Tuple_to_LDAPControl': Modules/ldapcontrol.c:81:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sbO" [enabled by default] argument 3 ("&oid") had type "char * *" but was expecting "const char * *" for format code "s" Modules/ldapcontrol.c:81:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sbO" [enabled by default] argument 4 ("&iscritical") had type "char *" (pointing to 8 bits) but was expecting "unsigned char *" (pointing to 8 bits) for format code "b" Modules/ldapcontrol.c:120:1: warning: ob_refcnt of new ref from call to _Py_BuildValue_SizeT is 1 too high [enabled by default] Modules/ldapcontrol.c:120:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) Modules/ldapcontrol.c:120:1: note: but final ob_refcnt is N + 1 Modules/ldapcontrol.c:76:17: note: new ref from call to _Py_BuildValue_SizeT allocated at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:75:8: note: when considering value == (long int)0 from Modules/ldapcontrol.c:75 at: if (!PyTuple_Check(tup)) { Modules/ldapcontrol.c:75:8: note: taking True path at: if (!PyTuple_Check(tup)) { Modules/ldapcontrol.c:76:17: note: reaching: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:76:17: note: when _Py_BuildValue_SizeT() succeeds at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:76:17: note: ob_refcnt is now refs: 1 + N where N >= 0 Modules/ldapcontrol.c:76:17: note: calling PyErr_SetObject() at: PyErr_SetObject(PyExc_TypeError, Py_BuildValue("sO", Modules/ldapcontrol.c:76:17: note: ob_refcnt is now refs: 1 + N where N >= 1 Modules/ldapcontrol.c:120:1: note: returning Modules/ldapcontrol.c:120:1: note: found 1 similar trace(s) to this Modules/ldapcontrol.c:67:1: note: graphical error report for function 'Tuple_to_LDAPControl' written out to 'build/temp.linux-x86_64-2.7/Modules/ldapcontrol.c.Tuple_to_LDAPControl-refcount-errors.html' error: command 'gcc' failed with exit status 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.FRU5O2 (%build) Bad exit status from /var/tmp/rpm-tmp.FRU5O2 (%build) Child returncode was: 1 EXCEPTION: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-ldap.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/python-ldap.spec'] LEAVE do --> EXCEPTION RAISED