FS#79088 - [sudo] 1.9.14.p1-1 regression in terminal output

Attached to Project: Arch Linux
Opened by Toolybird (Toolybird) - Thursday, 13 July 2023, 08:36 GMT
Last edited by Toolybird (Toolybird) - Friday, 14 July 2023, 21:43 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

This latest version seems to have a weird bug with terminal output in some specific circumstances. But it only happens on some terminal types.

I can reproduce it with xterm, xfce4-terminal and the standard linux console. I cannot repro with rxvt-unicode.

Steps to reproduce:

Not sure if shell matters...but this is with bash: e.g:

$ sudo pacman -S any-pkg |& tee any-pkg.log

I see a crazy staircase effect. Revert back to sudo-1.9.13.p3-1 then all is back to normal.

Haven't reported upstream (yet). I'm curious if anyone else can repro.
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 14 July 2023, 21:43 GMT
Reason for closing:  Upstream
Additional comments about closing:  See comments
Comment by Jeff Bigler (saturn_knight) - Thursday, 13 July 2023, 11:33 GMT
I am experiencing the same issue. I use pikaur as my pacman wrapper and it is basically unusable after upgrading to this version of sudo.
Comment by Toolybird (Toolybird) - Thursday, 13 July 2023, 21:02 GMT
The old behavior can be restored by uncommenting "Defaults !use_pty" in /etc/sudoers. More info in the release notes [1] and also here [2]. Still not sure if this is a bug or not..

[1] https://www.sudo.ws/releases/stable/#1.9.14
[2] https://github.com/sudo-project/sudo/issues/258
Comment by François Freitag (freitafr) - Friday, 14 July 2023, 15:13 GMT
Pikaur: https://github.com/actionless/pikaur/issues/729.

No issues with pacman here, using kitty with ZSH.
Comment by Toolybird (Toolybird) - Friday, 14 July 2023, 21:42 GMT
T'was an upstream sudo bug...now fixed [1]. The next upstream release should contain the fixes.

[1] https://github.com/sudo-project/sudo/issues/258#issuecomment-1636403330