Hi Carles,
On Thu, Aug 23, 2012 at 5:40 PM, Carles Fernàndez Julià
<
chao...@gmail.com> wrote:
> So the noob question:
> As I am not getting any stack trace, how can I debug this?
There are two ways I can think of:
- add prints a bit everywhere in the Python source. At least you
should be able to pinpoint where the problem is.
- or, pretend it's a C program and debug it the same way: with gdb (or
Microsoft's debuggers on Windows). Start python with "gdb python" and
run until the segfault, and see if gdb has a useful C traceback (e.g.
if you're passing by mistake a NULL pointer to a C function that
doesn't expect it, it's likely to segfault).
A bientôt,
Armin.