foregrounding a sudo'd vim will sometimes break terminal state

Bug #1322843 reported by Walter
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
sudo
Unknown
Unknown
sudo (Ubuntu)
Fix Released
Undecided
Unassigned

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.

Tags: patch
Revision history for this message
Walter (wdoekes) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "SUDO-649_minimal_fix.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Walter (wdoekes) wrote :
Revision history for this message
Walter (wdoekes) wrote :

That last patch is the sudo author's fix for the issue. Bug is still open.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sudo (Ubuntu):
status: New → Confirmed
Revision history for this message
Benjamin Drung (bdrung) wrote :

The upstream patch got applied as commit b121da2e21cabd2793fc423d84ceddd919fd6e47 and was released in sudo 1.8.11. Therefore this bug is fixed since Ubuntu 16.04 (xenial).

Changed in sudo (Ubuntu):
status: Confirmed → Fix Released
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.