That was my first try. I have used the option --enable-debug in the configure command, which seems to produce AC_CFLAGS = -g -O2, itself reinjected in CFLAGS = $(AC_CFLAGS) $(DEFS) in the Makefile.
However this has lead to an unusable stacktrace. Thus I preferred using the binary file (with debug symbols) pointed by openldap-src/servers/slapd : /opt/openldap-src/servers/slapd/.libs/lt-slapd This gave me the stacktrace I first sent.
I have used /opt/openldap-src/servers/slapd/.libs/slapd instead, and it seems to give a better stacktrace. (joined in this mail)
Thank you for your help.
Thread 10 (Thread 0xb7f66710 (LWP 32314)): #0 0x006b3402 in __kernel_vsyscall () #1 0x00822a77 in pthread_join () from /lib/libpthread.so.0 #2 0x00615314 in ldap_pvt_thread_join (thread=2623220624, thread_return=0x0) at thr_posix.c:197 #3 0x08071407 in slapd_daemon () at daemon.c:2930 #4 0x0805d421 in main (argc=9, argv=0xbffb3c04) at main.c:1012
Thread 9 (Thread 32325): #0 0x006b3402 in __kernel_vsyscall () #1 0x00203ae6 in epoll_wait () from /lib/libc.so.6 #2 0x0807426c in slapd_daemon_task (ptr=0xbffb3ac8) at daemon.c:2539 #3 0x00821832 in start_thread () from /lib/libpthread.so.0 #4 0x0020346e in clone () from /lib/libc.so.6
Thread 8 (Thread 32326): #0 0x006b3402 in __kernel_vsyscall () #1 0x001e790c in sched_yield () from /lib/libc.so.6 #2 0x006152b7 in ldap_pvt_thread_yield () at thr_posix.c:232 #3 0x0818d941 in syncprov_op_mod (op=0x89b2390, rs=0x8ddb9108) at syncprov.c:2112 #4 0x080dff34 in overlay_op_walk (op=0x89b2390, rs=0x8ddb9108, which=op_modify, oi=0x87c98a8, on=0x87cbe98) at backover.c:661 #5 0x080e049a in over_op_func (op=0x89b2390, rs=0x8ddb9108, which=op_modify) at backover.c:723 #6 0x08090926 in fe_op_modify (op=0x89b2390, rs=0x8ddb9108) at modify.c:303 #7 0x080912a7 in do_modify (op=0x89b2390, rs=0x8ddb9108) at modify.c:177 #8 0x0807759d in connection_operation (ctx=0x8ddb91e8, arg_v=0x89b2390) at connection.c:1138 ---Type <return> to continue, or q <return> to quit--- #9 0x08077f6d in connection_read_thread (ctx=0x8ddb91e8, argv=0x23) at connection.c:1274 #10 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #11 0x00821832 in start_thread () from /lib/libpthread.so.0 #12 0x0020346e in clone () from /lib/libc.so.6
Thread 7 (Thread 32327): #0 0x006b3402 in __kernel_vsyscall () #1 0x001e790c in sched_yield () from /lib/libc.so.6 #2 0x006152b7 in ldap_pvt_thread_yield () at thr_posix.c:232 #3 0x0818d941 in syncprov_op_mod (op=0x89b6930, rs=0x8d9b8108) at syncprov.c:2112 #4 0x080dff34 in overlay_op_walk (op=0x89b6930, rs=0x8d9b8108, which=op_delete, oi=0x87c98a8, on=0x87cbe98) at backover.c:661 #5 0x080e049a in over_op_func (op=0x89b6930, rs=0x8d9b8108, which=op_delete) at backover.c:723 #6 0x080916ae in fe_op_delete (op=0x89b6930, rs=0x8d9b8108) at delete.c:174 #7 0x08091c4f in do_delete (op=0x89b6930, rs=0x8d9b8108) at delete.c:95 #8 0x0807759d in connection_operation (ctx=0x8d9b81e8, arg_v=0x89b6930) at connection.c:1138 #9 0x08077f6d in connection_read_thread (ctx=0x8d9b81e8, argv=0x20) at connection.c:1274 #10 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #11 0x00821832 in start_thread () from /lib/libpthread.so.0 #12 0x0020346e in clone () from /lib/libc.so.6
Thread 6 (Thread 32328): #0 0x006b3402 in __kernel_vsyscall () #1 0x001e790c in sched_yield () from /lib/libc.so.6 #2 0x006152b7 in ldap_pvt_thread_yield () at thr_posix.c:232 #3 0x0818d941 in syncprov_op_mod (op=0x89b1d50, rs=0x8d5b7108) at syncprov.c:2112 ---Type <return> to continue, or q <return> to quit--- #4 0x080dff34 in overlay_op_walk (op=0x89b1d50, rs=0x8d5b7108, which=op_delete, oi=0x87c98a8, on=0x87cbe98) at backover.c:661 #5 0x080e049a in over_op_func (op=0x89b1d50, rs=0x8d5b7108, which=op_delete) at backover.c:723 #6 0x080916ae in fe_op_delete (op=0x89b1d50, rs=0x8d5b7108) at delete.c:174 #7 0x08091c4f in do_delete (op=0x89b1d50, rs=0x8d5b7108) at delete.c:95 #8 0x0807759d in connection_operation (ctx=0x8d5b71e8, arg_v=0x89b1d50) at connection.c:1138 #9 0x08077f6d in connection_read_thread (ctx=0x8d5b71e8, argv=0x2c) at connection.c:1274 #10 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #11 0x00821832 in start_thread () from /lib/libpthread.so.0 #12 0x0020346e in clone () from /lib/libc.so.6
Thread 5 (Thread 32329): #0 0x0019673c in _IO_default_xsputn_internal () from /lib/libc.so.6 #1 0x0016d391 in vfprintf () from /lib/libc.so.6 #2 0x00191514 in vsnprintf () from /lib/libc.so.6 #3 0x0012b79f in lutil_debug (debug=256, level=256, fmt=0x81b2678 "%s BIND dn="%s" mech=%s ssf=0\n") at debug.c:67 #4 0x0809552b in fe_op_bind_success (op=0x89a7320, rs=0x8d1b6108) at bind.c:429 #5 0x08095d04 in fe_op_bind (op=0x89a7320, rs=0x8d1b6108) at bind.c:386 #6 0x0809651c in do_bind (op=0x89a7320, rs=0x8d1b6108) at bind.c:205 #7 0x0807759d in connection_operation (ctx=0x8d1b61e8, arg_v=0x89a7320) at connection.c:1138 #8 0x08077f6d in connection_read_thread (ctx=0x8d1b61e8, argv=0x1b) at connection.c:1274 #9 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #10 0x00821832 in start_thread () from /lib/libpthread.so.0 #11 0x0020346e in clone () from /lib/libc.so.6
Thread 4 (Thread 32392): ---Type <return> to continue, or q <return> to quit--- #0 0x006b3402 in __kernel_vsyscall () #1 0x001e790c in sched_yield () from /lib/libc.so.6 #2 0x006152b7 in ldap_pvt_thread_yield () at thr_posix.c:232 #3 0x0818d941 in syncprov_op_mod (op=0x89b70d8, rs=0x8c5b0108) at syncprov.c:2112 #4 0x080dff34 in overlay_op_walk (op=0x89b70d8, rs=0x8c5b0108, which=op_add, oi=0x87c98a8, on=0x87cbe98) at backover.c:661 #5 0x080e049a in over_op_func (op=0x89b70d8, rs=0x8c5b0108, which=op_add) at backover.c:723 #6 0x0807eeb9 in fe_op_add (op=0x89b70d8, rs=0x8c5b0108) at add.c:334 #7 0x0807f7a3 in do_add (op=0x89b70d8, rs=0x8c5b0108) at add.c:194 #8 0x0807759d in connection_operation (ctx=0x8c5b01e8, arg_v=0x89b70d8) at connection.c:1138 #9 0x08077f6d in connection_read_thread (ctx=0x8c5b01e8, argv=0x28) at connection.c:1274 #10 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #11 0x00821832 in start_thread () from /lib/libpthread.so.0 #12 0x0020346e in clone () from /lib/libc.so.6
Thread 3 (Thread 32393): #0 0x006b3402 in __kernel_vsyscall () #1 0x001e790c in sched_yield () from /lib/libc.so.6 #2 0x006152b7 in ldap_pvt_thread_yield () at thr_posix.c:232 #3 0x0818d941 in syncprov_op_mod (op=0x89b3998, rs=0x8c1af108) at syncprov.c:2112 #4 0x080dff34 in overlay_op_walk (op=0x89b3998, rs=0x8c1af108, which=op_modify, oi=0x87c98a8, on=0x87cbe98) at backover.c:661 #5 0x080e049a in over_op_func (op=0x89b3998, rs=0x8c1af108, which=op_modify) at backover.c:723 #6 0x08090926 in fe_op_modify (op=0x89b3998, rs=0x8c1af108) at modify.c:303 #7 0x080912a7 in do_modify (op=0x89b3998, rs=0x8c1af108) at modify.c:177 #8 0x0807759d in connection_operation (ctx=0x8c1af1e8, arg_v=0x89b3998) at connection.c:1138 #9 0x08077f6d in connection_read_thread (ctx=0x8c1af1e8, argv=0x2d) at connection.c:1274 ---Type <return> to continue, or q <return> to quit--- #10 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #11 0x00821832 in start_thread () from /lib/libpthread.so.0 #12 0x0020346e in clone () from /lib/libc.so.6
Thread 2 (Thread 32394): #0 0x006b3402 in __kernel_vsyscall () #1 0x001e790c in sched_yield () from /lib/libc.so.6 #2 0x006152b7 in ldap_pvt_thread_yield () at thr_posix.c:232 #3 0x0818d941 in syncprov_op_mod (op=0x89b2b78, rs=0x8bcad108) at syncprov.c:2112 #4 0x080dff34 in overlay_op_walk (op=0x89b2b78, rs=0x8bcad108, which=op_delete, oi=0x87c98a8, on=0x87cbe98) at backover.c:661 #5 0x080e049a in over_op_func (op=0x89b2b78, rs=0x8bcad108, which=op_delete) at backover.c:723 #6 0x080916ae in fe_op_delete (op=0x89b2b78, rs=0x8bcad108) at delete.c:174 #7 0x08091c4f in do_delete (op=0x89b2b78, rs=0x8bcad108) at delete.c:95 #8 0x0807759d in connection_operation (ctx=0x8bcad1e8, arg_v=0x89b2b78) at connection.c:1138 #9 0x08077f6d in connection_read_thread (ctx=0x8bcad1e8, argv=0x21) at connection.c:1274 #10 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #11 0x00821832 in start_thread () from /lib/libpthread.so.0 #12 0x0020346e in clone () from /lib/libc.so.6
Thread 1 (Thread 0x8c9b1b90 (LWP 32391)): #0 0x0818d9c2 in syncprov_op_mod (op=0x89b2fe0, rs=0x8c9b1108) at syncprov.c:2118 #1 0x080dff34 in overlay_op_walk (op=0x89b2fe0, rs=0x8c9b1108, which=op_add, oi=0x87c98a8, on=0x87cbe98) at backover.c:661 #2 0x080e049a in over_op_func (op=0x89b2fe0, rs=0x8c9b1108, which=op_add) at backover.c:723 #3 0x0807eeb9 in fe_op_add (op=0x89b2fe0, rs=0x8c9b1108) at add.c:334 #4 0x0807f7a3 in do_add (op=0x89b2fe0, rs=0x8c9b1108) at add.c:194 ---Type <return> to continue, or q <return> to quit--- #5 0x0807759d in connection_operation (ctx=0x8c9b11e8, arg_v=0x89b2fe0) at connection.c:1138 #6 0x08077f6d in connection_read_thread (ctx=0x8c9b11e8, argv=0x2f) at connection.c:1274 #7 0x006145e4 in ldap_int_thread_pool_wrapper (xpool=0x87687a8) at tpool.c:685 #8 0x00821832 in start_thread () from /lib/libpthread.so.0 #9 0x0020346e in clone () from /lib/libc.so.6
Le 02/02/2012 20:09, Quanah Gibson-Mount a écrit :
--On Thursday, February 02, 2012 4:58 PM +0000 dcoutadeur@linagora.com wrote:
Full_Name: dcoutadeur Version: 2.4.28 OS: Red Hat Enterprise Linux Server release 5.7 (Tikanga) URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (109.197.176.10)
Please rebuild with debugging symbols (CFLAGS=-g) and update with a usable stack trace. Thank you.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc.
Zimbra :: the leader in open source messaging and collaboration