Using autofs on a clean install of CentOS 6.3.<br />
<br />
I modified /etc/auto.master to have the "/net -hosts" entry enabled and all others commented out, restarted autofs, and attempted to list an automounted directory with a command of this form:<br />
<br />
ls /net/<fully.qualified.domain.name>/exported/dir<br />
<br />
The command hung, apparently indefinitely. I could not interrupt it, and eventually I had to send it a SIGKILL to revive the shell.<br />
<br />
Enabling debug logging for autofs and stracing the 'ls' command showed 'ls' hanging trying to stat() the directory I requested, while meanwhile the automount process had segfaulted:<br />
<br />
Aug 13 12:54:01 d130149 kernel: automount[2842]: segfault at 28 ip 00007fc3446a3862 sp 00007fc346c98960 error 4 in lookup_hosts.so[7fc34469a000+1c000]<br />
<br />
Manually mounting the exported directory worked flawlessly, however.<br />
<br />
The issue remains when all released updates for 6.3 (as of today) are applied. It is resolved by downgrading to autofs-5.0.5-39.el6.x86_64 from CentOS 6.2.<br />
<br />
I did not test with other varieties of maps.
↧