Is “syscall-template.S: No such file or directory” a bug of GDB or My Program

前端 未结 1 1055
野性不改
野性不改 2020-12-17 23:23

I used GDB to debug a combined program of Python and C. The GDB gives me an error when segmentation fault of my program occurs.

81  ../sysdeps/unix/syscall-t         


        
相关标签:
1条回答
  • 2020-12-17 23:49

    If your program passes invalid arguments to a C library function, it can crash in the C library. And, if you don't have the source for the C library installed, then you will get a message like this from gdb. However, this doesn't mean anything is wrong... it is normal to be missing debuginfo and/or source for one or more libraries used by a program. Ordinarily the solution is to go "up" a few stack frames and see what the real problem is. More rarely you may be encountering a library bug.

    0 讨论(0)
提交回复
热议问题