Bugzilla – Bug 851
Segmentation fault on the system which have no ppoll()
Last modified: 2018-09-12 17:42:41 MDT
Created attachment 515 [details] Patch for lib/util/event_poll.c Running 'sudo -s' on the system which does not have ppoll() fails with segmentation fault. % sudo -s zsh: segmentation fault sudo -s I guess sudo_ev_poll() has to set the timeout value to -1 on such system when timo is NULL.
Thanks, that patch looks correct. I fixed a similar problem with the select backend but forgot to handle it in poll.
I've released sudo 1.8.25p1 with this fix.
*** Bug 852 has been marked as a duplicate of this bug. ***
If for some reason you cannot update to 1.8.25p1, a workaround is to use the --disable-poll configure option.
Works again. The 1.8.25 using --disable-poll option also works fine. Thanks!