接下来输出我的测试:
(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将静默停止。