[Bug 593603] Re: automount segfault if get_query_dn fails

Rob Shinn rob.shinn at gmail.com
Mon Jan 24 14:19:47 UTC 2011


** Description changed:

  Binary package hint: autofs5
  
  # lsb_release -rd
  Description:	Ubuntu 10.04 LTS
  Release:	10.04
  
  # apt-cache policy autofs5
  autofs5:
-   Installed: 5.0.4-3.1ubuntu5
-   Candidate: 5.0.4-3.1ubuntu5
-   Version table:
-  *** 5.0.4-3.1ubuntu5 0
-         500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages
-         100 /var/lib/dpkg/status
+   Installed: 5.0.4-3.1ubuntu5
+   Candidate: 5.0.4-3.1ubuntu5
+   Version table:
+  *** 5.0.4-3.1ubuntu5 0
+         500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages
+         100 /var/lib/dpkg/status
  
  Possibly related to
  https://bugs.launchpad.net/ubuntu/+source/autofs5/+bug/512595.
  
  After upgrading 9.04 -> 10.04, my automounts from LDAP no longer appear.
  Instead, I get the following in dmesg at the rate of one per second:
  
  [   62.189700] automount[5011]: segfault at 0 ip 00007f956cb1c022 sp 00007fff3cd1a978 error 4 in libc-2.11.1.so[7f956ca99000+178000]
  [   63.301490] automount[5023]: segfault at 0 ip 00007f2de5007022 sp 00007fff33695618 error 4 in libc-2.11.1.so[7f2de4f84000+178000]
  [   64.328963] automount[5038]: segfault at 0 ip 00007fdc5f4b4022 sp 00007fffb09a47a8 error 4 in libc-2.11.1.so[7fdc5f431000+178000]
  ...
  
  I guess something is trying to repeatedly respawn automount. Here's a
  couple of pointers for anyone trying to debug (sensitive info turned to
  *****):
  
  # automount -dvf
  Starting automounter version 5.0.4, master map /etc/auto.master
  using kernel protocol version 5.01
  lookup_nss_read_master: reading master file /etc/auto.master
  parse_init: parse(sun): init gathered global options: (null)
  lookup_read_master: lookup(file): read entry +auto.master
  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)
  find_server: trying server uri ldap://*****
  do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
  do_bind: lookup(ldap): ldap anonymous bind returned 0
  get_query_dn: lookup(ldap): check search base list
  get_query_dn: lookup(ldap): query failed for search dn ou=aufo.master,ou=autofs,dc=*****,dc=*****,dc=com: No such object
  Segmentation fault (core dumped)
  
  # strace automount -f 2>&1 | tail -n20
  poll([{fd=7, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, -1) = 1 ([{fd=7, revents=POLLIN}])
  read(7, "0\f\2\1\1a\7\n", 8)            = 8
  read(7, "\1\0\4\0\4\0", 6)              = 6
  open("/etc/default/autofs", O_RDONLY)   = 8
  fcntl(8, F_SETFD, FD_CLOEXEC)           = 0
  fstat(8, {st_mode=S_IFREG|0644, st_size=3708, ...}) = 0
  mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb316bc6000
  read(8, "#\n# Define default options for a"..., 4096) = 3708
  read(8, "", 4096)                       = 0
  close(8)                                = 0
  munmap(0x7fb316bc6000, 4096)            = 0
  write(7, "0\201\203\2\1\2c~\0045ou=aufo.master,ou=auto"..., 134) = 134
  poll([{fd=7, events=POLLIN|POLLPRI|POLLERR|POLLHUP}], 1, -1) = 1 ([{fd=7, revents=POLLIN}])
  read(7, "02\2\1\2e-\n", 8)              = 8
  read(7, "\1 \4&ou=autofs,dc=*****,dc=ac"..., 44) = 44
  write(2, "get_query_dn: lookup(ldap): quer"..., 124get_query_dn: lookup(ldap): query failed for search dn ou=aufo.master,ou=autofs,dc=*****,dc=*****,dc=com: No such object) = 124
  write(2, "\n", 1
  )                       = 1
  --- SIGSEGV (Segmentation fault) @ 0 (0) ---
  +++ killed by SIGSEGV (core dumped) +++

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to autofs5 in ubuntu.
https://bugs.launchpad.net/bugs/593603

Title:
  automount segfault if get_query_dn fails



More information about the Ubuntu-server-bugs mailing list