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-alsa.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-alsa.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-alsa-1.0.25-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-alsa.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-alsa.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Rlo5LH + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf pyalsa-1.0.25 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/pyalsa-1.0.25.tar.bz2 + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd pyalsa-1.0.25 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.O68Rtc + umask 022 + cd /builddir/build/BUILD + cd pyalsa-1.0.25 + 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/pyalsa copying pyalsa/__init__.py -> build/lib.linux-x86_64-2.7/pyalsa running build_ext building 'pyalsa.alsacard' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/pyalsa 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 pyalsa/alsacard.c -o build/temp.linux-x86_64-2.7/pyalsa/alsacard.o pyalsa/alsacard.c: In function 'initalsacard': pyalsa/alsacard.c:235:3: warning: ob_refcnt of '*module' is 1 too low [enabled by default] pyalsa/alsacard.c:235:3: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) pyalsa/alsacard.c:235:3: note: due to object being referenced by: module pyalsa/alsacard.c:235:3: note: but final ob_refcnt is N + 0 pyalsa/alsacard.c:233:11: note: borrowed reference returned by Py_InitModule4_64() allocated at: module = Py_InitModule3("alsacard", pyalsacardparse_methods, "libasound alsacard wrapper"); pyalsa/alsacard.c:233:11: note: when Py_InitModule4_64() succeeds at: module = Py_InitModule3("alsacard", pyalsacardparse_methods, "libasound alsacard wrapper"); pyalsa/alsacard.c:233:11: note: ob_refcnt is now refs: 0 + N where N >= 1 pyalsa/alsacard.c:233:9: note: '*module' is now referenced by 1 non-stack value(s): module pyalsa/alsacard.c:234:5: note: taking False path at: if (module == NULL) pyalsa/alsacard.c:237:20: note: reaching: if (PyErr_Occurred()) pyalsa/alsacard.c:237:20: note: PyErr_Occurred() at: if (PyErr_Occurred()) pyalsa/alsacard.c:237:5: note: taking False path at: if (PyErr_Occurred()) pyalsa/alsacard.c:235:3: note: reaching: return; pyalsa/alsacard.c:235:3: note: returning at: return; pyalsa/alsacard.c:232:1: note: graphical error report for function 'initalsacard' written out to 'build/temp.linux-x86_64-2.7/pyalsa/alsacard.c.initalsacard-refcount-errors.html' pyalsa/alsacard.c: In function 'device_name_hint': pyalsa/alsacard.c:173:34: warning: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "is" [enabled by default] argument 6 ("&iface") had type "char * *" but was expecting "const char * *" for format code "s" pyalsa/alsacard.c:164:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed pyalsa/alsacard.c:213:1: warning: ob_refcnt of '*d' is 1 too high [enabled by default] pyalsa/alsacard.c:213:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) pyalsa/alsacard.c:213:1: note: due to object being referenced by: PyListObject.ob_item[0] pyalsa/alsacard.c:213:1: note: but final ob_refcnt is N + 2 pyalsa/alsacard.c:184:5: note: PyDictObject allocated at: d = PyDict_New(); pyalsa/alsacard.c:173:34: note: when PyArg_ParseTupleAndKeywords() succeeds at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "is", kwlist, &card, &iface)) pyalsa/alsacard.c:173:5: note: taking False path at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "is", kwlist, &card, &iface)) pyalsa/alsacard.c:176:28: note: reaching: res = snd_device_name_hint(card, iface, &hints); pyalsa/alsacard.c:177:5: note: when considering value == (int)0 from pyalsa/alsacard.c:176 at: if (res) pyalsa/alsacard.c:177:5: note: taking False path at: if (res) pyalsa/alsacard.c:180:4: note: reaching: l = PyList_New(0); pyalsa/alsacard.c:180:4: note: when PyList_New() succeeds at: l = PyList_New(0); pyalsa/alsacard.c:183:9: note: when treating unknown void * * * from pyalsa/alsacard.c:176 as non-NULL at: while (*hint) { pyalsa/alsacard.c:183:8: note: when treating unknown char * from pyalsa/alsacard.c:183 as non-NULL at: while (*hint) { pyalsa/alsacard.c:183:8: note: taking True path at: while (*hint) { pyalsa/alsacard.c:184:5: note: reaching: d = PyDict_New(); pyalsa/alsacard.c:184:5: note: when PyDict_New() succeeds at: d = PyDict_New(); pyalsa/alsacard.c:184:5: note: ob_refcnt is now refs: 1 + N where N >= 0 pyalsa/alsacard.c:185:6: note: taking False path at: if (d == NULL) pyalsa/alsacard.c:187:6: note: reaching: id = ids; pyalsa/alsacard.c:188:9: note: when treating unknown char * from pyalsa/alsacard.c:188 as non-NULL at: while (*id) { pyalsa/alsacard.c:188:9: note: taking True path at: while (*id) { pyalsa/alsacard.c:189:34: note: reaching: str = snd_device_name_get_hint(*hint, *id); pyalsa/alsacard.c:190:7: note: when treating unknown char * from pyalsa/alsacard.c:189 as NULL at: if (str == NULL) pyalsa/alsacard.c:190:7: note: taking True path at: if (str == NULL) pyalsa/alsacard.c:200:20: note: reaching: if (PyList_Append(l, d)) pyalsa/alsacard.c:200:20: note: when PyList_Append() succeeds at: if (PyList_Append(l, d)) pyalsa/alsacard.c:200:20: note: ob_refcnt is now refs: 2 + N where N >= 0 pyalsa/alsacard.c:200:20: note: '*d' is now referenced by 1 non-stack value(s): PyListObject.ob_item[0] pyalsa/alsacard.c:200:6: note: taking False path at: if (PyList_Append(l, d)) pyalsa/alsacard.c:202:7: note: reaching: hint++; pyalsa/alsacard.c:183:8: note: when treating unknown char * from pyalsa/alsacard.c:183 as NULL at: while (*hint) { pyalsa/alsacard.c:183:8: note: taking False path at: while (*hint) { pyalsa/alsacard.c:205:27: note: reaching: snd_device_name_free_hint(hints); pyalsa/alsacard.c:213:1: note: returning pyalsa/alsacard.c:213:1: note: found 1 similar trace(s) to this pyalsa/alsacard.c:213:1: warning: ob_refcnt of '*v' is 1 too high [enabled by default] pyalsa/alsacard.c:213:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) pyalsa/alsacard.c:213:1: note: but final ob_refcnt is N + 1 pyalsa/alsacard.c:192:6: note: PyStringObject allocated at: v = PyString_FromString(str); pyalsa/alsacard.c:173:34: note: when PyArg_ParseTupleAndKeywords() succeeds at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "is", kwlist, &card, &iface)) pyalsa/alsacard.c:173:5: note: taking False path at: if (!PyArg_ParseTupleAndKeywords(args, kwds, "is", kwlist, &card, &iface)) pyalsa/alsacard.c:176:28: note: reaching: res = snd_device_name_hint(card, iface, &hints); pyalsa/alsacard.c:177:5: note: when considering value == (int)0 from pyalsa/alsacard.c:176 at: if (res) pyalsa/alsacard.c:177:5: note: taking False path at: if (res) pyalsa/alsacard.c:180:4: note: reaching: l = PyList_New(0); pyalsa/alsacard.c:180:4: note: when PyList_New() succeeds at: l = PyList_New(0); pyalsa/alsacard.c:183:9: note: when treating unknown void * * * from pyalsa/alsacard.c:176 as non-NULL at: while (*hint) { pyalsa/alsacard.c:183:8: note: when treating unknown char * from pyalsa/alsacard.c:183 as non-NULL at: while (*hint) { pyalsa/alsacard.c:183:8: note: taking True path at: while (*hint) { pyalsa/alsacard.c:184:5: note: reaching: d = PyDict_New(); pyalsa/alsacard.c:184:5: note: when PyDict_New() succeeds at: d = PyDict_New(); pyalsa/alsacard.c:185:6: note: taking False path at: if (d == NULL) pyalsa/alsacard.c:187:6: note: reaching: id = ids; pyalsa/alsacard.c:188:9: note: when treating unknown char * from pyalsa/alsacard.c:188 as non-NULL at: while (*id) { pyalsa/alsacard.c:188:9: note: taking True path at: while (*id) { pyalsa/alsacard.c:189:34: note: reaching: str = snd_device_name_get_hint(*hint, *id); pyalsa/alsacard.c:190:7: note: when treating unknown char * from pyalsa/alsacard.c:189 as non-NULL at: if (str == NULL) pyalsa/alsacard.c:190:7: note: taking False path at: if (str == NULL) pyalsa/alsacard.c:192:6: note: reaching: v = PyString_FromString(str); pyalsa/alsacard.c:192:6: note: when PyString_FromString() succeeds at: v = PyString_FromString(str); pyalsa/alsacard.c:192:6: note: ob_refcnt is now refs: 1 + N where N >= 0 pyalsa/alsacard.c:194:7: note: taking False path at: if (v == NULL) pyalsa/alsacard.c:196:28: note: reaching: if (PyDict_SetItemString(d, *id, v)) pyalsa/alsacard.c:196:28: note: when treating unknown char * from pyalsa/alsacard.c:196 as non-NULL at: if (PyDict_SetItemString(d, *id, v)) pyalsa/alsacard.c:196:28: note: when PyDict_SetItemString() succeeds at: if (PyDict_SetItemString(d, *id, v)) pyalsa/alsacard.c:196:28: note: ob_refcnt is now refs: 1 + N where N >= 1 pyalsa/alsacard.c:196:7: note: taking False path at: if (PyDict_SetItemString(d, *id, v)) pyalsa/alsacard.c:198:6: note: reaching: id++; pyalsa/alsacard.c:188:9: note: when treating unknown char * from pyalsa/alsacard.c:188 as NULL at: while (*id) { pyalsa/alsacard.c:188:9: note: taking False path at: while (*id) { pyalsa/alsacard.c:200:20: note: reaching: if (PyList_Append(l, d)) pyalsa/alsacard.c:200:20: note: when PyList_Append() succeeds at: if (PyList_Append(l, d)) pyalsa/alsacard.c:200:6: note: taking False path at: if (PyList_Append(l, d)) pyalsa/alsacard.c:202:7: note: reaching: hint++; pyalsa/alsacard.c:183:8: note: when treating unknown char * from pyalsa/alsacard.c:183 as NULL at: while (*hint) { pyalsa/alsacard.c:183:8: note: taking False path at: while (*hint) { pyalsa/alsacard.c:205:27: note: reaching: snd_device_name_free_hint(hints); pyalsa/alsacard.c:213:1: note: returning pyalsa/alsacard.c:213:1: note: found 8 similar trace(s) to this pyalsa/alsacard.c:164:1: note: graphical error report for function 'device_name_hint' written out to 'build/temp.linux-x86_64-2.7/pyalsa/alsacard.c.device_name_hint-refcount-errors.html' pyalsa/alsacard.c: In function 'card_get_index': pyalsa/alsacard.c:109:34: warning: Mismatching type in call to PyArg_ParseTupleAndKeywords with format code "s" [enabled by default] argument 5 ("&card") had type "char * *" but was expecting "const char * *" for format code "s" pyalsa/alsacard.c: In function 'card_list': pyalsa/alsacard.c:93: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 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: _PyTuple_Resize error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.O68Rtc (%build) Bad exit status from /var/tmp/rpm-tmp.O68Rtc (%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-alsa.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-alsa.spec'] LEAVE do --> EXCEPTION RAISED