Skip to content

Instantly share code, notes, and snippets.

@warewolf
Created March 15, 2015 22:33
Show Gist options
  • Select an option

  • Save warewolf/da6270d304e48740c0a9 to your computer and use it in GitHub Desktop.

Select an option

Save warewolf/da6270d304e48740c0a9 to your computer and use it in GitHub Desktop.
# gdb `which python`
GNU gdb (GDB) Fedora 7.7.1-21.fc20
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /bin/python...Reading symbols from /usr/lib/debug/usr/bin/python2.7.debug...done.
done.
(gdb) set args /bin/yum update
(gdb) run
Starting program: /usr/bin/python /bin/yum update
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6a1c810 in ?? ()
(gdb) bt
#0 0x00007ffff6a1c810 in ?? ()
#1 0x00007ffff6b24dc4 in initModule (m=<module at remote 0x7ffff7e5d2b8>) at rpmmodule.c:523
#2 init_rpm () at rpmmodule.c:283
#3 0x00007ffff7b0bf09 in _PyImport_LoadDynamicModule (name=name@entry=0x701fc0 "rpm._rpm",
pathname=pathname@entry=0x702fd0 "/usr/lib64/python2.7/site-packages/rpm/_rpm.so", fp=<optimized out>)
at /usr/src/debug/Python-2.7.5/Python/importdl.c:53
#4 0x00007ffff7b09d43 in load_module (name=name@entry=0x701fc0 "rpm._rpm", fp=<optimized out>,
pathname=pathname@entry=0x702fd0 "/usr/lib64/python2.7/site-packages/rpm/_rpm.so", type=<optimized out>, loader=<optimized out>)
at /usr/src/debug/Python-2.7.5/Python/import.c:1915
#5 0x00007ffff7b09fe1 in import_submodule (mod=mod@entry=<module at remote 0x7ffff7e54e50>, subname=subname@entry=0x701fc4 "_rpm",
fullname=fullname@entry=0x701fc0 "rpm._rpm") at /usr/src/debug/Python-2.7.5/Python/import.c:2700
#6 0x00007ffff7b0a22d in load_next (mod=mod@entry=<module at remote 0x7ffff7e54e50>,
altmod=altmod@entry=<module at remote 0x7ffff7e54e50>, p_name=p_name@entry=0x7fffffffd388, buf=buf@entry=0x701fc0 "rpm._rpm",
p_buflen=p_buflen@entry=0x7fffffffd390) at /usr/src/debug/Python-2.7.5/Python/import.c:2515
#7 0x00007ffff7b0ac48 in import_module_level (locals=<optimized out>, level=<optimized out>, fromlist=('*',),
globals=<optimized out>, name=0x0) at /usr/src/debug/Python-2.7.5/Python/import.c:2232
#8 PyImport_ImportModuleLevel (name=<optimized out>, globals=<optimized out>, locals=<optimized out>, fromlist=('*',),
level=<optimized out>) at /usr/src/debug/Python-2.7.5/Python/import.c:2288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment