Core dump revisited

Sheldon shejo284 at gmail.com
Mon Dec 18 15:35:10 EST 2006


Nick Craig-Wood skrev:

> Sheldon <shejo284 at gmail.com> wrote:
> >  gdb msgppscomp.py core.3203
>
> Run
>
>   gdb python
>
> Then type
>
>   run msgppscomp.py
>
> at the gdb prompt.
>
> When it crashes, type "bt" for a back trace.  This will pinpoint
> exactly where it crashes.
>
> Hopefully that will make things clearer.  If not post the output.
>
> --
> Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick

Wonderful! Now I know how to used gdb with python. The are results area
posted below. Since I am new at this I could used some help in
interpreting the problem. What I do know is this: my allocation of the
array is good but when freeing the array, a problem arises. The problem
is given below but since I am new as well to C I sure could use some
help.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1077321856 (LWP 32710)]
0x40297b83 in mallopt () from /lib/tls/libc.so.6
(gdb) bt
#0  0x40297b83 in mallopt () from /lib/tls/libc.so.6
#1  0x402958ba in free () from /lib/tls/libc.so.6
#2  0x405e070a in MemoryFreeOrd () at msgppsmodule_area.c:1675
#3  0x405dae0a in msgppsarea (self=0x0, args=0x4042aa7c, kwargs=0x0) at
msgppsmodule_area.c:328
#4  0x40073b16 in PyCFunction_Call () from /usr/lib/libpython2.3.so.1.0


I appreciate your help so far and could use some more.

/S




More information about the Python-list mailing list