This is a multi-part message in MIME format. --------------000201000003070808090402 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Attached is a backtrace with an unstripped version of slapd. If you want non-stripped version of the libc binaries, that is going to take a bit longer.
If you could get a backtrace with symbols (e.g. using an unstripped binary) we could see some useful information. Right now, the easiest answer would be a (subtle) bug in the "sortvals" feature. You should be able to check by removing that statement from your configuration. This should not require to reload the database from LDIF.
The issue presented itself prior to having sortvals defined in any way. One of the first suggestions was to enable sortvals, which I did. Since this hang is present both with and without sortvals, I doubt it's related.
Let me know if there is anything else I can provide.
Thanks,
Mark
--------------000201000003070808090402 Content-Type: text/plain; name="gdb-slapd.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdb-slapd.txt"
GNU gdb 6.8-debian Copyright (C) 2008 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 "i486-linux-gnu". (gdb) ata tach 22081 Attaching to process 22081 Reading symbols from /sysvol/ldap/release/2.4.19/lib/slapd...done. Reading symbols from /sysvol/ldap/release/2.4.19/lib/libldap_r-2.4.so.2...done. Loaded symbols for /sysvol/ldap/release/2.4.19/lib/libldap_r-2.4.so.2 Reading symbols from /sysvol/ldap/release/2.4.19/lib/liblber-2.4.so.2...done. Loaded symbols for /sysvol/ldap/release/2.4.19/lib/liblber-2.4.so.2 Reading symbols from /usr/lib/libdb-4.6.so...done. Loaded symbols for /usr/lib/libdb-4.6.so Reading symbols from /usr/lib/libodbc.so.1...done. Loaded symbols for /usr/lib/libodbc.so.1 Reading symbols from /lib/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread 0xb6dd09b0 (LWP 22081)] [New Thread 0xa114cb90 (LWP 22083)] [New Thread 0xa154cb90 (LWP 22082)] Loaded symbols for /lib/libpthread.so.0 Reading symbols from /usr/lib/libslp.so.1...done. Loaded symbols for /usr/lib/libslp.so.1 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /usr/lib/libicuuc.so.38...done. Loaded symbols for /usr/lib/libicuuc.so.38 Reading symbols from /usr/lib/libicudata.so.38...warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 000000b4 done. Loaded symbols for /usr/lib/libicudata.so.38 Reading symbols from /usr/lib/libsasl2.so.2...done. Loaded symbols for /usr/lib/libsasl2.so.2 Reading symbols from /usr/lib/libgnutls.so.26...done. Loaded symbols for /usr/lib/libgnutls.so.26 Reading symbols from /usr/lib/libtasn1.so.3...done. Loaded symbols for /usr/lib/libtasn1.so.3 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/lib/libgcrypt.so.11...done. Loaded symbols for /usr/lib/libgcrypt.so.11 Reading symbols from /usr/lib/libgpg-error.so.0...done. Loaded symbols for /usr/lib/libgpg-error.so.0 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /usr/lib/libltdl.so.3...done. Loaded symbols for /usr/lib/libltdl.so.3 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libwrap.so.0...done. Loaded symbols for /lib/libwrap.so.0 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/libstdc++.so.6...done. Loaded symbols for /usr/lib/libstdc++.so.6 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /lib/libnss_dns.so.2...done. Loaded symbols for /lib/libnss_dns.so.2 Reading symbols from /usr/lib/sasl2/libanonymous.so.2...done. Loaded symbols for /usr/lib/sasl2/libanonymous.so.2 Reading symbols from /usr/lib/sasl2/liblogin.so.2...done. Loaded symbols for /usr/lib/sasl2/liblogin.so.2 Reading symbols from /usr/lib/sasl2/libntlm.so.2...done. Loaded symbols for /usr/lib/sasl2/libntlm.so.2 Reading symbols from /usr/lib/i686/cmov/libcrypto.so.0.9.8...done. Loaded symbols for /usr/lib/i686/cmov/libcrypto.so.0.9.8 Reading symbols from /usr/lib/sasl2/libdigestmd5.so.2...done. Loaded symbols for /usr/lib/sasl2/libdigestmd5.so.2 Reading symbols from /usr/lib/sasl2/libsasldb.so.2...done. Loaded symbols for /usr/lib/sasl2/libsasldb.so.2 Reading symbols from /usr/lib/sasl2/libcrammd5.so.2...done. Loaded symbols for /usr/lib/sasl2/libcrammd5.so.2 Reading symbols from /usr/lib/sasl2/libgssapiv2.so.2...done. Loaded symbols for /usr/lib/sasl2/libgssapiv2.so.2 Reading symbols from /usr/lib/libgssapi_krb5.so.2...done. Loaded symbols for /usr/lib/libgssapi_krb5.so.2 Reading symbols from /usr/lib/libkrb5.so.3...done. Loaded symbols for /usr/lib/libkrb5.so.3 Reading symbols from /usr/lib/libk5crypto.so.3...done. Loaded symbols for /usr/lib/libk5crypto.so.3 Reading symbols from /lib/libcom_err.so.2...done. Loaded symbols for /lib/libcom_err.so.2 Reading symbols from /usr/lib/libkrb5support.so.0...done. Loaded symbols for /usr/lib/libkrb5support.so.0 Reading symbols from /lib/libkeyutils.so.1...done. Loaded symbols for /lib/libkeyutils.so.1 Reading symbols from /usr/lib/sasl2/libplain.so.2...done. Loaded symbols for /usr/lib/sasl2/libplain.so.2 Reading symbols from /sysvol/ldap/release/2.4.19/lib/ldap/back_bdb-2.4.so.2...done. Loaded symbols for /sysvol/ldap/release/2.4.19/lib/ldap/back_bdb-2.4.so.2 Reading symbols from /sysvol/ldap/release/2.4.19/lib/ldap/syncprov-2.4.so.2...done. Loaded symbols for /sysvol/ldap/release/2.4.19/lib/ldap/syncprov-2.4.so.2 Reading symbols from /sysvol/ldap/release/2.4.19/lib/ldap/ppolicy-2.4.so.2...done. Loaded symbols for /sysvol/ldap/release/2.4.19/lib/ldap/ppolicy-2.4.so.2 0xb7dfc492 in pthread_join () from /lib/libpthread.so.0 (gdb) continue Continuing. [New Thread 0xa0c4bb90 (LWP 22105)]
Program received signal SIGINT, Interrupt. [Switching to Thread 0xb6dd09b0 (LWP 22081)] 0xb7dfc492 in pthread_join () from /lib/libpthread.so.0 (gdb) backtrace full #0 0xb7dfc492 in pthread_join () from /lib/libpthread.so.0 No symbol table info available. #1 0xb7fc2264 in ldap_pvt_thread_join (thread=2706688912, thread_return=0x0) at thr_posix.c:197 No locals. #2 0x080715e3 in slapd_daemon () at daemon.c:2835 listener_tid = 2706688912 rc = 0 #3 0x0805e535 in main (argc=5, argv=0xbfb52dd4) at main.c:950 i = 136919464 no_detach = 0 rc = 0 urls = 0x8208028 "ldap://server:38900 ldaps://server:63600" username = 0x0 groupname = 0x0 sandbox = 0x0 syslogUser = 160 configfile = 0x8208078 "/sysvol/ldap/release/config/slapd.conf" configdir = 0x0 serverName = 0xbfb53deb "slapd" scp = <value optimized out> scp_entry = <value optimized out> debug_unknowns = (char **) 0x0 syslog_unknowns = (char **) 0x0 slapd_pid_file_unlink = 1 slapd_args_file_unlink = 1 firstopt = <value optimized out> __PRETTY_FUNCTION__ = "main" (gdb) info registers eax 0xfffffe00 -512 ecx 0x0 0 edx 0x5642 22082 ebx 0xa154cbd8 -1588278312 esp 0xbfb52c14 0xbfb52c14 ebp 0xbfb52c48 0xbfb52c48 esi 0x0 0 edi 0xb7e0aff4 -1210011660 eip 0xb7dfc492 0xb7dfc492 <pthread_join+274> eflags 0x200246 [ PF ZF IF ID ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 (gdb) thread apply all backtrace
Thread 4 (Thread 0xa0c4bb90 (LWP 22105)): #0 0xb7dff8f0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb7fc2124 in ldap_pvt_thread_cond_wait (cond=0x822d324, mutex=0x822d30c) at thr_posix.c:277 #2 0xb7fc14d2 in ldap_int_thread_pool_wrapper (xpool=0x822d308) at tpool.c:672 #3 0xb7dfbf3b in start_thread () from /lib/libpthread.so.0 #4 0xb6fbdbee in clone () from /lib/libc.so.6
Thread 3 (Thread 0xa154cb90 (LWP 22082)): #0 0xb6fbe39c in epoll_wait () from /lib/libc.so.6 #1 0x080748ff in slapd_daemon_task (ptr=0x0) at daemon.c:2460 #2 0xb7dfbf3b in start_thread () from /lib/libpthread.so.0 #3 0xb6fbdbee in clone () from /lib/libc.so.6
Thread 2 (Thread 0xa114cb90 (LWP 22083)): #0 0xb7dff8f0 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #1 0xb7fc2124 in ldap_pvt_thread_cond_wait (cond=0x822d324, mutex=0x822d30c) at thr_posix.c:277 #2 0xb7fc14d2 in ldap_int_thread_pool_wrapper (xpool=0x822d308) at tpool.c:672 #3 0xb7dfbf3b in start_thread () from /lib/libpthread.so.0 #4 0xb6fbdbee in clone () from /lib/libc.so.6
Thread 1 (Thread 0xb6dd09b0 (LWP 22081)): #0 0xb7dfc492 in pthread_join () from /lib/libpthread.so.0 #1 0xb7fc2264 in ldap_pvt_thread_join (thread=2706688912, thread_return=0x0) at thr_posix.c:197 #2 0x080715e3 in slapd_daemon () at daemon.c:2835 #3 0x0805e535 in main (argc=5, argv=0xbfb52dd4) at main.c:950 (gdb) quit The program is running. Quit anyway (and detach it)? (y or n) Detaching from program: /sysvol/ldap/release/2.4.19/lib/slapd, process 22081
--------------000201000003070808090402--