This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/17051] New: GDB crash when disconnecting from and reconnecting to gdbserver


https://sourceware.org/bugzilla/show_bug.cgi?id=17051

            Bug ID: 17051
           Summary: GDB crash when disconnecting from and reconnecting to
                    gdbserver
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at ericsson dot com

I can make GDB crash reliably using these steps:

1- Start gdbserver with --multi
2- Connect to gdbserver
3- Specify the executable with set remote exec-file
4- Run
5- Disconnect
[inferior continues running under gdbserver...]
6- Reconnect to gdbserver
7- Witness crash

Here is a transcript from my terminal:

$ gdb a.out
Reading symbols from a.out...done.
(gdb) target extended-remote :1234
Remote debugging using :1234
(gdb) set remote exec-file /home/simark/a.out
(gdb) run &
Starting program: /home/simark/a.out 
(gdb) disconnect 
Ending remote debugging.
(gdb) target extended-remote :1234
Remote debugging using :1234
(gdb) 
[Thread 15182.15182] #1 stopped.
0x00007ffff7ad5d60 in ?? ()
../../../src/binutils-gdb/gdb/inline-frame.c:340: internal-error:
skip_inline_frames: Assertion `find_inline_frame_state (ptid) == NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]