Your message dated Fri, 28 Jul 2017 03:34:25 +0000
with message-id <[email protected]>
and subject line Bug#860947: fixed in openldap 2.4.45+dfsg-1
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 [email protected]
immediately.)


-- 
860947: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860947
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: slapd
Version: 2.4.40+dfsg-1+deb8u2
Severity: normal
X-Debbugs-CC: [email protected]

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/slapd.pid --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
master)

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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/slapd...Reading symbols from 
/usr/lib/debug/.build-id/fd/742a65238b6728bf6fc730573ef5ed321930d0.debug...done.
done.
[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/libthread_db.so.1".
Core was generated by `/usr/sbin/slapd'.
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
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 
../../../../servers/slapd/daemon.c:2929
#2  0x00007f3272c1b866 in main (argc=<optimized out>, argv=<optimized out>) at 
../../../../servers/slapd/main.c:1012

Thread 2 (Thread 0x7f312f7fe700 (LWP 18913)):
#0  0x00007f3271b28e46 in ?? () from /usr/lib/x86_64-linux-gnu/libsasl2.so.2
#1  0x00007f3271b29006 in sasl_client_add_plugin () from 
/usr/lib/x86_64-linux-gnu/libsasl2.so.2
#2  0x00007f3271b34e00 in ?? () from /usr/lib/x86_64-linux-gnu/libsasl2.so.2
#3  0x00007f3271b297b1 in sasl_client_init () from 
/usr/lib/x86_64-linux-gnu/libsasl2.so.2
#4  0x00007f327279fb3c in ldap_int_sasl_init () from 
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
#5  0x00007f327279fbfc in ldap_int_sasl_open () from 
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
#6  0x00007f32727a0384 in ldap_int_sasl_bind () from 
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
#7  0x00007f32727a37f6 in ldap_sasl_interactive_bind () from 
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
#8  0x00007f32727a39fd in ldap_sasl_interactive_bind_s () from 
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
#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 
../../../../servers/slapd/syncrepl.c:613
#11 do_syncrepl (ctx=<optimized out>, arg=0x7f32740b0810) at 
../../../../servers/slapd/syncrepl.c:1527
#12 0x00007f3272798c62 in ?? () from 
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
#13 0x00007f3270b6b064 in start_thread (arg=0x7f312f7fe700) at 
pthread_create.c:309
#14 0x00007f32708a062d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f31351db700 (LWP 18910)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f327279843b in ldap_pvt_thread_pool_destroy () from 
/usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
#2  0x00007f3272c33069 in slapd_daemon_task (ptr=<optimized out>) at 
../../../../servers/slapd/daemon.c:2848
#3  0x00007f3270b6b064 in start_thread (arg=0x7f31351db700) at 
pthread_create.c:309
#4  0x00007f32708a062d in clone () at 
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

--- End Message ---
--- Begin Message ---
Source: openldap
Source-Version: 2.4.45+dfsg-1

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
attached.

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

Debian distribution maintenance software
pp.
Ryan Tandy <[email protected]> (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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 27 Jul 2017 18:04:41 -0700
Source: openldap
Binary: slapd slapd-smbk5pwd ldap-utils libldap-2.4-2 libldap-common 
libldap2-dev
Architecture: source
Version: 2.4.45+dfsg-1
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenLDAP Maintainers 
<[email protected]>
Changed-By: Ryan Tandy <[email protected]>
Description:
 ldap-utils - OpenLDAP utilities
 libldap-2.4-2 - OpenLDAP libraries
 libldap-common - OpenLDAP common files for libraries
 libldap2-dev - OpenLDAP development libraries
 slapd      - OpenLDAP server (slapd)
 slapd-smbk5pwd - Keeps Samba and Kerberos passwords in sync within slapd.
Closes: 820244 856422 860947 861838 868753
Changes:
 openldap (2.4.45+dfsg-1) unstable; urgency=medium
 .
   * New upstream release.
     - fixed a use-after-free in GnuTLS options handling
       (ITS#8385) (Closes: #820244) (LP: #1557248)
     - fixed unsafe concurrent SASL calls causing memory corruption
       (ITS#8648) (Closes: #860947) (LP: #1688575)
     - fixed syncrepl infinite looping with multi-master delta-syncrepl
       (ITS#8432) (Closes: #868753)
   * Rebase patches to apply cleanly:
     - do-not-second-guess-sonames
     - no-AM_INIT_AUTOMAKE
   * Drop patches applied upstream:
     - ITS-8554-kFreeBSD-is-like-BSD.patch
     - ITS-8644-wait-for-slapd-to-start-in-test064.patch
     - ITS-8655-paged-results-double-free.patch
   * Upgrade to debhelper compat level 10.
     - Depend on debhelper 10.
     - Stop enabling parallel and autoreconf explicitly. They are now enabled
       by default.
     - Drop dh-autoreconf from build-depends since debhelper requires it.
   * Add -Wno-format-extra-args to CFLAGS to reduce the noise in the build
     logs, as this warning is emitted on each use of the Debug() macro.
   * Drop libldap-2.4-4-dbg and slapd-dbg binary packages in favour of
     automatic dbgsym packages.
   * Update Standards-Version to 4.0.0; no changes required.
   * Drop Priority and Section from binary package stanzas when they only
     duplicate information from the source stanza.
   * Update Priority of slapd-smbk5pwd and libldap2-dev to optional to match
     the archive.
   * Remove retired developer, Roland Bauerschmidt, from Uploaders.
     (Closes: #856422)
   * Remove Timo Aaltonen from Uploaders, with his agreement.
   * debian/patches/ITS8650-retry-gnutls_handshake-after-GNUTLS_E_AGAIN.patch:
     If gnutls_handshake() returns EAGAIN, call it again. Fixes TLS handshake
     failures when the ServerHello message exceeds 16K.
     (ITS#8650) (Closes: #861838)
   * Drop time from Build-Depends. The upstream testsuite no longer calls it.
Checksums-Sha1:
 ea1dd8e77b8e602c8b8ba73890ab7c01f2349ed3 2769 openldap_2.4.45+dfsg-1.dsc
 03f71af49a00e4286c6cf27885850676a7c5d7fe 4846458 
openldap_2.4.45+dfsg.orig.tar.gz
 db3e57b6055a37b286613d5ffabb4d248139f6d6 162956 
openldap_2.4.45+dfsg-1.debian.tar.xz
Checksums-Sha256:
 a9544b9d02dec7eb101b0eb4a71d9feaa402c9f3e12ab2398c6408c84bd93212 2769 
openldap_2.4.45+dfsg-1.dsc
 d51c70423aa0554d454fd3d43e7f2e940523b4ef07979305b48c233ae44b2b32 4846458 
openldap_2.4.45+dfsg.orig.tar.gz
 7edec92185c74081a1fcbe934ccba951fb4a43075061aac40168a489f7989f5e 162956 
openldap_2.4.45+dfsg-1.debian.tar.xz
Files:
 4525fc964307ac2fe966f187fbfb07ae 2769 net optional openldap_2.4.45+dfsg-1.dsc
 6efedf363b87ba8a377aaee7d5edb4aa 4846458 net optional 
openldap_2.4.45+dfsg.orig.tar.gz
 df69fcfdef81865e48c6b006a967a171 162956 net optional 
openldap_2.4.45+dfsg-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJDBAEBCgAtFiEEPSfh0nqdQTd5kOFlIp/PEvXWa7YFAll6o1APHHJ5YW5AbmFy
ZGlzLmNhAAoJECKfzxL11mu29vUP+wYV1/ti4Gs4K8HV6gdX9a+oown9rd8QiY4W
EXaGEc71VwJtbIGuDApIqgwUUlOf4o44A/5ltavypKUh0AKrWQRSsDkRsH8AgeOj
k61fJ5ozAHoF0b8K7/ttBR5hjeF/kjnb7us4jurt9ptNTGzed0X4hqmf+Dh+m3Du
zRKX3tSrr7pgC0B/hGR2Ix8dlBZ/8X3V8GuMKZ20p46Pd8tPTE9FYUhB17g3rmFz
+8os11zRLHPLKc5fa0PPryVNEumPZxaYxF4ZBkXOOl+r7YW9u3DPxPzDsdE53DPy
1l/JiTv/1aH/AuCQ2/ZL99DQVi9YZ7+Tkyh2spGj7frIamgU4+UFriB2Y/r64yRy
HV63Yna4l0VYz30WqJ+CgA5/HkARvXwI1gwW+VciJsozGhUMARVpcdWMoEFrG9PH
Zy2YOw8Hpcs4juuKO9GCjp01WJ9ABGBhyFEYerJzUDnBzakcHw5h5h2ivmkaWwsh
hO1Sl8PkzDqM13na98KRF8Vxygfq+W1MMaK27s92WFoh7dAIzSCLpQy8/W7YgdW5
6MsxjYlg4870/piCcVRjNAmo91txJUt30PbA5kC5nz6hNBwdg4ayJVTqovv/ly2a
Gb2POhaI9VE4qrS7VCLxaIhxYIoYkalL2LVFtqy+tH0xmKqnx5UP/bOuA+MibZBY
FMYnLnK9
=4iJV
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to