1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
(gdb) run my_run.py
Starting program: /home/francois/Travail/salome_3.2.2/Python-2.4.1/bin/python my_run.py
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xffffe000
[Thread debugging using libthread_db enabled]
[New Thread -1211976000 (LWP 12430)]
test avec array -> vector
[0 1 2 3 4]
<type 'array'>
typeid obj0: P7_object
obj0->ob_type: 0xb7b6aea0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211976000 (LWP 12430)]
0xb7b7153a in _wrap_globale_print (args=0xb7bb3f8c) at example_wrap.cxx:1375
1375 std::cout<<"\tPyArray_Check(obj0): "<<PyArray_Check(obj0)<<"\n";
(gdb) bt
#0 0xb7b7153a in _wrap_globale_print (args=0xb7bb3f8c) at example_wrap.cxx:1375
#1 0xb7ee4826 in PyCFunction_Call (func=0xb7ba98ec, arg=0xb7bb3f8c, kw=0x0) at Objects/methodobject.c:108
#2 0xb7f21863 in PyEval_EvalFrame (f=0x804c1ac) at Python/ceval.c:3547
#3 0xb7f22261 in PyEval_EvalCodeEx (co=0xb7c23ce0, globals=0xb7c05824, locals=0xb7c05824, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:2730
#4 0xb7f22382 in PyEval_EvalCode (co=0xb7c23ce0, globals=0xb7c05824, locals=0xb7c05824) at Python/ceval.c:484
#5 0xb7f45804 in PyRun_FileExFlags (fp=0x804a008, filename=0xbfdb653f "my_run.py", start=257, globals=0xb7c05824, locals=0xb7c05824,
closeit=1, flags=0xbfdb5b14) at Python/pythonrun.c:1265
#6 0xb7f461d8 in PyRun_SimpleFileExFlags (fp=Variable "fp" is not available.
) at Python/pythonrun.c:860
#7 0xb7f476b0 in PyRun_AnyFileExFlags (fp=0x804a008, filename=0xbfdb653f "my_run.py", closeit=1, flags=0xbfdb5b14) at Python/pythonrun.c:664
#8 0xb7f4d2bd in Py_Main (argc=1, argv=0xbfdb5bd4) at Modules/main.c:484
#9 0x08048644 in main (argc=2, argv=0xbfdb5bd4) at ./Modules/ccpython.cc:10 |
Partager