我可以在gdb中调用PyString_InternFromString(" pvp_level")吗?

时间:2017-01-13 07:58:39

标签: python gdb

接下来输出我的测试:

(gdb) p PyString_InternFromString("pvp_level")
Program received signal SIGSEGV, Segmentation fault.
PyObject_Malloc (nbytes=<optimized out>) at ../Objects/obmalloc.c:899
899     ../Objects/obmalloc.c: No such file or directory.
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
(PyString_InternFromString) will be abandoned.

当函数执行完毕后,GDB将静默停止。

0 个答案:

没有答案
相关问题