[Pkg-openldap-devel] Bug#860947: slapd: Slapd fails to stop sometimes
GALAMBOS Daniel
dancsa at dancsa.hu
Sat Apr 22 10:47:19 UTC 2017
Package: slapd
Version: 2.4.40+dfsg-1+deb8u2
Severity: normal
X-Debbugs-CC: hirek at 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
-------------- next part --------------
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
More information about the Pkg-openldap-devel
mailing list