Running sudo in gnome-terminal sporadically results in spurious linefeeds after sudo

Bug #232547 reported by Sean Sosik-Hamor
4
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://us.archive.ubuntu.com hardy/main dpatch 2.0.28 [87.1kB]
Get:2 http://us.archive.ubuntu.com hardy/main gnome-pkg-tools 0.13 [22.1kB]
Get:3 http://us.archive.ubuntu.com hardy/main quilt 0.46-4 [300kB]
Fetched 409kB in 5s (76.2kB/s)
[... normal output after this line ...]

========

Revision history for this message
Sean Sosik-Hamor (sciri) wrote :

Sorry, the whitespace got munged in the above paste; here is the attachment with the actual output.

Revision history for this message
Lars Ljung (larslj) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #203573, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Revision history for this message
Lars Ljung (larslj) wrote :

Sorry, it should be bug #218516

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.