Running sudo in gnome-terminal sporadically results in spurious linefeeds after sudo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gnome-terminal
This may be a bug in sudo itself; reporting against gnome-terminal first. I have run across an intermittent bug while executing sudo in gnome-terminal where spurious linefeeds are fed into the program being run under sudo. For example, sometimes running "sudo id" results in the output of id and then a dozenish prompts after id. This is particularly evil when running "sudo apt-get install" and it automatically selects Y for me.
Intermittently occurs, no solid repro available, but I have seen it on my HP Pavilion dv6700t (Hardy), Tadpole (Hardy), our office administrator's System76 Seval Performance (Hardy), and Neil Patel's Ubuntu Mobile handheld.
It has also occurred on remote servers when logged in from my dv6700t using gnome-terminal.
Examples of output:
========
sciri@baka:~$ sudo id
uid=0(root) gid=0(root) groups=0(root)
sciri@baka:~$
sciri@baka:~$
sciri@baka:~$
sciri@baka:~$
sciri@baka:~$
sciri@baka:~$
sciri@baka:~$
sciri@baka:~$
========
sciri@baka:~$ sudo apt-get install devscripts build-essential wget cdbs fakeroot liburi-perl debhelper pbuilder dpatch quilt gnome-pkg-tools
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree
Reading state information... Done
devscripts is already the newest version.
build-essential is already the newest version.
wget is already the newest version.
cdbs is already the newest version.
fakeroot is already the newest version.
liburi-perl is already the newest version.
debhelper is already the newest version.
pbuilder is already the newest version.
The following packages were automatically installed and are no longer required:
libflashsupport
Use 'apt-get autoremove' to remove them.
Suggested packages:
curl procmail graphviz
Recommended packages:
svn-buildpackage
The following NEW packages will be installed:
dpatch gnome-pkg-tools quilt
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 409kB of archives.
After this operation, 1335kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Fetched 409kB in 5s (76.2kB/s)
[... normal output after this line ...]
========
Sorry, the whitespace got munged in the above paste; here is the attachment with the actual output.