Segfaults and leaked exceptions in 0.9.9
Claudio Freire <[email protected]> Wed, 31 Jul 2013 15:33:16 -0300
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <CAGTBQpZDWOfXR311EVqiS+XYen0cmr64VN97UbJTX96X8yOn4w@mail.gmail.com> |
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 =3D {}[3]
. except:
. rv =3D 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