emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

python(pdb) & gud: "stop" causes uncaught exception


From: David Reitter
Subject: python(pdb) & gud: "stop" causes uncaught exception
Date: Wed, 25 Apr 2007 15:51:39 +0100

Pressing the "stop" button in gud with pdb running (gud-stop-subjob) causes an unhandled python exception (stack trace below).

Emacs then pops up cmd.py on line 151, near "except ImportError", which is at the end of the following:

        finally:
            if self.use_rawinput and self.completekey:
                try:
                    import readline
                    readline.set_completer(self.old_completer)
                except ImportError:
                    pass

I've got Python 2.4.1 installed, and the `python.el' from the GNU Emacs CVS (the one which was just taken out / put back in?) is in use.




/Users/dr/Temp/empty.py(0)?()->None
(Pdb)   <tool-bar> <stop>Traceback (most recent call last):
  File "/usr/local/lib/python2.4/pdb.py", line 1060, in main
    pdb._runscript(mainpyfile)
  File "/usr/local/lib/python2.4/pdb.py", line 985, in _runscript
    self.run(statement, globals=globals_, locals=locals_)
  File "/usr/local/lib/python2.4/bdb.py", line 366, in run
    exec cmd in globals, locals
  File "<string>", line 1, in ?
  File "empty.py", line 0, in ?
  File "/usr/local/lib/python2.4/bdb.py", line 52, in trace_dispatch
    return self.dispatch_return(frame, arg)
  File "/usr/local/lib/python2.4/bdb.py", line 85, in dispatch_return
    self.user_return(frame, arg)
  File "/usr/local/lib/python2.4/pdb.py", line 141, in user_return
    self.interaction(frame, None)
  File "/usr/local/lib/python2.4/pdb.py", line 158, in interaction
    self.cmdloop()
  File "/usr/local/lib/python2.4/cmd.py", line 130, in cmdloop
    line = raw_input(self.prompt)
KeyboardInterrupt
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /usr/local/lib/python2.4/cmd.py(151)cmdloop()
-> pass
(Pdb)






In GNU Emacs 22.0.99.1 (powerpc-apple-darwin7.9.0, Carbon Version 1.6.0)
 of 2007-04-24 on rodrigues.inf.ed.ac.uk - Aquamacs Distribution 1.0rc4
Windowing system distributor `Apple Inc.', version 10.4.9
configured using `configure  '--without-x' '--prefix=/usr/local''

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: nil
  locale-coding-system: iso-8859-1
  default-enable-multibyte-characters: t

Major mode: Python

Minor modes in effect:
  smart-frame-positioning-mode: t
  aquamacs-styles-mode: t
  shell-dirtrack-mode: t
  recentf-mode: t
  encoded-kbd-mode: t
  osx-key-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  cua-mode: t
  tooltip-mode: t
  mac-input-method-mode: t
  tool-bar-mode: 0
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<menu-bar> <Python> <Debugger> <return> <help-echo>
<down-mouse-1> <mouse-1> <help-echo> <tool-bar> <cont>
<help-echo> <help-echo> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> <wheel-down> <double-wheel-down> <triple-wheel-down>
<wheel-down> <wheel-down> <double-wheel-down> <down-mouse-1>
<mouse-movement> <mouse-1> <help-echo> <help-echo>
<help-echo> <help-echo> <tool-bar> <break> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <tool-bar> <cont> <help-echo> <help-echo>
<down-mouse-1> <mouse-1> <down-mouse-3> <mouse-3> <help-echo>
<tool-bar> <next> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <tool-bar> <step> <help-echo> <help-echo>
<tool-bar> <next> <tool-bar> <next> <tool-bar> <next>
<tool-bar> <next> <tool-bar> <next> <tool-bar> <next>
<tool-bar> <next> <help-echo> <help-echo> <help-echo>
<tool-bar> <next> <help-echo> <help-echo> <tool-bar>
<step> <tool-bar> <step> <tool-bar> <step> <tool-bar>
<step> <help-echo> <help-echo> <tool-bar> <next> <help-echo>
<tool-bar> <next> <tool-bar> <next> <tool-bar> <next>
<tool-bar> <next> <tool-bar> <next> <help-echo> <tool-bar>
<next> <tool-bar> <next> <tool-bar> <next> <tool-bar>
<next> <help-echo> <help-echo> <tool-bar> <cont> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <tool-bar>
<next> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <tool-bar> <down> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <tool-bar> <step> <help-echo> <help-echo>
<tool-bar> <next> <tool-bar> <next> <tool-bar> <next>
<tool-bar> <next> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> p a i r s <return> <help-echo> <down-mouse-1>
<mouse-1> <help-echo> <help-echo> <help-echo> <tool-bar>
<up> <help-echo> <help-echo> <wheel-up> <double-wheel-up>
<help-echo> <down-mouse-1> <mouse-movement> <mouse-1>
<wheel-up> <double-wheel-up> <triple-wheel-up> <triple-wheel-up>
<triple-wheel-up> <help-echo> <down-mouse-1> <mouse-movement>
<mouse-1> <wheel-up> <double-wheel-up> <triple-wheel-up>
<wheel-up> <double-wheel-up> <triple-wheel-up> <wheel-up>
<double-wheel-up> <wheel-down> <double-wheel-down>
<wheel-up> <double-wheel-up> <wheel-down> <double-wheel-down>
<wheel-up> <double-wheel-up> <wheel-up> <wheel-down>
<double-wheel-down> <triple-wheel-down> <triple-wheel-down>
<wheel-up> <double-wheel-up> <triple-wheel-up> <wheel-up>
<down-mouse-1> <mouse-1> <left> t SPC a n d SPC <help-echo>
A-s <help-echo> <help-echo> <help-echo> <tool-bar>
<stop> <help-echo> <switch-frame> <switch-frame> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Command: step [4 times]
Command: next [10 times]
Command: continue
Command: next
Command: down
Command: step
Command: next [4 times]
Command: up
Wrote /Users/dr/PhD/dual-path/tag-besyn-messages.py
Loading emacsbug...done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]