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-virtkey.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-virtkey.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-virtkey-0.50-11.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-virtkey.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-virtkey.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.w24Jm3 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf python-virtkey-0.50 + /bin/mkdir -p python-virtkey-0.50 + cd python-virtkey-0.50 + /usr/bin/gzip -dc /builddir/build/SOURCES/python-virtkey-0.50.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/gzip -dc /builddir/build/SOURCES/python-virtkey-0.50.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (virtkey-gdk-pixbuf-headers.patch):' Patch #0 (virtkey-gdk-pixbuf-headers.patch): + /bin/cat /builddir/build/SOURCES/virtkey-gdk-pixbuf-headers.patch + /usr/bin/patch -s -p1 --fuzz=0 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DyHIA9 + umask 022 + cd /builddir/build/BUILD + cd python-virtkey-0.50 + 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 'virtkey' 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 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/python2.7 -c python-virtkey.c -o build/temp.linux-x86_64-2.7/python-virtkey.o python-virtkey.c: In function 'initvirtkey': python-virtkey.c:951:25: warning: calling PyDict_SetItemString with NULL as argument 3 (virtkey_error.1) at python-virtkey.c:951 [enabled by default] python-virtkey.c:941:7: note: when Py_InitModule4_64() succeeds at: m = Py_InitModule("virtkey", methods); python-virtkey.c:947:39: note: when PyErr_NewException() fails at: virtkey_error = PyErr_NewException("virtkey.error", NULL, NULL); python-virtkey.c:951:25: note: found 1 similar trace(s) to this python-virtkey.c:938:1: note: graphical error report for function 'initvirtkey' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.initvirtkey-refcount-errors.html' python-virtkey.c: In function 'virtkey_new': python-virtkey.c:925:5: warning: ob_refcnt of return value is 1 too high [enabled by default] python-virtkey.c:925:5: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) python-virtkey.c:925:5: note: due to object being referenced by: return value python-virtkey.c:925:5: note: but final ob_refcnt is N + 2 python-virtkey.c:920:12: note: new ref from (unknown) virtkey_NEW allocated at: result = virtkey_NEW(); python-virtkey.c:920:12: note: when virtkey_NEW() succeeds at: result = virtkey_NEW(); python-virtkey.c:920:12: note: ob_refcnt is now refs: 1 + N where N >= 0 python-virtkey.c:923:8: note: taking True path at: if (result != NULL) python-virtkey.c:924:9: note: reaching: Py_INCREF(result); python-virtkey.c:924:9: note: ob_refcnt is now refs: 2 + N where N >= 0 python-virtkey.c:925:5: note: returning at: return result; python-virtkey.c:918:1: note: graphical error report for function 'virtkey_new' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.virtkey_new-refcount-errors.html' python-virtkey.c: In function 'virtkey_NEW': python-virtkey.c:40:13: 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: PyObject_Malloc python-virtkey.c: In function 'virtkey_GetAttr': python-virtkey.c:890: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: Py_FindMethod python-virtkey.c: In function 'virtkey_get_labels_from_keycode': python-virtkey.c:684:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "i" [enabled by default] argument 3 ("&keycode") had type "long int *" (pointing to 64 bits) but was expecting "int *" (pointing to 32 bits) for format code "i" python-virtkey.c: In function 'virtkey_get_labels_from_keycode_internal': python-virtkey.c:430:28: warning: calling PyTuple_SetItem with NULL as argument 1 (labelTuple) at python-virtkey.c:430 [enabled by default] python-virtkey.c:424:16: note: when PyTuple_New() fails at: PyObject * labelTuple = PyTuple_New(5); python-virtkey.c:426:5: note: taking True path at: for(m = 4; m >= 0; --m) python-virtkey.c:428:69: note: reaching: if (XkbTranslateKeyCode (cvirt->kbd, (KeyCode) keycode, mods[m], python-virtkey.c:428:12: note: when considering range: -0x80000000 <= value <= -1 at: if (XkbTranslateKeyCode (cvirt->kbd, (KeyCode) keycode, mods[m], python-virtkey.c:428:12: note: taking True path at: if (XkbTranslateKeyCode (cvirt->kbd, (KeyCode) keycode, mods[m], python-virtkey.c:430:28: note: reaching: PyTuple_SetItem(labelTuple,m,get_label(keysym)); python-virtkey.c:430:28: note: when get_label() succeeds at: PyTuple_SetItem(labelTuple,m,get_label(keysym)); python-virtkey.c:430:28: note: PyTuple_SetItem() invokes Py_TYPE() on the pointer via the PyTuple_Check() macro, thus accessing (NULL)->ob_type python-virtkey.c:430:28: note: found 3 similar trace(s) to this python-virtkey.c:433:28: warning: calling PyTuple_SetItem with NULL as argument 1 (labelTuple) at python-virtkey.c:433 [enabled by default] python-virtkey.c:424:16: note: when PyTuple_New() fails at: PyObject * labelTuple = PyTuple_New(5); python-virtkey.c:426:5: note: taking True path at: for(m = 4; m >= 0; --m) python-virtkey.c:428:69: note: reaching: if (XkbTranslateKeyCode (cvirt->kbd, (KeyCode) keycode, mods[m], python-virtkey.c:428:12: note: when considering value == (int)0 from python-virtkey.c:428 at: if (XkbTranslateKeyCode (cvirt->kbd, (KeyCode) keycode, mods[m], python-virtkey.c:428:12: note: taking False path at: if (XkbTranslateKeyCode (cvirt->kbd, (KeyCode) keycode, mods[m], python-virtkey.c:433:28: note: reaching: PyTuple_SetItem(labelTuple,m,PyString_FromString("")); python-virtkey.c:433:28: note: when PyString_FromString() succeeds at: PyTuple_SetItem(labelTuple,m,PyString_FromString("")); python-virtkey.c:433:28: note: PyTuple_SetItem() invokes Py_TYPE() on the pointer via the PyTuple_Check() macro, thus accessing (NULL)->ob_type python-virtkey.c:433:28: note: found 1 similar trace(s) to this python-virtkey.c:419:1: note: graphical error report for function 'virtkey_get_labels_from_keycode_internal' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.virtkey_get_labels_from_keycode_internal-refcount-errors.html' python-virtkey.c: In function 'get_label': python-virtkey.c:245:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed python-virtkey.c: In function 'virtkey_get_layouts': python-virtkey.c:833:9: warning: dereferencing NULL (MEM[(struct PyTupleObject *)tuple].ob_item) at python-virtkey.c:829 [enabled by default] python-virtkey.c:827:45: note: when treating unknown struct _XkbComponentList * from python-virtkey.c:824 as non-NULL at: PyObject *tuple = PyTuple_New(components->num_keymaps); python-virtkey.c:827:15: note: when PyTuple_New() fails at: PyObject *tuple = PyTuple_New(components->num_keymaps); python-virtkey.c:829:5: note: when considering range: 1 <= value <= 0x7fffffff at: for(; inum_keymaps; i++){ python-virtkey.c:829:5: note: taking True path at: for(; inum_keymaps; i++){ python-virtkey.c:830:22: note: reaching: char *name = strdup(components->keymaps[i].name); python-virtkey.c:830:22: note: when treating unknown struct _XkbComponentName * from python-virtkey.c:830 as non-NULL at: char *name = strdup(components->keymaps[i].name); python-virtkey.c:833:9: note: when treating unknown char * from python-virtkey.c:830 as non-NULL at: PyTuple_SET_ITEM(tuple, i, PyString_FromString(name)); python-virtkey.c:833:9: note: when PyString_FromString() succeeds at: PyTuple_SET_ITEM(tuple, i, PyString_FromString(name)); python-virtkey.c:833:9: note: found 1 similar trace(s) to this python-virtkey.c:812:1: note: graphical error report for function 'virtkey_get_layouts' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.virtkey_get_layouts-refcount-errors.html' python-virtkey.c: In function 'virtkey_layout_get_section_info': python-virtkey.c:543:25: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&requestedSection") had type "char * *" but was expecting "const char * *" for format code "s" python-virtkey.c:582:1: warning: ob_refcnt of PyIntObject is 1 too high [enabled by default] python-virtkey.c:582:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) python-virtkey.c:582:1: note: but final ob_refcnt is N + 1 python-virtkey.c:581:24: note: PyIntObject allocated at: return PyTuple_Pack(2,PyInt_FromLong(0),PyInt_FromLong(0)); python-virtkey.c:543:25: note: when PyArg_ParseTuple() succeeds at: if (PyArg_ParseTuple(args, "s", &requestedSection)){ python-virtkey.c:543:8: note: taking True path at: if (PyArg_ParseTuple(args, "s", &requestedSection)){ python-virtkey.c:546:19: note: reaching: virtkey * cvirt = (virtkey *)self; python-virtkey.c:554:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:554 as non-NULL at: geom = cvirt->kbd->geom; python-virtkey.c:557:29: note: when treating unknown struct _XkbGeometry * from python-virtkey.c:554 as non-NULL at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:557:9: note: when considering value == (short unsigned int)0 from python-virtkey.c:557 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:557:9: note: taking False path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:581:24: note: reaching: return PyTuple_Pack(2,PyInt_FromLong(0),PyInt_FromLong(0)); python-virtkey.c:581:24: note: when PyInt_FromLong() succeeds at: return PyTuple_Pack(2,PyInt_FromLong(0),PyInt_FromLong(0)); python-virtkey.c:581:24: note: ob_refcnt is now refs: 1 + N where N >= 0 python-virtkey.c:581:24: note: when PyInt_FromLong() succeeds at: return PyTuple_Pack(2,PyInt_FromLong(0),PyInt_FromLong(0)); python-virtkey.c:581:5: note: when PyTuple_Pack() succeeds at: return PyTuple_Pack(2,PyInt_FromLong(0),PyInt_FromLong(0)); python-virtkey.c:582:1: note: returning python-virtkey.c:582:1: note: found 15 similar trace(s) to this python-virtkey.c:568:29: warning: calling PyTuple_Pack with NULL as argument 3 (height) at python-virtkey.c:568 [enabled by default] python-virtkey.c:543:25: note: when PyArg_ParseTuple() succeeds at: if (PyArg_ParseTuple(args, "s", &requestedSection)){ python-virtkey.c:543:8: note: taking True path at: if (PyArg_ParseTuple(args, "s", &requestedSection)){ python-virtkey.c:546:19: note: reaching: virtkey * cvirt = (virtkey *)self; python-virtkey.c:554:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:554 as non-NULL at: geom = cvirt->kbd->geom; python-virtkey.c:557:29: note: when treating unknown struct _XkbGeometry * from python-virtkey.c:554 as non-NULL at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:557:9: note: when considering range: 1 <= value <= 65535 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:557:9: note: taking True path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:559:42: note: reaching: XkbSectionPtr section = &geom->sections[i]; python-virtkey.c:560:42: note: when treating unknown struct _XkbSection * from python-virtkey.c:559 as non-NULL at: sectionString = XGetAtomName (cvirt->display, section->name); python-virtkey.c:561:16: note: when considering value == (int)0 from python-virtkey.c:561 at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:561:16: note: taking True path at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:563:59: note: reaching: PyObject * width = PyInt_FromLong(section->width/10); python-virtkey.c:563:29: note: when PyInt_FromLong() succeeds at: PyObject * width = PyInt_FromLong(section->width/10); python-virtkey.c:564:29: note: when PyInt_FromLong() fails at: PyObject * height = PyInt_FromLong(section->height/10); python-virtkey.c:568:29: note: PyTuple_Pack() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt python-virtkey.c:568:29: warning: calling PyTuple_Pack with NULL as argument 2 (width) at python-virtkey.c:568 [enabled by default] python-virtkey.c:543:25: note: when PyArg_ParseTuple() succeeds at: if (PyArg_ParseTuple(args, "s", &requestedSection)){ python-virtkey.c:543:8: note: taking True path at: if (PyArg_ParseTuple(args, "s", &requestedSection)){ python-virtkey.c:546:19: note: reaching: virtkey * cvirt = (virtkey *)self; python-virtkey.c:554:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:554 as non-NULL at: geom = cvirt->kbd->geom; python-virtkey.c:557:29: note: when treating unknown struct _XkbGeometry * from python-virtkey.c:554 as non-NULL at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:557:9: note: when considering range: 1 <= value <= 65535 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:557:9: note: taking True path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:559:42: note: reaching: XkbSectionPtr section = &geom->sections[i]; python-virtkey.c:560:42: note: when treating unknown struct _XkbSection * from python-virtkey.c:559 as non-NULL at: sectionString = XGetAtomName (cvirt->display, section->name); python-virtkey.c:561:16: note: when considering value == (int)0 from python-virtkey.c:561 at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:561:16: note: taking True path at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:563:59: note: reaching: PyObject * width = PyInt_FromLong(section->width/10); python-virtkey.c:563:29: note: when PyInt_FromLong() fails at: PyObject * width = PyInt_FromLong(section->width/10); python-virtkey.c:564:29: note: when PyInt_FromLong() succeeds at: PyObject * height = PyInt_FromLong(section->height/10); python-virtkey.c:568:29: note: PyTuple_Pack() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt python-virtkey.c:568:29: note: found 1 similar trace(s) to this python-virtkey.c:541:1: note: graphical error report for function 'virtkey_layout_get_section_info' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.virtkey_layout_get_section_info-refcount-errors.html' python-virtkey.c: In function 'virtkey_layout_get_keys': python-virtkey.c:588:25: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&requestedSection") had type "char * *" but was expecting "const char * *" for format code "s" python-virtkey.c:586:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed python-virtkey.c:621:25: warning: dereferencing NULL (MEM[(struct PyTupleObject *)keyTuple].ob_item) at python-virtkey.c:617 [enabled by default] python-virtkey.c:588:25: note: when PyArg_ParseTuple() succeeds at: if (PyArg_ParseTuple(args, "s", &requestedSection)) python-virtkey.c:588:8: note: taking True path at: if (PyArg_ParseTuple(args, "s", &requestedSection)) python-virtkey.c:592:19: note: reaching: virtkey * cvirt = (virtkey *)self; python-virtkey.c:597:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:597 as non-NULL at: geom = cvirt->kbd->geom; python-virtkey.c:603:29: note: when treating unknown struct _XkbGeometry * from python-virtkey.c:597 as non-NULL at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:603:9: note: when considering range: 1 <= value <= 65535 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:603:9: note: taking True path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:605:42: note: reaching: XkbSectionPtr section = &geom->sections[i]; python-virtkey.c:606:42: note: when treating unknown struct _XkbSection * from python-virtkey.c:605 as non-NULL at: sectionString = XGetAtomName (cvirt->display, section->name); python-virtkey.c:607:16: note: when considering value == (int)0 from python-virtkey.c:607 at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:607:16: note: taking True path at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:609:47: note: reaching: rowTuple = PyTuple_New(section->num_rows); python-virtkey.c:609:26: note: when PyTuple_New() succeeds at: rowTuple = PyTuple_New(section->num_rows); python-virtkey.c:610:17: note: when considering range: 1 <= value <= 65535 at: for (row = 0; row < section->num_rows; ++row) python-virtkey.c:610:17: note: taking True path at: for (row = 0; row < section->num_rows; ++row) python-virtkey.c:612:46: note: reaching: XkbRowPtr rowp = §ion->rows[row]; python-virtkey.c:613:33: note: when treating unknown struct _XkbRow * from python-virtkey.c:612 as non-NULL at: int x = rowp->left/10, y = rowp->top/10; python-virtkey.c:615:32: note: when PyTuple_New() fails at: PyObject * keyTuple = PyTuple_New(rowp->num_keys); python-virtkey.c:617:21: note: when considering range: 1 <= value <= 65535 at: for (col = 0; col < rowp->num_keys; ++col) python-virtkey.c:617:21: note: taking True path at: for (col = 0; col < rowp->num_keys; ++col) python-virtkey.c:620:54: note: reaching: &rowp->keys[col], col, &x, &y); python-virtkey.c:619:36: note: when report_key_info() succeeds at: PyObject * key = report_key_info (cvirt, python-virtkey.c:621:25: note: found 3 similar trace(s) to this python-virtkey.c:623:21: warning: dereferencing NULL (MEM[(struct PyTupleObject *)rowTuple].ob_item) at python-virtkey.c:610 [enabled by default] python-virtkey.c:588:25: note: when PyArg_ParseTuple() succeeds at: if (PyArg_ParseTuple(args, "s", &requestedSection)) python-virtkey.c:588:8: note: taking True path at: if (PyArg_ParseTuple(args, "s", &requestedSection)) python-virtkey.c:592:19: note: reaching: virtkey * cvirt = (virtkey *)self; python-virtkey.c:597:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:597 as non-NULL at: geom = cvirt->kbd->geom; python-virtkey.c:603:29: note: when treating unknown struct _XkbGeometry * from python-virtkey.c:597 as non-NULL at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:603:9: note: when considering range: 1 <= value <= 65535 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:603:9: note: taking True path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:605:42: note: reaching: XkbSectionPtr section = &geom->sections[i]; python-virtkey.c:606:42: note: when treating unknown struct _XkbSection * from python-virtkey.c:605 as non-NULL at: sectionString = XGetAtomName (cvirt->display, section->name); python-virtkey.c:607:16: note: when considering value == (int)0 from python-virtkey.c:607 at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:607:16: note: taking True path at: if (!strcmp(sectionString,requestedSection)) python-virtkey.c:609:47: note: reaching: rowTuple = PyTuple_New(section->num_rows); python-virtkey.c:609:26: note: when PyTuple_New() fails at: rowTuple = PyTuple_New(section->num_rows); python-virtkey.c:610:17: note: when considering range: 1 <= value <= 65535 at: for (row = 0; row < section->num_rows; ++row) python-virtkey.c:610:17: note: taking True path at: for (row = 0; row < section->num_rows; ++row) python-virtkey.c:612:46: note: reaching: XkbRowPtr rowp = §ion->rows[row]; python-virtkey.c:613:33: note: when treating unknown struct _XkbRow * from python-virtkey.c:612 as non-NULL at: int x = rowp->left/10, y = rowp->top/10; python-virtkey.c:615:32: note: when PyTuple_New() succeeds at: PyObject * keyTuple = PyTuple_New(rowp->num_keys); python-virtkey.c:617:21: note: when considering value == (short unsigned int)0 from python-virtkey.c:617 at: for (col = 0; col < rowp->num_keys; ++col) python-virtkey.c:617:21: note: taking False path at: for (col = 0; col < rowp->num_keys; ++col) python-virtkey.c:623:21: note: reaching: PyTuple_SET_ITEM(rowTuple, row,keyTuple); python-virtkey.c:623:21: note: found 3 similar trace(s) to this python-virtkey.c:586:1: note: graphical error report for function 'virtkey_layout_get_keys' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.virtkey_layout_get_keys-refcount-errors.html' python-virtkey.c: In function 'report_key_info': python-virtkey.c:441:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed python-virtkey.c:526:5: warning: ob_refcnt of PyStringObject is 1 too high [enabled by default] python-virtkey.c:526:5: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) python-virtkey.c:526:5: note: but final ob_refcnt is N + 1 python-virtkey.c:444:25: note: PyStringObject allocated at: PyDict_SetItemString(keyObject,"name", python-virtkey.c:442:16: note: when PyDict_New() succeeds at: PyObject * keyObject = PyDict_New(); python-virtkey.c:445:40: note: when treating unknown struct _XkbKey * from python-virtkey.c:440 as non-NULL at: PyString_FromStringAndSize(key->name.name,XkbKeyNameLength)); python-virtkey.c:444:25: note: when PyString_FromStringAndSize() succeeds at: PyDict_SetItemString(keyObject,"name", python-virtkey.c:444:25: note: ob_refcnt is now refs: 1 + N where N >= 0 python-virtkey.c:444:25: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(keyObject,"name", python-virtkey.c:444:25: note: ob_refcnt is now refs: 1 + N where N >= 1 python-virtkey.c:454:20: note: when treating unknown struct _XkbDesc * from python-virtkey.c:454 as non-NULL at: XkbGeometryPtr geom = cvirt->kbd->geom; python-virtkey.c:457:23: note: when treating unknown struct _XkbDesc * from python-virtkey.c:457 as non-NULL at: int k = cvirt->kbd->max_key_code - cvirt->kbd->min_key_code; python-virtkey.c:457:51: note: when treating unknown struct _XkbDesc * from python-virtkey.c:457 as non-NULL at: int k = cvirt->kbd->max_key_code - cvirt->kbd->min_key_code; python-virtkey.c:471:8: note: when treating unknown int * from python-virtkey.c:440 as non-NULL at: *x += key->gap/10; python-virtkey.c:474:16: note: when PyTuple_New() succeeds at: PyObject * labelTuple = PyTuple_New(5);//del python-virtkey.c:476:24: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:54: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:5: note: when taking True path at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:478:14: note: reaching: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbNamesRec * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbKeyNameRec * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:12: note: taking False path at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:476:70: note: reaching: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:54: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:5: note: when taking False path at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:498:37: note: reaching: PyObject * x1ob = PyInt_FromLong(x1); python-virtkey.c:498:16: note: when PyInt_FromLong() succeeds at: PyObject * x1ob = PyInt_FromLong(x1); python-virtkey.c:499:16: note: when PyInt_FromLong() succeeds at: PyObject * y1ob = PyInt_FromLong(y1); python-virtkey.c:500:16: note: when PyInt_FromLong() succeeds at: PyObject * x2ob = PyInt_FromLong(x2); python-virtkey.c:501:16: note: when PyInt_FromLong() succeeds at: PyObject * y2ob = PyInt_FromLong(y2); python-virtkey.c:504:16: note: when PyTuple_Pack() succeeds at: PyObject * shape = PyTuple_Pack(4, x1ob, y1ob, x2ob, y2ob); python-virtkey.c:506:5: note: when taking True path at: Py_DECREF(x1ob); python-virtkey.c:507:5: note: reaching: Py_DECREF(y1ob); python-virtkey.c:507:5: note: when taking True path at: Py_DECREF(y1ob); python-virtkey.c:508:5: note: reaching: Py_DECREF(x2ob); python-virtkey.c:508:5: note: when taking True path at: Py_DECREF(x2ob); python-virtkey.c:509:5: note: reaching: Py_DECREF(y2ob); python-virtkey.c:509:5: note: when taking True path at: Py_DECREF(y2ob); python-virtkey.c:511:25: note: reaching: PyDict_SetItemString(keyObject,"shape",shape); python-virtkey.c:511:25: note: when PyDict_SetItemString() fails at: PyDict_SetItemString(keyObject,"shape",shape); python-virtkey.c:512:5: note: when taking True path at: Py_DECREF(shape); python-virtkey.c:514:42: note: reaching: PyObject * keycodeOb = PyInt_FromLong(k); python-virtkey.c:514:16: note: when PyInt_FromLong() succeeds at: PyObject * keycodeOb = PyInt_FromLong(k); python-virtkey.c:515:25: note: when PyDict_SetItemString() fails at: PyDict_SetItemString(keyObject, "keycode", keycodeOb); python-virtkey.c:516:5: note: when taking True path at: Py_DECREF(keycodeOb); python-virtkey.c:524:25: note: reaching: PyDict_SetItemString(keyObject,"labels", labelTuple); python-virtkey.c:524:25: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(keyObject,"labels", labelTuple); python-virtkey.c:526:5: note: returning at: return keyObject; python-virtkey.c:526:5: note: found 21 similar trace(s) to this python-virtkey.c:526:5: warning: ob_refcnt of '*labelTuple' is 1 too high [enabled by default] python-virtkey.c:526:5: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) python-virtkey.c:526:5: note: but final ob_refcnt is N + 1 python-virtkey.c:474:16: note: PyTupleObject allocated at: PyObject * labelTuple = PyTuple_New(5);//del python-virtkey.c:442:16: note: when PyDict_New() succeeds at: PyObject * keyObject = PyDict_New(); python-virtkey.c:445:40: note: when treating unknown struct _XkbKey * from python-virtkey.c:440 as non-NULL at: PyString_FromStringAndSize(key->name.name,XkbKeyNameLength)); python-virtkey.c:444:25: note: when PyString_FromStringAndSize() succeeds at: PyDict_SetItemString(keyObject,"name", python-virtkey.c:444:25: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(keyObject,"name", python-virtkey.c:454:20: note: when treating unknown struct _XkbDesc * from python-virtkey.c:454 as non-NULL at: XkbGeometryPtr geom = cvirt->kbd->geom; python-virtkey.c:457:23: note: when treating unknown struct _XkbDesc * from python-virtkey.c:457 as non-NULL at: int k = cvirt->kbd->max_key_code - cvirt->kbd->min_key_code; python-virtkey.c:457:51: note: when treating unknown struct _XkbDesc * from python-virtkey.c:457 as non-NULL at: int k = cvirt->kbd->max_key_code - cvirt->kbd->min_key_code; python-virtkey.c:471:8: note: when treating unknown int * from python-virtkey.c:440 as non-NULL at: *x += key->gap/10; python-virtkey.c:474:16: note: when PyTuple_New() succeeds at: PyObject * labelTuple = PyTuple_New(5);//del python-virtkey.c:474:16: note: ob_refcnt is now refs: 1 + N where N >= 0 python-virtkey.c:476:24: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:54: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:5: note: when taking True path at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:478:14: note: reaching: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbNamesRec * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbKeyNameRec * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:12: note: taking False path at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:476:70: note: reaching: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:54: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:5: note: when taking False path at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:498:37: note: reaching: PyObject * x1ob = PyInt_FromLong(x1); python-virtkey.c:498:16: note: when PyInt_FromLong() succeeds at: PyObject * x1ob = PyInt_FromLong(x1); python-virtkey.c:499:16: note: when PyInt_FromLong() succeeds at: PyObject * y1ob = PyInt_FromLong(y1); python-virtkey.c:500:16: note: when PyInt_FromLong() succeeds at: PyObject * x2ob = PyInt_FromLong(x2); python-virtkey.c:501:16: note: when PyInt_FromLong() succeeds at: PyObject * y2ob = PyInt_FromLong(y2); python-virtkey.c:504:16: note: when PyTuple_Pack() succeeds at: PyObject * shape = PyTuple_Pack(4, x1ob, y1ob, x2ob, y2ob); python-virtkey.c:506:5: note: when taking True path at: Py_DECREF(x1ob); python-virtkey.c:507:5: note: reaching: Py_DECREF(y1ob); python-virtkey.c:507:5: note: when taking True path at: Py_DECREF(y1ob); python-virtkey.c:508:5: note: reaching: Py_DECREF(x2ob); python-virtkey.c:508:5: note: when taking True path at: Py_DECREF(x2ob); python-virtkey.c:509:5: note: reaching: Py_DECREF(y2ob); python-virtkey.c:509:5: note: when taking True path at: Py_DECREF(y2ob); python-virtkey.c:511:25: note: reaching: PyDict_SetItemString(keyObject,"shape",shape); python-virtkey.c:511:25: note: when PyDict_SetItemString() fails at: PyDict_SetItemString(keyObject,"shape",shape); python-virtkey.c:512:5: note: when taking True path at: Py_DECREF(shape); python-virtkey.c:514:42: note: reaching: PyObject * keycodeOb = PyInt_FromLong(k); python-virtkey.c:514:16: note: when PyInt_FromLong() succeeds at: PyObject * keycodeOb = PyInt_FromLong(k); python-virtkey.c:515:25: note: when PyDict_SetItemString() fails at: PyDict_SetItemString(keyObject, "keycode", keycodeOb); python-virtkey.c:516:5: note: when taking True path at: Py_DECREF(keycodeOb); python-virtkey.c:524:25: note: reaching: PyDict_SetItemString(keyObject,"labels", labelTuple); python-virtkey.c:524:25: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(keyObject,"labels", labelTuple); python-virtkey.c:524:25: note: ob_refcnt is now refs: 1 + N where N >= 1 python-virtkey.c:526:5: note: returning at: return keyObject; python-virtkey.c:526:5: note: found 21 similar trace(s) to this python-virtkey.c:515:25: warning: calling PyDict_SetItemString with NULL as argument 3 (keycodeOb) at python-virtkey.c:515 [enabled by default] python-virtkey.c:442:16: note: when PyDict_New() succeeds at: PyObject * keyObject = PyDict_New(); python-virtkey.c:445:40: note: when treating unknown struct _XkbKey * from python-virtkey.c:440 as non-NULL at: PyString_FromStringAndSize(key->name.name,XkbKeyNameLength)); python-virtkey.c:444:25: note: when PyString_FromStringAndSize() succeeds at: PyDict_SetItemString(keyObject,"name", python-virtkey.c:444:25: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(keyObject,"name", python-virtkey.c:454:20: note: when treating unknown struct _XkbDesc * from python-virtkey.c:454 as non-NULL at: XkbGeometryPtr geom = cvirt->kbd->geom; python-virtkey.c:457:23: note: when treating unknown struct _XkbDesc * from python-virtkey.c:457 as non-NULL at: int k = cvirt->kbd->max_key_code - cvirt->kbd->min_key_code; python-virtkey.c:457:51: note: when treating unknown struct _XkbDesc * from python-virtkey.c:457 as non-NULL at: int k = cvirt->kbd->max_key_code - cvirt->kbd->min_key_code; python-virtkey.c:471:8: note: when treating unknown int * from python-virtkey.c:440 as non-NULL at: *x += key->gap/10; python-virtkey.c:474:16: note: when PyTuple_New() succeeds at: PyObject * labelTuple = PyTuple_New(5);//del python-virtkey.c:476:24: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:54: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:5: note: when taking True path at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:478:14: note: reaching: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbDesc * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbNamesRec * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:14: note: when treating unknown struct _XkbKeyNameRec * from python-virtkey.c:478 as non-NULL at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:478:12: note: taking False path at: if (!strncmp (name, cvirt->kbd->names->keys[k].name, XkbKeyNameLength)) python-virtkey.c:476:70: note: reaching: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:54: note: when treating unknown struct _XkbDesc * from python-virtkey.c:476 as non-NULL at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:476:5: note: when taking False path at: for (k = cvirt->kbd->min_key_code; k < cvirt->kbd->max_key_code; ++k) python-virtkey.c:498:37: note: reaching: PyObject * x1ob = PyInt_FromLong(x1); python-virtkey.c:498:16: note: when PyInt_FromLong() succeeds at: PyObject * x1ob = PyInt_FromLong(x1); python-virtkey.c:499:16: note: when PyInt_FromLong() succeeds at: PyObject * y1ob = PyInt_FromLong(y1); python-virtkey.c:500:16: note: when PyInt_FromLong() succeeds at: PyObject * x2ob = PyInt_FromLong(x2); python-virtkey.c:501:16: note: when PyInt_FromLong() succeeds at: PyObject * y2ob = PyInt_FromLong(y2); python-virtkey.c:504:16: note: when PyTuple_Pack() succeeds at: PyObject * shape = PyTuple_Pack(4, x1ob, y1ob, x2ob, y2ob); python-virtkey.c:506:5: note: when taking True path at: Py_DECREF(x1ob); python-virtkey.c:507:5: note: reaching: Py_DECREF(y1ob); python-virtkey.c:507:5: note: when taking True path at: Py_DECREF(y1ob); python-virtkey.c:508:5: note: reaching: Py_DECREF(x2ob); python-virtkey.c:508:5: note: when taking True path at: Py_DECREF(x2ob); python-virtkey.c:509:5: note: reaching: Py_DECREF(y2ob); python-virtkey.c:509:5: note: when taking True path at: Py_DECREF(y2ob); python-virtkey.c:511:25: note: reaching: PyDict_SetItemString(keyObject,"shape",shape); python-virtkey.c:511:25: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(keyObject,"shape",shape); python-virtkey.c:512:5: note: when taking True path at: Py_DECREF(shape); python-virtkey.c:514:42: note: reaching: PyObject * keycodeOb = PyInt_FromLong(k); python-virtkey.c:514:16: note: when PyInt_FromLong() fails at: PyObject * keycodeOb = PyInt_FromLong(k); python-virtkey.c:515:25: note: found 1 similar trace(s) to this python-virtkey.c:441:1: note: graphical error report for function 'report_key_info' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.report_key_info-refcount-errors.html' python-virtkey.c: In function 'virtkey_layout_get_sections': python-virtkey.c:658:5: warning: ob_refcnt of PyStringObject is 1 too high [enabled by default] python-virtkey.c:658:5: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) python-virtkey.c:658:5: note: but final ob_refcnt is N + 1 python-virtkey.c:654:24: note: PyStringObject allocated at: PyTuple_SetItem(sectionTuple, i, PyString_FromString(sectionString)); python-virtkey.c:644:10: note: when treating unknown struct _XkbDesc * from python-virtkey.c:644 as non-NULL at: geom = cvirt->kbd->geom; python-virtkey.c:648:47: note: when treating unknown struct _XkbGeometry * from python-virtkey.c:644 as non-NULL at: PyObject * sectionTuple = PyTuple_New(geom->num_sections); python-virtkey.c:648:16: note: when PyTuple_New() succeeds at: PyObject * sectionTuple = PyTuple_New(geom->num_sections); python-virtkey.c:650:5: note: when considering range: 1 <= value <= 65535 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:650:5: note: taking True path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:652:38: note: reaching: XkbSectionPtr section = &geom->sections[i]; python-virtkey.c:653:38: note: when treating unknown struct _XkbSection * from python-virtkey.c:652 as non-NULL at: sectionString = XGetAtomName (cvirt->display, section->name); python-virtkey.c:654:24: note: when treating unknown char * from python-virtkey.c:653 as non-NULL at: PyTuple_SetItem(sectionTuple, i, PyString_FromString(sectionString)); python-virtkey.c:654:24: note: when PyString_FromString() succeeds at: PyTuple_SetItem(sectionTuple, i, PyString_FromString(sectionString)); python-virtkey.c:654:24: note: ob_refcnt is now refs: 1 + N where N >= 0 python-virtkey.c:654:24: note: when considering value == (short unsigned int)0 from python-virtkey.c:648 at: PyTuple_SetItem(sectionTuple, i, PyString_FromString(sectionString)); python-virtkey.c:654:24: note: when PyTuple_SetItem() fails (index out of range) at: PyTuple_SetItem(sectionTuple, i, PyString_FromString(sectionString)); python-virtkey.c:650:5: note: when considering range: 0 <= value <= 1 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:650:5: note: taking False path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:658:5: note: reaching: return sectionTuple; python-virtkey.c:658:5: note: returning at: return sectionTuple; python-virtkey.c:654:24: warning: calling PyTuple_SetItem with NULL as argument 1 (sectionTuple) at python-virtkey.c:654 [enabled by default] python-virtkey.c:644:10: note: when treating unknown struct _XkbDesc * from python-virtkey.c:644 as non-NULL at: geom = cvirt->kbd->geom; python-virtkey.c:648:47: note: when treating unknown struct _XkbGeometry * from python-virtkey.c:644 as non-NULL at: PyObject * sectionTuple = PyTuple_New(geom->num_sections); python-virtkey.c:648:16: note: when PyTuple_New() fails at: PyObject * sectionTuple = PyTuple_New(geom->num_sections); python-virtkey.c:650:5: note: when considering range: 1 <= value <= 65535 at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:650:5: note: taking True path at: for (i = 0; i < geom->num_sections; ++i) python-virtkey.c:652:38: note: reaching: XkbSectionPtr section = &geom->sections[i]; python-virtkey.c:653:38: note: when treating unknown struct _XkbSection * from python-virtkey.c:652 as non-NULL at: sectionString = XGetAtomName (cvirt->display, section->name); python-virtkey.c:654:24: note: when treating unknown char * from python-virtkey.c:653 as non-NULL at: PyTuple_SetItem(sectionTuple, i, PyString_FromString(sectionString)); python-virtkey.c:654:24: note: when PyString_FromString() succeeds at: PyTuple_SetItem(sectionTuple, i, PyString_FromString(sectionString)); python-virtkey.c:654:24: note: PyTuple_SetItem() invokes Py_TYPE() on the pointer via the PyTuple_Check() macro, thus accessing (NULL)->ob_type python-virtkey.c:654:24: note: found 1 similar trace(s) to this python-virtkey.c:637:1: note: graphical error report for function 'virtkey_layout_get_sections' written out to 'build/temp.linux-x86_64-2.7/python-virtkey.c.virtkey_layout_get_sections-refcount-errors.html' python-virtkey.c: In function 'virtkey_send_keycode': python-virtkey.c:734:22: warning: Mismatching type in call to PyArg_ParseTuple with format code "i" [enabled by default] argument 3 ("&keycode") had type "long int *" (pointing to 64 bits) but was expecting "int *" (pointing to 32 bits) for format code "i" python-virtkey.c: In function 'virtkey_send_keysym': python-virtkey.c:709:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "i" [enabled by default] argument 3 ("&in") had type "long int *" (pointing to 64 bits) but was expecting "int *" (pointing to 32 bits) for format code "i" python-virtkey.c: In function 'virtkey_send_unicode': python-virtkey.c:695:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "i" [enabled by default] argument 3 ("&in") had type "long int *" (pointing to 64 bits) but was expecting "int *" (pointing to 32 bits) for format code "i" error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.DyHIA9 (%build) Bad exit status from /var/tmp/rpm-tmp.DyHIA9 (%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-virtkey.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-virtkey.spec'] LEAVE do --> EXCEPTION RAISED