[Cython] Cython 0.15 release candidate

mark florisson markflorisson88 at gmail.com
Fri Jul 29 10:33:24 CEST 2011


On 25 July 2011 08:03, Arfrever Frehtes Taifersar Arahesis
<arfrever.fta at gmail.com> wrote:
> There are 4 test failures with Python 2.6, 2.7, 3.1 and 3.2.
> Output with Python 2.7:
>
> ======================================================================
> FAIL: test_nested_break_continue (line 331) (parallel.__test__)
> Doctest: parallel.__test__.test_nested_break_continue (line 331)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib64/python2.7/doctest.py", line 2166, in runTest
>    raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for parallel.__test__.test_nested_break_continue (line 331)
>  File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/c/parallel.so", line unknown line number, in test_nested_break_continue (line 331)
>
> ----------------------------------------------------------------------
> File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/c/parallel.so", line ?, in parallel.__test__.test_nested_break_continue (line 331)
> Failed example:
>    test_nested_break_continue()
> Expected:
>    6 7 6 7
>    8
> Got:
>    6 0 -1160725808 -1160725808
>    8
>
>
> ======================================================================
> FAIL: test_propagation (line 49) (parallel.__test__)
> Doctest: parallel.__test__.test_propagation (line 49)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib64/python2.7/doctest.py", line 2166, in runTest
>    raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for parallel.__test__.test_propagation (line 49)
>  File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/c/parallel.so", line unknown line number, in test_propagation (line 49)
>
> ----------------------------------------------------------------------
> File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/c/parallel.so", line ?, in parallel.__test__.test_propagation (line 49)
> Failed example:
>    test_propagation()
> Expected:
>    (9, 9, 9, 9, 450, 450)
> Got:
>    (9, 0, 9, -1160725808, 0, 0)
>
>
> ======================================================================
> FAIL: test_nested_break_continue (line 331) (parallel.__test__)
> Doctest: parallel.__test__.test_nested_break_continue (line 331)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib64/python2.7/doctest.py", line 2166, in runTest
>    raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for parallel.__test__.test_nested_break_continue (line 331)
>  File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/cpp/parallel.so", line unknown line number, in test_nested_break_continue (line 331)
>
> ----------------------------------------------------------------------
> File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/cpp/parallel.so", line ?, in parallel.__test__.test_nested_break_continue (line 331)
> Failed example:
>    test_nested_break_continue()
> Expected:
>    6 7 6 7
>    8
> Got:
>    6 0 -1160725808 -1160725808
>    8
>
>
> ======================================================================
> FAIL: test_propagation (line 49) (parallel.__test__)
> Doctest: parallel.__test__.test_propagation (line 49)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>  File "/usr/lib64/python2.7/doctest.py", line 2166, in runTest
>    raise self.failureException(self.format_failure(new.getvalue()))
> AssertionError: Failed doctest test for parallel.__test__.test_propagation (line 49)
>  File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/cpp/parallel.so", line unknown line number, in test_propagation (line 49)
>
> ----------------------------------------------------------------------
> File "/var/tmp/portage/dev-python/cython-0.15_rc0/work/Cython-0.15rc0/tests-2.7/run/cpp/parallel.so", line ?, in parallel.__test__.test_propagation (line 49)
> Failed example:
>    test_propagation()
> Expected:
>    (9, 9, 9, 9, 450, 450)
> Got:
>    (9, 0, 9, -1160725808, 0, 0)
>
>
> ----------------------------------------------------------------------
> Ran 5554 tests in 1509.246s
>
> FAILED (failures=4)
> ALL DONE
>
> --
> Arfrever Frehtes Taifersar Arahesis
>
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
>
>

Unfortunately due to a bug in gcc 4.5, Dag and I have concluded that
we must disable nested parallelism support in Cython, as there is no
suitable workaround. (The issue is that the bug doesn't propagate
lastprivates, which results in random values for inner privates.) The
reduction fails in the test due to yet another bug, which can be
worked around easily.

So Robert, please wait with the next release candidate until I have
disabled nesting and the corresponding tests and documentation.


More information about the cython-devel mailing list