[Cython] e: Automatic C++ conversions

Yaroslav Halchenko lists at onerussian.com
Tue Jul 3 00:56:44 CEST 2012


I was thinking about updating Debian package for cython 0.16 but ran into
the failing unittests so decided first to check with experts: anything obvious
which comes to mind from seeing those?

...
compiling (c) and running sequential_parallel ... sequential_parallel.c: In function '__pyx_pf_19sequential_parallel_56test_chunksize':
sequential_parallel.c:12405:7: warning: variable '__pyx_t_6' set but not used [-Wunused-but-set-variable]
sequential_parallel.c:12404:7: warning: variable '__pyx_t_5' set but not used [-Wunused-but-set-variable]
sequential_parallel.c:12402:7: warning: variable '__pyx_t_3' set but not used [-Wunused-but-set-variable]
sequential_parallel.c: In function '__pyx_pw_19sequential_parallel_25test_nested_break_continue':
sequential_parallel.c:5887:29: warning: '__pyx_v_j' may be used uninitialized in this function [-Wmaybe-uninitialized]
sequential_parallel.c:5590:7: note: '__pyx_v_j' was declared here
sequential_parallel.c: In function '__pyx_f_19sequential_parallel_parallel_exc_cpdef_unnested.isra.29':
sequential_parallel.c:8915:3: warning: '__pyx_r' may be used uninitialized in this function [-Wmaybe-uninitialized]
sequential_parallel.c:8681:7: note: '__pyx_r' was declared here
sequential_parallel.c: In function '__pyx_f_19sequential_parallel_parallel_exc_cpdef.isra.30':
sequential_parallel.c:8614:3: warning: '__pyx_r' may be used uninitialized in this function [-Wmaybe-uninitialized]
sequential_parallel.c:8259:7: note: '__pyx_r' was declared here
sequential_parallel.c: In function '__pyx_pw_19sequential_parallel_33test_parallel_exc_cdef':
sequential_parallel.c:8222:78: warning: '__pyx_r' may be used uninitialized in this function [-Wuninitialized]
sequential_parallel.c:7946:7: note: '__pyx_r' was declared here
sequential_parallel.c:8233:69: warning: '__pyx_r' may be used uninitialized in this function [-Wuninitialized]
sequential_parallel.c:7578:7: note: '__pyx_r' was declared here
Fatal Python error: deletion of interned string failed
Compiling /tmp/buildd/.cython/inline/_cython_inline_a998a12d3d1450b2368ca75e07a27942.pyx because it changed.
Cythonizing /tmp/buildd/.cython/inline/_cython_inline_a998a12d3d1450b2368ca75e07a27942.pyx
ERROR
compiling (cpp) and running sequential_parallel ... sequential_parallel.cpp: In function 'PyObject* __pyx_pf_19sequential_parallel_56test_chunksize(PyObject*)':
sequential_parallel.cpp:12402:7: warning: variable '__pyx_t_3' set but not used [-Wunused-but-set-variable]
sequential_parallel.cpp:12404:7: warning: variable '__pyx_t_5' set but not used [-Wunused-but-set-variable]
sequential_parallel.cpp:12405:7: warning: variable '__pyx_t_6' set but not used [-Wunused-but-set-variable]
sequential_parallel.cpp: In function 'PyObject* __pyx_pw_19sequential_parallel_25test_nested_break_continue(PyObject*, PyObject*)':
sequential_parallel.cpp:5887:39: warning: '__pyx_v_j' may be used uninitialized in this function [-Wmaybe-uninitialized]
sequential_parallel.cpp:5590:7: note: '__pyx_v_j' was declared here
sequential_parallel.cpp: In function 'int _ZL48__pyx_f_19sequential_parallel_parallel_exc_cpdefi.isra.30()':
sequential_parallel.cpp:8614:10: warning: '__pyx_r' may be used uninitialized in this function [-Wmaybe-uninitialized]
sequential_parallel.cpp:8259:7: note: '__pyx_r' was declared here
sequential_parallel.cpp: In function 'int _ZL57__pyx_f_19sequential_parallel_parallel_exc_cpdef_unnestedi.isra.29()':
sequential_parallel.cpp:8915:10: warning: '__pyx_r' may be used uninitialized in this function [-Wmaybe-uninitialized]
sequential_parallel.cpp:8681:7: note: '__pyx_r' was declared here
sequential_parallel.cpp: In function 'PyObject* __pyx_pw_19sequential_parallel_33test_parallel_exc_cdef(PyObject*, PyObject*)':
sequential_parallel.cpp:8222:75: warning: '__pyx_r' may be used uninitialized in this function [-Wuninitialized]
sequential_parallel.cpp:7946:7: note: '__pyx_r' was declared here
sequential_parallel.cpp:8233:66: warning: '__pyx_r' may be used uninitialized in this function [-Wuninitialized]
sequential_parallel.cpp:7578:7: note: '__pyx_r' was declared here
ERROR
...
======================================================================
ERROR: compiling (c) and running parallel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "runtests.py", line 707, in run
    self.run_tests(result)
  File "runtests.py", line 723, in run_tests
    self.run_doctests(self.module, result)
  File "runtests.py", line 729, in run_doctests
    run_forked_test(result, run_test, self.shortDescription(), self.fork)
  File "runtests.py", line 778, in run_forked_test
    (module_name, result_code & 255))
Exception: Tests in module 'parallel' were unexpectedly killed by signal 11

======================================================================
ERROR: compiling (cpp) and running parallel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "runtests.py", line 707, in run
    self.run_tests(result)
  File "runtests.py", line 723, in run_tests
    self.run_doctests(self.module, result)
  File "runtests.py", line 729, in run_doctests
    run_forked_test(result, run_test, self.shortDescription(), self.fork)
  File "runtests.py", line 778, in run_forked_test
    (module_name, result_code & 255))
Exception: Tests in module 'parallel' were unexpectedly killed by signal 11

======================================================================
ERROR: compiling (c) and running sequential_parallel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "runtests.py", line 707, in run
    self.run_tests(result)
  File "runtests.py", line 723, in run_tests
    self.run_doctests(self.module, result)
  File "runtests.py", line 729, in run_doctests
    run_forked_test(result, run_test, self.shortDescription(), self.fork)
  File "runtests.py", line 778, in run_forked_test
    (module_name, result_code & 255))
Exception: Tests in module 'sequential_parallel' were unexpectedly killed by signal 6

======================================================================
ERROR: compiling (cpp) and running sequential_parallel
----------------------------------------------------------------------
Traceback (most recent call last):
  File "runtests.py", line 707, in run
    self.run_tests(result)
  File "runtests.py", line 723, in run_tests
    self.run_doctests(self.module, result)
  File "runtests.py", line 729, in run_doctests
    run_forked_test(result, run_test, self.shortDescription(), self.fork)
  File "runtests.py", line 778, in run_forked_test
    (module_name, result_code & 255))
Exception: Tests in module 'sequential_parallel' were unexpectedly killed by signal 11

----------------------------------------------------------------------
Ran 6358 tests in 954.316s

FAILED (errors=4)


-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        


More information about the cython-devel mailing list