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/libopensync-plugin-python.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/libopensync-plugin-python.spec'] Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libopensync-plugin-python-0.22-6.fc16.src.rpm Child returncode was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libopensync-plugin-python.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/libopensync-plugin-python.spec'] Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Dkm4Mf + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf libopensync-plugin-python-0.22 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/libopensync-plugin-python-0.22.tar.bz2 + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd libopensync-plugin-python-0.22 + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ueXfpR + umask 022 + cd /builddir/build/BUILD + cd libopensync-plugin-python-0.22 + 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + LDFLAGS='-Wl,-z,relro ' + export LDFLAGS + ./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking for x86_64-unknown-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... none checking for library containing strerror... none required checking for x86_64-unknown-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) none checking for x86_64-unknown-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for x86_64-unknown-linux-gnu-g++... no checking for x86_64-unknown-linux-gnu-c++... no checking for x86_64-unknown-linux-gnu-gpp... no checking for x86_64-unknown-linux-gnu-aCC... no checking for x86_64-unknown-linux-gnu-CC... no checking for x86_64-unknown-linux-gnu-cxx... no checking for x86_64-unknown-linux-gnu-cc++... no checking for x86_64-unknown-linux-gnu-cl.exe... no checking for x86_64-unknown-linux-gnu-FCC... no checking for x86_64-unknown-linux-gnu-KCC... no checking for x86_64-unknown-linux-gnu-RCC... no checking for x86_64-unknown-linux-gnu-xlC_r... no checking for x86_64-unknown-linux-gnu-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... yes checking dependency style of g++... none checking how to run the C++ preprocessor... g++ -E checking for x86_64-unknown-linux-gnu-g77... no checking for x86_64-unknown-linux-gnu-xlf... no checking for x86_64-unknown-linux-gnu-f77... no checking for x86_64-unknown-linux-gnu-frt... no checking for x86_64-unknown-linux-gnu-pgf77... no checking for x86_64-unknown-linux-gnu-cf77... no checking for x86_64-unknown-linux-gnu-fort77... no checking for x86_64-unknown-linux-gnu-fl32... no checking for x86_64-unknown-linux-gnu-af77... no checking for x86_64-unknown-linux-gnu-xlf90... no checking for x86_64-unknown-linux-gnu-f90... no checking for x86_64-unknown-linux-gnu-pgf90... no checking for x86_64-unknown-linux-gnu-pghpf... no checking for x86_64-unknown-linux-gnu-epcf90... no checking for x86_64-unknown-linux-gnu-gfortran... no checking for x86_64-unknown-linux-gnu-g95... no checking for x86_64-unknown-linux-gnu-xlf95... no checking for x86_64-unknown-linux-gnu-f95... no checking for x86_64-unknown-linux-gnu-fort... no checking for x86_64-unknown-linux-gnu-ifort... no checking for x86_64-unknown-linux-gnu-ifc... no checking for x86_64-unknown-linux-gnu-efc... no checking for x86_64-unknown-linux-gnu-pgf95... no checking for x86_64-unknown-linux-gnu-lf95... no checking for x86_64-unknown-linux-gnu-ftn... no checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for x86_64-unknown-linux-gnu-ar... no checking for ar... ar checking for x86_64-unknown-linux-gnu-ranlib... no checking for ranlib... ranlib checking for x86_64-unknown-linux-gnu-strip... no checking for strip... strip checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... cat: ld.so.conf.d/*.conf: No such file or directory GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... checking if g++ static flag works... no checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... cat: ld.so.conf.d/*.conf: No such file or directory GNU/Linux ld.so checking how to hardcode library paths into programs... unsupported appending configuration tag "F77" to libtool checking for python... python checking for python distutils module... yes checking for python SDK... yes checking for x86_64-unknown-linux-gnu-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for OSYNC... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 make all-am make[1]: Entering directory `/builddir/build/BUILD/libopensync-plugin-python-0.22' /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -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 -I/usr/include/python2.7 -DOPENSYNC_PYTHONPLG_DIR=\"/usr/lib64/opensync/python-plugins\" -Wall -Werror -I/usr/include/opensync-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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 -c -o python_module_la-python_module.lo `test -f 'src/python_module.c' || echo './'`src/python_module.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -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 -I/usr/include/python2.7 -DOPENSYNC_PYTHONPLG_DIR=\"/usr/lib64/opensync/python-plugins\" -Wall -Werror -I/usr/include/opensync-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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 -c src/python_module.c -fPIC -DPIC -o .libs/python_module_la-python_module.o src/python_module.c: In function 'get_info': src/python_module.c:414:3: error: ob_refcnt of '*osync_module' is 1 too high [-Werror] src/python_module.c:414:3: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/python_module.c:414:3: note: but final ob_refcnt is N + 1 src/python_module.c:412:12: note: new ref from (unknown) pm_load_opensync allocated at: PyObject *osync_module = pm_load_opensync(&error); src/python_module.c:407:15: note: calling Py_Initialize() at: Py_Initialize(); src/python_module.c:409:20: note: calling PyEval_InitThreads() at: PyEval_InitThreads(); src/python_module.c:412:12: note: when pm_load_opensync() succeeds at: PyObject *osync_module = pm_load_opensync(&error); src/python_module.c:412:12: note: ob_refcnt is now refs: 1 + N where N >= 0 src/python_module.c:413:5: note: taking False path at: if (!osync_module) src/python_module.c:416:18: note: reaching: scan_for_plugins(env, osync_module); src/python_module.c:414:3: note: returning at: return; src/python_module.c:401:1: note: graphical error report for function 'get_info' written out to '.libs/python_module.c.get_info-refcount-errors.html' src/python_module.c: In function 'register_plugin': src/python_module.c:357:14: 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 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: PyErr_Clear src/python_module.c: In function 'pm_load_script': src/python_module.c:69:1: error: ob_refcnt of return value is 1 too low [-Werror] src/python_module.c:69:1: note: was expecting final ob_refcnt to be N + 1 (for some unknown N) src/python_module.c:69:1: note: due to object being referenced by: return value src/python_module.c:69:1: note: but final ob_refcnt is N + 0 src/python_module.c:62:12: note: borrowed reference returned by PyImport_AddModule() allocated at: PyObject *module = PyImport_AddModule("__main__"); src/python_module.c:51:5: note: when treating unknown struct FILE * from src/python_module.c:50 as non-NULL at: if (!fp) { src/python_module.c:51:5: note: taking False path at: if (!fp) { src/python_module.c:56:6: note: reaching: if (PyRun_SimpleFile(fp, filename) == -1) { src/python_module.c:56:6: note: when PyRun_SimpleFileExFlags() succeeds at: if (PyRun_SimpleFile(fp, filename) == -1) { src/python_module.c:56:5: note: taking False path at: if (PyRun_SimpleFile(fp, filename) == -1) { src/python_module.c:62:12: note: reaching: PyObject *module = PyImport_AddModule("__main__"); src/python_module.c:62:12: note: when PyImport_AddModule() succeeds at: PyObject *module = PyImport_AddModule("__main__"); src/python_module.c:62:12: note: ob_refcnt is now refs: 0 + N where N >= 1 src/python_module.c:63:5: note: taking False path at: if (!module) { src/python_module.c:68:2: note: reaching: return module; src/python_module.c:69:1: note: returning src/python_module.c:69:1: error: returning (PyObject*)NULL without setting an exception [-Werror] src/python_module.c:51:5: note: when treating unknown struct FILE * from src/python_module.c:50 as non-NULL at: if (!fp) { src/python_module.c:51:5: note: taking False path at: if (!fp) { src/python_module.c:56:6: note: reaching: if (PyRun_SimpleFile(fp, filename) == -1) { src/python_module.c:56:6: note: when PyRun_SimpleFileExFlags() succeeds at: if (PyRun_SimpleFile(fp, filename) == -1) { src/python_module.c:56:5: note: taking False path at: if (PyRun_SimpleFile(fp, filename) == -1) { src/python_module.c:62:12: note: reaching: PyObject *module = PyImport_AddModule("__main__"); src/python_module.c:62:12: note: when PyImport_AddModule() fails at: PyObject *module = PyImport_AddModule("__main__"); src/python_module.c:62:12: note: thread-local exception state now has value: (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from src/python_module.c:62 src/python_module.c:63:5: note: taking True path at: if (!module) { src/python_module.c:64:18: note: reaching: osync_error_set(error, OSYNC_ERROR_GENERIC, "Couldn't load module from file %s", filename); src/python_module.c:65:14: note: calling PyErr_Print() at: PyErr_Print(); src/python_module.c:65:14: note: thread-local exception state now has value: (struct PyObject *)0 from src/python_module.c:65 src/python_module.c:69:1: note: returning src/python_module.c:69:1: note: found 2 similar trace(s) to this src/python_module.c:49:1: note: graphical error report for function 'pm_load_script' written out to '.libs/python_module.c.pm_load_script-refcount-errors.html' src/python_module.c: In function 'pm_call_module_method': src/python_module.c:215:22: 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 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: PyEval_AcquireThread src/python_module.c: In function 'pm_make_context': src/python_module.c:107:1: error: ob_refcnt of '*pyctx_cobject' is 1 too high [-Werror] src/python_module.c:107:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/python_module.c:107:1: note: but final ob_refcnt is N + 1 src/python_module.c:92:12: note: PyCObject allocated at: PyObject *pyctx_cobject = PyCObject_FromVoidPtr(ctx, NULL); src/python_module.c:92:12: note: when PyCObject_FromVoidPtr() succeeds at: PyObject *pyctx_cobject = PyCObject_FromVoidPtr(ctx, NULL); src/python_module.c:92:12: note: ob_refcnt is now refs: 1 + N where N >= 0 src/python_module.c:93:5: note: taking False path at: if (!pyctx_cobject) { src/python_module.c:99:12: note: reaching: PyObject *pyctx = PyObject_CallMethod(osync_module, "OSyncContext", "O", pyctx_cobject); src/python_module.c:99:12: note: when PyObject_CallMethod() succeeds at: PyObject *pyctx = PyObject_CallMethod(osync_module, "OSyncContext", "O", pyctx_cobject); src/python_module.c:100:5: note: taking False path at: if (!pyctx) { src/python_module.c:106:2: note: reaching: return pyctx; src/python_module.c:107:1: note: returning src/python_module.c:107:1: error: returning (PyObject*)NULL without setting an exception [-Werror] src/python_module.c:92:12: note: when PyCObject_FromVoidPtr() succeeds at: PyObject *pyctx_cobject = PyCObject_FromVoidPtr(ctx, NULL); src/python_module.c:93:5: note: taking False path at: if (!pyctx_cobject) { src/python_module.c:99:12: note: reaching: PyObject *pyctx = PyObject_CallMethod(osync_module, "OSyncContext", "O", pyctx_cobject); src/python_module.c:99:12: note: when PyObject_CallMethod() fails at: PyObject *pyctx = PyObject_CallMethod(osync_module, "OSyncContext", "O", pyctx_cobject); src/python_module.c:99:12: note: thread-local exception state now has value: (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from src/python_module.c:99 src/python_module.c:100:5: note: taking True path at: if (!pyctx) { src/python_module.c:101:18: note: reaching: osync_error_set(error, OSYNC_ERROR_GENERIC, "Cannot create Python OSyncContext"); src/python_module.c:102:14: note: calling PyErr_Print() at: PyErr_Print(); src/python_module.c:102:14: note: thread-local exception state now has value: (struct PyObject *)0 from src/python_module.c:102 src/python_module.c:103:3: note: taking False path at: Py_XDECREF(pyctx_cobject); src/python_module.c:103:3: note: reaching: Py_XDECREF(pyctx_cobject); src/python_module.c:103:3: note: when taking True path at: Py_XDECREF(pyctx_cobject); src/python_module.c:104:3: note: reaching: return NULL; src/python_module.c:107:1: note: returning src/python_module.c:107:1: note: found 3 similar trace(s) to this src/python_module.c:91:1: note: graphical error report for function 'pm_make_context' written out to '.libs/python_module.c.pm_make_context-refcount-errors.html' src/python_module.c: In function 'pm_make_change': src/python_module.c:88:1: error: ob_refcnt of '*pychg_cobject' is 1 too high [-Werror] src/python_module.c:88:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/python_module.c:88:1: note: but final ob_refcnt is N + 1 src/python_module.c:73:12: note: PyCObject allocated at: PyObject *pychg_cobject = PyCObject_FromVoidPtr(change, NULL); src/python_module.c:73:12: note: when PyCObject_FromVoidPtr() succeeds at: PyObject *pychg_cobject = PyCObject_FromVoidPtr(change, NULL); src/python_module.c:73:12: note: ob_refcnt is now refs: 1 + N where N >= 0 src/python_module.c:74:5: note: taking False path at: if (!pychg_cobject) { src/python_module.c:80:12: note: reaching: PyObject *pychg = PyObject_CallMethod(osync_module, "OSyncChange", "O", pychg_cobject); src/python_module.c:80:12: note: when PyObject_CallMethod() succeeds at: PyObject *pychg = PyObject_CallMethod(osync_module, "OSyncChange", "O", pychg_cobject); src/python_module.c:81:5: note: taking False path at: if (!pychg) { src/python_module.c:87:2: note: reaching: return pychg; src/python_module.c:88:1: note: returning src/python_module.c:88:1: error: returning (PyObject*)NULL without setting an exception [-Werror] src/python_module.c:73:12: note: when PyCObject_FromVoidPtr() succeeds at: PyObject *pychg_cobject = PyCObject_FromVoidPtr(change, NULL); src/python_module.c:74:5: note: taking False path at: if (!pychg_cobject) { src/python_module.c:80:12: note: reaching: PyObject *pychg = PyObject_CallMethod(osync_module, "OSyncChange", "O", pychg_cobject); src/python_module.c:80:12: note: when PyObject_CallMethod() fails at: PyObject *pychg = PyObject_CallMethod(osync_module, "OSyncChange", "O", pychg_cobject); src/python_module.c:80:12: note: thread-local exception state now has value: (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from src/python_module.c:80 src/python_module.c:81:5: note: taking True path at: if (!pychg) { src/python_module.c:82:18: note: reaching: osync_error_set(error, OSYNC_ERROR_GENERIC, "Cannot create Python OSyncChange"); src/python_module.c:83:14: note: calling PyErr_Print() at: PyErr_Print(); src/python_module.c:83:14: note: thread-local exception state now has value: (struct PyObject *)0 from src/python_module.c:83 src/python_module.c:84:3: note: taking False path at: Py_XDECREF(pychg_cobject); src/python_module.c:84:3: note: reaching: Py_XDECREF(pychg_cobject); src/python_module.c:84:3: note: when taking True path at: Py_XDECREF(pychg_cobject); src/python_module.c:85:3: note: reaching: return NULL; src/python_module.c:88:1: note: returning src/python_module.c:88:1: note: found 3 similar trace(s) to this src/python_module.c:72:1: note: graphical error report for function 'pm_make_change' written out to '.libs/python_module.c.pm_make_change-refcount-errors.html' src/python_module.c: In function 'pm_finalize': src/python_module.c:183:22: 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 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: PyEval_AcquireThread src/python_module.c: In function 'pm_initialize': src/python_module.c:143:41: 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 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_NewInterpreter src/python_module.c: In function 'pm_make_member': src/python_module.c:126:1: error: ob_refcnt of '*pymember_cobject' is 1 too high [-Werror] src/python_module.c:126:1: note: was expecting final ob_refcnt to be N + 0 (for some unknown N) src/python_module.c:126:1: note: but final ob_refcnt is N + 1 src/python_module.c:111:12: note: PyCObject allocated at: PyObject *pymember_cobject = PyCObject_FromVoidPtr(member, NULL); src/python_module.c:111:12: note: when PyCObject_FromVoidPtr() succeeds at: PyObject *pymember_cobject = PyCObject_FromVoidPtr(member, NULL); src/python_module.c:111:12: note: ob_refcnt is now refs: 1 + N where N >= 0 src/python_module.c:112:5: note: taking False path at: if (!pymember_cobject) { src/python_module.c:118:12: note: reaching: PyObject *pymember = PyObject_CallMethod(osync_module, "OSyncMember", "O", pymember_cobject); src/python_module.c:118:12: note: when PyObject_CallMethod() succeeds at: PyObject *pymember = PyObject_CallMethod(osync_module, "OSyncMember", "O", pymember_cobject); src/python_module.c:119:5: note: taking False path at: if (!pymember) { src/python_module.c:125:2: note: reaching: return pymember; src/python_module.c:126:1: note: returning src/python_module.c:126:1: error: returning (PyObject*)NULL without setting an exception [-Werror] src/python_module.c:111:12: note: when PyCObject_FromVoidPtr() succeeds at: PyObject *pymember_cobject = PyCObject_FromVoidPtr(member, NULL); src/python_module.c:112:5: note: taking False path at: if (!pymember_cobject) { src/python_module.c:118:12: note: reaching: PyObject *pymember = PyObject_CallMethod(osync_module, "OSyncMember", "O", pymember_cobject); src/python_module.c:118:12: note: when PyObject_CallMethod() fails at: PyObject *pymember = PyObject_CallMethod(osync_module, "OSyncMember", "O", pymember_cobject); src/python_module.c:118:12: note: thread-local exception state now has value: (struct PyObject *)&RegionForGlobal(gcc.VarDecl('PyExc_MemoryError')) from src/python_module.c:118 src/python_module.c:119:5: note: taking True path at: if (!pymember) { src/python_module.c:120:18: note: reaching: osync_error_set(error, OSYNC_ERROR_GENERIC, "Cannot create Python OSyncMember"); src/python_module.c:121:14: note: calling PyErr_Print() at: PyErr_Print(); src/python_module.c:121:14: note: thread-local exception state now has value: (struct PyObject *)0 from src/python_module.c:121 src/python_module.c:122:3: note: taking False path at: Py_XDECREF(pymember_cobject); src/python_module.c:122:3: note: reaching: Py_XDECREF(pymember_cobject); src/python_module.c:122:3: note: when taking True path at: Py_XDECREF(pymember_cobject); src/python_module.c:123:3: note: reaching: return NULL; src/python_module.c:126:1: note: returning src/python_module.c:126:1: note: found 3 similar trace(s) to this src/python_module.c:110:1: note: graphical error report for function 'pm_make_member' written out to '.libs/python_module.c.pm_make_member-refcount-errors.html' cc1: all warnings being treated as errors make[1]: *** [python_module_la-python_module.lo] Error 1 make[1]: Leaving directory `/builddir/build/BUILD/libopensync-plugin-python-0.22' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.ueXfpR (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.ueXfpR (%build) Child returncode was: 1 EXCEPTION: Command failed. See logs for output. # ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/libopensync-plugin-python.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/libopensync-plugin-python.spec'] LEAVE do --> EXCEPTION RAISED