|Anonymous | Login | Signup for a new account||2013-05-24 22:09 UTC|
|Main | My View | View Issues | Roadmap|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005894||CentOS-6||autofs||public||2012-08-13 18:57||2013-01-11 20:31|
|Target Version||Fixed in Version|
|Summary||0005894: automount segfaults / user command hangs|
|Description||Using autofs on a clean install of CentOS 6.3.|
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:
The command hung, apparently indefinitely. I could not interrupt it, and eventually I had to send it a SIGKILL to revive the shell.
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:
Aug 13 12:54:01 d130149 kernel: automount: segfault at 28 ip 00007fc3446a3862 sp 00007fc346c98960 error 4 in lookup_hosts.so[7fc34469a000+1c000]
Manually mounting the exported directory worked flawlessly, however.
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.
I did not test with other varieties of maps.
|Steps To Reproduce||1. Ensure that the "/net -hosts" entry is enabled in /etc/auto.master|
2. Ensure the autofs service is installed and running (restart if auto.master was changed)
3. Attempt to 'ls' the contents of an accessible exported directory via a /net-based automount
|Additional Information||Only CentOS 6.3 packages were installed on the test system, except, ultimately, the CentOS 5.8 autofs package with which I worked around the problem. No third-party packages and no unpackaged software were installed. All configuration was per package defaults, except as described above and as performed by firstboot.|
It is also possible to trigger the bug in other ways. In particular, I first discovered the issue because attempting to list a local directory containing a symlink to an automounted directory triggered it.
|Tags||No tags attached.|
|Lest there be any confusion: the CentOS 5.8 autofs package mentioned in my additional information *also* resolved the issue. I tried it first because it was closer to hand. I later tried the CentOS 6.2 package, and stuck with that when it worked.|
|I'm seeing a similar problem here, under CentOS 6.3 / 32-bit. Every day or so, on random hosts out of a group of 80 identically-configured machines, automount will crash with a segmentation violation. I'm just now updating to Fedora's autofs version 5.0.6, which claims to "Fix SEGV in libtirpc when using autofs internal hosts map". I'll post another note if things improve over the next day or so.|
|Just an update: after a couple of days running with the Fedora autofs version 5.0.6, I'm no longer seeing the segfaults from automount. It looks like 5.0.6 fixes the problem.|
Looks like reported upstream:
I have the same problem under Scientific Linux 6.3 / 64 bits and Centos 6.3 / 64 bits for 250 machines. Automount crash with "kernel: automount..: segfault at 28 ip 00007fc38c1e0862 sp 00007fc38fa36960 error 4 in lookup_hosts.so" message.
catselbow, can you help me and explain how i can install fedora's autofs version 5.0.6 ?
|For lerouxje, above: Take a look at http://rpm.pbone.net, [^] and search for autofs. I downloaded the autofs 5.0.6 package for Fedora 16, and just installed it with "rpm -i -U".|
Yesterday, I build a autofs rpm for centos/sl 6.3 from http://dl.fedoraproject.org/pub/fedora/linux/updates/16/SRPMS/autofs-5.0.6-8.fc16.src.rpm [^] with rpmbuild ( explained in http://wiki.centos.org/HowTos/RebuildSRPM [^] ) and deploy this new version by a local repo maintained by mrepo. Now, we are no more segfault with autofs.
I believe the bug in this report was fixed in autofs-5.0.5-55.el6_3 :
|2012-08-13 18:57||jcbollinger||New Issue|
|2012-08-13 19:02||jcbollinger||Note Added: 0015638|
|2012-08-20 18:42||catselbow||Note Added: 0015691|
|2012-08-23 13:03||catselbow||Note Added: 0015698|
|2012-08-23 20:19||toracat||Note Added: 0015699|
|2012-10-01 17:39||lerouxje||Note Added: 0015865|
|2012-10-03 15:26||catselbow||Note Added: 0015874|
|2012-10-03 16:47||lerouxje||Note Added: 0015875|
|2013-01-11 20:31||toracat||Note Added: 0016269|
|Copyright © 2000 - 2011 MantisBT Group|