Re: [Cython] Core dump when Python is built without debug symbols

2013-05-30 Thread Marin Atanasov Nikolov
On Thu, May 30, 2013 at 5:21 PM, Nikita Nemkin wrote: > On Thu, 30 May 2013 19:51:16 +0600, Marin Atanasov Nikolov < > dna...@gmail.com> wrote: > > Any idea why having Python with debug symbols actually overcomes this >> issue? >> > > In debug builds, Python object structure is prepended with a

Re: [Cython] Core dump when Python is built without debug symbols

2013-05-30 Thread Nikita Nemkin
On Thu, 30 May 2013 19:51:16 +0600, Marin Atanasov Nikolov wrote: Any idea why having Python with debug symbols actually overcomes this issue? In debug builds, Python object structure is prepended with a couple of extra debug fields, which means a different piece of memory was wrongly inte

Re: [Cython] Core dump when Python is built without debug symbols

2013-05-30 Thread Marin Atanasov Nikolov
On Thu, May 30, 2013 at 3:08 PM, Nikita Nemkin wrote: > > > In pkg-db.pxi, this line: > > return Pkg(pkg) > > and in pkg-pkg.pxi this line: > > def __cinit__(self, pkg): > self._pkg = pkg > > are the problem. > > Thanks, Nikita! That was the problem indeed :) The funny part is

Re: [Cython] Core dump when Python is built without debug symbols

2013-05-30 Thread Nikita Nemkin
On Thu, 30 May 2013 17:23:39 +0600, Marin Atanasov Nikolov wrote: Hello, First, apologies if this is not exactly the right place to post this, but I have tried already cython-users@ and my post is still pending somewhere for approval, so I've decided to give it a shot here. I'm working

[Cython] Core dump when Python is built without debug symbols

2013-05-30 Thread Marin Atanasov Nikolov
Hello, First, apologies if this is not exactly the right place to post this, but I have tried already cython-users@ and my post is still pending somewhere for approval, so I've decided to give it a shot here. I'm working on Cython wrappers for a C library and everything was going smooth on my de