unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6962: GDB hangs
@ 2010-09-01  3:41 Aidan Gauland
  2011-10-07  0:16 ` bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb Steve Revilak
  2011-11-06  0:41 ` Steve Revilak
  0 siblings, 2 replies; 7+ messages in thread
From: Aidan Gauland @ 2010-09-01  3:41 UTC (permalink / raw)
  To: 6962

[-- Attachment #1: Type: text/plain, Size: 12777 bytes --]

GUD hangs when quitting GDBPlease describe exactly what actions triggered the bug
and the precise symptoms of the bug.  If you can, give
a recipe starting from `emacs -Q':

When I run GDB (M-x gdb, etc.) the first time, all goes well, until I
type "quit" in the GUD buffer, which never actually quits GDB (the
subprocess never dies).  I am able to quit GDB (and cause the message
"Debugger finished" to appear in the GUD buffer) by M-x list-processes.
The second time I run GDB, tab-completion (hitting tab in the GUD
buffer) hangs Emacs (C-g unfreezes).

The same happens when running `emacs -Q'.

I am running the development release of Emacs on Debian squeeze.

Regards,
Aidan Gauland


In GNU Emacs 24.0.50.7 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1)
 of 2010-08-31 on dimension8
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--with-imagemagick''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_NZ.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
  shell-dirtrack-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-netsplit-mode: t
  erc-menu-mode: t
  erc-match-mode: t
  erc-list-mode: t
  erc-pcomplete-mode: t
  erc-button-mode: t
  erc-stamp-mode: t
  erc-autojoin-mode: t
  global-undo-tree-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  show-paren-mode: t
  display-time-mode: t
  desktop-save-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-p C-p C-p <S-iso-lefttab> <return> M-> C-M-S-h C-M-S-h
C-x b c h <tab> a <tab> <return> C-M-S-l C-r e m m
a <return> M-> C-M-S-h / w h o i s SPC e m m a <return>
/ a w a y SPC F o <backspace> <backspace> b u s y <return>
M-p <M-backspace> <backspace> <return> <help-echo>
<help-echo> <help-echo> <help-echo> C-x b c o m p <return>
m a n <tab> N o t SPC m u c h SPC u s u a l l y M-$
, SPC n o . M-b M-b M-b M-f M-f C-k . C-a C-k m a n
<tab> U n f o r t u n a t e l y M-$ , SPC n o t SPC
u s C-a C-k C-x b <return> C-M-S-l C-M-S-j M-v M-v
M-v M-v C-v C-v C-v C-v C-v C-l M-> C-M-S-k C-M-S-h
/ t o p i c SPC # # c i n e m a <return> C-x C-f /
u <tab> <return> <return> s r <return> l i <return>
R <backspace> R <return> <help-echo> C-x C-q C-x b
p a <return> C-x 5 2 <switch-frame> C-x b C-g <switch-frame>
C-x b <return> <switch-frame> M-x g d b <tab> <return>
<return> b r e a k SPC e r r o r <return> r u n SPC
t e <tab> a <tab> 0 <tab> <M-backspace> <M-backspace>
f <tab> i <tab> <tab> b <tab> <M-backspace> <M-backspace>
f i <tab> <return> C-M-S-l C-M-S-j <return> <return>
C-M-S-h C-M-S-j C-n <return> <switch-frame> <switch-frame>
C-M-S-k C-M-S-k q u i t <return> C-x C-c C-g M-x s
u b m i t <tab> M-b * C-e <tab> <tab> C-a C-k e m a
c s <M-backspace> * b u g <tab> C-a r e <tab> p <tab>
C-e <return>

Recent messages:
Partially completed [2 times]
Completed
No completions of test_f
No completions of test_fi [2 times]
No completions of test_fib
Completed
Switched to thread 1
Quit
Making completion list... [2 times]
delete-backward-char: Text is read-only

