snare / voltron

A hacky debugger UI for hackers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gdb segfault

Segflow opened this issue · comments

gdb crash immediately after few steps when voltron is loaded. With a clean .gdbinit, no crash happens

GDB Version:

> $ gdb -v
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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-linux-gnu".

core dump backtrace:

> $ gdb $(which gdb) core -ex bt
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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-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 /usr/bin/gdb...Reading symbols from /usr/lib/debug/.build-id/23/b34ad95e5487999606aeede51437f54e5672c6.debug...done.
done.
[New LWP 861]
[New LWP 846]
[New LWP 854]
[New LWP 852]
[New LWP 863]
[New LWP 851]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `gdb pwn5'.
Program terminated with signal SIGABRT, Aborted.
---Type <return> to continue, or q <return> to quit---
#0  0x00007f6ad832a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f6ac37fe700 (LWP 861))]
#0  0x00007f6ad832a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1  0x00007f6ad832c02a in __GI_abort () at abort.c:89
#2  0x00000000006a0036 in dump_core () at /build/gdb-9un5Xp/gdb-7.11.1/gdb/utils.c:561
#3  0x00000000006a2650 in internal_vproblem (problem=problem@entry=0xc38020 <internal_error_problem>,
    file=<optimized out>, line=<optimized out>, fmt=<optimized out>, ap=ap@entry=0x7f6ac37fa3f0)
    at /build/gdb-9un5Xp/gdb-7.11.1/gdb/utils.c:769
#4  0x00000000006a2719 in internal_verror (file=<optimized out>, line=<optimized out>, fmt=<optimized out>,
    ap=ap@entry=0x7f6ac37fa3f0) at /build/gdb-9un5Xp/gdb-7.11.1/gdb/utils.c:795
#5  0x00000000006d7d8f in internal_error (file=file@entry=0x80e438 "/build/gdb-9un5Xp/gdb-7.11.1/gdb/thread.c",
    line=line@entry=982, fmt=<optimized out>) at /build/gdb-9un5Xp/gdb-7.11.1/gdb/common/errors.c:55
#6  0x000000000045d1db in is_thread_state (state=THREAD_EXITED, ptid=...)
    at /build/gdb-9un5Xp/gdb-7.11.1/gdb/thread.c:982
#7  0x00000000005c7387 in is_thread_state (state=THREAD_EXITED, ptid=...)
    at /build/gdb-9un5Xp/gdb-7.11.1/gdb/thread.c:996
---Type <return> to continue, or q <return> to quit---
#8  is_exited (ptid=...) at /build/gdb-9un5Xp/gdb-7.11.1/gdb/thread.c:995
#9  0x00000000005abeaa in program_info (args=<optimized out>, from_tty=0)
    at /build/gdb-9un5Xp/gdb-7.11.1/gdb/infcmd.c:2065
#10 0x000000000069dbc6 in execute_command (p=<optimized out>, p@entry=0x7f6ab4003750 "info program",
    from_tty=from_tty@entry=0) at /build/gdb-9un5Xp/gdb-7.11.1/gdb/top.c:475
#11 0x000000000069dcab in execute_command_to_string (p=p@entry=0x7f6ab4003750 "info program",
    from_tty=from_tty@entry=0) at /build/gdb-9un5Xp/gdb-7.11.1/gdb/top.c:528
#12 0x00000000005014dc in execute_gdb_command (self=<optimized out>, args=<optimized out>, kw=<optimized out>)
    at /build/gdb-9un5Xp/gdb-7.11.1/gdb/python/python.c:667
#13 0x00007f6ad921c059 in PyCFunction_Call () from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
#14 0x00007f6ad932908b in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
#15 0x00007f6ad9328639 in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
#16 0x00007f6ad93b8cac in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
#17 0x00007f6ad9326f39 in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
#18 0x00007f6ad93b8cac in ?? () from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
#19 0x00007f6ad9326f39 in PyEval_EvalFrameEx () from /usr/lib/x86_64-linux-gnu/libpython3.5m.so.1.0
...