Not that easy that is :)

First of all you cannot run sudo strace as the bug will not happen once
you are authorized with the first sudo command. Only the first sudo
command has a significant lag + 100% cpu usage.

So I had to temporarily set strace to be suid root:

sudo chmod u+s /usr/bin/strace
strace -vft -o /tmp/trace.sudo sudo true
sudo chmod u-s /usr/bin/strace

Also I have created dummy user, so that you can see the dummy pass
password in there. I think that it is a bit faster with a new user that
I experience with my old account from previous releases. But either way
it's there. The problem is somehow connected to the input of characters
I suppose. Have a look:

9840  23:39:53 ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, {c_iflags=0x6d02, 
c_oflags=0x5, c_cflags=0x4bf, c_lflags=0x8a33, c_line=0, 
c_cc="\x03\x1c\x7f\x15\x04\x00\x01\xff\x11\x13\x1a\xff\x12\x0f\x17\x16\xff\x00\x00"})
 = 0
9840  23:39:53 write(4, "[sudo] password for user: "..., 26) = 26
9840  23:39:53 read(4, "p"..., 1)       = 1
9840  23:39:56 read(4, "a"..., 1)       = 1
9840  23:39:56 read(4, "s"..., 1)       = 1
9840  23:39:56 read(4, "s"..., 1)       = 1
9840  23:39:56 read(4, "\n"..., 1)      = 1
9840  23:39:56 alarm(0)                 = 0
9840  23:39:56 write(4, "\n"..., 1)     = 1

There is a 3 second pause between first and second read... Not sure what
that means... When I used a different user the pause was about 5 secs.

** Attachment added: "trace.sudo"
   http://launchpadlibrarian.net/34285410/trace.sudo

-- 
very slow reaction after enter password
https://bugs.launchpad.net/bugs/335584
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to