[Bug 1322843] [NEW] foregrounding a sudo'd vim will sometimes break terminal state

wdoekes 1322843 at bugs.launchpad.net
Sat May 24 12:59:27 UTC 2014


Public bug reported:

See this bug:
http://www.sudo.ws/bugs/show_bug.cgi?id=649

Started on Ubuntu/Trusty since it has a sudo after 1.8.7, (precise has
1.8.3).

Steps to reproduce:

- take a local machine with a recent sudo (after 1.8.7)
- sudo vi
- ^Z (control-Z)
- fg
- repeat ^Z and fg until the fg fails and the screen is partially cleared
- now a second fg wil open vim with a broken terminal state:
  arrow keys will render the escape sequences and other nastiness

Fix is provided upstream, but author is currently figuring out why it
breaks.

Cheers,
Walter Doekes
OSSO B.V.

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "SUDO-649_minimal_fix.patch"
   https://bugs.launchpad.net/bugs/1322843/+attachment/4118864/+files/SUDO-649_minimal_fix.patch

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1322843

Title:
  foregrounding a sudo'd vim will sometimes break terminal state

Status in “sudo” package in Ubuntu:
  New

Bug description:
  See this bug:
  http://www.sudo.ws/bugs/show_bug.cgi?id=649

  Started on Ubuntu/Trusty since it has a sudo after 1.8.7, (precise has
  1.8.3).

  Steps to reproduce:

  - take a local machine with a recent sudo (after 1.8.7)
  - sudo vi
  - ^Z (control-Z)
  - fg
  - repeat ^Z and fg until the fg fails and the screen is partially cleared
  - now a second fg wil open vim with a broken terminal state:
    arrow keys will render the escape sequences and other nastiness

  Fix is provided upstream, but author is currently figuring out why it
  breaks.

  Cheers,
  Walter Doekes
  OSSO B.V.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1322843/+subscriptions



More information about the foundations-bugs mailing list