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-cups.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-cups.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-cups-1.9.60-1.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-cups.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-cups.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6p6wUf + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf pycups-1.9.60 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/pycups-1.9.60.tar.bz2 + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd pycups-1.9.60 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pgjOTM + umask 022 + cd /builddir/build/BUILD + cd pycups-1.9.60 + LANG=C + export LANG + unset DISPLAY + make '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 -fno-strict-aliasing' python setup.py build running build running build_ext building 'cups' 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 -fno-strict-aliasing -fPIC -DVERSION="1.9.60" -I/usr/include/python2.7 -c cupsmodule.c -o build/temp.linux-x86_64-2.7/cupsmodule.o cupsmodule.c: In function 'initcups': cupsmodule.c:568:22: 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 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 2165, in impl_PyModule_AddObject s_success.cpython.steal_reference(v_value.region) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 519, in steal_reference value = self.state.value_for_region[ob_refcnt] KeyError: Region('cups_ConnectionType.ob_refcnt') cupsmodule.c: In function 'cups_require': cupsmodule.c:464:1: warning: ob_refcnt of return value is 1 too low [enabled by default] cupsmodule.c:464:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) cupsmodule.c:464:1: note: due to object being referenced by: return value cupsmodule.c:464:1: note: but final ob_refcnt is N + 0 cupsmodule.c:433:25: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple (args, "s", &required)) cupsmodule.c:433:6: note: taking False path at: if (!PyArg_ParseTuple (args, "s", &required)) cupsmodule.c:436:8: note: reaching: pver = version; cupsmodule.c:439:9: note: when taking True path at: while (preq != end) cupsmodule.c:441:10: note: reaching: preq = end; cupsmodule.c:442:15: note: when treating unknown char * * from cupsmodule.c:438 as non-NULL at: if (*preq == '.') cupsmodule.c:442:8: note: when considering range: -128 <= value <= 45 at: if (*preq == '.') cupsmodule.c:442:8: note: taking False path at: if (*preq == '.') cupsmodule.c:445:10: note: reaching: nver = strtoul (pver, &end, 0); cupsmodule.c:446:8: note: when taking False path at: if (pver == end) cupsmodule.c:449:12: note: reaching: pver = end; cupsmodule.c:450:17: note: when treating unknown char * * from cupsmodule.c:445 as non-NULL at: if (*pver == '.') cupsmodule.c:450:10: note: when considering range: -128 <= value <= 45 at: if (*pver == '.') cupsmodule.c:450:10: note: taking False path at: if (*pver == '.') cupsmodule.c:454:8: note: reaching: if (nver < nreq) cupsmodule.c:454:8: note: when taking False path at: if (nver < nreq) cupsmodule.c:457:10: note: reaching: nreq = strtoul (preq, &end, 0); cupsmodule.c:439:9: note: when taking False path at: while (preq != end) cupsmodule.c:460:3: note: reaching: return Py_None; cupsmodule.c:439:9: note: ob_refcnt is now refs: 0 + N where N >= 1 cupsmodule.c:464:1: note: returning cupsmodule.c:464:1: note: consider using "Py_RETURN_NONE;" cupsmodule.c:464:1: note: found 9 similar trace(s) to this cupsmodule.c:426:1: note: graphical error report for function 'cups_require' written out to 'build/temp.linux-x86_64-2.7/cupsmodule.c.cups_require-refcount-errors.html' cupsmodule.c: In function 'cups_setPasswordCB2': cupsmodule.c:369:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed cupsmodule.c: In function 'cups_setPasswordCB': cupsmodule.c:333:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed cupsmodule.c: In function 'cups_getEncryption': cupsmodule.c:328:24: warning: Mismatching type in call to Py_BuildValue with format code "i" [enabled by default] argument 2 ("D.18454") had type "http_encryption_t" but was expecting "int" for format code "i" cupsmodule.c: In function 'cups_modelSort': cupsmodule.c:206:5: 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 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_FromObject cupsmodule.c: In function 'do_model_compare': cupsmodule.c:80:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed error: command 'gcc' failed with exit status 1 make: *** [cups.so] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.pgjOTM (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.pgjOTM (%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-cups.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-cups.spec'] LEAVE do --> EXCEPTION RAISED