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/pylibacl.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/pylibacl.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/pylibacl-0.5.0-4.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/pylibacl.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/pylibacl.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.lrkXwH + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf pylibacl-0.5.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/pylibacl-0.5.0.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd pylibacl-0.5.0 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0htgps + umask 022 + cd /builddir/build/BUILD + cd pylibacl-0.5.0 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-fplugin=python2 -fplugin-arg-python2-script=/test.py -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' + /usr/bin/python setup.py build running build running build_ext building 'posix1e' extension creating build creating build/temp.linux-x86_64-2.7 gcc -pthread -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 -fplugin=python2 -fplugin-arg-python2-script=/test.py -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -DHAVE_LINUX -DHAVE_LEVEL2 -I/usr/include/python2.7 -c acl.c -o build/temp.linux-x86_64-2.7/acl.o acl.c: In function 'ACL_check': acl.c:303:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c: In function 'ACL_richcompare': acl.c:317:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:319:13: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c: In function 'ACL_valid': acl.c:449:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:452:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c: In function 'Permset_get_right': acl.c:993:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:996:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c: In function 'Permset_test': acl.c:1108:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:1111:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c: In function 'initposix1e': acl.c:1603:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:1608:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:1612:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:1629:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:1640:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:1645:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] acl.c:1630:29: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2200, in _get_transitions_for_GimpleCall return meth(stmt, *args) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 1373, in impl_PyDict_SetItemString v_dp, v_key, v_item) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 1331, in _handle_PyDict_SetItem s_success.cpython.add_external_ref(v_item, stmt.loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 378, in add_external_ref _incref_external) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 350, in change_refcount check_isinstance(oldvalue, RefcountValue) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/gccutils.py", line 629, 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 acl.c:1629 / WithinRange(gcctype='Py_ssize_t', loc=gcc.Location(file='acl.c', line=1629), minvalue=-0x7fffffffffffffff, maxvalue=0x7fffffffffffffff) is not an instance of acl.c: In function 'Entry_set_permset': acl.c:873:28: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyObject_IsInstance acl.c: In function 'Entry_get_permset': acl.c:866:1: warning: ob_refcnt of '*p' is 1 too high [enabled by default] acl.c:866:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) acl.c:866:1: note: but final ob_refcnt is N + 1 acl.c:854:7: note: new ref from (unknown) Permset_new allocated at: p = Permset_new(&Permset_Type, NULL, NULL); acl.c:854:7: note: when Permset_new() succeeds at: p = Permset_new(&Permset_Type, NULL, NULL); acl.c:854:7: note: ob_refcnt is now refs: 1 + N where N >= 0 acl.c:855:7: note: taking False path at: if(p == NULL) acl.c:857:8: note: reaching: ps = (Permset_Object*)p; acl.c:858:7: note: when considering value == (int)-1 from acl.c:858 at: if(acl_get_permset(self->entry, &ps->permset) == -1) { acl.c:858:7: note: taking True path at: if(acl_get_permset(self->entry, &ps->permset) == -1) { acl.c:859:27: note: reaching: PyErr_SetFromErrno(PyExc_IOError); acl.c:859:27: note: PyErr_SetFromErrno() at: PyErr_SetFromErrno(PyExc_IOError); acl.c:866:1: note: returning acl.c:849:62: note: graphical error report for function 'Entry_get_permset' written out to 'build/temp.linux-x86_64-2.7/acl.c.Entry_get_permset-refcount-errors.html' acl.c: In function 'Entry_copy': acl.c:899:25: warning: Mismatching type in call to PyArg_ParseTuple with format code "O!" [enabled by default] argument 4 ("&other") had type "struct Entry_Object * *" but was expecting ""struct PyObject * *"" (unfamiliar with PyTypeObject: 'Entry_Type') for format code "O!" acl.c: In function 'ACL_append': acl.c:624:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "|O!" [enabled by default] argument 4 ("&oldentry") had type "struct Entry_Object * *" but was expecting ""struct PyObject * *"" (unfamiliar with PyTypeObject: 'Entry_Type') for format code "O!" acl.c:619:14: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyType_GenericNew acl.c: In function 'ACL_delete_entry': acl.c:564:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "O!" [enabled by default] argument 4 ("&e") had type "struct Entry_Object * *" but was expecting ""struct PyObject * *"" (unfamiliar with PyTypeObject: 'Entry_Type') for format code "O!" acl.c: In function 'ACL_check': acl.c:307:1: warning: ob_refcnt of PyIntObject is 1 too high [enabled by default] acl.c:307:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) acl.c:307:1: note: but final ob_refcnt is N + 1 acl.c:306:24: note: PyIntObject allocated at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:300:7: note: when considering range: -0x80000000 <= value <= -2 at: if((result = acl_check(self->acl, &eindex)) == -1) acl.c:300:7: note: taking False path at: if((result = acl_check(self->acl, &eindex)) == -1) acl.c:302:7: note: reaching: if(result == 0) { acl.c:302:7: note: taking False path at: if(result == 0) { acl.c:306:24: note: reaching: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:24: note: when PyInt_FromLong() succeeds at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:24: note: ob_refcnt is now refs: 1 + N where N >= 0 acl.c:306:24: note: when PyInt_FromLong() succeeds at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:5: note: when PyTuple_Pack() succeeds at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:307:1: note: returning acl.c:307:1: note: found 7 similar trace(s) to this acl.c:306:5: warning: calling PyTuple_Pack with NULL as argument 2 (D.14383) at acl.c:306 [enabled by default] acl.c:300:7: note: when considering range: -0x80000000 <= value <= -2 at: if((result = acl_check(self->acl, &eindex)) == -1) acl.c:300:7: note: taking False path at: if((result = acl_check(self->acl, &eindex)) == -1) acl.c:302:7: note: reaching: if(result == 0) { acl.c:302:7: note: taking False path at: if(result == 0) { acl.c:306:24: note: reaching: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:24: note: when PyInt_FromLong() succeeds at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:24: note: when PyInt_FromLong() fails at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:5: note: PyTuple_Pack() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt acl.c:306:5: note: found 3 similar trace(s) to this acl.c:306:5: warning: calling PyTuple_Pack with NULL as argument 3 (D.14381) at acl.c:306 [enabled by default] acl.c:300:7: note: when considering range: -0x80000000 <= value <= -2 at: if((result = acl_check(self->acl, &eindex)) == -1) acl.c:300:7: note: taking False path at: if((result = acl_check(self->acl, &eindex)) == -1) acl.c:302:7: note: reaching: if(result == 0) { acl.c:302:7: note: taking False path at: if(result == 0) { acl.c:306:24: note: reaching: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:24: note: when PyInt_FromLong() fails at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:24: note: when PyInt_FromLong() succeeds at: return PyTuple_Pack(2, PyInt_FromLong(result), PyInt_FromLong(eindex)); acl.c:306:5: note: PyTuple_Pack() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt acl.c:306:5: note: found 1 similar trace(s) to this acl.c:295:59: note: graphical error report for function 'ACL_check' written out to 'build/temp.linux-x86_64-2.7/acl.c.ACL_check-refcount-errors.html' acl.c: In function 'ACL_to_any_text': acl.c:257:37: warning: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "|sci" [enabled by default] argument 5 ("&arg_prefix") had type "char * *" but was expecting "const char * *" for format code "s" acl.c:267:9: warning: dereferencing NULL (ret->ob_refcnt) at acl.c:267 [enabled by default] acl.c:257:37: note: when PyArg_ParseTupleAndKeywords() succeeds at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|sci", kwlist, &arg_prefix, acl.c:257:8: note: taking False path at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "|sci", kwlist, &arg_prefix, acl.c:261:27: note: reaching: text = acl_to_any_text(self->acl, arg_prefix, arg_separator, arg_options); acl.c:262:7: note: when treating unknown char * from acl.c:261 as non-NULL at: if(text == NULL) { acl.c:262:7: note: taking False path at: if(text == NULL) { acl.c:265:9: note: reaching: ret = PyBytes_FromString(text); acl.c:265:9: note: when PyString_FromString() fails at: ret = PyBytes_FromString(text); acl.c:266:7: note: when considering range: -0x80000000 <= value <= -1 at: if(acl_free(text) != 0) { acl.c:266:7: note: taking True path at: if(acl_free(text) != 0) { acl.c:267:9: note: reaching: Py_DECREF(ret); acl.c:267:9: note: found 1 similar trace(s) to this acl.c:248:50: note: graphical error report for function 'ACL_to_any_text' written out to 'build/temp.linux-x86_64-2.7/acl.c.ACL_to_any_text-refcount-errors.html' acl.c: In function 'ACL_applyto': acl.c:388:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "O|i" [enabled by default] argument 4 ("&type") had type "acl_type_t *" (pointing to 32 bits) but was expecting "int *" (pointing to 32 bits) for format code "i" acl.c:395:19: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyUnicodeUCS4_AsEncodedString acl.c: In function 'aclmodule_has_extended': acl.c:1497:19: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyUnicodeUCS4_AsEncodedString acl.c: In function 'Permset_new': acl.c:916:16: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyType_GenericNew acl.c: In function 'Permset_init': acl.c:931:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "O!" [enabled by default] argument 4 ("&parent") had type "struct Entry_Object * *" but was expecting ""struct PyObject * *"" (unfamiliar with PyTypeObject: 'Entry_Type') for format code "O!" acl.c: In function 'Permset_str': acl.c:963:45: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed acl.c: In function 'Permset_dealloc': acl.c:959:17: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyObject_Free acl.c: In function 'Entry_new': acl.c:654:14: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyType_GenericNew acl.c: In function 'Entry_init': acl.c:669:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "O!" [enabled by default] argument 4 ("&parent") had type "struct ACL_Object * *" but was expecting ""struct PyObject * *"" (unfamiliar with PyTypeObject: 'ACL_Type') for format code "O!" acl.c: In function 'Entry_str': acl.c:701:43: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed acl.c:748:1: warning: ob_refcnt of return value is 1 too low [enabled by default] acl.c:748:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) acl.c:748:1: note: due to object being referenced by: return value acl.c:748:1: note: but final ob_refcnt is N + 0 acl.c:745:25: note: result of PyString_Concat allocated at: PyBytes_ConcatAndDel(&format, kind); acl.c:708:7: note: when considering range: -0x80000000 <= value <= -2 at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:708:7: note: taking False path at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:712:24: note: reaching: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:712:7: note: taking True path at: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:713:34: note: reaching: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: when treating unknown void * from acl.c:713 as non-NULL at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: taking False path at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:717:19: note: reaching: qualifier = *(uid_t*)p; acl.c:723:32: note: when PyString_FromString() succeeds at: format = PyBytes_FromString("ACL entry for "); acl.c:724:7: note: taking False path at: if(format == NULL) acl.c:726:12: note: reaching: if(tag == ACL_UNDEFINED_TAG) { acl.c:726:7: note: when taking False path at: if(tag == ACL_UNDEFINED_TAG) { acl.c:728:19: note: reaching: } else if(tag == ACL_USER_OBJ) { acl.c:728:14: note: when taking False path at: } else if(tag == ACL_USER_OBJ) { acl.c:730:19: note: reaching: } else if(tag == ACL_GROUP_OBJ) { acl.c:730:14: note: when taking True path at: } else if(tag == ACL_GROUP_OBJ) { acl.c:731:14: note: reaching: kind = PyBytes_FromString("the group"); acl.c:731:14: note: when PyString_FromString() succeeds at: kind = PyBytes_FromString("the group"); acl.c:743:8: note: taking False path at: if (kind == NULL) acl.c:745:25: note: reaching: PyBytes_ConcatAndDel(&format, kind); acl.c:746:5: note: when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS) at: Py_DECREF(format); acl.c:746:5: note: ob_refcnt is now refs: 0 + N where N >= 0 acl.c:746:5: note: when taking True path at: Py_DECREF(format); acl.c:747:5: note: reaching: return format; acl.c:748:1: note: returning acl.c:748:1: note: found 10 similar trace(s) to this acl.c:748:1: warning: returning pointer to deallocated memory [enabled by default] acl.c:708:7: note: when considering range: -0x80000000 <= value <= -2 at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:708:7: note: taking False path at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:712:24: note: reaching: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:712:7: note: taking True path at: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:713:34: note: reaching: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: when treating unknown void * from acl.c:713 as non-NULL at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: taking False path at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:717:19: note: reaching: qualifier = *(uid_t*)p; acl.c:723:32: note: when PyString_FromString() succeeds at: format = PyBytes_FromString("ACL entry for "); acl.c:724:7: note: taking False path at: if(format == NULL) acl.c:726:12: note: reaching: if(tag == ACL_UNDEFINED_TAG) { acl.c:726:7: note: when taking False path at: if(tag == ACL_UNDEFINED_TAG) { acl.c:728:19: note: reaching: } else if(tag == ACL_USER_OBJ) { acl.c:728:14: note: when taking False path at: } else if(tag == ACL_USER_OBJ) { acl.c:730:19: note: reaching: } else if(tag == ACL_GROUP_OBJ) { acl.c:730:14: note: when taking True path at: } else if(tag == ACL_GROUP_OBJ) { acl.c:731:14: note: reaching: kind = PyBytes_FromString("the group"); acl.c:731:14: note: when PyString_FromString() succeeds at: kind = PyBytes_FromString("the group"); acl.c:743:8: note: taking False path at: if (kind == NULL) acl.c:745:25: note: reaching: PyBytes_ConcatAndDel(&format, kind); acl.c:746:5: note: when PyString_Concat() succeeds (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS) at: Py_DECREF(format); acl.c:746:5: note: when taking False path at: Py_DECREF(format); acl.c:746:5: note: reaching: Py_DECREF(format); acl.c:746:5: note: calling tp_dealloc on result of PyString_Concat allocated at acl.c:745 at: Py_DECREF(format); acl.c:747:5: note: reaching: return format; acl.c:748:1: note: returning acl.c:746:5: note: memory deallocated here acl.c:748:1: note: found 10 similar trace(s) to this acl.c:746:5: warning: dereferencing NULL (format.74->ob_refcnt) at acl.c:746 [enabled by default] acl.c:708:7: note: when considering range: -0x80000000 <= value <= -2 at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:708:7: note: taking False path at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:712:24: note: reaching: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:712:7: note: taking True path at: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:713:34: note: reaching: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: when treating unknown void * from acl.c:713 as non-NULL at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: taking False path at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:717:19: note: reaching: qualifier = *(uid_t*)p; acl.c:723:32: note: when PyString_FromString() succeeds at: format = PyBytes_FromString("ACL entry for "); acl.c:724:7: note: taking False path at: if(format == NULL) acl.c:726:12: note: reaching: if(tag == ACL_UNDEFINED_TAG) { acl.c:726:7: note: when taking False path at: if(tag == ACL_UNDEFINED_TAG) { acl.c:728:19: note: reaching: } else if(tag == ACL_USER_OBJ) { acl.c:728:14: note: when taking True path at: } else if(tag == ACL_USER_OBJ) { acl.c:729:14: note: reaching: kind = PyBytes_FromString("the owner"); acl.c:729:14: note: when PyString_FromString() succeeds at: kind = PyBytes_FromString("the owner"); acl.c:743:8: note: taking False path at: if (kind == NULL) acl.c:745:25: note: reaching: PyBytes_ConcatAndDel(&format, kind); acl.c:746:5: note: when PyString_Concat() fails (Py_DECREF() without deallocation on *LHS) (Py_DECREF() without deallocation on RHS) at: Py_DECREF(format); acl.c:746:5: note: found 7 similar trace(s) to this acl.c:748:1: warning: ob_refcnt of '*format' is 1 too high [enabled by default] acl.c:748:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) acl.c:748:1: note: but final ob_refcnt is N + 1 acl.c:723:32: note: PyStringObject allocated at: format = PyBytes_FromString("ACL entry for "); acl.c:708:7: note: when considering range: -0x80000000 <= value <= -2 at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:708:7: note: taking False path at: if(acl_get_tag_type(self->entry, &tag) == -1) { acl.c:712:24: note: reaching: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:712:7: note: taking True path at: if(tag == ACL_USER || tag == ACL_GROUP) { acl.c:713:34: note: reaching: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: when treating unknown void * from acl.c:713 as non-NULL at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:713:11: note: taking False path at: if((p = acl_get_qualifier(self->entry)) == NULL) { acl.c:717:19: note: reaching: qualifier = *(uid_t*)p; acl.c:723:32: note: when PyString_FromString() succeeds at: format = PyBytes_FromString("ACL entry for "); acl.c:723:32: note: ob_refcnt is now refs: 1 + N where N >= 0 acl.c:724:7: note: taking False path at: if(format == NULL) acl.c:726:12: note: reaching: if(tag == ACL_UNDEFINED_TAG) { acl.c:726:7: note: when taking False path at: if(tag == ACL_UNDEFINED_TAG) { acl.c:728:19: note: reaching: } else if(tag == ACL_USER_OBJ) { acl.c:728:14: note: when taking True path at: } else if(tag == ACL_USER_OBJ) { acl.c:729:14: note: reaching: kind = PyBytes_FromString("the owner"); acl.c:729:14: note: when PyString_FromString() fails at: kind = PyBytes_FromString("the owner"); acl.c:743:8: note: taking True path at: if (kind == NULL) acl.c:744:9: note: reaching: return NULL; acl.c:748:1: note: returning acl.c:748:1: note: found 1 similar trace(s) to this acl.c:701:43: note: graphical error report for function 'Entry_str' written out to 'build/temp.linux-x86_64-2.7/acl.c.Entry_str-refcount-errors.html' acl.c: In function 'Entry_dealloc': acl.c:697:17: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyObject_Free acl.c: In function 'ACL_init': acl.c:124:70: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed acl.c: In function 'ACL_iternext': acl.c:537:19: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyType_GenericNew acl.c: In function 'ACL_richcompare': acl.c:315:28: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyObject_IsInstance acl.c: In function 'ACL_str': acl.c:213:9: warning: dereferencing NULL (ret->ob_refcnt) at acl.c:213 [enabled by default] acl.c:208:7: note: when treating unknown char * from acl.c:207 as non-NULL at: if(text == NULL) { acl.c:208:7: note: taking False path at: if(text == NULL) { acl.c:211:9: note: reaching: ret = PyBytes_FromString(text); acl.c:211:9: note: when PyString_FromString() fails at: ret = PyBytes_FromString(text); acl.c:212:7: note: when considering range: -0x80000000 <= value <= -1 at: if(acl_free(text) != 0) { acl.c:212:7: note: taking True path at: if(acl_free(text) != 0) { acl.c:213:9: note: reaching: Py_DECREF(ret); acl.c:213:9: note: found 1 similar trace(s) to this acl.c:202:41: note: graphical error report for function 'ACL_str' written out to 'build/temp.linux-x86_64-2.7/acl.c.ACL_str-refcount-errors.html' acl.c: In function 'ACL_dealloc': acl.c:195:30: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: PyErr_WriteUnraisable error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.0htgps (%build) Bad exit status from /var/tmp/rpm-tmp.0htgps (%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/pylibacl.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/pylibacl.spec'] LEAVE do --> EXCEPTION RAISED