Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 562846

Summary: autofs: segmentation fault when trying to start, found by PES
Product: Red Hat Enterprise Linux 5 Reporter: Petr Sklenar <psklenar>
Component: autofsAssignee: Jeff Moyer <jmoyer>
Status: CLOSED CURRENTRELEASE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: ikent
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: autofs-5.0.1-0.rc2.139.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-09 08:22:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Sklenar 2010-02-08 15:08:21 UTC
Description of problem:
after upgrade to rhel55 beta I cannot start autofs. I had users in ldap db and when this user log in , autofs connect its home.

It was working with autofs from rhel54 but not now with rhel55Beta.

Version-Release number of selected component (if applicable):
[root@pes-02 ~]# rpm -qa | grep ldap
openldap-servers-overlays-2.3.43-9.el5
openldap-debuginfo-2.3.43-9.el5
mozldap-6.0.5-1.el5
openldap-servers-2.3.43-9.el5
openldap-clients-2.3.43-9.el5
nss_ldap-253-25.el5
openldap-2.3.43-9.el5
compat-openldap-2.3.43_2.2.29-9.el5
openldap-servers-sql-2.3.43-9.el5
openldap-devel-2.3.43-9.el5
[root@pes-02 ~]# rpm -qa | grep autofs
autofs-5.0.1-0.rc2.138.el5
[root@pes-02 ~]# 


How reproducible:
always

Steps to Reproduce:
1.
[root@pes-02 ~]# service autofs start
Starting automount:                                        [FAILED]
  
Actual results:

Feb  8 16:02:22 pes-02 kernel: automount[10819]: segfault at 0000000000000010 rip 00002aaaab54fc57 rsp 00007fffcc30c610 error 4
Feb  8 16:03:14 pes-02 kernel: automount[13340]: segfault at 0000000000000010 rip 00002aaaab54fc57 rsp 00007ffff7694a50 error 4


Expected results:
autofs can start

Additional info:

Comment 1 Petr Sklenar 2010-02-08 15:09:05 UTC
[root@pes-02 ~]#  automount -fd
Starting automounter version 5.0.1-0.rc2.138.el5, master map auto.master
using kernel protocol version 5.01
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /net
lookup_read_master: lookup(file): read entry /home/shares
lookup_read_master: lookup(file): read entry +auto.master
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_nss_read_master: reading master ldap auto.master
parse_server_string: lookup(ldap): Attempting to parse LDAP information from string "auto.master".
parse_server_string: lookup(ldap): mapname auto.master
parse_ldap_config: lookup(ldap): ldap authentication configured with the following options:
parse_ldap_config: lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1, sasl_mech: (null)
parse_ldap_config: lookup(ldap): user: (null), secret: unspecified, client principal: (null) credential cache: (null)
parse_init: parse(sun): init gathered global options: (null)
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap anonymous bind returned 0
get_query_dn: lookup(ldap): query succeeded, no matches for (&(objectclass=nisMap)(nisMapName=auto.master))
get_query_dn: lookup(ldap): query succeeded, no matches for (&(objectclass=automountMap)(ou=auto.master))
get_query_dn: lookup(ldap): query succeeded, no matches for (&(objectclass=automountMap)(automountMapName=auto.master))
lookup(ldap): failed to find valid query dn
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap anonymous bind returned 0
Segmentation fault (core dumped)

Comment 4 Petr Sklenar 2010-02-09 08:22:53 UTC
[root@pes-02 ~]# rpm -Uvh /mnt/redhat/brewroot/packages/autofs/5.0.1/0.rc2.139.el5/x86_64/autofs-5.0.1-0.rc2.139.el5.x86_64.rpm 
Preparing...                ########################################### [100%]
   1:autofs                 ########################################### [100%]
[root@pes-02 ~]# service autofs start
Starting automount:                                        [  OK  ]


autofs-5.0.1-0.rc2.139.el5.x86_64.rpm start successfully.
it seems like a dupe of bug 562714 - closing this bug

*** This bug has been marked as a duplicate of bug 562714 ***

Comment 5 Ian Kent 2010-02-09 09:26:25 UTC
(In reply to comment #4)
> [root@pes-02 ~]# rpm -Uvh
> /mnt/redhat/brewroot/packages/autofs/5.0.1/0.rc2.139.el5/x86_64/autofs-5.0.1-0.rc2.139.el5.x86_64.rpm 
> Preparing...                ########################################### [100%]
>    1:autofs                 ########################################### [100%]
> [root@pes-02 ~]# service autofs start
> Starting automount:                                        [  OK  ]
> 
> 
> autofs-5.0.1-0.rc2.139.el5.x86_64.rpm start successfully.
> it seems like a dupe of bug 562714 - closing this bug

No, that's a different problem.

This was definitely an error on my part, introduced by another 5.5
correction, which was uncovered by our regression tests, as was the
LDAP listen problem.

Ian