Le 14/01/2014 19:24, Florent Peterschmitt a écrit :
> Hi,
>
> I think there is something like an infinite loop in the latest sudo in
> Debian sid.
>
> Issuing a sudo -s make sudo consuming 100% CPU.
>
> An strace gives:
>
> recvfrom(3, "", 8, MSG_WAITALL, NULL, NULL) = 0
> poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}], 2, 4294967295) = 1
> ([{fd=3, revents=POLLIN|POLLHUP}])
> recvfrom(3, "", 8, MSG_WAITALL, NULL, NULL) = 0
> poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}], 2, 4294967295) = 1
> ([{fd=3, revents=POLLIN|POLLHUP}])
> recvfrom(3, "", 8, MSG_WAITALL, NULL, NULL) = 0
> poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}], 2, 4294967295) = 1
> ([{fd=3, revents=POLLIN|POLLHUP}])
> recvfrom(3, "", 8, MSG_WAITALL, NULL, NULL) = 0
> poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}], 2, 4294967295) = 1
> ([{fd=3, revents=POLLIN|POLLHUP}])
> recvfrom(3, "", 8, MSG_WAITALL, NULL, NULL) = 0
> poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}], 2, 4294967295) = 1
> ([{fd=3, revents=POLLIN|POLLHUP}])
Here is the bug:
http://www.sudo.ws/bugs/show_bug.cgi?id=631
And workaround:
In /etc/sudoers, add:
Defaults use_pty
--
Florent Peterschmitt | Please:
florent@peterschmitt.fr | * Avoid HTML/RTF in E-mail.
http://florent.peterschmitt.fr | * Send PDF for documents.
Proudly powered by Open Source | * Trim your quotations. Really.
| Thank you :)
Attachment:
signature.asc
Description: OpenPGP digital signature