public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost
@ 2011-06-07 12:54 jon at beniston dot com
  2011-06-07 12:54 ` [Bug remote/12853] " jon at beniston dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jon at beniston dot com @ 2011-06-07 12:54 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12853

           Summary: Unable to quit GDB if remote TCP connection is lost
           Product: gdb
           Version: 7.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: remote
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jon@beniston.com


If using a TCP remote connection (E.g. tar ext localhost:1234), if the target
connection is lost for some reason, it is no longer possible to quit GDB.

(gdb) quit
A debugging session is active.

        Inferior 1 [Remote target] will be killed.

Quit anyway? (y or n) y
putpkt: write failed: Connection reset by peer.
(gdb)

i.e. you get the putpkt error message, and then get returned to the prompt.

Pressing ctrl-c several times just results in:

(gdb) Quit
(gdb) Quit
(gdb) Quit...

being printed.

This is occuring on a Windows 7 64-bit / Cygwin system.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug remote/12853] Unable to quit GDB if remote TCP connection is lost
  2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
@ 2011-06-07 12:54 ` jon at beniston dot com
  2011-11-14 22:08 ` keiths at redhat dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jon at beniston dot com @ 2011-06-07 12:54 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12853

jon at beniston dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |windows 7 / cygwin

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug remote/12853] Unable to quit GDB if remote TCP connection is lost
  2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
  2011-06-07 12:54 ` [Bug remote/12853] " jon at beniston dot com
@ 2011-11-14 22:08 ` keiths at redhat dot com
  2012-08-28 16:44 ` keiths at redhat dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: keiths at redhat dot com @ 2011-11-14 22:08 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12853

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |keiths at redhat dot com
         AssignedTo|unassigned at sourceware    |keiths at redhat dot com
                   |dot org                     |

--- Comment #1 from Keith Seitz <keiths at redhat dot com> 2011-11-14 22:08:14 UTC ---
I cannot reproduce with the 7.3 branch (7.3.1-20111104-cvs) or CVS HEAD. I've
tried this on cygwin, too (Windows 2008 Server):

SHELL A:
$ gdbserver :1234 foo
Process foo created; pid = 1936
Listening on port 1234

SHELL B:
$ gdb -nx -q foo
(gdb) b main
Breakpoint 1 at 0x401196: file foo.c, line 6.
(gdb) tar remote :1234
Remote debugging using :1243
warning: Can not parse target XML description; XML support was disabled at
compile time
warning: Can not parser XML library list; XML support was disabled at compile
time
0x775e0005 in ?? ()
(gdb) c
Breakpoint 1, main () at foo.c:6
6   return 0;
(gdb)

SHELL C:
$ ps waux | grep gdbserver | kill `awk '{print $1}'`

SHELL B:
(gdb) quit
A debugging session is active.

     Inferior 1 [Remote target] will be killed.

Quit anyway? (y or n) y
qTStatus: remote connection closed
$ 

Can you verify any of this or provide me with a test that demonstrates the
problem better?

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug remote/12853] Unable to quit GDB if remote TCP connection is lost
  2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
  2011-06-07 12:54 ` [Bug remote/12853] " jon at beniston dot com
  2011-11-14 22:08 ` keiths at redhat dot com
@ 2012-08-28 16:44 ` keiths at redhat dot com
  2014-05-21 11:50 ` jan.smets@alcatel-lucent.com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: keiths at redhat dot com @ 2012-08-28 16:44 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12853

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #2 from Keith Seitz <keiths at redhat dot com> 2012-08-28 16:44:39 UTC ---
It's almost ten months. This still works, as described, on CVS HEAD
(7.5.50.20120828-cvs) and the 7.5 branch. I'm closing this bug.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug remote/12853] Unable to quit GDB if remote TCP connection is lost
  2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
                   ` (2 preceding siblings ...)
  2012-08-28 16:44 ` keiths at redhat dot com
@ 2014-05-21 11:50 ` jan.smets@alcatel-lucent.com
  2014-05-21 11:51 ` jan.smets@alcatel-lucent.com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2014-05-21 11:50 UTC (permalink / raw)
  To: gdb-prs

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

