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-ethtool.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-ethtool.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-ethtool-0.7-2.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-ethtool.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-ethtool.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OV2LFU + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf python-ethtool-0.7 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/python-ethtool-0.7.tar.bz2 + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd python-ethtool-0.7 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6jITQs + umask 022 + cd /builddir/build/BUILD + cd python-ethtool-0.7 + LANG=C + export LANG + unset DISPLAY + /usr/bin/python setup.py build running build running build_ext building 'ethtool' extension creating build creating build/temp.linux-x86_64-2.7 creating build/temp.linux-x86_64-2.7/python-ethtool gcc -pthread -fno-strict-aliasing -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 -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 -fPIC -DVERSION="0.7" -I/usr/include/python2.7 -c python-ethtool/ethtool.c -o build/temp.linux-x86_64-2.7/python-ethtool/ethtool.o python-ethtool/ethtool.c: In function 'get_devices': python-ethtool/ethtool.c:114:8: warning: variable 'ret' set but not used [-Wunused-but-set-variable] python-ethtool/ethtool.c: In function 'initethtool': python-ethtool/ethtool.c:993:20: 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 3802, in check_refcounts limits=limits) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 3000, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2964, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/absinterp.py", line 2017, 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 2033, 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 2204, in _get_transitions_for_GimpleCall return meth(stmt, *args) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 2203, in impl_PyModule_AddObject s_success.cpython.steal_reference(v_value, stmt.loc) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 527, in steal_reference _steal_ref) File "/usr/lib/gcc/x86_64-redhat-linux/4.6.2/plugin/python2/libcpychecker/refcounts.py", line 351, in change_refcount check_isinstance(oldvalue, RefcountValue) 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: (Py_ssize_t)val [-0x7fffffffffffffff <= val <= 0x7fffffffffffffff] from python-ethtool/ethtool.c:992 / WithinRange(gcctype='Py_ssize_t', loc=gcc.Location(file='python-ethtool/ethtool.c', line=992), minvalue=-0x7fffffffffffffff, maxvalue=0x7fffffffffffffff) is not an instance of python-ethtool/ethtool.c: In function 'get_flags': python-ethtool/ethtool.c:351:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c:377:22: warning: Mismatching type in call to Py_BuildValue with format code "h" [enabled by default] argument 2 ("D.16923") had type "int" but was expecting "short int" for format code "h" python-ethtool/ethtool.c: In function 'get_sg': python-ethtool/ethtool.c:696:22: warning: Mismatching type in call to Py_BuildValue with format code "b" [enabled by default] argument 2 ("value.6") had type "int" but was expecting "char" for format code "b" python-ethtool/ethtool.c:697:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:693:5: note: when considering range: -0x80000000 <= value <= -1 at: if (get_dev_int_value(ETHTOOL_GSG, args, &value) < 0) python-ethtool/ethtool.c:693:5: note: taking True path at: if (get_dev_int_value(ETHTOOL_GSG, args, &value) < 0) python-ethtool/ethtool.c:694:3: note: reaching: return NULL; python-ethtool/ethtool.c:697:1: note: returning python-ethtool/ethtool.c:690:1: note: graphical error report for function 'get_sg' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_sg-refcount-errors.html' python-ethtool/ethtool.c: In function 'get_dev_value': python-ethtool/ethtool.c:622:22: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c: In function 'get_gso': python-ethtool/ethtool.c:686:22: warning: Mismatching type in call to Py_BuildValue with format code "b" [enabled by default] argument 2 ("value.12") had type "int" but was expecting "char" for format code "b" python-ethtool/ethtool.c:687:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:683:5: note: when considering range: -0x80000000 <= value <= -1 at: if (get_dev_int_value(ETHTOOL_GGSO, args, &value) < 0) python-ethtool/ethtool.c:683:5: note: taking True path at: if (get_dev_int_value(ETHTOOL_GGSO, args, &value) < 0) python-ethtool/ethtool.c:684:3: note: reaching: return NULL; python-ethtool/ethtool.c:687:1: note: returning python-ethtool/ethtool.c:680:1: note: graphical error report for function 'get_gso' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_gso-refcount-errors.html' python-ethtool/ethtool.c: In function 'get_ufo': python-ethtool/ethtool.c:676:22: warning: Mismatching type in call to Py_BuildValue with format code "b" [enabled by default] argument 2 ("value.13") had type "int" but was expecting "char" for format code "b" python-ethtool/ethtool.c:677:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:673:5: note: when considering range: -0x80000000 <= value <= -1 at: if (get_dev_int_value(ETHTOOL_GUFO, args, &value) < 0) python-ethtool/ethtool.c:673:5: note: taking True path at: if (get_dev_int_value(ETHTOOL_GUFO, args, &value) < 0) python-ethtool/ethtool.c:674:3: note: reaching: return NULL; python-ethtool/ethtool.c:677:1: note: returning python-ethtool/ethtool.c:670:1: note: graphical error report for function 'get_ufo' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_ufo-refcount-errors.html' python-ethtool/ethtool.c: In function 'set_tso': python-ethtool/ethtool.c:667:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:662:5: note: when considering range: -0x80000000 <= value <= -1 at: if (dev_set_int_value(ETHTOOL_STSO, args) < 0) python-ethtool/ethtool.c:662:5: note: taking True path at: if (dev_set_int_value(ETHTOOL_STSO, args) < 0) python-ethtool/ethtool.c:663:3: note: reaching: return NULL; python-ethtool/ethtool.c:667:1: note: returning python-ethtool/ethtool.c:661:1: note: graphical error report for function 'set_tso' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.set_tso-refcount-errors.html' python-ethtool/ethtool.c: In function 'dev_set_int_value': python-ethtool/ethtool.c:644:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c:644:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si" [enabled by default] argument 4 ("&eval.data") had type "u32 *" (pointing to 32 bits) but was expecting "int *" (pointing to 32 bits) for format code "i" python-ethtool/ethtool.c: In function 'get_tso': python-ethtool/ethtool.c:657:22: warning: Mismatching type in call to Py_BuildValue with format code "b" [enabled by default] argument 2 ("value.15") had type "int" but was expecting "char" for format code "b" python-ethtool/ethtool.c:658:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:654:5: note: when considering range: -0x80000000 <= value <= -1 at: if (get_dev_int_value(ETHTOOL_GTSO, args, &value) < 0) python-ethtool/ethtool.c:654:5: note: taking True path at: if (get_dev_int_value(ETHTOOL_GTSO, args, &value) < 0) python-ethtool/ethtool.c:655:3: note: reaching: return NULL; python-ethtool/ethtool.c:658:1: note: returning python-ethtool/ethtool.c:651:1: note: graphical error report for function 'get_tso' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_tso-refcount-errors.html' python-ethtool/ethtool.c: In function 'set_ringparam': python-ethtool/ethtool.c:869:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "sO" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c:880:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:869:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "sO", &devname, &dict)) python-ethtool/ethtool.c:869:5: note: taking False path at: if (!PyArg_ParseTuple(args, "sO", &devname, &dict)) python-ethtool/ethtool.c:872:6: note: reaching: if (struct_desc_from_dict(ethtool_ringparam_desc, &ring, dict) != 0) python-ethtool/ethtool.c:872:5: note: when considering range: -0x80000000 <= value <= -1 at: if (struct_desc_from_dict(ethtool_ringparam_desc, &ring, dict) != 0) python-ethtool/ethtool.c:872:5: note: taking True path at: if (struct_desc_from_dict(ethtool_ringparam_desc, &ring, dict) != 0) python-ethtool/ethtool.c:873:3: note: reaching: return NULL; python-ethtool/ethtool.c:880:1: note: returning python-ethtool/ethtool.c:880:1: note: found 3 similar trace(s) to this python-ethtool/ethtool.c:864:1: note: graphical error report for function 'set_ringparam' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.set_ringparam-refcount-errors.html' python-ethtool/ethtool.c: In function 'get_ringparam': python-ethtool/ethtool.c:861:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:857:5: note: when considering range: -0x80000000 <= value <= -1 at: if (get_dev_value(ETHTOOL_GRINGPARAM, args, &ring) < 0) python-ethtool/ethtool.c:857:5: note: taking True path at: if (get_dev_value(ETHTOOL_GRINGPARAM, args, &ring) < 0) python-ethtool/ethtool.c:858:3: note: reaching: return NULL; python-ethtool/ethtool.c:861:1: note: returning python-ethtool/ethtool.c:854:1: note: graphical error report for function 'get_ringparam' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_ringparam-refcount-errors.html' python-ethtool/ethtool.c: In function 'get_devices': python-ethtool/ethtool.c:140:3: warning: dereferencing NULL (str->ob_refcnt) at python-ethtool/ethtool.c:140 [enabled by default] python-ethtool/ethtool.c:115:12: note: when PyList_New() succeeds at: PyObject *list = PyList_New(0); python-ethtool/ethtool.c:118:5: note: when treating unknown struct FILE * from python-ethtool/ethtool.c:116 as non-NULL at: if (fd == NULL) { python-ethtool/ethtool.c:118:5: note: taking False path at: if (fd == NULL) { python-ethtool/ethtool.c:123:6: note: reaching: ret = fgets(buffer, 256, fd); ret = fgets(buffer, 256, fd); python-ethtool/ethtool.c:124:8: note: when considering value == (int)0 from python-ethtool/ethtool.c:124 at: while (!feof(fd)) { python-ethtool/ethtool.c:124:8: note: taking True path at: while (!feof(fd)) { python-ethtool/ethtool.c:126:9: note: reaching: char *name = buffer; python-ethtool/ethtool.c:129:6: note: when treating unknown char * from python-ethtool/ethtool.c:129 as non-NULL at: if (fgets(buffer, 256, fd) == NULL) python-ethtool/ethtool.c:129:6: note: taking False path at: if (fgets(buffer, 256, fd) == NULL) python-ethtool/ethtool.c:132:9: note: reaching: while (end && *end != ':') python-ethtool/ethtool.c:132:9: note: taking True path at: while (end && *end != ':') python-ethtool/ethtool.c:132:22: note: reaching: while (end && *end != ':') python-ethtool/ethtool.c:132:14: note: when taking False path at: while (end && *end != ':') python-ethtool/ethtool.c:134:8: note: reaching: *end = 0; /* terminate where colon was */ python-ethtool/ethtool.c:135:9: note: taking False path at: while (*name == ' ') python-ethtool/ethtool.c:138:7: note: reaching: str = PyString_FromString(name); python-ethtool/ethtool.c:138:7: note: when PyString_FromString() fails at: str = PyString_FromString(name); python-ethtool/ethtool.c:139:16: note: returning -1 from PyList_Append() due to NULL item at: PyList_Append(list, str); python-ethtool/ethtool.c:144:1: warning: ob_refcnt of '*list' is 1 too high [enabled by default] python-ethtool/ethtool.c:144:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) python-ethtool/ethtool.c:144:1: note: but final ob_refcnt is N + 1 python-ethtool/ethtool.c:115:12: note: PyListObject allocated at: PyObject *list = PyList_New(0); python-ethtool/ethtool.c:115:12: note: when PyList_New() succeeds at: PyObject *list = PyList_New(0); python-ethtool/ethtool.c:115:12: note: ob_refcnt is now refs: 1 + N where N >= 0 python-ethtool/ethtool.c:118:5: note: when treating unknown struct FILE * from python-ethtool/ethtool.c:116 as NULL at: if (fd == NULL) { python-ethtool/ethtool.c:118:5: note: taking True path at: if (fd == NULL) { python-ethtool/ethtool.c:119:43: note: reaching: PyErr_SetString(PyExc_OSError, strerror(errno)); python-ethtool/ethtool.c:119:42: note: when treating unknown int * from python-ethtool/ethtool.c:119 as non-NULL at: PyErr_SetString(PyExc_OSError, strerror(errno)); python-ethtool/ethtool.c:119:18: note: calling PyErr_SetString() at: PyErr_SetString(PyExc_OSError, strerror(errno)); python-ethtool/ethtool.c:144:1: note: returning python-ethtool/ethtool.c:139:16: warning: calling PyList_Append with NULL as argument 1 (list) at python-ethtool/ethtool.c:139 [enabled by default] python-ethtool/ethtool.c:115:12: note: when PyList_New() fails at: PyObject *list = PyList_New(0); python-ethtool/ethtool.c:118:5: note: when treating unknown struct FILE * from python-ethtool/ethtool.c:116 as non-NULL at: if (fd == NULL) { python-ethtool/ethtool.c:118:5: note: taking False path at: if (fd == NULL) { python-ethtool/ethtool.c:123:6: note: reaching: ret = fgets(buffer, 256, fd); ret = fgets(buffer, 256, fd); python-ethtool/ethtool.c:124:8: note: when considering value == (int)0 from python-ethtool/ethtool.c:124 at: while (!feof(fd)) { python-ethtool/ethtool.c:124:8: note: taking True path at: while (!feof(fd)) { python-ethtool/ethtool.c:126:9: note: reaching: char *name = buffer; python-ethtool/ethtool.c:129:6: note: when treating unknown char * from python-ethtool/ethtool.c:129 as non-NULL at: if (fgets(buffer, 256, fd) == NULL) python-ethtool/ethtool.c:129:6: note: taking False path at: if (fgets(buffer, 256, fd) == NULL) python-ethtool/ethtool.c:132:9: note: reaching: while (end && *end != ':') python-ethtool/ethtool.c:132:9: note: taking True path at: while (end && *end != ':') python-ethtool/ethtool.c:132:22: note: reaching: while (end && *end != ':') python-ethtool/ethtool.c:132:14: note: when taking False path at: while (end && *end != ':') python-ethtool/ethtool.c:134:8: note: reaching: *end = 0; /* terminate where colon was */ python-ethtool/ethtool.c:135:9: note: taking False path at: while (*name == ' ') python-ethtool/ethtool.c:138:7: note: reaching: str = PyString_FromString(name); python-ethtool/ethtool.c:138:7: note: when PyString_FromString() succeeds at: str = PyString_FromString(name); python-ethtool/ethtool.c:139:16: note: PyList_Append() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type python-ethtool/ethtool.c:139:16: note: found 1 similar trace(s) to this python-ethtool/ethtool.c:112:1: note: graphical error report for function 'get_devices' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_devices-refcount-errors.html' python-ethtool/ethtool.c: In function 'set_coalesce': python-ethtool/ethtool.c:829:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "sO" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c:840:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:829:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "sO", &devname, &dict)) python-ethtool/ethtool.c:829:5: note: taking False path at: if (!PyArg_ParseTuple(args, "sO", &devname, &dict)) python-ethtool/ethtool.c:832:6: note: reaching: if (struct_desc_from_dict(ethtool_coalesce_desc, &coal, dict) != 0) python-ethtool/ethtool.c:832:5: note: when considering range: -0x80000000 <= value <= -1 at: if (struct_desc_from_dict(ethtool_coalesce_desc, &coal, dict) != 0) python-ethtool/ethtool.c:832:5: note: taking True path at: if (struct_desc_from_dict(ethtool_coalesce_desc, &coal, dict) != 0) python-ethtool/ethtool.c:833:3: note: reaching: return NULL; python-ethtool/ethtool.c:840:1: note: returning python-ethtool/ethtool.c:840:1: note: found 3 similar trace(s) to this python-ethtool/ethtool.c:824:1: note: graphical error report for function 'set_coalesce' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.set_coalesce-refcount-errors.html' python-ethtool/ethtool.c: In function 'get_coalesce': python-ethtool/ethtool.c:821:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] python-ethtool/ethtool.c:817:5: note: when considering range: -0x80000000 <= value <= -1 at: if (get_dev_value(ETHTOOL_GCOALESCE, args, &coal) < 0) python-ethtool/ethtool.c:817:5: note: taking True path at: if (get_dev_value(ETHTOOL_GCOALESCE, args, &coal) < 0) python-ethtool/ethtool.c:818:3: note: reaching: return NULL; python-ethtool/ethtool.c:821:1: note: returning python-ethtool/ethtool.c:814:1: note: graphical error report for function 'get_coalesce' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_coalesce-refcount-errors.html' python-ethtool/ethtool.c: In function 'get_broadcast': python-ethtool/ethtool.c:432:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c: In function 'get_netmask': python-ethtool/ethtool.c:388:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c: In function 'get_interfaces_info': python-ethtool/ethtool.c:247:79: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed python-ethtool/ethtool.c:326:19: warning: calling PyTuple_SetItem with NULL as argument 1 (args) at python-ethtool/ethtool.c:326 [enabled by default] python-ethtool/ethtool.c:253:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "|O", &inargs)) { python-ethtool/ethtool.c:253:5: note: taking False path at: if (!PyArg_ParseTuple(args, "|O", &inargs)) { python-ethtool/ethtool.c:260:13: note: reaching: if( inargs != NULL ) { python-ethtool/ethtool.c:260:4: note: taking True path at: if( inargs != NULL ) { python-ethtool/ethtool.c:261:7: note: reaching: if( PyString_Check(inargs) ) { /* Input argument is just a string */ python-ethtool/ethtool.c:261:7: note: when treating unknown struct _typeobject * from python-ethtool/ethtool.c:261 as non-NULL at: if( PyString_Check(inargs) ) { /* Input argument is just a string */ python-ethtool/ethtool.c:261:5: note: when considering value == (long int)0 from python-ethtool/ethtool.c:261 at: if( PyString_Check(inargs) ) { /* Input argument is just a string */ python-ethtool/ethtool.c:261:5: note: taking False path at: if( PyString_Check(inargs) ) { /* Input argument is just a string */ python-ethtool/ethtool.c:265:14: note: reaching: } else if( PyTuple_Check(inargs) ) { /* Input argument is a tuple list with devices */ python-ethtool/ethtool.c:265:14: note: when treating unknown struct _typeobject * from python-ethtool/ethtool.c:265 as non-NULL at: } else if( PyTuple_Check(inargs) ) { /* Input argument is a tuple list with devices */ python-ethtool/ethtool.c:265:12: note: when considering value == (long int)0 from python-ethtool/ethtool.c:265 at: } else if( PyTuple_Check(inargs) ) { /* Input argument is a tuple list with devices */ python-ethtool/ethtool.c:265:12: note: taking False path at: } else if( PyTuple_Check(inargs) ) { /* Input argument is a tuple list with devices */ python-ethtool/ethtool.c:277:14: note: reaching: } else if( PyList_Check(inargs) ) { /* Input argument is a list with devices */ python-ethtool/ethtool.c:277:14: note: when treating unknown struct _typeobject * from python-ethtool/ethtool.c:277 as non-NULL at: } else if( PyList_Check(inargs) ) { /* Input argument is a list with devices */ python-ethtool/ethtool.c:277:12: note: when considering range: 1 <= value <= 0x2000000 at: } else if( PyList_Check(inargs) ) { /* Input argument is a list with devices */ python-ethtool/ethtool.c:277:12: note: taking True path at: } else if( PyList_Check(inargs) ) { /* Input argument is a list with devices */ python-ethtool/ethtool.c:278:8: note: reaching: int j = 0; python-ethtool/ethtool.c:280:32: note: when PyList_Size() returns ob_size at: fetch_devs_len = PyList_Size(inargs); python-ethtool/ethtool.c:282:4: note: when considering range: 1 <= fetch_devs_len <= 0x7fffffff at: for( i = 0; i < fetch_devs_len; i++ ) { python-ethtool/ethtool.c:282:4: note: taking True path at: for( i = 0; i < fetch_devs_len; i++ ) { python-ethtool/ethtool.c:283:36: note: reaching: PyObject *elmt = PyList_GetItem(inargs, i); python-ethtool/ethtool.c:284:7: note: taking True path at: if( elmt && PyString_Check(elmt) ) { python-ethtool/ethtool.c:284:17: note: reaching: if( elmt && PyString_Check(elmt) ) { python-ethtool/ethtool.c:284:14: note: when considering range: 1 <= value <= 0x8000000 at: if( elmt && PyString_Check(elmt) ) { python-ethtool/ethtool.c:284:14: note: taking True path at: if( elmt && PyString_Check(elmt) ) { python-ethtool/ethtool.c:285:16: note: reaching: fetch_devs[j++] = PyString_AsString(elmt); python-ethtool/ethtool.c:285:41: note: when PyString_AsString() succeeds at: fetch_devs[j++] = PyString_AsString(elmt); python-ethtool/ethtool.c:285:22: note: when treating unknown char * * from python-ethtool/ethtool.c:285 as non-NULL at: fetch_devs[j++] = PyString_AsString(elmt); python-ethtool/ethtool.c:282:4: note: when considering fetch_devs_len == (int)1 from python-ethtool/ethtool.c:280 at: for( i = 0; i < fetch_devs_len; i++ ) { python-ethtool/ethtool.c:282:4: note: taking False path at: for( i = 0; i < fetch_devs_len; i++ ) { python-ethtool/ethtool.c:288:19: note: reaching: fetch_devs_len = j; python-ethtool/ethtool.c:296:10: note: when PyList_New() succeeds at: devlist = PyList_New(0); python-ethtool/ethtool.c:297:2: note: taking True path at: for( i = 0; i < fetch_devs_len; i++ ) { python-ethtool/ethtool.c:298:30: note: reaching: struct etherinfo_obj_data *objdata = NULL; python-ethtool/ethtool.c:302:5: note: when treating unknown void * from python-ethtool/ethtool.c:301 as non-NULL at: if( !objdata ) { python-ethtool/ethtool.c:302:5: note: taking False path at: if( !objdata ) { python-ethtool/ethtool.c:307:28: note: reaching: objdata->ethinfo = calloc(1, sizeof(struct etherinfo)); python-ethtool/ethtool.c:308:5: note: when treating unknown void * from python-ethtool/ethtool.c:307 as non-NULL at: if( !objdata->ethinfo ) { python-ethtool/ethtool.c:308:5: note: taking False path at: if( !objdata->ethinfo ) { python-ethtool/ethtool.c:316:10: note: reaching: objdata->ethinfo->device = strdup(fetch_devs[i]); python-ethtool/ethtool.c:316:30: note: when treating unknown char * * from python-ethtool/ethtool.c:316 as non-NULL at: objdata->ethinfo->device = strdup(fetch_devs[i]); python-ethtool/ethtool.c:322:13: note: when PyCObject_FromVoidPtr() succeeds at: ethinf_py = PyCObject_FromVoidPtr(objdata, NULL); python-ethtool/ethtool.c:323:5: note: taking True path at: if( ethinf_py ) { python-ethtool/ethtool.c:325:14: note: reaching: PyObject *args = PyTuple_New(1); python-ethtool/ethtool.c:325:14: note: when PyTuple_New() fails at: PyObject *args = PyTuple_New(1); python-ethtool/ethtool.c:326:19: note: PyTuple_SetItem() invokes Py_TYPE() on the pointer via the PyTuple_Check() macro, thus accessing (NULL)->ob_type python-ethtool/ethtool.c:247:79: note: graphical error report for function 'get_interfaces_info' written out to 'build/temp.linux-x86_64-2.7/python-ethtool/ethtool.c.get_interfaces_info-refcount-errors.html' python-ethtool/ethtool.c: In function 'get_ipaddress': python-ethtool/ethtool.c:200:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c: In function 'get_hwaddress': python-ethtool/ethtool.c:153:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c: In function 'get_businfo': python-ethtool/ethtool.c:550:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c: In function 'get_module': python-ethtool/ethtool.c:477:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "s" [enabled by default] argument 3 ("&devname") had type "char * *" but was expecting "const char * *" for format code "s" python-ethtool/ethtool.c:470:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.6jITQs (%build) Bad exit status from /var/tmp/rpm-tmp.6jITQs (%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-ethtool.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-ethtool.spec'] LEAVE do --> EXCEPTION RAISED