[Cython] Debugging a segfault in a cython generated module

Stefan Behnel stefan_ml at behnel.de
Sat Apr 19 11:04:56 CEST 2008


Brian Granger wrote:
> I have wrapped some templated c++ code using Cython.  The c++ code
> uses templates and I am using the "evil nasty" tricks that cython
> allows to handle this.  Everything was working fine (beautifully in
> all actuality)....until I started getting seg faults, bus errors and
> messages like:
> 
> Python(4538) malloc: *** error for object 0x311140: Non-aligned
> pointer being freed (2)
> *** set a breakpoint in malloc_error_break to debug

BTW, have you tried using a different Cython version first? Just to make sure
the problem is actually in your own code.

Stefan



More information about the Cython-dev mailing list