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-GeoIP.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-GeoIP.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-GeoIP-1.2.5-0.4.20090931cvs.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-GeoIP.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-GeoIP.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xPoas6 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf GeoIP-Python-1.2.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/GeoIP-Python-1.2.4.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd GeoIP-Python-1.2.4 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (python-GeoIP-1.2.4-ipv6.patch):' Patch #0 (python-GeoIP-1.2.4-ipv6.patch): + /bin/cat /builddir/build/SOURCES/python-GeoIP-1.2.4-ipv6.patch + /usr/bin/patch -s -p1 --fuzz=0 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Xt8ln4 + umask 022 + cd /builddir/build/BUILD + cd GeoIP-Python-1.2.4 + 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 'GeoIP' 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/local/include -I/usr/include/python2.7 -c py_GeoIP.c -o build/temp.linux-x86_64-2.7/py_GeoIP.o py_GeoIP.c: In function 'initGeoIP': py_GeoIP.c:442:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed py_GeoIP.c:469:19: warning: calling PyDict_SetItem with NULL as argument 1 (ccont) at py_GeoIP.c:469 [enabled by default] py_GeoIP.c:449:5: note: when Py_InitModule4_64() succeeds at: m = Py_InitModule("GeoIP", GeoIP_Class_methods); py_GeoIP.c:452:36: note: when PyErr_NewException() succeeds at: PyGeoIPError = PyErr_NewException("py_geoip.error", NULL, NULL); py_GeoIP.c:453:23: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(d, "error", PyGeoIPError); py_GeoIP.c:455:9: note: when PyTuple_New() succeeds at: ccode = PyTuple_New(total_ccodes); py_GeoIP.c:456:9: note: when PyDict_New() succeeds at: cname = PyDict_New(); py_GeoIP.c:457:9: note: when PyDict_New() fails at: ccont = PyDict_New(); py_GeoIP.c:459:3: note: taking True path at: for (i = 0; iob_type py_GeoIP.c:469:19: note: found 5 similar trace(s) to this py_GeoIP.c:469:19: warning: calling PyDict_SetItem with NULL as argument 3 (tmp) at py_GeoIP.c:469 [enabled by default] py_GeoIP.c:449:5: note: when Py_InitModule4_64() succeeds at: m = Py_InitModule("GeoIP", GeoIP_Class_methods); py_GeoIP.c:452:36: note: when PyErr_NewException() succeeds at: PyGeoIPError = PyErr_NewException("py_geoip.error", NULL, NULL); py_GeoIP.c:453:23: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(d, "error", PyGeoIPError); py_GeoIP.c:455:9: note: when PyTuple_New() succeeds at: ccode = PyTuple_New(total_ccodes); py_GeoIP.c:456:9: note: when PyDict_New() succeeds at: cname = PyDict_New(); py_GeoIP.c:457:9: note: when PyDict_New() succeeds at: ccont = PyDict_New(); py_GeoIP.c:459:3: note: taking True path at: for (i = 0; iob_refcnt py_GeoIP.c:469:19: note: found 3 similar trace(s) to this py_GeoIP.c:465:19: warning: calling PyDict_SetItem with NULL as argument 3 (tmp) at py_GeoIP.c:465 [enabled by default] py_GeoIP.c:449:5: note: when Py_InitModule4_64() succeeds at: m = Py_InitModule("GeoIP", GeoIP_Class_methods); py_GeoIP.c:452:36: note: when PyErr_NewException() succeeds at: PyGeoIPError = PyErr_NewException("py_geoip.error", NULL, NULL); py_GeoIP.c:453:23: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(d, "error", PyGeoIPError); py_GeoIP.c:455:9: note: when PyTuple_New() succeeds at: ccode = PyTuple_New(total_ccodes); py_GeoIP.c:456:9: note: when PyDict_New() succeeds at: cname = PyDict_New(); py_GeoIP.c:457:9: note: when PyDict_New() succeeds at: ccont = PyDict_New(); py_GeoIP.c:459:3: note: taking True path at: for (i = 0; iob_refcnt py_GeoIP.c:465:19: warning: calling PyDict_SetItem with NULL as argument 2 (name) at py_GeoIP.c:465 [enabled by default] py_GeoIP.c:449:5: note: when Py_InitModule4_64() succeeds at: m = Py_InitModule("GeoIP", GeoIP_Class_methods); py_GeoIP.c:452:36: note: when PyErr_NewException() succeeds at: PyGeoIPError = PyErr_NewException("py_geoip.error", NULL, NULL); py_GeoIP.c:453:23: note: when PyDict_SetItemString() succeeds at: PyDict_SetItemString(d, "error", PyGeoIPError); py_GeoIP.c:455:9: note: when PyTuple_New() succeeds at: ccode = PyTuple_New(total_ccodes); py_GeoIP.c:456:9: note: when PyDict_New() succeeds at: cname = PyDict_New(); py_GeoIP.c:457:9: note: when PyDict_New() succeeds at: ccont = PyDict_New(); py_GeoIP.c:459:3: note: taking True path at: for (i = 0; iob_type py_GeoIP.c:465:19: note: found 1 similar trace(s) to this py_GeoIP.c:442:1: note: graphical error report for function 'initGeoIP' written out to 'build/temp.linux-x86_64-2.7/py_GeoIP.c.initGeoIP-refcount-errors.html' py_GeoIP.c: In function 'GeoIP_open_Py': py_GeoIP.c:62:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "si" [enabled by default] argument 3 ("&filename") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c:76:1: warning: ob_refcnt of '*GeoIP' is 1 too high [enabled by default] py_GeoIP.c:76:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) py_GeoIP.c:76:1: note: but final ob_refcnt is N + 1 py_GeoIP.c:66:9: note: _PyObject_New allocated at: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:62:24: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "si", &filename, &flags)) { py_GeoIP.c:62:6: note: taking False path at: if (!PyArg_ParseTuple(args, "si", &filename, &flags)) { py_GeoIP.c:66:9: note: reaching: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:66:9: note: when _PyObject_New() succeeds at: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:66:9: note: ob_refcnt is now refs: 1 + N where N >= 0 py_GeoIP.c:70:6: note: when treating unknown struct GeoIP * from py_GeoIP.c:68 as NULL at: if (!GeoIP->gi) { py_GeoIP.c:70:6: note: taking True path at: if (!GeoIP->gi) { py_GeoIP.c:71:20: note: reaching: PyErr_SetString(PyGeoIPError, "Can't create GeoIP->gi object"); py_GeoIP.c:71:20: note: calling PyErr_SetString() at: PyErr_SetString(PyGeoIPError, "Can't create GeoIP->gi object"); py_GeoIP.c:76:1: note: returning py_GeoIP.c:68:13: warning: dereferencing NULL (GeoIP->gi) at py_GeoIP.c:70 [enabled by default] py_GeoIP.c:62:24: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "si", &filename, &flags)) { py_GeoIP.c:62:6: note: taking False path at: if (!PyArg_ParseTuple(args, "si", &filename, &flags)) { py_GeoIP.c:66:9: note: reaching: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:66:9: note: when _PyObject_New() fails at: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:57:47: note: graphical error report for function 'GeoIP_open_Py' written out to 'build/temp.linux-x86_64-2.7/py_GeoIP.c.GeoIP_open_Py-refcount-errors.html' py_GeoIP.c: In function 'GeoIP_new_Py': py_GeoIP.c:54:1: warning: ob_refcnt of '*GeoIP' is 1 too high [enabled by default] py_GeoIP.c:54:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) py_GeoIP.c:54:1: note: but final ob_refcnt is N + 1 py_GeoIP.c:44:9: note: _PyObject_New allocated at: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:40:24: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &flags)) { py_GeoIP.c:40:6: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &flags)) { py_GeoIP.c:44:9: note: reaching: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:44:9: note: when _PyObject_New() succeeds at: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:44:9: note: ob_refcnt is now refs: 1 + N where N >= 0 py_GeoIP.c:48:6: note: when treating unknown struct GeoIP * from py_GeoIP.c:46 as NULL at: if (!GeoIP->gi) { py_GeoIP.c:48:6: note: taking True path at: if (!GeoIP->gi) { py_GeoIP.c:49:20: note: reaching: PyErr_SetString(PyGeoIPError, "Can't create GeoIP->gi object"); py_GeoIP.c:49:20: note: calling PyErr_SetString() at: PyErr_SetString(PyGeoIPError, "Can't create GeoIP->gi object"); py_GeoIP.c:54:1: note: returning py_GeoIP.c:46:13: warning: dereferencing NULL (GeoIP->gi) at py_GeoIP.c:48 [enabled by default] py_GeoIP.c:40:24: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "i", &flags)) { py_GeoIP.c:40:6: note: taking False path at: if (!PyArg_ParseTuple(args, "i", &flags)) { py_GeoIP.c:44:9: note: reaching: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:44:9: note: when _PyObject_New() fails at: GeoIP = PyObject_New(GeoIP_GeoIPObject, &GeoIP_GeoIPType); py_GeoIP.c:36:46: note: graphical error report for function 'GeoIP_new_Py' written out to 'build/temp.linux-x86_64-2.7/py_GeoIP.c.GeoIP_new_Py-refcount-errors.html' py_GeoIP.c: In function 'GeoIP_GetAttr': py_GeoIP.c:413:3: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2029, in _get_transitions_for_stmt return self._get_transitions_for_GimpleCall(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2212, in _get_transitions_for_GimpleCall raise NotImplementedError('not yet implemented: %s' % fnname) NotImplementedError: not yet implemented: Py_FindMethod py_GeoIP.c: In function 'GeoIP_country_name_by_addr_v6_Py': py_GeoIP.c:123:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_country_code_by_addr_v6_Py': py_GeoIP.c:112:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_country_name_by_name_v6_Py': py_GeoIP.c:101:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_country_code_by_name_v6_Py': py_GeoIP.c:90:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_range_by_ip_Py': py_GeoIP.c:333:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c:353:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] py_GeoIP.c:333:24: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "s", &name)) { py_GeoIP.c:333:6: note: taking False path at: if (!PyArg_ParseTuple(args, "s", &name)) { py_GeoIP.c:336:37: note: reaching: start_stop_ptr = GeoIP_range_by_ip(GeoIP->gi, name); py_GeoIP.c:337:6: note: when treating unknown char * * from py_GeoIP.c:336 as NULL at: if ( !start_stop_ptr ) { py_GeoIP.c:337:6: note: taking True path at: if ( !start_stop_ptr ) { py_GeoIP.c:338:5: note: reaching: return NULL; py_GeoIP.c:353:1: note: returning py_GeoIP.c:327:72: note: graphical error report for function 'GeoIP_range_by_ip_Py' written out to 'build/temp.linux-x86_64-2.7/py_GeoIP.c.GeoIP_range_by_ip_Py-refcount-errors.html' py_GeoIP.c: In function 'GeoIP_record_by_name_Py': py_GeoIP.c:294:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_populate_dict': py_GeoIP.c:262:18: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2893, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2013, in get_transitions return self._get_transitions_for_stmt(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2040, in _get_transitions_for_stmt return self._get_transitions_for_GimpleAssign(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2504, in _get_transitions_for_GimpleAssign value = self.eval_rhs(stmt) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2451, in eval_rhs return self.eval_rvalue(rhs[0], stmt.loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 1498, in eval_rvalue region = self.get_field_region(expr, loc)#.target, expr.field.name) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 1664, in get_field_region target_region = self.eval_lvalue(cr.target, loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 1447, in eval_lvalue return self.get_field_region(expr, loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 1662, in get_field_region return self.make_field_region(ptr.region, cr.field.name) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 1765, in make_field_region check_isinstance(field, str) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/gccutils.py", line 629, in check_isinstance raise TypeError('%s / %r is not an instance of %s' % (obj, obj, types)) TypeError: None / None is not an instance of py_GeoIP.c: In function 'GeoIP_record_by_addr_Py': py_GeoIP.c:279:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&addr") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_region_by_name_Py': py_GeoIP.c:309:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_region_by_addr_Py': py_GeoIP.c:320:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_org_by_name_Py': py_GeoIP.c:193:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_org_by_addr_Py': py_GeoIP.c:179:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_country_name_by_addr_Py': py_GeoIP.c:167:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_country_code_by_addr_Py': py_GeoIP.c:156:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_country_name_by_name_Py': py_GeoIP.c:145:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_country_code_by_name_Py': py_GeoIP.c:134:24: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&name") had type "char * *" but was expecting "const char * *" for format code "s" py_GeoIP.c: In function 'GeoIP_GeoIP_dealloc': py_GeoIP.c:83:15: error: Unhandled Python exception raised calling 'execute' method Traceback (most recent call last): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 75, in execute self._check_refcounts(fun) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/__init__.py", line 79, in _check_refcounts self.show_possible_null_derefs) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 3668, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2929, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 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_Free py_GeoIP.c: In function 'GeoIP_SetItemInt': py_GeoIP.c:227:16: warning: calling PyDict_SetItem with NULL as argument 3 (valueObj) at py_GeoIP.c:227 [enabled by default] py_GeoIP.c:225:10: note: when Py_BuildValue() succeeds at: nameObj = Py_BuildValue("s",name); py_GeoIP.c:226:11: note: when Py_BuildValue() fails at: valueObj = Py_BuildValue("i",value); py_GeoIP.c:227:16: note: PyDict_SetItem() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt py_GeoIP.c:227:16: warning: calling PyDict_SetItem with NULL as argument 2 (nameObj) at py_GeoIP.c:227 [enabled by default] py_GeoIP.c:225:10: note: when Py_BuildValue() fails at: nameObj = Py_BuildValue("s",name); py_GeoIP.c:226:11: note: when Py_BuildValue() succeeds at: valueObj = Py_BuildValue("i",value); py_GeoIP.c:227:16: note: PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type py_GeoIP.c:227:16: note: found 1 similar trace(s) to this py_GeoIP.c:222:69: note: graphical error report for function 'GeoIP_SetItemInt' written out to 'build/temp.linux-x86_64-2.7/py_GeoIP.c.GeoIP_SetItemInt-refcount-errors.html' py_GeoIP.c: In function 'GeoIP_SetItemFloat': py_GeoIP.c:217:16: warning: calling PyDict_SetItem with NULL as argument 3 (valueObj) at py_GeoIP.c:217 [enabled by default] py_GeoIP.c:215:10: note: when Py_BuildValue() succeeds at: nameObj = Py_BuildValue("s",name); py_GeoIP.c:216:11: note: when Py_BuildValue() fails at: valueObj = Py_BuildValue("f",value); py_GeoIP.c:217:16: note: PyDict_SetItem() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt py_GeoIP.c:217:16: warning: calling PyDict_SetItem with NULL as argument 2 (nameObj) at py_GeoIP.c:217 [enabled by default] py_GeoIP.c:215:10: note: when Py_BuildValue() fails at: nameObj = Py_BuildValue("s",name); py_GeoIP.c:216:11: note: when Py_BuildValue() succeeds at: valueObj = Py_BuildValue("f",value); py_GeoIP.c:217:16: note: PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type py_GeoIP.c:217:16: note: found 1 similar trace(s) to this py_GeoIP.c:212:73: note: graphical error report for function 'GeoIP_SetItemFloat' written out to 'build/temp.linux-x86_64-2.7/py_GeoIP.c.GeoIP_SetItemFloat-refcount-errors.html' py_GeoIP.c: In function 'GeoIP_SetItemString': py_GeoIP.c:207:16: warning: calling PyDict_SetItem with NULL as argument 3 (valueObj) at py_GeoIP.c:207 [enabled by default] py_GeoIP.c:205:10: note: when Py_BuildValue() succeeds at: nameObj = Py_BuildValue("s",name); py_GeoIP.c:206:11: note: when Py_BuildValue() fails at: valueObj = Py_BuildValue("s",value); py_GeoIP.c:207:16: note: PyDict_SetItem() invokes Py_INCREF() on the pointer, thus accessing (NULL)->ob_refcnt py_GeoIP.c:207:16: warning: calling PyDict_SetItem with NULL as argument 2 (nameObj) at py_GeoIP.c:207 [enabled by default] py_GeoIP.c:205:10: note: when Py_BuildValue() fails at: nameObj = Py_BuildValue("s",name); py_GeoIP.c:206:11: note: when Py_BuildValue() succeeds at: valueObj = Py_BuildValue("s",value); py_GeoIP.c:207:16: note: PyDict_SetItem() invokes Py_TYPE() on the pointer via the PyString_CheckExact() macro, thus accessing (NULL)->ob_type py_GeoIP.c:207:16: note: found 1 similar trace(s) to this py_GeoIP.c:202:81: note: graphical error report for function 'GeoIP_SetItemString' written out to 'build/temp.linux-x86_64-2.7/py_GeoIP.c.GeoIP_SetItemString-refcount-errors.html' error: command 'gcc' failed with exit status 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Xt8ln4 (%build) Bad exit status from /var/tmp/rpm-tmp.Xt8ln4 (%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-GeoIP.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-GeoIP.spec'] LEAVE do --> EXCEPTION RAISED