>> a) Boil down the Cython code as much as possible. Make sure a simple >> cdef >> function with no Python types or operations exhibit the crash. >> b) Open the generate C file and replace the body of said cdef function >> with the code that works. >> c) If that doesn't work, it's likely a linker bug, strange use of macros >> in the API or similar. Otherwise, incrementally change back to >> Cython-generated code until it no longer works. >> > > > I just started doing something similar. I started inserting printf > statements into the cython code up to the point of failure, just before > that > I inserted my known working C-code and the recompiled. Now, the good code > also fails on the same integers, so i'm thinking it may be a linker bug.
Quick note: By linker bug I really meant a bug in your make system, not in the linker itself :-) But I guess that's how you interpreted it. Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
