Bugzilla – Bug 468971
autofs segfaults when using LDAP mount maps
Last modified: 2010-05-24 14:38:33 UTC
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5 We have automount maps served by LDAP. They have worked fine with all previous opensuse versions including 11.0. Now opensuse 11.1 automount process segfaults. Reproducible: Always Steps to Reproduce: 1. Configure automount maps (sorry, I can't describe this, it's too complicated.) 2. Start autofs with 'rcautofs start' 3. cd to an automounted directory Actual Results: Jan 23 17:45:15 tywi kernel: automount[3917]: segfault at 7f76873f62e0 ip 00007f76873f62e0 sp 00007f76839ef0f8 error 14<6>automount[3916]: segfault at 7f76873f62e0 ip 00007f76873f62e0 sp 00007f7683af00f8 error 14 in libc-2.9.so[7f7687f39000+14f000] in libc-2.9.so[7f7687f39000 +14f000] Jan 23 17:45:15 tywi kernel: Jan 23 17:45:15 tywi kernel: automount[3914]: segfault at 7f76873f62e0 ip 00007f76873f62e0 sp 00007f768656c0f8 error 14 in libc-2.9.so[7f7 687f39000+14f000] Expected Results: I expected it to work!
So, it crashes in glibc. Petr, any ideas?
This can be bug in glibc or some memory corruption, impossible to say. Ian, can you please try to gather a coredump?
Which version are you running? Have you installed the latest autofs update? I am asking because this update fixes a segfault problem (Bug 458336).
The RPM is autofs-5.0.3-82.28.1 I have a core dump but it's over 10MB in size. You can get it from http://www.cl.cam.ac.uk/~ig206/automount.core This is an x86_64 machine and the associated log message with this core dump was Jan 29 15:34:24 vignemale kernel: automount[4182]: segfault at 7fd5962f62e0 ip 00007fd5962f62e0 sp 00007fd592af10f8 error 14 in libc-2.9.so[7fd596e39000+14f000]
Note that the NEEDINFO is satisfied by my previous comment
I have an updated autofs package in my buildservice test project. Can you please check if the problem still exists there? You can find the package here: http://download.opensuse.org/repositories/home://makoenig://test/openSUSE_11.1/
This RPM works. It also resolves the issues I reported in another bug about the syntax error in the mount maps.
*** Bug 551722 has been marked as a duplicate of this bug. ***
OpenSUSE-11.2 has autofs-5.0.4-6.1, which should have this bug fixed.
The bug still exists in OpenSuse 11.2, the error message is automount[17820]: segfault at 7f532df3e7c8 ip 00007f532edcb93d sp 00007fff0142de40 error 4 in libcom_err.so.2.1[7f532edca000+3000]
Sven, what's the autofs package version?
Leonardo, the autofs version is 5.0.4-6.1 If that helps: it appears autofs reads from a closed socket (I guess, talking to DNS), here are a few lines from strace automount -f -v connect(5, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.8.2")}, 28) = 0 a lot of lines later [pid 10170] shutdown(5, 2 /* send and receive */) = 0 [pid 10170] close(5) = 0 [pid 10170] read(4294967295, 0x7f3f1e249940, 5) = -1 EBADF (Bad file descriptor) [pid 10170] shutdown(4294967295, 2 /* send and receive */) = -1 EBADF (Bad file descriptor) [pid 10170] close(4294967295) = -1 EBADF (Bad file descriptor) and then a few lines later [pid 10170] munmap(0x7f3f1b0fc000, 2118136) = 0 [pid 10170] --- SIGSEGV (Segmentation fault) @ 0 (0) --- Sven
Sven, thanks for the quick reply. We released a maintenance update for AutoFS on 11.2 to fix bug #556479. This could be the same problem as the one you're seeing here. The packages are available in the Updates repository: http://download.opensuse.org/update/11.2/rpm/x86_64/autofs-5.0.4-6.2.1.x86_64.rpm http://download.opensuse.org/update/11.2/rpm/i586/autofs-5.0.4-6.2.1.i586.rpm Can you please test and report if the problem is still reproducible? If yes, we need a core dump to be able to investigate further. To generate the core you'll probably need to set HARDCORELIMIT and SOFTCORELIMIT to "unlimited" in /etc/sysconfig/ulimit, restart the machine and reproduce the problem. Thanks!
The problem still exists. Where should I send the core?
You can attach the compressed core here in the bug (see "Add an attachment" below).
Created attachment 363819 [details] Core dumped by automount
Thanks for attaching the core dump, it confirms that this is not the same problem. The problem you're seeing was also reported in: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=527545 At least on Debian it was caused by a Kerberos update. We should open a new bug report to handle this but, before we do that, can you please apply all the updates released for 11.2 so far? Perhaps the problem is already resolved. Thanks.
Leonardo, I made sure I have updated everything on the workstation, as well as the server for LDAP/KERBEROS (running Debian Lenny). The issue persists.
Sven, thanks again. As this is a different problem, can you please open a new bug report against 11.2?
Done: https://bugzilla.novell.com/show_bug.cgi?id=608295
Thanks! Back to RESOLVED/FIXED.