[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

Re: [Cython] memoryviews bloat?

2013-09-10 Thread Sturla Molden
Den 10. sep. 2013 kl. 02:14 skrev Robert Bradshaw : >>> Wow. The first version of this PR used Cython memoryviews, which added a >>> whopping 14 kLOC of generated C to the repo. Switched back to bare pointers >>> to keep the compile times within bounds. >> It would be interesting to hear the Cyt