Bug 381

Summary: sudo builds, but hangs computer under Mac OS X 10.6.2
Product: Sudo Reporter: Marius Schamschula <mschamschula>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: low    
Version: 1.7.2   
Hardware: Macintosh   
OS: MacOS X   

Description Marius Schamschula 2009-12-07 20:46:29 MST
I have built both sudo 1.7.2p1 and 1.7.2p2 under Mac OS X 10.6.2. Both install, but when I execute sudo the computer becomes completely unresponsive. I can only regain control by rebooting.

Note: There is no such problem under Mac OS X 10.4.11 and 10.5.8.
Comment 1 Todd C. Miller 2009-12-09 10:26:10 MST
That's very strange, I see that apple is shipping sudo 1.7.0 with snow leopard.  Unfortunately I don't have access to a 10.6 machine at the moment.

Can you try running configure with the --without-bsm_audit option and see if that makes any difference?
Comment 2 Marius Schamschula 2009-12-09 19:13:26 MST
Todd,

I just rebuilt with the --without-bsm_audit options.

I'm also using the following options (as I use in builds for older versions of Mac OS X):

--with-password-timeout=0 --with-env-editor --with-tty-tickets --with-ignore-dot --disable-log-wrap --with-pam --without-lecture
Comment 3 Todd C. Miller 2010-05-07 12:58:26 MDT
I've tested sudo 1.7.2p6 on Mac OS X 10.6.3 without problems.  I can only test a 32-bit binary, however.
Comment 4 Todd C. Miller 2010-06-08 11:18:10 MDT
Sudo 1.7.2p7 works fine for me on Mac OS 10.6.3 with both 32bit and 64bit kernels.
Comment 5 Marius Schamschula 2010-06-08 16:34:27 MDT
I'm not sure what the problem is. However, here are the symptoms:

1) When I run sudo from the bash CLI it works
2) When sudo is called from a shell script, the terminal session hangs. E.g. 
sudo make install

The same exact script works under Mac OS X 10.5.x, but hangs under 10.6.x.