Load-path shadows:
/usr/local/share/emacs/site-lisp/org-remember hides
/usr/local/share/emacs/24.0.50/lisp/org/org-remember
/usr/local/share/emacs/site-lisp/ob-tangle hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-tangle
/usr/local/share/emacs/site-lisp/org-exp hides
/usr/local/share/emacs/24.0.50/lisp/org/org-exp
/usr/local/share/emacs/site-lisp/org-protocol hides
/usr/local/share/emacs/24.0.50/lisp/org/org-protocol
/usr/local/share/emacs/site-lisp/org-docbook hides
/usr/local/share/emacs/24.0.50/lisp/org/org-docbook
/usr/local/share/emacs/site-lisp/org-icalendar hides
/usr/local/share/emacs/24.0.50/lisp/org/org-icalendar
/usr/local/share/emacs/site-lisp/ob-ruby hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-ruby
/usr/local/share/emacs/site-lisp/org-exp-blocks hides
/usr/local/share/emacs/24.0.50/lisp/org/org-exp-blocks
/usr/local/share/emacs/site-lisp/org-archive hides
/usr/local/share/emacs/24.0.50/lisp/org/org-archive
/usr/local/share/emacs/site-lisp/org-mouse hides
/usr/local/share/emacs/24.0.50/lisp/org/org-mouse
/usr/local/share/emacs/site-lisp/org-mks hides
/usr/local/share/emacs/24.0.50/lisp/org/org-mks
/usr/local/share/emacs/site-lisp/org-vm hides
/usr/local/share/emacs/24.0.50/lisp/org/org-vm
/usr/local/share/emacs/site-lisp/ob-C hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-C
/usr/local/share/emacs/site-lisp/ob-gnuplot hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-gnuplot
/usr/local/share/emacs/site-lisp/ob-exp hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-exp
/usr/local/share/emacs/site-lisp/org-mobile hides
/usr/local/share/emacs/24.0.50/lisp/org/org-mobile
/usr/local/share/emacs/site-lisp/org-capture hides
/usr/local/share/emacs/24.0.50/lisp/org/org-capture
/usr/local/share/emacs/site-lisp/org-bibtex hides
/usr/local/share/emacs/24.0.50/lisp/org/org-bibtex
/usr/local/share/emacs/site-lisp/org-habit hides
/usr/local/share/emacs/24.0.50/lisp/org/org-habit
/usr/local/share/emacs/site-lisp/org-beamer hides
/usr/local/share/emacs/24.0.50/lisp/org/org-beamer
/usr/local/share/emacs/site-lisp/org-jsinfo hides
/usr/local/share/emacs/24.0.50/lisp/org/org-jsinfo
/usr/local/share/emacs/site-lisp/org-latex hides
/usr/local/share/emacs/24.0.50/lisp/org/org-latex
/usr/local/share/emacs/site-lisp/org-publish hides
/usr/local/share/emacs/24.0.50/lisp/org/org-publish
/usr/local/share/emacs/site-lisp/org-html hides
/usr/local/share/emacs/24.0.50/lisp/org/org-html
/usr/local/share/emacs/site-lisp/org hides
/usr/local/share/emacs/24.0.50/lisp/org/org
/usr/local/share/emacs/site-lisp/org-compat hides
/usr/local/share/emacs/24.0.50/lisp/org/org-compat
/usr/local/share/emacs/site-lisp/ob-clojure hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-clojure
/usr/local/share/emacs/site-lisp/ob-emacs-lisp hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-emacs-lisp
/usr/local/share/emacs/site-lisp/ob-R hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-R
/usr/local/share/emacs/site-lisp/org-inlinetask hides
/usr/local/share/emacs/24.0.50/lisp/org/org-inlinetask
/usr/local/share/emacs/site-lisp/org-datetree hides
/usr/local/share/emacs/24.0.50/lisp/org/org-datetree
/usr/local/share/emacs/site-lisp/ob-mscgen hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-mscgen
/usr/local/share/emacs/site-lisp/ob-lob hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-lob
/usr/local/share/emacs/site-lisp/ob-ref hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-ref
/usr/local/share/emacs/site-lisp/ob-comint hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-comint
/usr/local/share/emacs/site-lisp/org-mew hides
/usr/local/share/emacs/24.0.50/lisp/org/org-mew
/usr/local/share/emacs/site-lisp/ob-ditaa hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-ditaa
/usr/local/share/emacs/site-lisp/org-ctags hides
/usr/local/share/emacs/24.0.50/lisp/org/org-ctags
/usr/local/share/emacs/site-lisp/ob-python hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-python
/usr/local/share/emacs/site-lisp/org-colview hides
/usr/local/share/emacs/24.0.50/lisp/org/org-colview
/usr/local/share/emacs/site-lisp/ob-screen hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-screen
/usr/local/share/emacs/site-lisp/ob-latex hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-latex
/usr/local/share/emacs/site-lisp/ob-eval hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-eval
/usr/local/share/emacs/site-lisp/org-mac-message hides
/usr/local/share/emacs/24.0.50/lisp/org/org-mac-message
/usr/local/share/emacs/site-lisp/org-plot hides
/usr/local/share/emacs/24.0.50/lisp/org/org-plot
/usr/local/share/emacs/site-lisp/org-table hides
/usr/local/share/emacs/24.0.50/lisp/org/org-table
/usr/local/share/emacs/site-lisp/org-id hides
/usr/local/share/emacs/24.0.50/lisp/org/org-id
/usr/local/share/emacs/site-lisp/org-taskjuggler hides
/usr/local/share/emacs/24.0.50/lisp/org/org-taskjuggler
/usr/local/share/emacs/site-lisp/org-gnus hides
/usr/local/share/emacs/24.0.50/lisp/org/org-gnus
/usr/local/share/emacs/site-lisp/org-entities hides
/usr/local/share/emacs/24.0.50/lisp/org/org-entities
/usr/local/share/emacs/site-lisp/org-xoxo hides
/usr/local/share/emacs/24.0.50/lisp/org/org-xoxo
/usr/local/share/emacs/site-lisp/org-freemind hides
/usr/local/share/emacs/24.0.50/lisp/org/org-freemind
/usr/local/share/emacs/site-lisp/ob-sh hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-sh
/usr/local/share/emacs/site-lisp/org-bbdb hides
/usr/local/share/emacs/24.0.50/lisp/org/org-bbdb
/usr/local/share/emacs/site-lisp/ob-sqlite hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-sqlite
/usr/local/share/emacs/site-lisp/org-footnote hides
/usr/local/share/emacs/24.0.50/lisp/org/org-footnote
/usr/local/share/emacs/site-lisp/org-attach hides
/usr/local/share/emacs/24.0.50/lisp/org/org-attach
/usr/local/share/emacs/site-lisp/org-mhe hides
/usr/local/share/emacs/24.0.50/lisp/org/org-mhe
/usr/local/share/emacs/site-lisp/org-install hides
/usr/local/share/emacs/24.0.50/lisp/org/org-install
/usr/local/share/emacs/site-lisp/org-docview hides
/usr/local/share/emacs/24.0.50/lisp/org/org-docview
/usr/local/share/emacs/site-lisp/ob-haskell hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-haskell
/usr/local/share/emacs/site-lisp/ob-ocaml hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-ocaml
/usr/local/share/emacs/site-lisp/org-rmail hides
/usr/local/share/emacs/24.0.50/lisp/org/org-rmail
/usr/local/share/emacs/site-lisp/ob-perl hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-perl
/usr/local/share/emacs/site-lisp/org-timer hides
/usr/local/share/emacs/24.0.50/lisp/org/org-timer
/usr/local/share/emacs/site-lisp/org-wl hides
/usr/local/share/emacs/24.0.50/lisp/org/org-wl
/usr/local/share/emacs/site-lisp/org-crypt hides
/usr/local/share/emacs/24.0.50/lisp/org/org-crypt
/usr/local/share/emacs/site-lisp/ob-matlab hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-matlab
/usr/local/share/emacs/site-lisp/org-info hides
/usr/local/share/emacs/24.0.50/lisp/org/org-info
/usr/local/share/emacs/site-lisp/org-list hides
/usr/local/share/emacs/24.0.50/lisp/org/org-list
/usr/local/share/emacs/site-lisp/ob-css hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-css
/usr/local/share/emacs/site-lisp/org-feed hides
/usr/local/share/emacs/24.0.50/lisp/org/org-feed
/usr/local/share/emacs/site-lisp/org-ascii hides
/usr/local/share/emacs/24.0.50/lisp/org/org-ascii
/usr/local/share/emacs/site-lisp/org-macs hides
/usr/local/share/emacs/24.0.50/lisp/org/org-macs
/usr/local/share/emacs/site-lisp/org-src hides
/usr/local/share/emacs/24.0.50/lisp/org/org-src
/usr/local/share/emacs/site-lisp/org-indent hides
/usr/local/share/emacs/24.0.50/lisp/org/org-indent
/usr/local/share/emacs/site-lisp/ob hides
/usr/local/share/emacs/24.0.50/lisp/org/ob
/usr/local/share/emacs/site-lisp/ob-sass hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-sass
/usr/local/share/emacs/site-lisp/org-clock hides
/usr/local/share/emacs/24.0.50/lisp/org/org-clock
/usr/local/share/emacs/site-lisp/ob-keys hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-keys
/usr/local/share/emacs/site-lisp/org-faces hides
/usr/local/share/emacs/24.0.50/lisp/org/org-faces
/usr/local/share/emacs/site-lisp/ob-table hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-table
/usr/local/share/emacs/site-lisp/ob-dot hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-dot
/usr/local/share/emacs/site-lisp/org-agenda hides
/usr/local/share/emacs/24.0.50/lisp/org/org-agenda
/usr/local/share/emacs/site-lisp/ob-sql hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-sql
/usr/local/share/emacs/site-lisp/ob-asymptote hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-asymptote
/usr/local/share/emacs/site-lisp/ob-octave hides
/usr/local/share/emacs/24.0.50/lisp/org/ob-octave
/usr/local/share/emacs/site-lisp/org-irc hides
/usr/local/share/emacs/24.0.50/lisp/org/org-irc
/usr/local/share/emacs/site-lisp/org-w3m hides
/usr/local/share/emacs/24.0.50/lisp/org/org-w3m


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]

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

* bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb
  2010-09-01  3:41 bug#6962: GDB hangs Aidan Gauland
@ 2011-10-07  0:16 ` Steve Revilak
  2011-10-29  0:20   ` Glenn Morris
  2011-11-06  0:41 ` Steve Revilak
  1 sibling, 1 reply; 7+ messages in thread
From: Steve Revilak @ 2011-10-07  0:16 UTC (permalink / raw)
  To: 6962

[-- Attachment #1: Type: text/plain, Size: 6544 bytes --]

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

================================================================== 

In the emacs 24.0.90 pretest, I've noticed that gdb-mi hangs when
quitting the debugger.  This seems similar to bug 6962 (opened Sep. 1,
2010), so I'm going file my report under bug 6962.


For illustration, I'll use this C program, in file foo.c

---------------------------------
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char ** argv) {
    if (argc != 2) {
      exit(1);
    }

    return 0;
}
---------------------------------

I'll compile foo.c as follows:

$ make CFLAGS=-g foo
cc -g    foo.c   -o foo


I'll walk through two examples: one that produces a zero exit code,
and one that produces a non-zero exit code.

(1) start emacs as follows:

    emacs -Q foo.c

(2) M-x gdb RET

    Emacs prompts: Run gdb (like this): gdb -i=mi foo
    Type RET to accept the suggested gdb command line

(3) emacs responds with the following:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Current directory is ~/
GNU gdb (GDB) SUSE (7.2-3.3)
Copyright (C) 2010 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-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/srevilak/foo...done.
(gdb) 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

(4) at the (gdb) prompt, type 
     
      b main RET
      run RET

(5) gdb stops at the breakpoint in the first line of main.  At the
      (gdb) prompt type

      cont RET

(6) The *gud-foo* buffer outputs

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(gdb) cont
Continuing.
(gdb)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Note: gdb does not state the the program has exited, and does not
report the program's exit code.

(7) at the (gdb) prompt, type 

    quit RET

At this point, the *gud-foo* buffer hangs, and I have to use C-x k to
kill the buffer.

                                  * * *

That was the non-zero exit case.  Here is the zero exit case

   - M-x gdb RET
   - press RET at the minibuffer's "Run gdb" message
   - type "set args x RET" at the (gdb) prompt
   - type "run RET" at (gdb) prompt
   - *gud-foo* produces the same output as shown in step (6)
   - typing "quit RET" at the (gdb) prompt causes *gud-foo* to hang.


I feel that there are two issues here:

    1. gdb-mi does not state when the debugged program exits.  I believe
       the exit information is very useful to someone debugging a
       program.  For example, I'd like to know that the program exited.

    2. "quit RET" causes gdb-mi to hang.  It would be nice for gdb-mi to
        offer feedback here.  Like "Debugger finished" or some such.


In terms of the expectations behind issues 1. and 2., mine are based
on the behavior of M-x gud-gdb.  For example, gud-gdb offers something
like the following when the debugged program exits:

    Program exited with code 01.

and typing "quit RET" at gud-gdb's (gdb) prompt produces the feedback

    Debugger finished

I think it would be helpful to users if gdb-mi followed these
conventions.


==================================================================

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
      `bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/local/emacs-24.0.90.1/share/emacs/24.0.90/etc/DEBUG.


