Your message dated Sat, 12 Aug 2017 16:17:11 +0000
with message-id <e1dgz67-0008jl...@fasolo.debian.org>
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 ow...@bugs.debian.org
immediately.)


-- 
860947: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860947
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: slapd
Version: 2.4.40+dfsg-1+deb8u2
Severity: normal
X-Debbugs-CC: hi...@iig.elte.hu

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

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

Debian distribution maintenance software
pp.
Ryan Tandy <r...@nardis.ca> (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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
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 
<pkg-openldap-de...@lists.alioth.debian.org>
Changed-By: Ryan Tandy <r...@nardis.ca>
Description:
 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
Changes:
 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)
Checksums-Sha1:
 9cfaa4a157f37fd1e77df1605e0d7c886aecc42b 3009 openldap_2.4.44+dfsg-5+deb9u1.dsc
 9b7a6f58266c688ea90c8c79f989673330edebe9 165640 
openldap_2.4.44+dfsg-5+deb9u1.debian.tar.xz
Checksums-Sha256:
 49a6e5b8c90cd3743d29854e2c07a31cfc420075d3368832a7c4e16e47c6aaae 3009 
openldap_2.4.44+dfsg-5+deb9u1.dsc
 06c3aa004b251b5acd036f26db245bfc5207811acf42d20dc02850eb60afb6bd 165640 
openldap_2.4.44+dfsg-5+deb9u1.debian.tar.xz
Files:
 d243ee69c455d1433e9fd35db5fc04f0 3009 net optional 
openldap_2.4.44+dfsg-5+deb9u1.dsc
 5823b2c03024bb2fbad10cd9537239df 165640 net optional 
openldap_2.4.44+dfsg-5+deb9u1.debian.tar.xz

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

iQJDBAEBCgAtFiEEPSfh0nqdQTd5kOFlIp/PEvXWa7YFAlmN7QUPHHJ5YW5AbmFy
ZGlzLmNhAAoJECKfzxL11mu2+bMP/jxLApeKZ+FzusUfA7vILY4+K067M8/90uiR
sNWSditvedlVV+x6gd5RUuJpuJmZakVTorjeQQ0UQIIxWOXhyyOGvw/77Kzkc4rl
sZIeTZom9n1z0+NSKJwQKRmgRq1LPx4L43gOjwBdQsorEzEqKh5zwYOhheDJteCr
zVB3KAzOFGdW6ejhlYH4G/JhtIpPspK7cQipKT/j31OunNpYUcngAITNs2X8DOt0
1jXM6wJs3h67OZymXlHHH7mt8DSxn64SBCH6TuWFABdqa4WiczBOazNAatBVfhzn
zIfH2S1X6gLb7Z7lXx29XvHXIaSR2UvEZjmBEqP5zLyrH2mqoOEQuV0zcNelGWFo
OfAM/h8tbjp4gx+tG7EtS0WwEWEgMJsCozbCc/BKe5vgg8A8tEgpySNJIQGYYWz9
WL+b3iT/NoBodOirVw855EnmDKmE9EhI1sGpEgjy11S/l0yPeYb0Lyf+GQ7Qt6ql
/0M54RO85ITSEO1D6HBE1YnkEIR/WLFIriyL33/TucqkVP6fiCkfIT1gH5njNzHU
sod17cXgRbFK5/KzKXhZsXt2m1nGkP2QnCGIof88u/LeP+D9D4S3wrbZru6F8tRS
arGlp8upWIzbypuTE07UkbRNwffXNhKDChhr/EtnsMtr5WtuUpQExcws6AgfOv8x
BYX4mAMz
=nUgP
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to