Re: [Cython] segfault in 'async def' coroutines

2016-05-16 Thread Stefan Behnel
Yury Selivanov schrieb am 16.05.2016 um 22:19: > On 2016-05-16 3:58 AM, Stefan Behnel wrote: >> Yury Selivanov schrieb am 14.05.2016 um 23:31: >>> Under some circumstances, in asyncio code that runs in uvloop [1], >>> cython code segfaults in cython/Cython/Utility/Coroutine.c: >>> >>> >>>static

Re: [Cython] segfault in 'async def' coroutines

2016-05-16 Thread Yury Selivanov
On 2016-05-16 3:58 AM, Stefan Behnel wrote: Yury Selivanov schrieb am 14.05.2016 um 23:31: Under some circumstances, in asyncio code that runs in uvloop [1], cython code segfaults in cython/Cython/Utility/Coroutine.c: static PyObject * __Pyx_Coroutine_get_qualname(__pyx_CoroutineObject

Re: [Cython] async def coroutines miss __module__

2016-05-16 Thread Stefan Behnel
Yury Selivanov schrieb am 15.05.2016 um 00:28: > In CPython: > async def foo(): pass foo.__module__ > '__main__' > > In Cython, async def coroutines lack __module__ attribute Ok, that's easy enough to add. https://github.com/cython/cython/commit/c975662204754a42963ba5b293e398393761505

Re: [Cython] segfault in 'async def' coroutines

2016-05-16 Thread Stefan Behnel
Yury Selivanov schrieb am 14.05.2016 um 23:31: > Under some circumstances, in asyncio code that runs in uvloop [1], > cython code segfaults in cython/Cython/Utility/Coroutine.c: > > > static PyObject * > __Pyx_Coroutine_get_qualname(__pyx_CoroutineObject *self) > { > Py_INCREF(self->gi_