In GNU Emacs 24.0.90.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.1)
   of 2011-09-27 on sunny
Windowing system distributor `The X.Org Foundation', version 11.0.10903000
configured using `configure  '--prefix=/usr/local/emacs-24.0.90.1/''

Important settings:
    value of $LC_ALL: nil
    value of $LC_COLLATE: C
    value of $LC_CTYPE: nil
    value of $LC_MESSAGES: nil
    value of $LC_MONETARY: nil
    value of $LC_NUMERIC: nil
    value of $LC_TIME: nil
    value of $LANG: en_US.UTF-8
    value of $XMODIFIERS: @im=local
    locale-coding-system: utf-8-unix
    default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
    tooltip-mode: t
    mouse-wheel-mode: t
    tool-bar-mode: t
    menu-bar-mode: t
    file-name-shadow-mode: t
    global-font-lock-mode: t
    font-lock-mode: t
    blink-cursor-mode: t
    auto-composition-mode: t
    auto-encryption-mode: t
    auto-compression-mode: t
    line-number-mode: t
    transient-mark-mode: t

Recent input:
<down-mouse-1> <mouse-1> M-x r e o <backspace> p o 
r t - e m a c s - b u <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr message format-spec rfc822 mml easymenu
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader
emacsbug time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb
  2011-10-07  0:16 ` bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb Steve Revilak
@ 2011-10-29  0:20   ` Glenn Morris
  0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2011-10-29  0:20 UTC (permalink / raw)
  To: Steve Revilak, Aidan Gauland; +Cc: 6962


