I also reported this bug upstream: http://www.gratisoft.us/bugzilla/show_bug.cgi?id=300 When the /etc/sudoers file contains a glob entry with a large number of matches, running the 'sudo' executable causes a segmentation fault. Reproducible: Always Steps to Reproduce: 1. Add to sudoers file: ALL ALL=(root) NOPASSWD: /usr/portage/*/*/ 2. Run sudo as any user (Noone would likely add /usr/portage/*/* to their sudoers file but this is a recreate case, not my original failure). Actual Results: $ sudo Segmentation fault Expected Results: $ sudo usage: sudo -h | -K | -k | -L | -l | -V | -v usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value] {-i | -s | <command>} usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
Created attachment 165177 [details, diff] Patch for issue. This patch fixes the segfault in sudo.
Thanks for the report, and especially for tracking down the problem! Assigning to maintainer, who is currently "away" due to RL constraints but hopefully someone is helping him out.
Hm I really missed this one out. I think I'll send an email upstream to see if they can release a new stable release with this fixed since they fixed it in a different version and would rather not diverge from their sources. Closing UPSTREAM for now, I'll also consider unmasking 1.7.0_rc5 (which has this fixed already), but I wanted to fix the askpass problem first.
I mailed upstream, he's going to release _p18 by end of this week, so I'll just wait for him (the fix for this is in there). Thanks for reporting anyway :)