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-adns.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-adns.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-adns-1.2.1-9.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/python-adns.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-adns.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.y5k0Wp + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf adns-python-1.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/adns-python-1.2.1.tar.gz + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd adns-python-1.2.1 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9E0sbz + umask 022 + cd /builddir/build/BUILD + cd adns-python-1.2.1 + LANG=C + export LANG + unset DISPLAY + env 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' python setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying DNSBL.py -> build/lib.linux-x86_64-2.7 copying ADNS.py -> build/lib.linux-x86_64-2.7 running build_ext building 'adns' extension 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 -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 adnsmodule.c -o build/temp.linux-x86_64-2.7/adnsmodule.o adnsmodule.c: In function 'initadns': adnsmodule.c:1074:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed adnsmodule.c: In function 'adns_exception': adnsmodule.c:323:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "i" [enabled by default] argument 3 ("&status") had type "adns_status *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:325:2: warning: Mismatching type in call to Py_BuildValue with format code "is" [enabled by default] argument 2 ("status.15") had type "adns_status" but was expecting "int" for format code "i" adnsmodule.c: In function 'adns__init': adnsmodule.c:998:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "|iO&s" [enabled by default] argument 3 ("&flags") had type "adns_initflags *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:998:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "|iO&s" [enabled by default] argument 6 ("&configtext") had type "char * *" but was expecting "const char * *" for format code "s" adnsmodule.c:1013:1: warning: ob_refcnt of '*s' is 1 too high [enabled by default] adnsmodule.c:1013:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:1013:1: note: but final ob_refcnt is N + 1 adnsmodule.c:1001:5: note: new ref from (unknown) newADNS_Stateobject allocated at: if (!(s = newADNS_Stateobject())) return NULL; adnsmodule.c:998:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "|iO&s", adnsmodule.c:998:5: note: taking False path at: if (!PyArg_ParseTuple(args, "|iO&s", adnsmodule.c:1001:5: note: reaching: if (!(s = newADNS_Stateobject())) return NULL; adnsmodule.c:1001:5: note: when newADNS_Stateobject() succeeds at: if (!(s = newADNS_Stateobject())) return NULL; adnsmodule.c:1001:5: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:1001:5: note: taking False path at: if (!(s = newADNS_Stateobject())) return NULL; adnsmodule.c:1002:6: note: reaching: if (configtext) adnsmodule.c:1002:5: note: when treating unknown const char * from adnsmodule.c:998 as non-NULL at: if (configtext) adnsmodule.c:1002:5: note: taking True path at: if (configtext) adnsmodule.c:1003:28: note: reaching: status = adns_init_strcfg(&s->state, flags, adnsmodule.c:1007:5: note: when considering range: -0x80000000 <= value <= -1 at: if (status) { adnsmodule.c:1007:5: note: taking True path at: if (status) { adnsmodule.c:1008:21: note: reaching: PyErr_SetFromErrno(ErrorObject); adnsmodule.c:1008:21: note: PyErr_SetFromErrno() at: PyErr_SetFromErrno(ErrorObject); adnsmodule.c:1013:1: note: returning adnsmodule.c:1013:1: note: found 3 similar trace(s) to this adnsmodule.c:991:1: note: graphical error report for function 'adns__init' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.adns__init-refcount-errors.html' adnsmodule.c: In function 'ADNS_State_select': adnsmodule.c:585:19: 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 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3062, in iter_traces depth + 1): File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 3026, in iter_traces transitions = curstate.get_transitions() File "/usr/lib/gcc/x86_64-redhat-linux/4.6.3/plugin/python2/libcpychecker/absinterp.py", line 2079, 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 2106, 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 2612, 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 2604, in eval_rhs % (stmt.exprcode, stmt.exprcode, stmt.loc)) NotImplementedError: Don't know how to cope with exprcode: () at adnsmodule.c:585 adnsmodule.c: In function 'ADNS_State_completed': adnsmodule.c:619:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed adnsmodule.c: In function 'interpret_answer': adnsmodule.c:271:22: warning: Mismatching type in call to Py_BuildValue with format code "sslllll" [enabled by default] argument 4 ("D.11680") had type "long unsigned int" but was expecting "long int" for format code "l" adnsmodule.c:271:22: warning: Mismatching type in call to Py_BuildValue with format code "sslllll" [enabled by default] argument 5 ("D.11679") had type "long unsigned int" but was expecting "long int" for format code "l" adnsmodule.c:271:22: warning: Mismatching type in call to Py_BuildValue with format code "sslllll" [enabled by default] argument 6 ("D.11678") had type "long unsigned int" but was expecting "long int" for format code "l" adnsmodule.c:271:22: warning: Mismatching type in call to Py_BuildValue with format code "sslllll" [enabled by default] argument 7 ("D.11677") had type "long unsigned int" but was expecting "long int" for format code "l" adnsmodule.c:271:22: warning: Mismatching type in call to Py_BuildValue with format code "sslllll" [enabled by default] argument 8 ("D.11676") had type "long unsigned int" but was expecting "long int" for format code "l" adnsmodule.c:304:19: warning: Mismatching type in call to Py_BuildValue with format code "isiO" [enabled by default] argument 4 ("D.11713") had type "time_t" but was expecting "int" for format code "i" adnsmodule.c:189:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed adnsmodule.c: In function 'interpret_hostaddr': adnsmodule.c:179:19: warning: Mismatching type in call to Py_BuildValue with format code "siO" [enabled by default] argument 3 ("D.11756") had type "adns_status" but was expecting "int" for format code "i" adnsmodule.c:166:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed adnsmodule.c:181:2: warning: dereferencing NULL (addrs->ob_refcnt) at adnsmodule.c:181 [enabled by default] adnsmodule.c:168:14: note: when treating unknown struct adns_rr_hostaddr * from adnsmodule.c:164 as non-NULL at: if (hostaddr->naddrs == -1) { adnsmodule.c:168:5: note: when considering range: -0x80000000 <= value <= -2 at: if (hostaddr->naddrs == -1) { adnsmodule.c:168:5: note: taking False path at: if (hostaddr->naddrs == -1) { adnsmodule.c:173:31: note: reaching: addrs = PyTuple_New(hostaddr->naddrs); adnsmodule.c:173:9: note: when PyTuple_New() fails at: addrs = PyTuple_New(hostaddr->naddrs); adnsmodule.c:174:3: note: when considering range: -0x80000000 <= value <= 0 at: for (i=0; inaddrs; i++) { adnsmodule.c:174:3: note: taking False path at: for (i=0; inaddrs; i++) { adnsmodule.c:179:51: note: reaching: o = Py_BuildValue("siO", hostaddr->host, hostaddr->astatus, adnsmodule.c:179:4: note: when Py_BuildValue() fails at: o = Py_BuildValue("siO", hostaddr->host, hostaddr->astatus, adnsmodule.c:176:4: warning: dereferencing NULL (MEM[(struct PyTupleObject *)addrs].ob_item) at adnsmodule.c:174 [enabled by default] adnsmodule.c:168:14: note: when treating unknown struct adns_rr_hostaddr * from adnsmodule.c:164 as non-NULL at: if (hostaddr->naddrs == -1) { adnsmodule.c:168:5: note: when considering range: -0x80000000 <= value <= -2 at: if (hostaddr->naddrs == -1) { adnsmodule.c:168:5: note: taking False path at: if (hostaddr->naddrs == -1) { adnsmodule.c:173:31: note: reaching: addrs = PyTuple_New(hostaddr->naddrs); adnsmodule.c:173:9: note: when PyTuple_New() fails at: addrs = PyTuple_New(hostaddr->naddrs); adnsmodule.c:174:3: note: when considering range: 1 <= value <= 0x7fffffff at: for (i=0; inaddrs; i++) { adnsmodule.c:174:3: note: taking True path at: for (i=0; inaddrs; i++) { adnsmodule.c:175:30: note: reaching: adns_rr_addr *v = hostaddr->addrs+i; adnsmodule.c:176:4: note: when interpret_addr() succeeds at: PyTuple_SET_ITEM(addrs,i,interpret_addr(v)); adnsmodule.c:176:4: note: found 1 similar trace(s) to this adnsmodule.c:166:1: note: graphical error report for function 'interpret_hostaddr' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.interpret_hostaddr-refcount-errors.html' adnsmodule.c: In function 'ADNS_State_submit_reverse_any': adnsmodule.c:507:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "ssi|i" [enabled by default] argument 3 ("&owner") had type "char * *" but was expecting "const char * *" for format code "s" adnsmodule.c:507:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "ssi|i" [enabled by default] argument 4 ("&zone") had type "char * *" but was expecting "const char * *" for format code "s" adnsmodule.c:507:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "ssi|i" [enabled by default] argument 5 ("&type") had type "adns_rrtype *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:507:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "ssi|i" [enabled by default] argument 6 ("&flags") had type "adns_queryflags *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:524:1: warning: ob_refcnt of '*o' is 1 too high [enabled by default] adnsmodule.c:524:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:524:1: note: but final ob_refcnt is N + 1 adnsmodule.c:515:4: note: new ref from (unknown) newADNS_Queryobject allocated at: o = newADNS_Queryobject(self); adnsmodule.c:507:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "ssi|i", &owner, &zone, &type, &flags)) adnsmodule.c:507:5: note: taking False path at: if (!PyArg_ParseTuple(args, "ssi|i", &owner, &zone, &type, &flags)) adnsmodule.c:509:22: note: reaching: r = inet_aton(owner, &(addr.sin_addr)); adnsmodule.c:510:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!r) { adnsmodule.c:510:12: note: taking False path at: if (!r) { adnsmodule.c:514:18: note: reaching: addr.sin_family = AF_INET; adnsmodule.c:515:4: note: when newADNS_Queryobject() succeeds at: o = newADNS_Queryobject(self); adnsmodule.c:515:4: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:516:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:518:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS; adnsmodule.c:519:5: note: when considering range: -0x80000000 <= value <= -1 at: if (r) { adnsmodule.c:519:5: note: taking True path at: if (r) { adnsmodule.c:520:40: note: reaching: PyErr_SetString(ErrorObject, strerror(r)); adnsmodule.c:520:18: note: calling PyErr_SetString() at: PyErr_SetString(ErrorObject, strerror(r)); adnsmodule.c:524:1: note: returning adnsmodule.c:524:1: note: found 3 similar trace(s) to this adnsmodule.c:517:29: warning: dereferencing NULL (o->query) at adnsmodule.c:517 [enabled by default] adnsmodule.c:507:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "ssi|i", &owner, &zone, &type, &flags)) adnsmodule.c:507:5: note: taking False path at: if (!PyArg_ParseTuple(args, "ssi|i", &owner, &zone, &type, &flags)) adnsmodule.c:509:22: note: reaching: r = inet_aton(owner, &(addr.sin_addr)); adnsmodule.c:510:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!r) { adnsmodule.c:510:12: note: taking False path at: if (!r) { adnsmodule.c:514:18: note: reaching: addr.sin_family = AF_INET; adnsmodule.c:515:4: note: when newADNS_Queryobject() fails at: o = newADNS_Queryobject(self); adnsmodule.c:516:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:517:29: note: found 1 similar trace(s) to this adnsmodule.c:500:1: note: graphical error report for function 'ADNS_State_submit_reverse_any' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.ADNS_State_submit_reverse_any-refcount-errors.html' adnsmodule.c: In function 'ADNS_Query_wait': adnsmodule.c:855:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] adnsmodule.c:824:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:824:5: note: taking False path at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:826:10: note: reaching: if (self->exc_type) { adnsmodule.c:826:5: note: when treating unknown struct PyObject * from adnsmodule.c:826 as non-NULL at: if (self->exc_type) { adnsmodule.c:826:5: note: taking True path at: if (self->exc_type) { adnsmodule.c:827:16: note: reaching: PyErr_Restore(self->exc_type, self->exc_value, self->exc_traceback); adnsmodule.c:855:1: note: returning adnsmodule.c:855:1: warning: ob_refcnt of return value is 1 too high [enabled by default] adnsmodule.c:855:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) adnsmodule.c:855:1: note: due to object being referenced by: return value adnsmodule.c:855:1: note: but final ob_refcnt is N + 2 adnsmodule.c:849:33: note: new ref from (unknown) interpret_answer allocated at: self->answer = interpret_answer(answer_r); adnsmodule.c:824:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:824:5: note: taking False path at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:826:10: note: reaching: if (self->exc_type) { adnsmodule.c:826:5: note: when treating unknown struct PyObject * from adnsmodule.c:826 as NULL at: if (self->exc_type) { adnsmodule.c:826:5: note: taking False path at: if (self->exc_type) { adnsmodule.c:831:10: note: reaching: if (self->answer) goto ret_answer; adnsmodule.c:831:5: note: when treating unknown struct PyObject * from adnsmodule.c:831 as NULL at: if (self->answer) goto ret_answer; adnsmodule.c:831:5: note: taking False path at: if (self->answer) goto ret_answer; adnsmodule.c:832:12: note: reaching: if (!(self->query)) { adnsmodule.c:832:5: note: when treating unknown struct adns__query * from adnsmodule.c:832 as non-NULL at: if (!(self->query)) { adnsmodule.c:832:5: note: taking False path at: if (!(self->query)) { adnsmodule.c:836:2: note: reaching: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:836:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:837:15: note: when treating unknown struct ADNS_Stateobject * from adnsmodule.c:837 as non-NULL at: r = adns_wait(self->s->state, &self->query, &answer_r, (void *) &o2); adnsmodule.c:838:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS; adnsmodule.c:839:5: note: when considering value == (int)0 from adnsmodule.c:837 at: if (r) { adnsmodule.c:839:5: note: taking False path at: if (r) { adnsmodule.c:849:33: note: reaching: self->answer = interpret_answer(answer_r); adnsmodule.c:849:33: note: when interpret_answer() succeeds at: self->answer = interpret_answer(answer_r); adnsmodule.c:849:33: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:853:2: note: ob_refcnt is now refs: 2 + N where N >= 0 adnsmodule.c:855:1: note: returning adnsmodule.c:853:2: warning: dereferencing NULL (D.11845->ob_refcnt) at adnsmodule.c:853 [enabled by default] adnsmodule.c:824:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:824:5: note: taking False path at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:826:10: note: reaching: if (self->exc_type) { adnsmodule.c:826:5: note: when treating unknown struct PyObject * from adnsmodule.c:826 as NULL at: if (self->exc_type) { adnsmodule.c:826:5: note: taking False path at: if (self->exc_type) { adnsmodule.c:831:10: note: reaching: if (self->answer) goto ret_answer; adnsmodule.c:831:5: note: when treating unknown struct PyObject * from adnsmodule.c:831 as NULL at: if (self->answer) goto ret_answer; adnsmodule.c:831:5: note: taking False path at: if (self->answer) goto ret_answer; adnsmodule.c:832:12: note: reaching: if (!(self->query)) { adnsmodule.c:832:5: note: when treating unknown struct adns__query * from adnsmodule.c:832 as non-NULL at: if (!(self->query)) { adnsmodule.c:832:5: note: taking False path at: if (!(self->query)) { adnsmodule.c:836:2: note: reaching: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:836:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:837:15: note: when treating unknown struct ADNS_Stateobject * from adnsmodule.c:837 as non-NULL at: r = adns_wait(self->s->state, &self->query, &answer_r, (void *) &o2); adnsmodule.c:838:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS; adnsmodule.c:839:5: note: when considering value == (int)0 from adnsmodule.c:837 at: if (r) { adnsmodule.c:839:5: note: taking False path at: if (r) { adnsmodule.c:849:33: note: reaching: self->answer = interpret_answer(answer_r); adnsmodule.c:849:33: note: when interpret_answer() fails at: self->answer = interpret_answer(answer_r); adnsmodule.c:819:1: note: graphical error report for function 'ADNS_Query_wait' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.ADNS_Query_wait-refcount-errors.html' adnsmodule.c: In function 'ADNS_Query_check': adnsmodule.c:804:1: warning: returning (PyObject*)NULL without setting an exception [enabled by default] adnsmodule.c:775:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:775:5: note: taking False path at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:777:10: note: reaching: if (self->exc_type) { adnsmodule.c:777:5: note: when treating unknown struct PyObject * from adnsmodule.c:777 as non-NULL at: if (self->exc_type) { adnsmodule.c:777:5: note: taking True path at: if (self->exc_type) { adnsmodule.c:778:16: note: reaching: PyErr_Restore(self->exc_type, self->exc_value, self->exc_traceback); adnsmodule.c:804:1: note: returning adnsmodule.c:804:1: warning: ob_refcnt of return value is 1 too high [enabled by default] adnsmodule.c:804:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) adnsmodule.c:804:1: note: due to object being referenced by: return value adnsmodule.c:804:1: note: but final ob_refcnt is N + 2 adnsmodule.c:798:33: note: new ref from (unknown) interpret_answer allocated at: self->answer = interpret_answer(answer_r); adnsmodule.c:775:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:775:5: note: taking False path at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:777:10: note: reaching: if (self->exc_type) { adnsmodule.c:777:5: note: when treating unknown struct PyObject * from adnsmodule.c:777 as NULL at: if (self->exc_type) { adnsmodule.c:777:5: note: taking False path at: if (self->exc_type) { adnsmodule.c:782:10: note: reaching: if (self->answer) goto ret_answer; adnsmodule.c:782:5: note: when treating unknown struct PyObject * from adnsmodule.c:782 as NULL at: if (self->answer) goto ret_answer; adnsmodule.c:782:5: note: taking False path at: if (self->answer) goto ret_answer; adnsmodule.c:783:12: note: reaching: if (!(self->query)) { adnsmodule.c:783:5: note: when treating unknown struct adns__query * from adnsmodule.c:783 as non-NULL at: if (!(self->query)) { adnsmodule.c:783:5: note: taking False path at: if (!(self->query)) { adnsmodule.c:787:16: note: reaching: r = adns_check(self->s->state, &self->query, &answer_r, (void *) &o2); adnsmodule.c:787:16: note: when treating unknown struct ADNS_Stateobject * from adnsmodule.c:787 as non-NULL at: r = adns_check(self->s->state, &self->query, &answer_r, (void *) &o2); adnsmodule.c:788:5: note: when considering value == (int)0 from adnsmodule.c:787 at: if (r) { adnsmodule.c:788:5: note: taking False path at: if (r) { adnsmodule.c:798:33: note: reaching: self->answer = interpret_answer(answer_r); adnsmodule.c:798:33: note: when interpret_answer() succeeds at: self->answer = interpret_answer(answer_r); adnsmodule.c:798:33: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:802:2: note: ob_refcnt is now refs: 2 + N where N >= 0 adnsmodule.c:804:1: note: returning adnsmodule.c:802:2: warning: dereferencing NULL (D.11880->ob_refcnt) at adnsmodule.c:802 [enabled by default] adnsmodule.c:775:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:775:5: note: taking False path at: if (!PyArg_ParseTuple(args, "")) adnsmodule.c:777:10: note: reaching: if (self->exc_type) { adnsmodule.c:777:5: note: when treating unknown struct PyObject * from adnsmodule.c:777 as NULL at: if (self->exc_type) { adnsmodule.c:777:5: note: taking False path at: if (self->exc_type) { adnsmodule.c:782:10: note: reaching: if (self->answer) goto ret_answer; adnsmodule.c:782:5: note: when treating unknown struct PyObject * from adnsmodule.c:782 as NULL at: if (self->answer) goto ret_answer; adnsmodule.c:782:5: note: taking False path at: if (self->answer) goto ret_answer; adnsmodule.c:783:12: note: reaching: if (!(self->query)) { adnsmodule.c:783:5: note: when treating unknown struct adns__query * from adnsmodule.c:783 as non-NULL at: if (!(self->query)) { adnsmodule.c:783:5: note: taking False path at: if (!(self->query)) { adnsmodule.c:787:16: note: reaching: r = adns_check(self->s->state, &self->query, &answer_r, (void *) &o2); adnsmodule.c:787:16: note: when treating unknown struct ADNS_Stateobject * from adnsmodule.c:787 as non-NULL at: r = adns_check(self->s->state, &self->query, &answer_r, (void *) &o2); adnsmodule.c:788:5: note: when considering value == (int)0 from adnsmodule.c:787 at: if (r) { adnsmodule.c:788:5: note: taking False path at: if (r) { adnsmodule.c:798:33: note: reaching: self->answer = interpret_answer(answer_r); adnsmodule.c:798:33: note: when interpret_answer() fails at: self->answer = interpret_answer(answer_r); adnsmodule.c:770:1: note: graphical error report for function 'ADNS_Query_check' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.ADNS_Query_check-refcount-errors.html' adnsmodule.c: In function 'ADNS_Query_dealloc': adnsmodule.c:927:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed adnsmodule.c: In function 'ADNS_State_submit_reverse': adnsmodule.c:467:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 3 ("&owner") had type "char * *" but was expecting "const char * *" for format code "s" adnsmodule.c:467:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 4 ("&type") had type "adns_rrtype *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:467:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 5 ("&flags") had type "adns_queryflags *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:484:1: warning: ob_refcnt of '*o' is 1 too high [enabled by default] adnsmodule.c:484:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:484:1: note: but final ob_refcnt is N + 1 adnsmodule.c:475:4: note: new ref from (unknown) newADNS_Queryobject allocated at: o = newADNS_Queryobject(self); adnsmodule.c:467:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:467:5: note: taking False path at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:469:22: note: reaching: r = inet_aton(owner, (struct in_addr *) &(addr.sin_addr)); adnsmodule.c:470:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!r) { adnsmodule.c:470:12: note: taking False path at: if (!r) { adnsmodule.c:474:18: note: reaching: addr.sin_family = AF_INET; adnsmodule.c:475:4: note: when newADNS_Queryobject() succeeds at: o = newADNS_Queryobject(self); adnsmodule.c:475:4: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:476:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:478:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS; adnsmodule.c:479:5: note: when considering range: -0x80000000 <= value <= -1 at: if (r) { adnsmodule.c:479:5: note: taking True path at: if (r) { adnsmodule.c:480:40: note: reaching: PyErr_SetString(ErrorObject, strerror(r)); adnsmodule.c:480:18: note: calling PyErr_SetString() at: PyErr_SetString(ErrorObject, strerror(r)); adnsmodule.c:484:1: note: returning adnsmodule.c:484:1: note: found 3 similar trace(s) to this adnsmodule.c:477:25: warning: dereferencing NULL (o->query) at adnsmodule.c:477 [enabled by default] adnsmodule.c:467:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:467:5: note: taking False path at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:469:22: note: reaching: r = inet_aton(owner, (struct in_addr *) &(addr.sin_addr)); adnsmodule.c:470:12: note: when considering range: -0x80000000 <= value <= -1 at: if (!r) { adnsmodule.c:470:12: note: taking False path at: if (!r) { adnsmodule.c:474:18: note: reaching: addr.sin_family = AF_INET; adnsmodule.c:475:4: note: when newADNS_Queryobject() fails at: o = newADNS_Queryobject(self); adnsmodule.c:476:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:477:25: note: found 1 similar trace(s) to this adnsmodule.c:460:1: note: graphical error report for function 'ADNS_State_submit_reverse' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.ADNS_State_submit_reverse-refcount-errors.html' adnsmodule.c: In function 'ADNS_State_submit': adnsmodule.c:433:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 3 ("&owner") had type "char * *" but was expecting "const char * *" for format code "s" adnsmodule.c:433:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 4 ("&type") had type "adns_rrtype *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:433:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 5 ("&flags") had type "adns_queryflags *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:444:1: warning: ob_refcnt of '*o' is 1 too high [enabled by default] adnsmodule.c:444:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:444:1: note: but final ob_refcnt is N + 1 adnsmodule.c:435:4: note: new ref from (unknown) newADNS_Queryobject allocated at: o = newADNS_Queryobject(self); adnsmodule.c:433:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:433:5: note: taking False path at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:435:4: note: reaching: o = newADNS_Queryobject(self); adnsmodule.c:435:4: note: when newADNS_Queryobject() succeeds at: o = newADNS_Queryobject(self); adnsmodule.c:435:4: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:436:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:438:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS; adnsmodule.c:439:5: note: when considering range: -0x80000000 <= value <= -1 at: if (r) { adnsmodule.c:439:5: note: taking True path at: if (r) { adnsmodule.c:440:40: note: reaching: PyErr_SetString(ErrorObject, strerror(r)); adnsmodule.c:440:18: note: calling PyErr_SetString() at: PyErr_SetString(ErrorObject, strerror(r)); adnsmodule.c:444:1: note: returning adnsmodule.c:444:1: note: found 1 similar trace(s) to this adnsmodule.c:437:17: warning: dereferencing NULL (o->query) at adnsmodule.c:437 [enabled by default] adnsmodule.c:433:23: note: when PyArg_ParseTuple() succeeds at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:433:5: note: taking False path at: if (!PyArg_ParseTuple(args, "si|i", &owner, &type, &flags)) adnsmodule.c:435:4: note: reaching: o = newADNS_Queryobject(self); adnsmodule.c:435:4: note: when newADNS_Queryobject() fails at: o = newADNS_Queryobject(self); adnsmodule.c:436:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:427:1: note: graphical error report for function 'ADNS_State_submit' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.ADNS_State_submit-refcount-errors.html' adnsmodule.c: In function 'ADNS_State_synchronous': adnsmodule.c:399:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 3 ("&owner") had type "char * *" but was expecting "const char * *" for format code "s" adnsmodule.c:399:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 4 ("&type") had type "adns_rrtype *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c:399:23: warning: Mismatching type in call to PyArg_ParseTuple with format code "si|i" [enabled by default] argument 5 ("&flags") had type "adns_queryflags *" but was expecting "int *" (pointing to 32 bits) for format code "i" adnsmodule.c: In function 'ADNS_State_dealloc': adnsmodule.c:723:1: warning: ob_refcnt of _Py_NoneStruct is 1 too high [enabled by default] adnsmodule.c:723:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:723:1: note: but final ob_refcnt is N + 1 adnsmodule.c:718:2: note: releasing the GIL by calling PyEval_SaveThread() at: Py_BEGIN_ALLOW_THREADS; adnsmodule.c:720:2: note: reacquiring the GIL by calling PyEval_RestoreThread() at: Py_END_ALLOW_THREADS; adnsmodule.c:720:2: note: ob_refcnt is now refs: 0 + N where N >= 1 adnsmodule.c:721:2: note: ob_refcnt is now refs: 1 + N where N >= 1 adnsmodule.c:723:1: note: returning at: } adnsmodule.c:717:1: note: graphical error report for function 'ADNS_State_dealloc' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c.ADNS_State_dealloc-refcount-errors.html' adnsmodule.c: In function '_new_exception': adnsmodule.c:1046:1: warning: ob_refcnt of '*v' is 1 too high [enabled by default] adnsmodule.c:1046:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:1046:1: note: but final ob_refcnt is N + 1 adnsmodule.c:1042:5: note: new exception object from PyErr_NewException allocated at: if ((v = PyErr_NewException(longname, base, NULL)) == NULL) adnsmodule.c:1042:5: note: when PyErr_NewException() succeeds at: if ((v = PyErr_NewException(longname, base, NULL)) == NULL) adnsmodule.c:1042:5: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:1042:5: note: taking False path at: if ((v = PyErr_NewException(longname, base, NULL)) == NULL) adnsmodule.c:1044:26: note: reaching: if (PyDict_SetItemString(dict, name, v)) return NULL; adnsmodule.c:1044:26: note: when treating unknown char * from adnsmodule.c:1034 as non-NULL at: if (PyDict_SetItemString(dict, name, v)) return NULL; adnsmodule.c:1044:26: note: when PyDict_SetItemString() fails at: if (PyDict_SetItemString(dict, name, v)) return NULL; adnsmodule.c:1044:5: note: taking True path at: if (PyDict_SetItemString(dict, name, v)) return NULL; adnsmodule.c:1044:43: note: reaching: if (PyDict_SetItemString(dict, name, v)) return NULL; adnsmodule.c:1046:1: note: returning adnsmodule.c:1037:1: note: graphical error report for function '_new_exception' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c._new_exception-refcount-errors.html' adnsmodule.c: In function '_new_constant_class': adnsmodule.c:1054:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed adnsmodule.c:1070:1: warning: ob_refcnt of '*d' is 1 too high [enabled by default] adnsmodule.c:1070:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:1070:1: note: but final ob_refcnt is N + 1 adnsmodule.c:1059:5: note: PyDictObject allocated at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1059:5: note: when PyDict_New() succeeds at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1059:5: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:1059:5: note: taking False path at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1060:9: note: reaching: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:22: note: when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: when treating unknown char * from adnsmodule.c:1060 as NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: taking False path at: for (i = 0; table[i].name; i++) { adnsmodule.c:1064:23: note: reaching: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when treating unknown char * from adnsmodule.c:1051 as non-NULL at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when PyString_InternFromString() fails at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:5: note: when PyClass_New() succeeds at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:5: note: taking False path at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1065:26: note: reaching: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:26: note: when PyDict_SetItemString() succeeds at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:5: note: taking False path at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1066:2: note: reaching: return 0; adnsmodule.c:1070:1: note: returning adnsmodule.c:1070:1: note: found 3 similar trace(s) to this adnsmodule.c:1070:1: warning: ob_refcnt of '*c' is 1 too high [enabled by default] adnsmodule.c:1070:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:1070:1: note: but final ob_refcnt is N + 1 adnsmodule.c:1064:5: note: new ref from (unknown) PyClass_New allocated at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1059:5: note: when PyDict_New() succeeds at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1059:5: note: taking False path at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1060:9: note: reaching: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:22: note: when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: when treating unknown char * from adnsmodule.c:1060 as NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: taking False path at: for (i = 0; table[i].name; i++) { adnsmodule.c:1064:23: note: reaching: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when treating unknown char * from adnsmodule.c:1051 as non-NULL at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when PyString_InternFromString() fails at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:5: note: when PyClass_New() succeeds at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:5: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:1064:5: note: taking False path at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1065:26: note: reaching: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:26: note: when PyDict_SetItemString() succeeds at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:26: note: ob_refcnt is now refs: 1 + N where N >= 1 adnsmodule.c:1065:5: note: taking False path at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1066:2: note: reaching: return 0; adnsmodule.c:1070:1: note: returning adnsmodule.c:1070:1: note: found 11 similar trace(s) to this adnsmodule.c:1070:1: warning: ob_refcnt of PyStringObject is 1 too high [enabled by default] adnsmodule.c:1070:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:1070:1: note: but final ob_refcnt is N + 1 adnsmodule.c:1064:23: note: PyStringObject allocated at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1059:5: note: when PyDict_New() succeeds at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1059:5: note: taking False path at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1060:9: note: reaching: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:22: note: when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: when treating unknown char * from adnsmodule.c:1060 as NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: taking False path at: for (i = 0; table[i].name; i++) { adnsmodule.c:1064:23: note: reaching: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when treating unknown char * from adnsmodule.c:1051 as non-NULL at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when PyString_InternFromString() succeeds at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:1064:5: note: when PyClass_New() succeeds at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:5: note: taking False path at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1065:26: note: reaching: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:26: note: when PyDict_SetItemString() succeeds at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:5: note: taking False path at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1066:2: note: reaching: return 0; adnsmodule.c:1070:1: note: returning adnsmodule.c:1070:1: note: found 9 similar trace(s) to this adnsmodule.c:1070:1: warning: ob_refcnt of '*v' is 1 too high [enabled by default] adnsmodule.c:1070:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) adnsmodule.c:1070:1: note: but final ob_refcnt is N + 1 adnsmodule.c:1061:6: note: PyIntObject allocated at: if (!(v = PyInt_FromLong((long)table[i].value))) goto error; adnsmodule.c:1059:5: note: when PyDict_New() succeeds at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1059:5: note: taking False path at: if (!(d = PyDict_New())) goto error; adnsmodule.c:1060:9: note: reaching: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:22: note: when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: when treating unknown char * from adnsmodule.c:1060 as non-NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: taking True path at: for (i = 0; table[i].name; i++) { adnsmodule.c:1061:39: note: reaching: if (!(v = PyInt_FromLong((long)table[i].value))) goto error; adnsmodule.c:1061:42: note: when treating unknown struct _constant_class * from adnsmodule.c:1061 as non-NULL at: if (!(v = PyInt_FromLong((long)table[i].value))) goto error; adnsmodule.c:1061:6: note: when PyInt_FromLong() succeeds at: if (!(v = PyInt_FromLong((long)table[i].value))) goto error; adnsmodule.c:1061:6: note: ob_refcnt is now refs: 1 + N where N >= 0 adnsmodule.c:1061:6: note: taking False path at: if (!(v = PyInt_FromLong((long)table[i].value))) goto error; adnsmodule.c:1062:36: note: reaching: if (PyDict_SetItemString(d, table[i].name, v)) goto error; adnsmodule.c:1062:39: note: when treating unknown struct _constant_class * from adnsmodule.c:1062 as non-NULL at: if (PyDict_SetItemString(d, table[i].name, v)) goto error; adnsmodule.c:1062:27: note: when treating unknown char * from adnsmodule.c:1062 as non-NULL at: if (PyDict_SetItemString(d, table[i].name, v)) goto error; adnsmodule.c:1062:27: note: when PyDict_SetItemString() succeeds at: if (PyDict_SetItemString(d, table[i].name, v)) goto error; adnsmodule.c:1062:27: note: ob_refcnt is now refs: 1 + N where N >= 1 adnsmodule.c:1062:6: note: taking False path at: if (PyDict_SetItemString(d, table[i].name, v)) goto error; adnsmodule.c:1060:30: note: reaching: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:22: note: when treating unknown struct _constant_class * from adnsmodule.c:1060 as non-NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: when treating unknown char * from adnsmodule.c:1060 as NULL at: for (i = 0; table[i].name; i++) { adnsmodule.c:1060:2: note: taking False path at: for (i = 0; table[i].name; i++) { adnsmodule.c:1064:23: note: reaching: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when treating unknown char * from adnsmodule.c:1051 as non-NULL at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:23: note: when PyString_InternFromString() succeeds at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:5: note: when PyClass_New() succeeds at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1064:5: note: taking False path at: if (!(c = PyClass_New(NULL,d,PyString_InternFromString(type)))) goto error; adnsmodule.c:1065:26: note: reaching: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:26: note: when PyDict_SetItemString() succeeds at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1065:5: note: taking False path at: if (PyDict_SetItemString(mdict, type, c)) goto error; adnsmodule.c:1066:2: note: reaching: return 0; adnsmodule.c:1070:1: note: returning adnsmodule.c:1070:1: note: found 11 similar trace(s) to this adnsmodule.c:1054:1: note: graphical error report for function '_new_constant_class' written out to 'build/temp.linux-x86_64-2.7/adnsmodule.c._new_constant_class-refcount-errors.html' error: command 'gcc' failed with exit status 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.9E0sbz (%build) Bad exit status from /var/tmp/rpm-tmp.9E0sbz (%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-adns.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-adns.spec'] LEAVE do --> EXCEPTION RAISED