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] Exception check optimization

2013-05-30 Thread Stefan Behnel
Am 30.05.2013 14:38, schrieb Nikita Nemkin: > On Thu, 30 May 2013 08:25:55 +0600, Robert Bradshaw wrote: >> On Sun, May 26, 2013 at 10:04 AM, Nikita Nemkin wrote: >>> I wonder why is __pyx_filename (in exception check blocks) >>> tracked dynamically? AFAIK it's impossible to split function >>> body

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] Exception check optimization

2013-05-30 Thread Nikita Nemkin
On Thu, 30 May 2013 08:25:55 +0600, Robert Bradshaw wrote: On Sun, May 26, 2013 at 10:04 AM, Nikita Nemkin wrote: Hi, I wonder why is __pyx_filename (in exception check blocks) tracked dynamically? AFAIK it's impossible to split function body between multiple files (include only works at t

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

[Cython] Compiler crash on unmatched kwarg

2013-05-30 Thread Emmanuel Gil Peyrot
Hi, When the name of a kwarg in the definition and the declaration of a function doesn’t match, the compiler crash instead of returning a meaningful error. I have joined a testcase, it is reproductible at least on 0.19.1 and latest git. -- Emmanuel Gil Peyrot XMPP: OpenPGP: 24B1D609 testcase