I think this might have been fixed by the fix for bug#9839.
Please try the Emacs trunk or the 24.0.91 pretest when it appears and
let us know if you still see this issue.





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

* bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb
  2010-09-01  3:41 bug#6962: GDB hangs Aidan Gauland
  2011-10-07  0:16 ` bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb Steve Revilak
@ 2011-11-06  0:41 ` Steve Revilak
  2011-11-06  0:52   ` Christoph Scholtes
  1 sibling, 1 reply; 7+ messages in thread
From: Steve Revilak @ 2011-11-06  0:41 UTC (permalink / raw)
  To: 6962

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

I tried my Oct 6th 2011 test case with Emacs 24.0.91.  24.0.91 is
definitely much better.  Emacs no longer hangs when I type "quit" at
the (gdb) prompt; instead Emacs offers the following in the
minibuffer:

   Buffer "*input/output of foo*" has a running process; kill it? (yes
   or no)

That seems much nicer than the behavior under 24.0.90.

I also tried the `exit 0' case I provided earlier (using a C-source
file called foo.c):

   - M-x gdb RET
   - press RET at the minibuffer's "Run gdb" message
   - type "set args x RET" at the (gdb) prompt
   - type "run RET" at (gdb) prompt

Performing these steps causes (the compiled) foo.c to run and exit(0).
Aferwards, I see "Debugger:run [exited-normally]" in the mode line.
The text `exited-normally' is colored red -- should it be green for
normal termination of the debugged program?

Red vs. green is really a minor thing.  I believe this issue can be
closed.

Steve


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb
  2011-11-06  0:41 ` Steve Revilak
