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-psutil.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-psutil.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-psutil-0.4.1-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-psutil.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-psutil.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wydg6I + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf psutil-0.4.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/psutil-0.4.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd psutil-0.4.1 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/__init__.py + touch -r psutil/__init__.py.orig psutil/__init__.py + rm psutil/__init__.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/_common.py + touch -r psutil/_common.py.orig psutil/_common.py + rm psutil/_common.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/_compat.py + touch -r psutil/_compat.py.orig psutil/_compat.py + rm psutil/_compat.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/_psbsd.py + touch -r psutil/_psbsd.py.orig psutil/_psbsd.py + rm psutil/_psbsd.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/_pslinux.py + touch -r psutil/_pslinux.py.orig psutil/_pslinux.py + rm psutil/_pslinux.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/_psmswindows.py + touch -r psutil/_psmswindows.py.orig psutil/_psmswindows.py + rm psutil/_psmswindows.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/_psosx.py + touch -r psutil/_psosx.py.orig psutil/_psosx.py + rm psutil/_psosx.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/_psposix.py + touch -r psutil/_psposix.py.orig psutil/_psposix.py + rm psutil/_psposix.py.orig + for file in 'psutil/*.py' + sed -i.orig -e 1d psutil/error.py + touch -r psutil/error.py.orig psutil/error.py + rm psutil/error.py.orig + chmod a-x docs/class_diagram.png + rm -rf /builddir/build/BUILD/python3-python-psutil-0.4.1-2.fc16 + cp -a . /builddir/build/BUILD/python3-python-psutil-0.4.1-2.fc16 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ztdrgU + umask 022 + cd /builddir/build/BUILD + cd psutil-0.4.1 + 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_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/psutil copying psutil/_psbsd.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_common.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/__init__.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psmswindows.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_pslinux.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psosx.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/error.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_compat.py -> build/lib.linux-x86_64-2.7/psutil copying psutil/_psposix.py -> build/lib.linux-x86_64-2.7/psutil running build_ext building '_psutil_linux' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/psutil 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 -I/usr/include/python2.7 -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o psutil/_psutil_linux.c: In function 'get_disk_partitions': psutil/_psutil_linux.c:131:1: warning: ob_refcnt of '*py_retlist' is 1 too high [enabled by default] psutil/_psutil_linux.c:131:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) psutil/_psutil_linux.c:131:1: note: but final ob_refcnt is N + 1 psutil/_psutil_linux.c:106:15: note: PyListObject allocated at: PyObject* py_retlist = PyList_New(0); psutil/_psutil_linux.c:106:15: note: when PyList_New() succeeds at: PyObject* py_retlist = PyList_New(0); psutil/_psutil_linux.c:106:15: note: ob_refcnt is now refs: 1 + N where N >= 0 psutil/_psutil_linux.c:110:5: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS psutil/_psutil_linux.c:112:5: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS psutil/_psutil_linux.c:113:8: note: when treating unknown struct FILE * from psutil/_psutil_linux.c:111 as NULL at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:113:8: note: taking True path at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:114:34: note: reaching: return PyErr_SetFromErrno(PyExc_OSError); psutil/_psutil_linux.c:114:9: note: PyErr_SetFromErrno() at: return PyErr_SetFromErrno(PyExc_OSError); psutil/_psutil_linux.c:131:1: note: returning psutil/_psutil_linux.c:125:22: warning: calling PyList_Append with NULL as argument 1 (py_retlist) at psutil/_psutil_linux.c:125 [enabled by default] psutil/_psutil_linux.c:106:15: note: when PyList_New() fails at: PyObject* py_retlist = PyList_New(0); psutil/_psutil_linux.c:110:5: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS psutil/_psutil_linux.c:112:5: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS psutil/_psutil_linux.c:113:8: note: when treating unknown struct FILE * from psutil/_psutil_linux.c:111 as non-NULL at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:113:8: note: taking False path at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:117:11: note: reaching: while ((entry = getmntent(file))) { psutil/_psutil_linux.c:117:11: note: when treating unknown struct mntent * from psutil/_psutil_linux.c:117 as non-NULL at: while ((entry = getmntent(file))) { psutil/_psutil_linux.c:117:11: note: taking True path at: while ((entry = getmntent(file))) { psutil/_psutil_linux.c:118:12: note: reaching: if (entry == NULL) { psutil/_psutil_linux.c:118:12: note: taking False path at: if (entry == NULL) { psutil/_psutil_linux.c:122:33: note: reaching: py_tuple = Py_BuildValue("(sss)", entry->mnt_fsname, // device psutil/_psutil_linux.c:122:18: note: when Py_BuildValue() succeeds at: py_tuple = Py_BuildValue("(sss)", entry->mnt_fsname, // device psutil/_psutil_linux.c:125:22: note: PyList_Append() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type psutil/_psutil_linux.c:125:22: note: found 1 similar trace(s) to this psutil/_psutil_linux.c:103:1: note: graphical error report for function 'get_disk_partitions' written out to 'build/temp.linux-x86_64-2.7/psutil/_psutil_linux.c.get_disk_partitions-refcount-errors.html' gcc -pthread -shared -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 build/temp.linux-x86_64-2.7/psutil/_psutil_linux.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/_psutil_linux.so building '_psutil_posix' extension 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 -I/usr/include/python2.7 -c psutil/_psutil_posix.c -o build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o gcc -pthread -shared -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 build/temp.linux-x86_64-2.7/psutil/_psutil_posix.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/_psutil_posix.so + pushd /builddir/build/BUILD/python3-python-psutil-0.4.1-2.fc16 ~/build/BUILD/python3-python-psutil-0.4.1-2.fc16 ~/build/BUILD/psutil-0.4.1 + 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/python3 setup.py build running build running build_py creating build creating build/lib.linux-x86_64-3.2 creating build/lib.linux-x86_64-3.2/psutil copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/_common.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/__init__.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/_psmswindows.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/_psosx.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/error.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/_compat.py -> build/lib.linux-x86_64-3.2/psutil copying psutil/_psposix.py -> build/lib.linux-x86_64-3.2/psutil Skipping implicit fixer: buffer Skipping implicit fixer: idioms Skipping implicit fixer: set_literal Skipping implicit fixer: ws_comma running build_ext building '_psutil_linux' extension creating build/temp.linux-x86_64-3.2 creating build/temp.linux-x86_64-3.2/psutil gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -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 -I/usr/include/python3.2mu -c psutil/_psutil_linux.c -o build/temp.linux-x86_64-3.2/psutil/_psutil_linux.o psutil/_psutil_linux.c: In function 'PyInit__psutil_linux': psutil/_psutil_linux.c:221:15: 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: PyModule_Create2 psutil/_psutil_linux.c: In function 'get_disk_partitions': psutil/_psutil_linux.c:131:1: warning: ob_refcnt of '*py_retlist' is 1 too high [enabled by default] psutil/_psutil_linux.c:131:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) psutil/_psutil_linux.c:131:1: note: but final ob_refcnt is N + 1 psutil/_psutil_linux.c:106:15: note: PyListObject allocated at: PyObject* py_retlist = PyList_New(0); psutil/_psutil_linux.c:106:15: note: when PyList_New() succeeds at: PyObject* py_retlist = PyList_New(0); psutil/_psutil_linux.c:106:15: note: ob_refcnt is now refs: 1 + N where N >= 0 psutil/_psutil_linux.c:110:5: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS psutil/_psutil_linux.c:112:5: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS psutil/_psutil_linux.c:113:8: note: when treating unknown struct FILE * from psutil/_psutil_linux.c:111 as NULL at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:113:8: note: taking True path at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:114:34: note: reaching: return PyErr_SetFromErrno(PyExc_OSError); psutil/_psutil_linux.c:114:9: note: PyErr_SetFromErrno() at: return PyErr_SetFromErrno(PyExc_OSError); psutil/_psutil_linux.c:131:1: note: returning psutil/_psutil_linux.c:125:22: warning: calling PyList_Append with NULL as argument 1 (py_retlist) at psutil/_psutil_linux.c:125 [enabled by default] psutil/_psutil_linux.c:106:15: note: when PyList_New() fails at: PyObject* py_retlist = PyList_New(0); psutil/_psutil_linux.c:110:5: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS psutil/_psutil_linux.c:112:5: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS psutil/_psutil_linux.c:113:8: note: when treating unknown struct FILE * from psutil/_psutil_linux.c:111 as non-NULL at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:113:8: note: taking False path at: if ((file == 0) || (file == NULL)) { psutil/_psutil_linux.c:117:11: note: reaching: while ((entry = getmntent(file))) { psutil/_psutil_linux.c:117:11: note: when treating unknown struct mntent * from psutil/_psutil_linux.c:117 as non-NULL at: while ((entry = getmntent(file))) { psutil/_psutil_linux.c:117:11: note: taking True path at: while ((entry = getmntent(file))) { psutil/_psutil_linux.c:118:12: note: reaching: if (entry == NULL) { psutil/_psutil_linux.c:118:12: note: taking False path at: if (entry == NULL) { psutil/_psutil_linux.c:122:33: note: reaching: py_tuple = Py_BuildValue("(sss)", entry->mnt_fsname, // device psutil/_psutil_linux.c:122:18: note: when Py_BuildValue() succeeds at: py_tuple = Py_BuildValue("(sss)", entry->mnt_fsname, // device psutil/_psutil_linux.c:125:22: note: PyList_Append() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type psutil/_psutil_linux.c:125:22: note: found 1 similar trace(s) to this psutil/_psutil_linux.c:103:1: note: graphical error report for function 'get_disk_partitions' written out to 'build/temp.linux-x86_64-3.2/psutil/_psutil_linux.c.get_disk_partitions-refcount-errors.html' psutil/_psutil_linux.c: In function 'psutil_linux_clear': psutil/_psutil_linux.c:192: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 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: PyModule_GetState psutil/_psutil_linux.c: In function 'psutil_linux_traverse': psutil/_psutil_linux.c:186: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 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: PyModule_GetState error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.ztdrgU (%build) Bad exit status from /var/tmp/rpm-tmp.ztdrgU (%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/python-psutil.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-psutil.spec'] LEAVE do --> EXCEPTION RAISED