[Cython] C int division by zero
Robert Bradshaw
robertwb at math.washington.edu
Wed Apr 15 08:41:34 CEST 2009
On Apr 14, 2009, at 11:49 PM, Dag Sverre Seljebotn wrote:
> Robert Bradshaw wrote:
>>
>> OK, pushed. http://hg.cython.org/cython-devel/rev/a09a309febdc
>
> Note that this now segfaults:
>
> @cython.cdivision(False)
> def f():
> cdef int a=10, b=0
> with nogil:
> a = a // b
> return a
Ah, because raising the exception requires the GIL. I'll have to add
a check in this case.
- Robert
More information about the Cython-dev
mailing list