@ 2011-11-06  0:52   ` Christoph Scholtes
  2011-11-06  1:02     ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Scholtes @ 2011-11-06  0:52 UTC (permalink / raw)
  To: Steve Revilak; +Cc: 6962

Steve Revilak <steve@srevilak.net> writes:

> I tried my Oct 6th 2011 test case with Emacs 24.0.91.  24.0.91 is
> definitely much better.  Emacs no longer hangs when I type "quit" at
> the (gdb) prompt; instead Emacs offers the following in the
> minibuffer:
>
>   Buffer "*input/output of foo*" has a running process; kill it? (yes
>   or no)
>
> That seems much nicer than the behavior under 24.0.90.

So you press `y' and it kills the buffer. However, the gdb-inferior
process still runs, as `M-x list-processes' shows. Shouldn't that
process be deleted when gdb is exited?





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

* bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb
  2011-11-06  0:52   ` Christoph Scholtes
@ 2011-11-06  1:02     ` Glenn Morris
  2011-12-06  8:46       ` Glenn Morris
  0 siblings, 1 reply; 7+ messages in thread
From: Glenn Morris @ 2011-11-06  1:02 UTC (permalink / raw)
  To: Christoph Scholtes; +Cc: 6962, Steve Revilak

Christoph Scholtes wrote:

> So you press `y' and it kills the buffer. However, the gdb-inferior
> process still runs, as `M-x list-processes' shows. Shouldn't that
> process be deleted when gdb is exited?

That's http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4437





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

* bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb
  2011-11-06  1:02     ` Glenn Morris
@ 2011-12-06  8:46       ` Glenn Morris
  0 siblings, 0 replies; 7+ messages in thread
From: Glenn Morris @ 2011-12-06  8:46 UTC (permalink / raw)
  To: 6962-done

Version: 24.0.93

I think some recent changes related to processes have fixed this, or at
least the obvious problems, so I am closing this. Please make a new
report if you still see gdb issues with the latest Emacs trunk. Thanks.





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

end of thread, other threads:[~2011-12-06  8:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-01  3:41 bug#6962: GDB hangs Aidan Gauland
2011-10-07  0:16 ` bug#6962: 24.0.90; M-x gdb: hangs when leaving the gdb Steve Revilak
2011-10-29  0:20   ` Glenn Morris
2011-11-06  0:41 ` Steve Revilak
2011-11-06  0:52   ` Christoph Scholtes
2011-11-06  1:02     ` Glenn Morris
2011-12-06  8:46       ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).