[Pyrex] bug if exception is being generated in pyrex constructor

Gustavo Sverzut Barbieri barbieri at gmail.com
Sun May 6 06:24:50 UTC 2007


On 5/2/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Gustavo Sverzut Barbieri wrote:
> > Attached is a test case that shows pyrex generated extension type
> > segfaulting if it inherits from a class that raised an exception in
> > its constructor.
>
> Doing something inside a C-level constructor which could
> raise an exception is a dangerous thing to do in the first
> place, since a partly-constructed object can cause all
> sorts of trouble when its destructor is executed.
>
> I'll see if I can do something about this particular
> manifestation of the problem, though.

Did you see my patch, what do you think about it?

-- 
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: barbieri at gmail.com
   MSN: barbieri at gmail.com
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010



More information about the Pyrex mailing list