Hi,
Le Mer 7 mai 2008 16:11, Quanah Gibson-Mount a écrit :
> --On Wednesday, May 07, 2008 12:44 PM +0000 raphael.ouazana(a)linagora.com
> wrote:
>
>> Currently testing new RE24. I have now a slapd process stuck at 100% :
>> \_ /bin/sh ./scripts/test050-syncrepl-multimaster hdb
>> \_ /tmp/openldap/tests/../servers/slapd/slapd -s0 -F slapd.d -h
>> ldap://localhost:9011/ -d 261
>> \_ /tmp/openldap/tests/../servers/slapd/slapd -s0 -F ./slapd.d -h
>> ldap://localhost:9012/ -d 261
>> \_ /tmp/openldap/tests/../servers/slapd/slapd -s0 -F ./slapd.d -h
>> ldap://localhost:9013/ -d 261
>> \_ /bin/sh ./scripts/test050-syncrepl-multimaster hdb
>> \_ ../clients/tools/ldapsearch -P 3 -x -LLL -H
>> ldap://localhost:9013/ -s base -b cn=Ursula Hampster,ou=Alumni
>> Association,ou=People,dc=example,dc=com (objectClass=*)
>> \_ awk /^dn:/ {print "OK"}
>>
>> Do you need some debugging info (strace, gdb, log, or other) ?
>
> Please provide a gdb backtrace of the hung process.
It is not really hung, it is more in an infinite loop.
Here is the backtrace:
(gdb) thread apply all bt
Thread 5 (Thread 0xb7ad5b90 (LWP 6028)):
#0 0xb7eef410 in __kernel_vsyscall ()
#1 0xb7d14676 in epoll_wait () from /lib/tls/i686/cmov/libc.so.6
#2 0x080600bb in slapd_daemon_task (ptr=0x0) at daemon.c:2281
#3 0xb7da54fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4 0xb7d13e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 4 (Thread 0xb76d4b90 (LWP 6030)):
#0 0xb7eef410 in __kernel_vsyscall ()
#1 0xb7da9aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/i686/cmov/libpthread.so.0
#2 0x0807302b in send_ldap_ber (conn=0xb7ad6b28, ber=0xb76d2e98) at
result.c:188
#3 0x08075256 in slap_send_search_entry (op=0x8252af0, rs=0xb76d4178) at
result.c:1200
#4 0x08056418 in config_send (op=0x8252af0, rs=0xb76d4178, ce=0x828bf48,
depth=0) at bconfig.c:3507
#5 0x080563e4 in config_send (op=0x8252af0, rs=0xb76d4178, ce=0x828bf48,
depth=1) at bconfig.c:3516
#6 0x080563be in config_send (op=0x8252af0, rs=0xb76d4178, ce=0x82527c0,
depth=0) at bconfig.c:3511
#7 0x080563e4 in config_send (op=0x8252af0, rs=0xb76d4178, ce=0x82527c0,
depth=1) at bconfig.c:3516
#8 0x080563be in config_send (op=0x8252af0, rs=0xb76d4178, ce=0x824fc80,
depth=0) at bconfig.c:3511
#9 0x080564e4 in config_back_search (op=0x8252af0, rs=0xb76d4178) at
bconfig.c:5261
#10 0x08065283 in fe_op_search (op=0x8252af0, rs=0xb76d4178) at search.c:366
#11 0x08065af7 in do_search (op=0x8252af0, rs=0xb76d4178) at search.c:217
#12 0x0806312f in connection_operation (ctx=0xb76d4248, arg_v=0x8252af0)
at connection.c:1084
#13 0x080639bf in connection_read_thread (ctx=0xb76d4248, argv=0x8) at
connection.c:1211
#14 0x0812fb48 in ldap_int_thread_pool_wrapper (xpool=0x822cae8) at
tpool.c:663
#15 0xb7da54fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0xb7d13e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 3 (Thread 0xb71d2b90 (LWP 6034)):
#0 0xb7eef410 in __kernel_vsyscall ()
#1 0xb7da9aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/i686/cmov/libpthread.so.0
#2 0x0812fbb5 in ldap_int_thread_pool_wrapper (xpool=0x822cae8) at
tpool.c:654
#3 0xb7da54fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4 0xb7d13e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 2 (Thread 0xb6dd1b90 (LWP 6035)):
#0 0xb7eef410 in __kernel_vsyscall ()
#1 0xb7da9aa5 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib/tls/i686/cmov/libpthread.so.0
#2 0x0812f4c2 in handle_pause (tpool=<value optimized out>, do_pause=1)
at tpool.c:738
#3 0x08054abf in config_back_add (op=0xb6dd0dd4, rs=0xb6dd0728) at
bconfig.c:4548
---Type <return> to continue, or q <return> to quit---
#4 0x080bb70f in syncrepl_entry (si=0x8255888, op=0xb6dd0dd4,
entry=0x823ffec, modlist=0xb6dd0b44, syncstate=1, syncUUID=0xb6dd0b0c,
syncCSN=0x0) at syncrepl.c:2108
#5 0x080be0d9 in do_syncrep2 (op=0xb6dd0dd4, si=0x8255888) at syncrepl.c:862
#6 0x080bfec4 in do_syncrepl (ctx=0xb6dd1248, arg=0x8255ac8) at
syncrepl.c:1276
#7 0x08063a06 in connection_read_thread (ctx=0xb6dd1248, argv=0x9) at
connection.c:1213
#8 0x0812fb48 in ldap_int_thread_pool_wrapper (xpool=0x822cae8) at
tpool.c:663
#9 0xb7da54fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#10 0xb7d13e5e in clone () from /lib/tls/i686/cmov/libc.so.6
Thread 1 (Thread 0xb7c3c6b0 (LWP 6024)):
#0 0xb7eef410 in __kernel_vsyscall ()
#1 0xb7da6775 in pthread_join () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0805d633 in slapd_daemon () at daemon.c:2644
#3 0x0804c597 in main (argc=8, argv=0xbfaefcc4) at main.c:946
#0 0xb7eef410 in __kernel_vsyscall ()
(gdb)
Regards,
Raphaël Ouazana.