Re: [Cython] Metaclass bug corrupts the heap

2013-09-12 Thread Robert Bradshaw
Thanks for the careful analysis. See https://github.com/cython/cython/commit/e8b54dec4cdc94764abda4a107bc37dcd58e6f13 On Tue, Sep 10, 2013 at 3:26 PM, Dénes Vadász wrote: > Hello, > > according to valgrind the following Cython fragment causes a heap corruption > (with Python 2.7.5 and Cython 0.19

Re: [Cython] Metaclass bug corrupts the heap

2013-09-12 Thread Stefan Behnel
Robert Bradshaw, 12.09.2013 23:02: > Thanks for the careful analysis. See > https://github.com/cython/cython/commit/e8b54dec4cdc94764abda4a107bc37dcd58e6f13 Might be possible to merge it with this special case: https://github.com/cython/cython/blob/master/Cython/Compiler/Code.py#L50 and/or make

[Cython] Metaclass bug corrupts the heap

2013-09-10 Thread Dénes Vadász
Hello, according to valgrind the following Cython fragment causes a heap corruption (with Python 2.7.5 and Cython 0.19.1 on Ubuntu): cdef class MetaClass(type): cdef int i class MyClass(object): __metaclass__ = MetaClass Please find below the result of a many hour inv