need help porting ctypes to Linux
Thomas Heller
theller at python.net
Wed Nov 20 07:38:52 EST 2002
Michael Hudson <mwh at python.net> writes:
> Thomas Heller <theller at python.net> writes:
>
> > 3. When my extension does something wrong, I see
> > 'Speicherzugriffsfehler' ('access violation' or so) printed on the
> > console. Why isn't a core dump (for examination) created?
>
> Possibly because your Linux vendor thinks you're a wet-behind-the-ears
> grandfather who would be scared by a core file. Try executing
>
> ulimit -c unlimited
>
> before running your program.
Yup, works now.
>
> > Do I have to enable this? Or is it possible to configure gdb so
> > that it will automatically pop up to examine the program's state?
>
> If you run your program under gdb (i.e. execute
>
> $ gdb python
>
> and type "run") then any signal -- including sig 11 -- will dump you
> into gdb.
Ok, so I'll have to put a 'rawinput()' before the crashing code,
and then press ^C, and set my breakpoints.
Thanks,
Thomas
More information about the Python-list
mailing list