Closing Windows console causes SIGBREAK in shell

Bug #484281 reported by Gordon Tyler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BzrTools
New
Undecided
Unassigned

Bug Description

When using 'bzr shell' in a Windows console (CMD), closing the console window using the close button in the top right causes the following SIGBREAK error to be reported:

bzr> ** SIGBREAK received, entering debugger
** Type 'c' to continue or 'q' to stop the process
** Or SIGBREAK again to quit (and possibly dump core)
> h:\bzrlib\breakin.pyo(41)_debug()
Readline internal error
Traceback (most recent call last):
  File "pyreadline\console\console.pyo", line 671, in hook_wrapper_23
  File "pyreadline\rlmain.pyo", line 342, in readline
  File "pyreadline\modes\emacs.pyo", line 133, in readline
  File "pyreadline\modes\emacs.pyo", line 52, in _readline_from_keyboard
  File "pyreadline\console\console.pyo", line 496, in getkeypress
  File "pyreadline\console\console.pyo", line 487, in get
  File "bzrlib\breakin.pyo", line 41, in _debug
  File "bzrlib\breakin.pyo", line 41, in _debug
  File "bdb.pyo", line 48, in trace_dispatch
  File "bdb.pyo", line 66, in dispatch_line
  File "pdb.pyo", line 144, in user_line
  File "pdb.pyo", line 187, in interaction
  File "cmd.pyo", line 130, in cmdloop
RuntimeError: can't re-enter readline

Revision history for this message
Gordon Tyler (doxxx) wrote :

The following prevents the problem from occurring:

set BZR_SIGQUIT_PDB=0

So perhaps this would be better solved in the Bazaar Windows installer, by modifying the bzr.exe launcher to set this environment variable unless it's already set?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.