Jan Smets <jan.smets@alcatel-lucent.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |jan.smets@alcatel-lucent.co
                   |                            |m
         Resolution|WORKSFORME                  |---

--- Comment #3 from Jan Smets <jan.smets@alcatel-lucent.com> ---
Can someone please re-investigate? I'm having the same issue with 7.5

1) connect to a remote target
2) attach to a process
3) disconnect/reset the remote target
4) watch the timeout
5) try detaching or quit gdb

(gdb) attach 165209617
Attaching to process 165209617
[New Thread 165209617.165209617]
0x07ab29bc in __memPoolInit ()
(gdb) c
Continuing.
^C
[Thread 165209617.165209617] #1 stopped.
0x07ab29bc in __memPoolInit ()
Ignoring packet error, continuing...
Stopping Thread 165209617.165209617 failed: timeout
(gdb) Ignoring packet error, continuing...
Stopping Thread 165209617.165209617 failed: timeout
(gdb) (gdb)
Continuing.
Cannot execute this command while the selected thread is running.
(gdb) 
(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit
A debugging session is active.

        Inferior 1 [process 165209617] will be detached.

Quit anyway? (y or n) y

Ignoring packet error, continuing...
Bogus trace status reply from target: timeout
(gdb) 
A debugging session is active.

        Inferior 1 [process 165209617] will be detached.
.... (can't get out of GDB!!)

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug remote/12853] Unable to quit GDB if remote TCP connection is lost
  2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
                   ` (3 preceding siblings ...)
  2014-05-21 11:50 ` jan.smets@alcatel-lucent.com
@ 2014-05-21 11:51 ` jan.smets@alcatel-lucent.com
  2014-05-21 11:54 ` jan.smets@alcatel-lucent.com
  2014-05-21 23:23 ` palves at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2014-05-21 11:51 UTC (permalink / raw)
  To: gdb-prs

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

Jan Smets <jan.smets@alcatel-lucent.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|windows 7 / cygwin          |windows 7 / cygwin / linux

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug remote/12853] Unable to quit GDB if remote TCP connection is lost
  2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
                   ` (4 preceding siblings ...)
  2014-05-21 11:51 ` jan.smets@alcatel-lucent.com
@ 2014-05-21 11:54 ` jan.smets@alcatel-lucent.com
  2014-05-21 23:23 ` palves at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jan.smets@alcatel-lucent.com @ 2014-05-21 11:54 UTC (permalink / raw)
  To: gdb-prs

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

Jan Smets <jan.smets@alcatel-lucent.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|7.2                         |7.5

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug remote/12853] Unable to quit GDB if remote TCP connection is lost
  2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
                   ` (5 preceding siblings ...)
  2014-05-21 11:54 ` jan.smets@alcatel-lucent.com
@ 2014-05-21 23:23 ` palves at redhat dot com
  6 siblings, 0 replies; 8+ messages in thread
From: palves at redhat dot com @ 2014-05-21 23:23 UTC (permalink / raw)
  To: gdb-prs

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

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |palves at redhat dot com
         Resolution|---                         |WORKSFORME

--- Comment #4 from Pedro Alves <palves at redhat dot com> ---
(In reply to Jan Smets from comment #3)
> Can someone please re-investigate? I'm having the same issue with 7.5

You'll most probably need a more recent GDB.

Keith mentioned 7.5.50.20120828-cvs
(future 7.6), and the 7.5 branch (what ended up as 7.5.1).

In any case 7.5 is old by now.  Please reopen if you can reproduce it with a
7.7, or ideally a recent snapshot or git head (we're not that far from 7.8
now).

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-21 23:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 12:54 [Bug remote/12853] New: Unable to quit GDB if remote TCP connection is lost jon at beniston dot com
2011-06-07 12:54 ` [Bug remote/12853] " jon at beniston dot com
2011-11-14 22:08 ` keiths at redhat dot com
2012-08-28 16:44 ` keiths at redhat dot com
2014-05-21 11:50 ` jan.smets@alcatel-lucent.com
2014-05-21 11:51 ` jan.smets@alcatel-lucent.com
2014-05-21 11:54 ` jan.smets@alcatel-lucent.com
2014-05-21 23:23 ` palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).