[Pyrex] possible bug in Pyrex

Péter Szabó ptspts+pyrex at gmail.com
Sun Feb 14 21:26:06 CET 2010


Hi,

I think I've found a bug in Pyrex (or some other part of my Python
installation) which causes the Python 2.6 interpreter segfault (or
abort) in some cases. It is 100% reproducible on my machine. See
http://code.google.com/p/pts-mini-gpl/source/browse/trunk/excbug/README.txt
for instructions how to reproduce it. (You can download the rest of
the files by clicking on the ``excbug'' link.) The bug doesn't seem to
happen with Cython.

FYI here is the code in my .pyx file:

def iowrap(f):
  try:
    return f()
  except IOError, e:
    return e

All other code is pure Python. I'm using the socket module and
Python2.6's ssl module.

Can you reproduce the bug in your local machine?

Thanks,

Péter



More information about the Pyrex mailing list