Skip to content

Instantly share code, notes, and snippets.

@yarikoptic
Created April 15, 2010 13:30
Show Gist options
  • Save yarikoptic/367083 to your computer and use it in GitHub Desktop.
Save yarikoptic/367083 to your computer and use it in GitHub Desktop.
(gdb) up
#3 0x00000000005a0583 in PyCFunction_Call (func=0xacaaa38, arg=0x191b0420, kw=0x0)
at ../Objects/methodobject.c:81
81 ../Objects/methodobject.c: No such file or directory.
in ../Objects/methodobject.c
(gdb)
#4 0x0000000000425fe5 in PyObject_Call (func=0xacaaa38, arg=0x191b0420, kw=0x0)
at ../Objects/abstract.c:2492
2492 ../Objects/abstract.c: No such file or directory.
in ../Objects/abstract.c
(gdb) pylocals
No symbol "f" in current context.
(gdb) p func
$3 = (PyObject *) 0xacaaa38
(gdb) pyo func
Program received signal SIGSEGV, Segmentation fault.
0x0000000005f41151 in _IO_fwrite (buf=0x5d1aa5, size=1, count=10, fp=0x622c880) at iofwrite.c:43
43 iofwrite.c: No such file or directory.
in iofwrite.c
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(_PyObject_Dump) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) dow
Bottom (innermost) frame selected; you cannot go down.
(gdb) pystack
/home/yoh/proj/pymvpa/pymvpa/mvpa/clfs/libsvmc/_svm.py (63): int_array_to_list
/home/yoh/proj/pymvpa/pymvpa/mvpa/clfs/libsvmc/_svm.py (291): __init__
/home/yoh/proj/pymvpa/pymvpa/mvpa/clfs/libsvmc/svm.py (182): _train
/home/yoh/proj/pymvpa/pymvpa/mvpa/clfs/base.py (405): train
/home/yoh/proj/pymvpa/pymvpa/mvpa/clfs/transerror.py (1302): _precall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment