Bugzilla – Bug 927
sudo 1.9.0 on AIX: Terminal input/output very sluggish when "log_output" is enabled
Last modified: 2020-06-19 06:00:35 MDT
After updating to sudo 1.9.0 today, I found that the terminal input and output within a new session is very sluggish. The characters I type appear with a noticable delay on the screen and sometimes a command's output does not show up after the first press of the <Return> key, only after 2-3 more keypress events or even when entering the next command. This seems to be related to I/O logging, since the issue is gone when I comment or remove the Defaults log_output line in /etc/sudoers. I've tried the RPM package for AIX 7.1 and above from https://www.sudo.ws/download.html#binary as well as building sudo from source myself - same behaviour. Also ran it on different systems, one with AIX 7100-05-05, the other with AIX 7200-04-01. The problem occurs on both.
What version of sudo were you running previously?
Sorry, should have noted that. I've updated from 1.8.31p1 which was working fine. The configuration files have been unchanged.
sudo 1.9.0 will use the cfmakeraw() function to set the pty to raw mode if it is available. This function exists on AIX but is not documented and it doesn't seem to work the same was as it does on other systems. If you pass ac_cv_func_cfmakeraw=no to the configure script it will avoid using it and the behavior will be the same as with sudo 1.8.31p1.
Ok, thank you! I'll give it a try and let you know.
That fixed it. Thanks a lot for the quick help, Todd!
I've also rebuilt my AIX packages with that fix.
Yep, they work for me, too. Thank you!
In case you are interested, the problem is that cfmakeraw() on AIX doesn't set VMIN to 1 or VTIME to 0 in c_cc in struct termios. It also doesn't clear the CSIZE and PARENB flags from c_cflag but that's not as much of a problem.
Yeah, unfortunately some of the functions in AIX don't seem to have the exact same behavior as their Linux counterparts of same name. Glad you knew right where to look and provided a fix so quickly. Thanks again and feel free to close this bug report.
Fixed in sudo 1.9.1