Your message dated Sat, 12 Aug 2017 16:17:11 +0000
with message-id <>
and subject line Bug#860947: fixed in openldap 2.4.44+dfsg-5+deb9u1
has caused the Debian Bug report #860947,
regarding slapd: Slapd fails to stop sometimes
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact

Debian Bug Tracking System
Contact with problems
--- Begin Message ---
Package: slapd
Version: 2.4.40+dfsg-1+deb8u2
Severity: normal

Slapd on Jessie sometimes unable to shutdown gracefully. Ldapsearch
fails to connect, but process doesn't exit.

ps faux | grep slapd

root      1869  0.0  0.0   4336  1604 ?        S    22:43   0:00  \_
/bin/sh /usr/sbin/invoke-rc.d slapd restart
root      1887  0.0  0.0  24464  2472 ?        S    22:43   0:00      \_
systemctl restart slapd.service
openldap 18909  108 16.6 6365556 1021012 ?     Ssl  ápr17 6854:26
/usr/sbin/slapd -h ldaps:/// ldap:/// ldapi:/// -g openldap -u openldap
-F /etc/ldap/slapd.d
root      1888  0.0  0.0   4336  1652 ?        Ss   22:43   0:00 /bin/sh
/etc/init.d/slapd stop
root      1894  0.0  0.0   4236  1452 ?        S    22:43   0:00  \_
start-stop-daemon --stop --quiet --oknodo --retry TERM/10 --pidfile
/var/run/slapd/ --exec /usr/sbin/slapd

