[Pyrex] Segfaults and leaked exceptions in 0.9.9
Claudio Freire
klaussfreire at gmail.com
Wed Jul 31 20:33:16 CEST 2013
This is interestingly new (I think this didn't happen in 0.9.8, but I
didn't check)
test.pyx:
. def fault():
. try:
. return {}[3]
. except:
. return None
.
. def bork():
. cdef object rv
. try:
. rv = {}[3]
. except:
. rv = None
. return rv
test session:
Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lrucache
>>> lrucache.bork()
>>> 3
KeyError: 3
>>> lrucache.fault()
Segmentation fault
More information about the Pyrex
mailing list