Friday, 15 March 2013

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



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

i used gdb debug combined programme of python , c. gdb gives me error when segmentation fault of programme occurs.

81 ../sysdeps/unix/syscall-template.s: no such file or directory.

here several lines more of trackback information.

0 0x00007ffff6f2b6d7 in kill () @ ../sysdeps/unix/syscall-template.s:81 1 0x000000000042a241 in posix_kill.64590 (self=<optimized out>, args=<optimized out>) @ ../modules/posixmodule.c:4306 2 0x000000000050e78c in call_function (oparg=<optimized out>, pp_stack=0x7fffffffd7b0) @ ../python/ceval.c:4020 3 pyeval_evalframeex (f=f@entry=frame 0x7ffff5784608, file /usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py, line 121, in python_reloader (main_func=<instancemethod @ remote 0x7ffff69a3a00>, args=(), kwargs={'use_static_handler': true, 'settings': none, 'pythonpath': none, 'verbosity': '1', 'traceback': none, 'use_ipv6': false, 'use_threading': true, 'use_reloader': true, 'insecure_serving': false}, exit_code=-11), throwflag=throwflag@entry=0) @ ../python/ceval.c:2666

is bug of gdb or program? cannot find class of programme in trackback information.

thanks !

if programme passes invalid arguments c library function, can crash in c library. and, if don't have source c library installed, message gdb. however, doesn't mean wrong... normal missing debuginfo and/or source 1 or more libraries used program. ordinarily solution go "up" few stack frames , see real problem is. more may encountering library bug.

python c gdb

No comments:

Post a Comment