openldap won't install, aborts w/ double free each run

Bug #1433666 reported by Harry Coin
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openldap (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Using
root@email2:/tmp# dpkg -l | grep ldap
ii ldap-utils 2.4.31-1+nmu2ubuntu8 amd64 OpenLDAP utilities
ii libldap-2.4-2:amd64 2.4.31-1+nmu2ubuntu8 amd64 OpenLDAP libraries
ii libldap-2.4-2-dbg:amd64 2.4.31-1+nmu2ubuntu8 amd64 Debugging information for OpenLDAP libraries
ii libldap2-dev:amd64 2.4.31-1+nmu2ubuntu8 amd64 OpenLDAP development libraries
ii php5-ldap 5.5.9+dfsg-1ubuntu4.6 amd64 LDAP module for php5
root@email2:/tmp# dpkg -l | grep slapd
iF slapd 2.4.31-1+nmu2ubuntu8 amd64 OpenLDAP server (slapd)
iU slapd-dbg 2.4.31-1+nmu2ubuntu8 amd64 Debugging information for the OpenLDAP server (slapd)
root@email2:/tmp#

apt-get install fails when it first tries to run slapd. The installation aborts, incomplete. Using the debugger, here are the results:

gdb /usr/sbin/openldap
-h ldap://localhost:389/ -g openldap -u openldap -F /etc/ldap/slapd.d -d Any
...
55099a62 2.5.13.0 (objectIdentifierMatch): 55099a62 matchingRuleUse: ( 2.5.13.0 NAME 'objectIdentifierMatch' APPLIES ( supportedControl $ supportedExtension $ supportedFeatures $ supportedApplicationContext ) )
TLS: could not set cipher list HIGH+TLSv1.
*** Error in `/usr/sbin/slapd': double free or corruption (top): 0x00007f416ea278a0 ***

Program received signal SIGABRT, Aborted.
0x00007f416af92cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007f416af92cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f416af960d8 in __GI_abort () at abort.c:89
#2 0x00007f416afcf394 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7f416b0ddb28 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007f416afdb66e in malloc_printerr (ptr=<optimized out>, str=0x7f416b0ddc38 "double free or corruption (top)", action=1) at malloc.c:4996
#4 _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5 0x00007f416c41ee11 in tlsg_ctx_free (ctx=0x7f416ea275a0) at tls_g.c:275
#6 0x00007f416c41c058 in ldap_int_tls_init_ctx (lo=0x7f416e957428, is_server=<optimized out>) at tls2.c:245
#7 0x00007f416c87a5ae in main (argc=<optimized out>, argv=0x7fff91898888) at ../../../../servers/slapd/main.c:864
(gdb)

This verion was installed over a previous openldap built against openssl. Gnutls//openlda should not crash the install because it doesn't like the formatting of an option string. Trusty lts

Revision history for this message
Ryan Tandy (rtandy) wrote :

Hi, thanks for the report. This is already a known bug and fixed upstream in newer versions, so marking as a duplicate.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openldap (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.