According to lsof, there is no listening socket, and from netstat
output, there is 3 established connection remaining to the other SLAPD
servers (normally there are more, as we have 3 servers, 4 DITs, two of
them are multimaster, 2 are master-slave. The problematic server is the

I created a core file from the stuck process.
GDB backtrace attached as separate files.

Galambos Daniel/Dancsa

-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages slapd depends on:
ii  adduser                     3.113+nmu3
ii  coreutils                   8.23-4
ii  debconf [debconf-2.0]       1.5.56
ii  libc6                       2.19-18+deb8u7
ii  libdb5.3                    5.3.28-9
ii  libgnutls-deb0-28           3.3.8-6+deb8u4
ii  libldap-2.4-2               2.4.40+dfsg-1+deb8u2
ii  libltdl7                    2.4.2-1.11+b1
ii  libodbc1                    2.3.1-3
ii  libperl5.20                 5.20.2-3+deb8u6
ii  libsasl2-2                  2.1.26.dfsg1-13+deb8u1
ii  libslp1                     1.2.1-10+deb8u1
ii  libwrap0                    7.6.q-25
ii  lsb-base                    4.1+Debian13+nmu1
ii  multiarch-support           2.19-18+deb8u7
ii  perl [libmime-base64-perl]  5.20.2-3+deb8u6
ii  psmisc                      22.21-2

Versions of packages slapd recommends:
ii  libsasl2-modules  2.1.26.dfsg1-13+deb8u1

Versions of packages slapd suggests:
ii  ldap-utils                       2.4.40+dfsg-1+deb8u2
ii  libsasl2-modules-gssapi-heimdal  2.1.26.dfsg1-13+deb8u1

ldap1:~/csattanas# gdb -c core.18909 /usr/sbin/slapd -ex 'thread apply all bt'
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/slapd...Reading symbols from 
[New LWP 18910]
[New LWP 18913]
[New LWP 18909]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
Core was generated by `/usr/sbin/slapd'.
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
185     ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such 
file or directory.

Thread 3 (Thread 0x7f3272f13700 (LWP 18909)):
#0  0x00007f3270b6c49b in pthread_join (threadid=139849321264896, 
thread_return=0x0) at pthread_join.c:92
#1  0x00007f3272c34cf9 in slapd_daemon () at 
#2  0x00007f3272c1b866 in main (argc=<optimized out>, argv=<optimized out>) at 

Thread 2 (Thread 0x7f312f7fe700 (LWP 18913)):
#0  0x00007f3271b28e46 in ?? () from /usr/lib/x86_64-linux-gnu/
#1  0x00007f3271b29006 in sasl_client_add_plugin () from 
#2  0x00007f3271b34e00 in ?? () from /usr/lib/x86_64-linux-gnu/
#3  0x00007f3271b297b1 in sasl_client_init () from 
#4  0x00007f327279fb3c in ldap_int_sasl_init () from 
#5  0x00007f327279fbfc in ldap_int_sasl_open () from 
#6  0x00007f32727a0384 in ldap_int_sasl_bind () from 
#7  0x00007f32727a37f6 in ldap_sasl_interactive_bind () from 
#8  0x00007f32727a39fd in ldap_sasl_interactive_bind_s () from 
#9  0x00007f3272c2ec64 in slap_client_connect (ldp=0x7f32740b03f8, 
sb=0x7f32740b01d0) at ../../../../servers/slapd/config.c:2064
#10 0x00007f3272c9f5ec in do_syncrep1 (si=0x7f32740b01a0, op=0x7f312f7fd7f0) at 
#11 do_syncrepl (ctx=<optimized out>, arg=0x7f32740b0810) at 
#12 0x00007f3272798c62 in ?? () from 
#13 0x00007f3270b6b064 in start_thread (arg=0x7f312f7fe700) at 
#14 0x00007f32708a062d in clone () at 

Thread 1 (Thread 0x7f31351db700 (LWP 18910)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
#1  0x00007f327279843b in ldap_pvt_thread_pool_destroy () from 
#2  0x00007f3272c33069 in slapd_daemon_task (ptr=<optimized out>) at 
#3  0x00007f3270b6b064 in start_thread (arg=0x7f31351db700) at 
#4  0x00007f32708a062d in clone () at 

--- End Message ---
--- Begin Message ---
Source: openldap
Source-Version: 2.4.44+dfsg-5+deb9u1

We believe that the bug you reported is fixed in the latest version of
openldap, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Ryan Tandy <> (supplier of updated openldap package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA512

Format: 1.8
Date: Thu, 10 Aug 2017 12:12:46 -0700
Source: openldap
Binary: slapd slapd-smbk5pwd ldap-utils libldap-2.4-2 libldap-common 
libldap-2.4-2-dbg libldap2-dev slapd-dbg
Architecture: source
Version: 2.4.44+dfsg-5+deb9u1
Distribution: stretch
Urgency: medium
Maintainer: Debian OpenLDAP Maintainers 
Changed-By: Ryan Tandy <>
 ldap-utils - OpenLDAP utilities
 libldap-2.4-2 - OpenLDAP libraries
 libldap-2.4-2-dbg - Debugging information for OpenLDAP libraries
 libldap-common - OpenLDAP common files for libraries
 libldap2-dev - OpenLDAP development libraries
 slapd      - OpenLDAP server (slapd)
 slapd-dbg  - Debugging information for the OpenLDAP server (slapd)
 slapd-smbk5pwd - Keeps Samba and Kerberos passwords in sync within slapd.
Closes: 820244 860774 860947 864719 868753
 openldap (2.4.44+dfsg-5+deb9u1) stretch; urgency=medium
   * Relax the dependency of libldap-2.4-2 on libldap-common to also permit
     later versions. (Closes: #860774)
   * Disable test060-mt-hot on ppc64el temporarily to avoid failing tests until
     the underlying kernel bug #866122 is fixed.
   * Fix upgrade failure when olcSuffix contains a backslash. (Closes: #864719)
   * Import upstream patch to avoid reading the value of the
     LDAP_OPT_X_TLS_REQUIRE_CERT option from previously freed memory.
     (ITS#8385) (Closes: #820244)
   * Import upstream patch to fix potential endless replication loop in a
     multi-master delta-syncrepl scenario with 3 or more nodes.
     (ITS#8432) (Closes: #868753)
   * Import upstream patches to fix memory corruption caused by calling
     sasl_client_init() multiple times and possibly concurrently.
     (ITS#8648) (Closes: #860947)
 9cfaa4a157f37fd1e77df1605e0d7c886aecc42b 3009 openldap_2.4.44+dfsg-5+deb9u1.dsc
 9b7a6f58266c688ea90c8c79f989673330edebe9 165640 
 49a6e5b8c90cd3743d29854e2c07a31cfc420075d3368832a7c4e16e47c6aaae 3009 
 06c3aa004b251b5acd036f26db245bfc5207811acf42d20dc02850eb60afb6bd 165640 
 d243ee69c455d1433e9fd35db5fc04f0 3009 net optional 
 5823b2c03024bb2fbad10cd9537239df 165640 net optional 



--- End Message ---

Reply via email to