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 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-kaa-base.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-kaa-base.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-kaa-base-0.6.0-6.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-kaa-base.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-kaa-base.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NKPEGF + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf kaa-base-0.6.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/kaa-base-0.6.0.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd kaa-base-0.6.0 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (kaa-base-0.6.0-py26.patch):' Patch #0 (kaa-base-0.6.0-py26.patch): + /bin/cat /builddir/build/SOURCES/kaa-base-0.6.0-py26.patch + /usr/bin/patch -s -p1 -b --suffix .py26 --fuzz=0 Patch #1 (kaa-base-0.6.0-backport_py26.patch): + echo 'Patch #1 (kaa-base-0.6.0-backport_py26.patch):' + /bin/cat /builddir/build/SOURCES/kaa-base-0.6.0-backport_py26.patch + /usr/bin/patch -s -p1 -b --suffix .bp26 --fuzz=0 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vPEDge + umask 022 + cd /builddir/build/BUILD + cd kaa-base-0.6.0 + LANG=C + export LANG + unset DISPLAY + CFLAGS='-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 + glib >= 2.4.0 found; building kaa.db + inotify supported by glibc; good. running build running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/kaa copying src/nf_thread.py -> build/lib.linux-x86_64-2.7/kaa copying src/reactor.py -> build/lib.linux-x86_64-2.7/kaa copying src/utils.py -> build/lib.linux-x86_64-2.7/kaa copying src/event.py -> build/lib.linux-x86_64-2.7/kaa copying src/saxutils.py -> build/lib.linux-x86_64-2.7/kaa copying src/coroutine.py -> build/lib.linux-x86_64-2.7/kaa copying src/version.py -> build/lib.linux-x86_64-2.7/kaa copying src/signals.py -> build/lib.linux-x86_64-2.7/kaa copying src/db.py -> build/lib.linux-x86_64-2.7/kaa copying src/__init__.py -> build/lib.linux-x86_64-2.7/kaa copying src/config.py -> build/lib.linux-x86_64-2.7/kaa copying src/nf_wrapper.py -> build/lib.linux-x86_64-2.7/kaa copying src/logger.py -> build/lib.linux-x86_64-2.7/kaa copying src/callback.py -> build/lib.linux-x86_64-2.7/kaa copying src/sockets.py -> build/lib.linux-x86_64-2.7/kaa copying src/ioctl.py -> build/lib.linux-x86_64-2.7/kaa copying src/thread.py -> build/lib.linux-x86_64-2.7/kaa copying src/xmlutils.py -> build/lib.linux-x86_64-2.7/kaa copying src/gobject.py -> build/lib.linux-x86_64-2.7/kaa copying src/timer.py -> build/lib.linux-x86_64-2.7/kaa copying src/strutils.py -> build/lib.linux-x86_64-2.7/kaa copying src/rpc.py -> build/lib.linux-x86_64-2.7/kaa copying src/main.py -> build/lib.linux-x86_64-2.7/kaa copying src/process.py -> build/lib.linux-x86_64-2.7/kaa copying src/generator.py -> build/lib.linux-x86_64-2.7/kaa copying src/io.py -> build/lib.linux-x86_64-2.7/kaa copying src/weakref.py -> build/lib.linux-x86_64-2.7/kaa copying src/object.py -> build/lib.linux-x86_64-2.7/kaa copying src/dateutils.py -> build/lib.linux-x86_64-2.7/kaa copying src/async.py -> build/lib.linux-x86_64-2.7/kaa creating build/lib.linux-x86_64-2.7/kaa/inotify copying src/extensions/inotify/__init__.py -> build/lib.linux-x86_64-2.7/kaa/inotify creating build/lib.linux-x86_64-2.7/kaa/input copying src/input/__init__.py -> build/lib.linux-x86_64-2.7/kaa/input copying src/input/lirc.py -> build/lib.linux-x86_64-2.7/kaa/input copying src/input/stdin.py -> build/lib.linux-x86_64-2.7/kaa/input creating build/lib.linux-x86_64-2.7/kaa/distribution copying src/distribution/core.py -> build/lib.linux-x86_64-2.7/kaa/distribution copying src/distribution/version.py -> build/lib.linux-x86_64-2.7/kaa/distribution copying src/distribution/xmlconfig.py -> build/lib.linux-x86_64-2.7/kaa/distribution copying src/distribution/__init__.py -> build/lib.linux-x86_64-2.7/kaa/distribution copying src/distribution/build_py.py -> build/lib.linux-x86_64-2.7/kaa/distribution copying src/distribution/svn2log.py -> build/lib.linux-x86_64-2.7/kaa/distribution copying src/distribution/sphinxext.py -> build/lib.linux-x86_64-2.7/kaa/distribution creating build/lib.linux-x86_64-2.7/kaa/net copying src/net/__init__.py -> build/lib.linux-x86_64-2.7/kaa/net copying src/net/mdns.py -> build/lib.linux-x86_64-2.7/kaa/net copying src/net/tls.py -> build/lib.linux-x86_64-2.7/kaa/net copying src/net/url.py -> build/lib.linux-x86_64-2.7/kaa/net creating build/lib.linux-x86_64-2.7/kaa/pynotifier copying src/pynotifier/nf_gtk.py -> build/lib.linux-x86_64-2.7/kaa/pynotifier copying src/pynotifier/version.py -> build/lib.linux-x86_64-2.7/kaa/pynotifier copying src/pynotifier/dispatch.py -> build/lib.linux-x86_64-2.7/kaa/pynotifier copying src/pynotifier/__init__.py -> build/lib.linux-x86_64-2.7/kaa/pynotifier copying src/pynotifier/nf_twisted.py -> build/lib.linux-x86_64-2.7/kaa/pynotifier copying src/pynotifier/log.py -> build/lib.linux-x86_64-2.7/kaa/pynotifier copying src/pynotifier/nf_generic.py -> build/lib.linux-x86_64-2.7/kaa/pynotifier running build_ext building 'kaa.shmmodule' extension creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/src creating build/temp.linux-x86_64-2.7/src/extensions 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 -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 src/extensions/shmmodule.c -o build/temp.linux-x86_64-2.7/src/extensions/shmmodule.o -Wall src/extensions/shmmodule.c: In function 'initshm': src/extensions/shmmodule.c:1431:1: warning: ob_refcnt of PyStringObject is 1 too high [enabled by default] src/extensions/shmmodule.c:1431:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:1431:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:1386:29: note: PyStringObject allocated at: if (PyDict_SetItemString(d, "__doc__", PyString_FromString src/extensions/shmmodule.c:1380:7: note: when Py_InitModule4_64() succeeds at: m = Py_InitModule("shm", PyShm_methods); src/extensions/shmmodule.c:1382:38: note: when PyString_FromString() succeeds at: PyShm_Error = PyString_FromString("shm.error"); src/extensions/shmmodule.c:1383:8: note: taking False path at: if (PyShm_Error == NULL || src/extensions/shmmodule.c:1384:22: note: reaching: PyDict_SetItemString(d, "error", PyShm_Error) != 0) src/extensions/shmmodule.c:1384:22: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(d, "error", PyShm_Error) != 0) src/extensions/shmmodule.c:1383:29: note: taking False path at: if (PyShm_Error == NULL || src/extensions/shmmodule.c:1386:29: note: reaching: if (PyDict_SetItemString(d, "__doc__", PyString_FromString src/extensions/shmmodule.c:1386:29: note: when PyString_FromString() succeeds at: if (PyDict_SetItemString(d, "__doc__", PyString_FromString src/extensions/shmmodule.c:1386:29: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1386:29: note: when PyDict_SetItemString() succeeds at: if (PyDict_SetItemString(d, "__doc__", PyString_FromString src/extensions/shmmodule.c:1386:29: note: ob_refcnt is now refs: 1 + N where N >= 1 src/extensions/shmmodule.c:1386:8: note: taking False path at: if (PyDict_SetItemString(d, "__doc__", PyString_FromString src/extensions/shmmodule.c:1389:31: note: reaching: if ((shm_dict = PyDict_New()) == NULL || src/extensions/shmmodule.c:1389:31: note: when PyDict_New() succeeds at: if ((shm_dict = PyDict_New()) == NULL || src/extensions/shmmodule.c:1389:8: note: taking False path at: if ((shm_dict = PyDict_New()) == NULL || src/extensions/shmmodule.c:1390:24: note: reaching: (sem_dict = PyDict_New()) == NULL) src/extensions/shmmodule.c:1390:24: note: when PyDict_New() succeeds at: (sem_dict = PyDict_New()) == NULL) src/extensions/shmmodule.c:1389:43: note: taking False path at: if ((shm_dict = PyDict_New()) == NULL || src/extensions/shmmodule.c:1394:20: note: reaching: set_member_type(memory_memberlist, 0, sizeof(gid_t)); /* cgid */ src/extensions/shmmodule.c:1431:1: note: returning at: } src/extensions/shmmodule.c:1431:1: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1386:29: warning: calling PyDict_SetItemString with NULL as argument 3 (D.10665) at src/extensions/shmmodule.c:1386 [enabled by default] src/extensions/shmmodule.c:1380:7: note: when Py_InitModule4_64() succeeds at: m = Py_InitModule("shm", PyShm_methods); src/extensions/shmmodule.c:1382:38: note: when PyString_FromString() succeeds at: PyShm_Error = PyString_FromString("shm.error"); src/extensions/shmmodule.c:1383:8: note: taking False path at: if (PyShm_Error == NULL || src/extensions/shmmodule.c:1384:22: note: reaching: PyDict_SetItemString(d, "error", PyShm_Error) != 0) src/extensions/shmmodule.c:1384:22: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(d, "error", PyShm_Error) != 0) src/extensions/shmmodule.c:1383:29: note: taking False path at: if (PyShm_Error == NULL || src/extensions/shmmodule.c:1386:29: note: reaching: if (PyDict_SetItemString(d, "__doc__", PyString_FromString src/extensions/shmmodule.c:1386:29: note: when PyString_FromString() fails at: if (PyDict_SetItemString(d, "__doc__", PyString_FromString src/extensions/shmmodule.c:1386:29: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1377:1: note: graphical error report for function 'initshm' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.initshm-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShm_semaphore': src/extensions/shmmodule.c:1246:15: warning: passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:1246 [enabled by default] src/extensions/shmmodule.c:1221:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1221:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1223:26: note: reaching: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1223:10: note: when PyInt_FromLong() succeeds at: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1225:8: note: when considering range: -0x80000000 <= value <= -1 at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1225:8: note: taking True path at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1226:35: note: reaching: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1226:4: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:196 as non-NULL at: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1226:4: note: when PyDict_GetItem() succeeds at: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1246:15: note: found 2 similar trace(s) to this src/extensions/shmmodule.c:1227:2: warning: dereferencing NULL (MEM[(struct PyObject *)o].ob_refcnt) at src/extensions/shmmodule.c:1227 [enabled by default] src/extensions/shmmodule.c:1221:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1221:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1223:26: note: reaching: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1223:10: note: when PyInt_FromLong() succeeds at: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1225:8: note: when considering range: -0x80000000 <= value <= -1 at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1225:8: note: taking True path at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1226:35: note: reaching: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1226:4: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:196 as non-NULL at: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1226:4: note: when PyDict_GetItem does not find item at: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1227:2: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1253:1: warning: ob_refcnt of '*keyo' is 1 too high [enabled by default] src/extensions/shmmodule.c:1253:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:1253:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:1223:10: note: PyIntObject allocated at: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1221:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1221:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1223:26: note: reaching: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1223:10: note: when PyInt_FromLong() succeeds at: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1223:10: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1225:8: note: when considering value == (int)0 from src/extensions/shmmodule.c:1225 at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1225:8: note: taking False path at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1231:11: note: reaching: if ((o = PyObject_NEW(PyShmSemObj, &PyShmSemaphore_Type)) == NULL) src/extensions/shmmodule.c:1231:5: note: when PyObject_Init() succeeds at: if ((o = PyObject_NEW(PyShmSemObj, &PyShmSemaphore_Type)) == NULL) src/extensions/shmmodule.c:1231:5: note: taking False path at: if ((o = PyObject_NEW(PyShmSemObj, &PyShmSemaphore_Type)) == NULL) src/extensions/shmmodule.c:1233:11: note: reaching: o->semid = semid; src/extensions/shmmodule.c:1236:20: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:196 as non-NULL at: if (PyDict_SetItem(sem_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1236:20: note: when PyDict_SetItem() fails at: if (PyDict_SetItem(sem_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1236:5: note: taking True path at: if (PyDict_SetItem(sem_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1237:6: note: reaching: Py_DECREF(o); src/extensions/shmmodule.c:1237:6: note: when taking True path at: Py_DECREF(o); src/extensions/shmmodule.c:1238:21: note: reaching: PyErr_SetString(PyShm_Error, src/extensions/shmmodule.c:1238:21: note: calling PyErr_SetString() at: PyErr_SetString(PyShm_Error, src/extensions/shmmodule.c:1253:1: note: returning src/extensions/shmmodule.c:1253:1: note: found 2 similar trace(s) to this src/extensions/shmmodule.c:1226:4: warning: calling PyDict_GetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1226 [enabled by default] src/extensions/shmmodule.c:1221:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1221:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1223:26: note: reaching: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1223:10: note: when PyInt_FromLong() fails at: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1225:8: note: when considering range: -0x80000000 <= value <= -1 at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1225:8: note: taking True path at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1226:35: note: reaching: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1226:4: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:196 as non-NULL at: o = (PyShmSemObj *)PyDict_GetItem(sem_dict, keyo); src/extensions/shmmodule.c:1226:4: note: PyDict_GetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type src/extensions/shmmodule.c:1226:4: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1236:20: warning: calling PyDict_SetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1236 [enabled by default] src/extensions/shmmodule.c:1221:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1221:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &semid)) src/extensions/shmmodule.c:1223:26: note: reaching: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1223:10: note: when PyInt_FromLong() fails at: keyo = PyInt_FromLong(semid); src/extensions/shmmodule.c:1225:8: note: when considering value == (int)0 from src/extensions/shmmodule.c:1225 at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1225:8: note: taking False path at: if (PyMapping_HasKey(sem_dict, keyo)) { src/extensions/shmmodule.c:1231:11: note: reaching: if ((o = PyObject_NEW(PyShmSemObj, &PyShmSemaphore_Type)) == NULL) src/extensions/shmmodule.c:1231:5: note: when PyObject_Init() succeeds at: if ((o = PyObject_NEW(PyShmSemObj, &PyShmSemaphore_Type)) == NULL) src/extensions/shmmodule.c:1231:5: note: taking False path at: if ((o = PyObject_NEW(PyShmSemObj, &PyShmSemaphore_Type)) == NULL) src/extensions/shmmodule.c:1233:11: note: reaching: o->semid = semid; src/extensions/shmmodule.c:1236:20: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:196 as non-NULL at: if (PyDict_SetItem(sem_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1236:20: note: PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type src/extensions/shmmodule.c:1215:1: note: graphical error report for function 'PyShm_semaphore' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShm_semaphore-refcount-errors.html' src/extensions/shmmodule.c: In function 'check_semaphore_identity': src/extensions/shmmodule.c:630:16: warning: passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:630 [enabled by default] src/extensions/shmmodule.c:622:8: note: when considering range: -0x80000000 <= value <= -1 at: if (old_key != IPC_PRIVATE) { src/extensions/shmmodule.c:622:8: note: taking True path at: if (old_key != IPC_PRIVATE) { src/extensions/shmmodule.c:623:12: note: reaching: new_semid = semget(old_key, 0, 0); src/extensions/shmmodule.c:624:5: note: when taking False path at: if (new_semid != old_semid) src/extensions/shmmodule.c:629:15: note: reaching: arg.buf = &(o->ds); src/extensions/shmmodule.c:630:16: note: found 2 similar trace(s) to this src/extensions/shmmodule.c:615:1: note: graphical error report for function 'check_semaphore_identity' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.check_semaphore_identity-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShmSemaphore_getattr': src/extensions/shmmodule.c:940:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed src/extensions/shmmodule.c: In function 'PyShmSemaphore_setval': src/extensions/shmmodule.c:864:15: warning: passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:864 [enabled by default] src/extensions/shmmodule.c:860:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &value)) src/extensions/shmmodule.c:860:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &value)) src/extensions/shmmodule.c:862:5: note: reaching: refresh_semaphore_status(self); src/extensions/shmmodule.c:862:5: note: when considering range: -0x80000000 <= value <= -1 at: refresh_semaphore_status(self); src/extensions/shmmodule.c:862:5: note: taking False path at: refresh_semaphore_status(self); src/extensions/shmmodule.c:863:13: note: reaching: arg.val = value; src/extensions/shmmodule.c:864:15: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:856:1: note: graphical error report for function 'PyShmSemaphore_setval' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShmSemaphore_setval-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShmSemaphore_setuid': src/extensions/shmmodule.c:818:15: warning: passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:818 [enabled by default] src/extensions/shmmodule.c:812:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "l", &newuid)) src/extensions/shmmodule.c:812:8: note: taking False path at: if (!PyArg_ParseTuple(args, "l", &newuid)) src/extensions/shmmodule.c:814:5: note: reaching: refresh_semaphore_status(self); src/extensions/shmmodule.c:814:5: note: when considering range: -0x80000000 <= value <= -1 at: refresh_semaphore_status(self); src/extensions/shmmodule.c:814:5: note: taking False path at: refresh_semaphore_status(self); src/extensions/shmmodule.c:815:37: note: reaching: olduid = (long)self->ds.sem_perm.uid; src/extensions/shmmodule.c:818:15: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:808:1: note: graphical error report for function 'PyShmSemaphore_setuid' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShmSemaphore_setuid-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShmSemaphore_setperm': src/extensions/shmmodule.c:792:15: warning: passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:792 [enabled by default] src/extensions/shmmodule.c:784:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "l", &newmode)) src/extensions/shmmodule.c:784:8: note: taking False path at: if (!PyArg_ParseTuple(args, "l", &newmode)) src/extensions/shmmodule.c:786:5: note: reaching: refresh_semaphore_status(self); src/extensions/shmmodule.c:786:5: note: when considering range: -0x80000000 <= value <= -1 at: refresh_semaphore_status(self); src/extensions/shmmodule.c:786:5: note: taking False path at: refresh_semaphore_status(self); src/extensions/shmmodule.c:787:13: note: reaching: newmode &= 0777; /* permission bits only */ src/extensions/shmmodule.c:792:15: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:780:1: note: graphical error report for function 'PyShmSemaphore_setperm' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShmSemaphore_setperm-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShmSemaphore_setgid': src/extensions/shmmodule.c:764:15: warning: passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:764 [enabled by default] src/extensions/shmmodule.c:758:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "l", &newgid)) src/extensions/shmmodule.c:758:8: note: taking False path at: if (!PyArg_ParseTuple(args, "l", &newgid)) src/extensions/shmmodule.c:760:5: note: reaching: refresh_semaphore_status(self); src/extensions/shmmodule.c:760:5: note: when considering range: -0x80000000 <= value <= -1 at: refresh_semaphore_status(self); src/extensions/shmmodule.c:760:5: note: taking False path at: refresh_semaphore_status(self); src/extensions/shmmodule.c:761:37: note: reaching: oldgid = (long)self->ds.sem_perm.gid; src/extensions/shmmodule.c:764:15: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:754:1: note: graphical error report for function 'PyShmSemaphore_setgid' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShmSemaphore_setgid-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShmSemaphore_dealloc': src/extensions/shmmodule.c:934:1: warning: ob_refcnt of PyIntObject is 1 too high [enabled by default] src/extensions/shmmodule.c:934:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:934:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:931:23: note: PyIntObject allocated at: if (PyDict_DelItem(sem_dict, PyInt_FromLong(self->semid)) == -1) src/extensions/shmmodule.c:931:23: note: when PyInt_FromLong() succeeds at: if (PyDict_DelItem(sem_dict, PyInt_FromLong(self->semid)) == -1) src/extensions/shmmodule.c:931:23: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:931:8: note: when considering range: -0x80000000 <= value <= -2 at: if (PyDict_DelItem(sem_dict, PyInt_FromLong(self->semid)) == -1) src/extensions/shmmodule.c:931:8: note: taking False path at: if (PyDict_DelItem(sem_dict, PyInt_FromLong(self->semid)) == -1) src/extensions/shmmodule.c:933:17: note: reaching: PyObject_DEL(self); src/extensions/shmmodule.c:934:1: note: returning at: } src/extensions/shmmodule.c:934:1: note: found 2 similar trace(s) to this src/extensions/shmmodule.c:929:1: note: graphical error report for function 'PyShmSemaphore_dealloc' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShmSemaphore_dealloc-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShm_memory': src/extensions/shmmodule.c:1113:1: warning: ob_refcnt of '*keyo' is 1 too high [enabled by default] src/extensions/shmmodule.c:1113:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:1113:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:1083:10: note: PyIntObject allocated at: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1081:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1081:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1083:26: note: reaching: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1083:10: note: when PyInt_FromLong() succeeds at: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1083:10: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1085:8: note: when considering range: -0x80000000 <= value <= -1 at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1085:8: note: taking True path at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1086:32: note: reaching: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1086:4: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:195 as non-NULL at: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1086:4: note: when PyDict_GetItem() succeeds at: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1106:8: note: when considering range: -0x80000000 <= value <= -2 at: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1106:8: note: taking False path at: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1112:5: note: reaching: return (PyObject *)o; src/extensions/shmmodule.c:1113:1: note: returning src/extensions/shmmodule.c:1113:1: note: found 12 similar trace(s) to this src/extensions/shmmodule.c:1087:2: warning: dereferencing NULL (MEM[(struct PyObject *)o].ob_refcnt) at src/extensions/shmmodule.c:1087 [enabled by default] src/extensions/shmmodule.c:1081:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1081:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1083:26: note: reaching: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1083:10: note: when PyInt_FromLong() succeeds at: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1085:8: note: when considering range: -0x80000000 <= value <= -1 at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1085:8: note: taking True path at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1086:32: note: reaching: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1086:4: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:195 as non-NULL at: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1086:4: note: when PyDict_GetItem does not find item at: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1087:2: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1113:1: warning: ob_refcnt of return value is 1 too low [enabled by default] src/extensions/shmmodule.c:1113:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) src/extensions/shmmodule.c:1113:1: note: due to object being referenced by: return value src/extensions/shmmodule.c:1113:1: note: but final ob_refcnt is N + 0 src/extensions/shmmodule.c:1091:5: note: new ref from (unknown) PyObject_Init allocated at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1081:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1081:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1083:26: note: reaching: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1083:10: note: when PyInt_FromLong() succeeds at: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1085:8: note: when considering value == (int)0 from src/extensions/shmmodule.c:1085 at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1085:8: note: taking False path at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1091:11: note: reaching: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1091:5: note: when PyObject_Init() succeeds at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1091:5: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1091:5: note: taking False path at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1093:11: note: reaching: o->shmid = shmid; src/extensions/shmmodule.c:1097:20: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:195 as non-NULL at: if (PyDict_SetItem(shm_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1097:20: note: when PyDict_SetItem() succeeds at: if (PyDict_SetItem(shm_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1097:20: note: ob_refcnt is now refs: 1 + N where N >= 1 src/extensions/shmmodule.c:1097:5: note: taking False path at: if (PyDict_SetItem(shm_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1103:2: note: reaching: Py_DECREF(o); /* the owned reference in shm_dict doesn't count! */ src/extensions/shmmodule.c:1103:2: note: ob_refcnt is now refs: 0 + N where N >= 1 src/extensions/shmmodule.c:1103:2: note: taking True path at: Py_DECREF(o); /* the owned reference in shm_dict doesn't count! */ src/extensions/shmmodule.c:1106:15: note: reaching: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1106:8: note: when considering range: -0x80000000 <= value <= -2 at: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1106:8: note: taking False path at: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1112:5: note: reaching: return (PyObject *)o; src/extensions/shmmodule.c:1113:1: note: returning src/extensions/shmmodule.c:1113:1: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1113:1: warning: ob_refcnt of '*o' is 1 too low [enabled by default] src/extensions/shmmodule.c:1113:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:1113:1: note: but final ob_refcnt is N + -1 src/extensions/shmmodule.c:1091:5: note: new ref from (unknown) PyObject_Init allocated at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1081:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1081:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1083:26: note: reaching: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1083:10: note: when PyInt_FromLong() succeeds at: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1085:8: note: when considering value == (int)0 from src/extensions/shmmodule.c:1085 at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1085:8: note: taking False path at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1091:11: note: reaching: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1091:5: note: when PyObject_Init() succeeds at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1091:5: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1091:5: note: taking False path at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1093:11: note: reaching: o->shmid = shmid; src/extensions/shmmodule.c:1097:20: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:195 as non-NULL at: if (PyDict_SetItem(shm_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1097:20: note: when PyDict_SetItem() succeeds at: if (PyDict_SetItem(shm_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1097:20: note: ob_refcnt is now refs: 1 + N where N >= 1 src/extensions/shmmodule.c:1097:5: note: taking False path at: if (PyDict_SetItem(shm_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1103:2: note: reaching: Py_DECREF(o); /* the owned reference in shm_dict doesn't count! */ src/extensions/shmmodule.c:1103:2: note: ob_refcnt is now refs: 0 + N where N >= 1 src/extensions/shmmodule.c:1103:2: note: taking True path at: Py_DECREF(o); /* the owned reference in shm_dict doesn't count! */ src/extensions/shmmodule.c:1106:15: note: reaching: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1106:8: note: when considering value == (int)-1 from src/extensions/shmmodule.c:1106 at: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1106:8: note: taking True path at: if (shmctl(o->shmid, IPC_STAT, &(o->ds)) == -1) { src/extensions/shmmodule.c:1107:2: note: reaching: Py_DECREF(o); src/extensions/shmmodule.c:1107:2: note: ob_refcnt is now refs: -1 + N where N >= 1 src/extensions/shmmodule.c:1107:2: note: when taking True path at: Py_DECREF(o); src/extensions/shmmodule.c:1108:17: note: reaching: PyErr_SetString(PyShm_Error, src/extensions/shmmodule.c:1108:17: note: calling PyErr_SetString() at: PyErr_SetString(PyShm_Error, src/extensions/shmmodule.c:1113:1: note: returning src/extensions/shmmodule.c:1086:4: warning: calling PyDict_GetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1086 [enabled by default] src/extensions/shmmodule.c:1081:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1081:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1083:26: note: reaching: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1083:10: note: when PyInt_FromLong() fails at: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1085:8: note: when considering range: -0x80000000 <= value <= -1 at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1085:8: note: taking True path at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1086:32: note: reaching: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1086:4: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:195 as non-NULL at: o = (PyShmObj *)PyDict_GetItem(shm_dict, keyo); src/extensions/shmmodule.c:1086:4: note: PyDict_GetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type src/extensions/shmmodule.c:1086:4: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1097:20: warning: calling PyDict_SetItem with NULL as argument 2 (keyo) at src/extensions/shmmodule.c:1097 [enabled by default] src/extensions/shmmodule.c:1081:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1081:8: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &shmid)) src/extensions/shmmodule.c:1083:26: note: reaching: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1083:10: note: when PyInt_FromLong() fails at: keyo = PyInt_FromLong(shmid); src/extensions/shmmodule.c:1085:8: note: when considering value == (int)0 from src/extensions/shmmodule.c:1085 at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1085:8: note: taking False path at: if (PyMapping_HasKey(shm_dict, keyo)) { src/extensions/shmmodule.c:1091:11: note: reaching: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1091:5: note: when PyObject_Init() succeeds at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1091:5: note: taking False path at: if ((o = PyObject_NEW(PyShmObj, &PyShmMemory_Type)) == NULL) src/extensions/shmmodule.c:1093:11: note: reaching: o->shmid = shmid; src/extensions/shmmodule.c:1097:20: note: when treating unknown struct PyObject * from src/extensions/shmmodule.c:195 as non-NULL at: if (PyDict_SetItem(shm_dict, keyo, (PyObject *)o) == -1) { src/extensions/shmmodule.c:1097:20: note: PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type src/extensions/shmmodule.c:1076:1: note: graphical error report for function 'PyShm_memory' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShm_memory-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShmMemory_getattr': src/extensions/shmmodule.c:539:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed src/extensions/shmmodule.c: In function 'PyShmMemory_write': src/extensions/shmmodule.c:437:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#|l" [enabled by default] argument 3 ("&data") had type "char * *" but was expecting "const char * *" for format code "s#" src/extensions/shmmodule.c:437:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "s#|l" [enabled by default] argument 5 ("&offset") had type "long unsigned int *" (pointing to 64 bits) but was expecting "long int *" (pointing to 64 bits) for format code "l" src/extensions/shmmodule.c: In function 'PyShmMemory_read': src/extensions/shmmodule.c:329:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "l|l" [enabled by default] argument 3 ("&n") had type "long unsigned int *" (pointing to 64 bits) but was expecting "long int *" (pointing to 64 bits) for format code "l" src/extensions/shmmodule.c:329:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "l|l" [enabled by default] argument 4 ("&offset") had type "long unsigned int *" (pointing to 64 bits) but was expecting "long int *" (pointing to 64 bits) for format code "l" src/extensions/shmmodule.c:342:10: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/__init__.py", line 79, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/__init__.py", line 85, in _check_refcounts dump_json=self.dump_json) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 4161, in check_refcounts maxtrans) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 4016, in impl_check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3028, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2081, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2108, in _get_transitions_for_stmt return self._get_transitions_for_GimpleAssign(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2614, in _get_transitions_for_GimpleAssign value = self.eval_rhs(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2597, in eval_rhs return v_rhs.eval_unary_op(stmt.exprcode, stmt.lhs.type, stmt.loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 759, in eval_unary_op if (self.minvalue >= gcctype.min_value.constant AttributeError: 'gcc.PointerType' object has no attribute 'min_value' src/extensions/shmmodule.c: In function 'PyShmMemory_attach': src/extensions/shmmodule.c:266:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "|li" [enabled by default] argument 3 ("&address") had type "long unsigned int *" (pointing to 64 bits) but was expecting "long int *" (pointing to 64 bits) for format code "l" src/extensions/shmmodule.c:272:36: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/__init__.py", line 79, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/__init__.py", line 85, in _check_refcounts dump_json=self.dump_json) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 4161, in check_refcounts maxtrans) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/refcounts.py", line 4016, in impl_check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3064, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3028, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2081, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2108, in _get_transitions_for_stmt return self._get_transitions_for_GimpleAssign(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2614, in _get_transitions_for_GimpleAssign value = self.eval_rhs(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2597, in eval_rhs return v_rhs.eval_unary_op(stmt.exprcode, stmt.lhs.type, stmt.loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 759, in eval_unary_op if (self.minvalue >= gcctype.min_value.constant AttributeError: 'gcc.PointerType' object has no attribute 'min_value' src/extensions/shmmodule.c: In function 'PyShmMemory_dealloc': src/extensions/shmmodule.c:533:1: warning: ob_refcnt of PyIntObject is 1 too high [enabled by default] src/extensions/shmmodule.c:533:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:533:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:522:23: note: PyIntObject allocated at: if (PyDict_DelItem(shm_dict, PyInt_FromLong(self->shmid)) == -1) src/extensions/shmmodule.c:522:23: note: when PyInt_FromLong() succeeds at: if (PyDict_DelItem(shm_dict, PyInt_FromLong(self->shmid)) == -1) src/extensions/shmmodule.c:522:23: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:522:8: note: when considering range: -0x80000000 <= value <= -2 at: if (PyDict_DelItem(shm_dict, PyInt_FromLong(self->shmid)) == -1) src/extensions/shmmodule.c:522:8: note: taking False path at: if (PyDict_DelItem(shm_dict, PyInt_FromLong(self->shmid)) == -1) src/extensions/shmmodule.c:532:17: note: reaching: PyObject_DEL(self); src/extensions/shmmodule.c:533:1: note: returning at: } src/extensions/shmmodule.c:533:1: note: found 2 similar trace(s) to this src/extensions/shmmodule.c:520:1: note: graphical error report for function 'PyShmMemory_dealloc' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShmMemory_dealloc-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShm_getshmid': src/extensions/shmmodule.c:1044:1: warning: ob_refcnt of PyIntObject is 1 too high [enabled by default] src/extensions/shmmodule.c:1044:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:1044:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:1040:17: note: PyIntObject allocated at: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1036:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "l", &key)) src/extensions/shmmodule.c:1036:8: note: taking False path at: if (!PyArg_ParseTuple(args, "l", &key)) src/extensions/shmmodule.c:1038:19: note: reaching: shmid = shmget((key_t)key, 0, 0); src/extensions/shmmodule.c:1039:8: note: when considering value == (int)-1 from src/extensions/shmmodule.c:1038 at: if (shmid == -1) { src/extensions/shmmodule.c:1039:8: note: taking True path at: if (shmid == -1) { src/extensions/shmmodule.c:1040:17: note: reaching: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1040:17: note: when PyInt_FromLong() succeeds at: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1040:17: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1040:17: note: calling PyErr_SetObject() at: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1040:17: note: ob_refcnt is now refs: 1 + N where N >= 1 src/extensions/shmmodule.c:1044:1: note: returning src/extensions/shmmodule.c:1032:1: note: graphical error report for function 'PyShm_getshmid' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShm_getshmid-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShm_getsemid': src/extensions/shmmodule.c:1183:1: warning: ob_refcnt of PyIntObject is 1 too high [enabled by default] src/extensions/shmmodule.c:1183:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:1183:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:1179:17: note: PyIntObject allocated at: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1175:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "l", &key)) src/extensions/shmmodule.c:1175:8: note: taking False path at: if (!PyArg_ParseTuple(args, "l", &key)) src/extensions/shmmodule.c:1177:19: note: reaching: semid = semget((key_t)key, 0, 0); src/extensions/shmmodule.c:1178:8: note: when considering value == (int)-1 from src/extensions/shmmodule.c:1177 at: if (semid == -1) { src/extensions/shmmodule.c:1178:8: note: taking True path at: if (semid == -1) { src/extensions/shmmodule.c:1179:17: note: reaching: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1179:17: note: when PyInt_FromLong() succeeds at: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1179:17: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1179:17: note: calling PyErr_SetObject() at: PyErr_SetObject(PyExc_KeyError, PyInt_FromLong(key)); src/extensions/shmmodule.c:1179:17: note: ob_refcnt is now refs: 1 + N where N >= 1 src/extensions/shmmodule.c:1183:1: note: returning src/extensions/shmmodule.c:1171:1: note: graphical error report for function 'PyShm_getsemid' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShm_getsemid-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShm_ftok': src/extensions/shmmodule.c:1016:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sb" [enabled by default] argument 3 ("&path") had type "char * *" but was expecting "const char * *" for format code "s" src/extensions/shmmodule.c:1016:26: warning: Mismatching type in call to PyArg_ParseTuple with format code "sb" [enabled by default] argument 4 ("&id") had type "char *" (pointing to 8 bits) but was expecting "unsigned char *" (pointing to 8 bits) for format code "b" src/extensions/shmmodule.c: In function 'PyShm_create_semaphore': src/extensions/shmmodule.c:1277:11: warning: passing uninitialized data (arg) as argument 4 to function at src/extensions/shmmodule.c:1277 [enabled by default] src/extensions/shmmodule.c:1272:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "l|ii", &key, &value, &perm)) src/extensions/shmmodule.c:1272:8: note: taking False path at: if (!PyArg_ParseTuple(args, "l|ii", &key, &value, &perm)) src/extensions/shmmodule.c:1274:19: note: reaching: semid = semget((key_t)key, 1, perm | IPC_CREAT | IPC_EXCL); src/extensions/shmmodule.c:1276:8: note: when considering range: -0x80000000 <= value <= -2 at: if (!((semid != -1) && src/extensions/shmmodule.c:1276:8: note: taking False path at: if (!((semid != -1) && src/extensions/shmmodule.c:1277:11: note: reaching: (semctl(semid, 0, SETVAL, arg) != -1))) src/extensions/shmmodule.c:1277:11: note: found 1 similar trace(s) to this src/extensions/shmmodule.c:1265:1: note: graphical error report for function 'PyShm_create_semaphore' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShm_create_semaphore-refcount-errors.html' src/extensions/shmmodule.c: In function 'PyShm_create_memory': src/extensions/shmmodule.c:1137:1: warning: ob_refcnt of new ref from call to Py_BuildValue is 1 too high [enabled by default] src/extensions/shmmodule.c:1137:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/extensions/shmmodule.c:1137:1: note: but final ob_refcnt is N + 1 src/extensions/shmmodule.c:1136:24: note: new ref from call to Py_BuildValue allocated at: return PyShm_memory(self, Py_BuildValue("(i)", shmid)); src/extensions/shmmodule.c:1130:26: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "li|i", &key, &size, &perm)) src/extensions/shmmodule.c:1130:8: note: taking False path at: if (!PyArg_ParseTuple(args, "li|i", &key, &size, &perm)) src/extensions/shmmodule.c:1132:19: note: reaching: shmid = shmget((key_t)key, size, perm | IPC_CREAT | IPC_EXCL); src/extensions/shmmodule.c:1133:8: note: when considering range: -0x80000000 <= value <= -2 at: if (shmid == -1) src/extensions/shmmodule.c:1133:8: note: taking False path at: if (shmid == -1) src/extensions/shmmodule.c:1136:24: note: reaching: return PyShm_memory(self, Py_BuildValue("(i)", shmid)); src/extensions/shmmodule.c:1136:24: note: when Py_BuildValue() succeeds at: return PyShm_memory(self, Py_BuildValue("(i)", shmid)); src/extensions/shmmodule.c:1136:24: note: ob_refcnt is now refs: 1 + N where N >= 0 src/extensions/shmmodule.c:1136:5: note: when PyShm_memory() succeeds at: return PyShm_memory(self, Py_BuildValue("(i)", shmid)); src/extensions/shmmodule.c:1137:1: note: returning src/extensions/shmmodule.c:1137:1: note: found 3 similar trace(s) to this src/extensions/shmmodule.c:1125:1: note: graphical error report for function 'PyShm_create_memory' written out to 'build/temp.linux-x86_64-2.7/src/extensions/shmmodule.c.PyShm_create_memory-refcount-errors.html' error: command 'gcc' failed with exit status 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.vPEDge (%build) Bad exit status from /var/tmp/rpm-tmp.vPEDge (%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-kaa-base.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-kaa-base.spec'] LEAVE do --> EXCEPTION RAISED