[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4234) slapd-ldap returns 52 whereas server is available



Full_Name: Raphael Ouazana
Version: 2.3.12
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (217.77.224.129)



In some rare case (1 on 10 proxies in my environment) a proxy return error 52
(Server is unavailable) whereas my server is available.  In fact my server was
down for some minutes and when he came back 9 on 10 proxies found it but 1 did
not.
I can't have very precise debug information on this server because the binary is
stripped.  But it seems to be stuck in an infinite loop as it takes about 12% of
the cpus whereas there is no really active client.

Here is a live backtrace :

(gdb) thread apply all bt

Thread 18 (Thread -1220027472 (LWP 11862)):
#0  0x001e6c87 in ___newselect_nocancel () from /lib/tls/libc.so.6
#1  0x08059edf in slapd_daemon_task (ptr=0x0) at daemon.c:1844
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 17 (Thread -1224225872 (LWP 18678)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 16 (Thread -1229476944 (LWP 14721)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 15 (Thread -1234728016 (LWP 14723)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 14 (Thread -1239979088 (LWP 14725)):
#0  0x009ea7f9 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0x009e77e7 in _L_mutex_lock_28 () from /lib/tls/libpthread.so.0
#2  0x088dd0e8 in ?? ()
#3  0x088dd19c in ?? ()
#4  0xb61756c8 in ?? ()
#5  0x080f5987 in ldap_result (ld=0x3985, msgid=3, all=0, timeout=0x88cb6c8,
result=0xb617573c) at result.c:117
#6  0x080f5987 in ldap_result (ld=0x9e77e7, msgid=3, all=0, timeout=0xb6175768,
result=0x88dd19c) at result.c:117
#7  0x080b88b9 in ldap_back_search (op=0x88ecf58, rs=0xb6176870) at
search.c:255
#8  0x0805e82f in fe_op_search (op=0x88ecf58, rs=0xb6176870) at search.c:349
#9  0x0805e1d2 in do_search (op=0x88ecf58, rs=0xb6176870) at search.c:219
#10 0x0805c816 in connection_operation (ctx=0xb61768f0, arg_v=0x88ecf58) at
connection.c:1309
#11 0x080f4a06 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:481
#12 0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#13 0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 13 (Thread -1245230160 (LWP 14729)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6
---Type <return> to continue, or q <return> to quit---

Thread 12 (Thread -1250481232 (LWP 14731)):
#0  0x009ea7f9 in __lll_mutex_lock_wait () from /lib/tls/libpthread.so.0
#1  0x009e77e7 in _L_mutex_lock_28 () from /lib/tls/libpthread.so.0
#2  0x088dd0e8 in ?? ()
#3  0x088dd19c in ?? ()
#4  0xb57716c8 in ?? ()
#5  0x080f5987 in ldap_result (ld=0x398b, msgid=1, all=0, timeout=0x88cb6c8,
result=0xb577173c) at result.c:117
#6  0x080f5987 in ldap_result (ld=0x9e77e7, msgid=1, all=0, timeout=0xb5771768,
result=0x88dd19c) at result.c:117
#7  0x080b88b9 in ldap_back_search (op=0x88f1068, rs=0xb5772870) at
search.c:255
#8  0x0805e82f in fe_op_search (op=0x88f1068, rs=0xb5772870) at search.c:349
#9  0x0805e1d2 in do_search (op=0x88f1068, rs=0xb5772870) at search.c:219
#10 0x0805c816 in connection_operation (ctx=0xb57728f0, arg_v=0x88f1068) at
connection.c:1309
#11 0x080f4a06 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:481
#12 0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#13 0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 11 (Thread -1255732304 (LWP 14739)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

---Type <return> to continue, or q <return> to quit---
Thread 10 (Thread -1260983376 (LWP 14741)):
#0  0x001e46cd in poll () from /lib/tls/libc.so.6
#1  0x08104089 in ldap_int_select (ld=0x4, timeout=0x0) at os-ip.c:922
#2  0x080f5d52 in wait4msg (ld=0x88dd0e8, msgid=9, all=0, timeout=0x0,
result=0xb4d6d73c) at result.c:299
#3  0x080f59cf in ldap_result (ld=0x88dd0e8, msgid=9, all=0, timeout=0xb4d6d768,
result=0xb4d6d73c) at result.c:122
#4  0x080b88b9 in ldap_back_search (op=0x88eb5d8, rs=0xb4d6e870) at
search.c:255
#5  0x0805e82f in fe_op_search (op=0x88eb5d8, rs=0xb4d6e870) at search.c:349
#6  0x0805e1d2 in do_search (op=0x88eb5d8, rs=0xb4d6e870) at search.c:219
#7  0x0805c816 in connection_operation (ctx=0xb4d6e8f0, arg_v=0x88eb5d8) at
connection.c:1309
#8  0x080f4a06 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:481
#9  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#10 0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 9 (Thread -1266234448 (LWP 14745)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 8 (Thread -1271485520 (LWP 14747)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 7 (Thread -1276736592 (LWP 14748)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 6 (Thread -1281987664 (LWP 14749)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 5 (Thread -1287238736 (LWP 14750)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 4 (Thread -1292489808 (LWP 14751)):
#0  0x001d6d57 in sched_yield () from /lib/tls/libc.so.6
#1  0x080b8eab in ldap_back_search (op=0x88ecc38, rs=0xb2f62870) at
search.c:269
---Type <return> to continue, or q <return> to quit---
#2  0x0805e82f in fe_op_search (op=0x88ecc38, rs=0xb2f62870) at search.c:349
#3  0x0805e1d2 in do_search (op=0x88ecc38, rs=0xb2f62870) at search.c:219
#4  0x0805c816 in connection_operation (ctx=0xb2f628f0, arg_v=0x88ecc38) at
connection.c:1309
#5  0x080f4a06 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:481
#6  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#7  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 3 (Thread -1297740880 (LWP 14752)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 2 (Thread -1302991952 (LWP 14753)):
#0  0x009e826d in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/libpthread.so.0
#1  0x080f4b93 in ldap_int_thread_pool_wrapper (xpool=0x8825e20) at tpool.c:469
#2  0x009e5de8 in start_thread () from /lib/tls/libpthread.so.0
#3  0x001ed93a in clone () from /lib/tls/libc.so.6

Thread 1 (Thread -1218513216 (LWP 11860)):
#0  0x009e6c68 in pthread_join () from /lib/tls/libpthread.so.0
#1  0x0805aa11 in slapd_daemon () at daemon.c:2215
#2  0x0804d664 in main (argc=9, argv=0xbfffd184) at main.c:785
(gdb)

I'll try to keep it alive as long as possible in case you need more
information.

Raphael Ouazana.