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

Re: Slapd fails to die (ITS#2502)




--On Friday, May 09, 2003 6:39 AM -0700 "Kurt D. Zeilenga" 
<Kurt@OpenLDAP.org> wrote:

> You might try connecting gdb to the running process and
> seeing what each thread is doing.

Kurt,

Thanks! It looks like from the output, that with thread 10, it is holding 
on to a modification?
Let me know if there is anything more that may be helpful in debugging this.

--Quanah

(gdb) info threads
  10 Thread 5 (LWP 3)  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
  9 Thread 4 (LWP 6)  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
  8 Thread 3          0xfee9f054 in _lwp_sema_wait () from 
/usr/lib/libc.so.1
  7 Thread 1          0xfedade14 in _reap_wait_cancel ()
   from /usr/lib/libthread.so.1
  6 LWP    3          0xfee9f6c0 in yield () from /usr/lib/libc.so.1
  5 LWP    6          0xfee9f6c0 in yield () from /usr/lib/libc.so.1
  4 LWP    7          0xfee9f054 in _lwp_sema_wait () from 
/usr/lib/libc.so.1
  3 LWP    10          0xfedb9770 in private___lwp_cond_wait ()
   from /usr/lib/libthread.so.1
* 2 Thread 2 (LWP 2)  0xfee9e9a4 in _signotifywait () from 
/usr/lib/libc.so.1
  1 LWP    2          0xfee9e9a4 in _signotifywait () from 
/usr/lib/libc.so.1

(gdb) bt
#0  0xfee9e9a4 in _signotifywait () from /usr/lib/libc.so.1
#1  0xfedaed5c in _dynamiclwps () from /usr/lib/libthread.so.1
(gdb) thread 10
[Switching to thread 10 (Thread 5 (LWP 3))]
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
#1  0xff32d8e4 in ldap_pvt_thread_yield () at thr_posix.c:183
#2  0x8cda4 in bdb_modify (be=0x113818, conn=0x18cfd8, op=0x9ef380,
    dn=0x7c801a60, ndn=0x7c801a58, modlist=0x1eb690) at modify.c:335
#3  0x45dac in do_modify (conn=0x18cfd8, op=0x9ef380) at modify.c:424
#4  0x235e0 in connection_operation (ctx=0x186988, arg_v=0x9ef380)
    at connection.c:942
#5  0xff32d074 in ldap_int_thread_pool_wrapper (xpool=0x101e18) at 
tpool.c:426

(gdb) thread 9
[Switching to thread 9 (Thread 4 (LWP 6))]
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
#1  0xff32d8e4 in ldap_pvt_thread_yield () at thr_posix.c:183
#2  0xff32cc9c in ldap_pvt_thread_pool_destroy (tpool=0x100100, 
run_pending=1)
    at tpool.c:342
#3  0x20400 in slapd_daemon_task (ptr=0x0) at daemon.c:1925

(gdb) thread 8
[Switching to thread 8 (Thread 3        )]
#0  0xfee9f054 in _lwp_sema_wait () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfee9f054 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1  0xfeda9acc in _park () from /usr/lib/libthread.so.1
#2  0xfeda9794 in _swtch () from /usr/lib/libthread.so.1
#3  0xfedaddc4 in _reap_wait () from /usr/lib/libthread.so.1
#4  0xfedadb1c in _reaper () from /usr/lib/libthread.so.1

(gdb) thread 7
[Switching to thread 7 (Thread 1        )]
#0  0xfedade14 in _reap_wait_cancel () from /usr/lib/libthread.so.1
(gdb) bt
#0  0xfedade14 in _reap_wait_cancel () from /usr/lib/libthread.so.1
#1  0xfedb00a8 in _thrp_join () from /usr/lib/libthread.so.1
#2  0xff32d894 in ldap_pvt_thread_join (thread=4, thread_return=0x0)
    at thr_posix.c:158
#3  0x20508 in slapd_daemon () at daemon.c:1959
#4  0x1aa64 in main (argc=3, argv=0xffbefe64) at main.c:558

(gdb) thread 6
[Switching to thread 6 (LWP    3        )]
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
#1  0xff32d8e4 in ldap_pvt_thread_yield () at thr_posix.c:183
#2  0x8cda4 in bdb_modify (be=0x113818, conn=0x18cfd8, op=0x9ef380,
    dn=0x7c801a60, ndn=0x7c801a58, modlist=0x1eb690) at modify.c:335
#3  0x45dac in do_modify (conn=0x18cfd8, op=0x9ef380) at modify.c:424
#4  0x235e0 in connection_operation (ctx=0x186988, arg_v=0x9ef380)
    at connection.c:942
#5  0xff32d074 in ldap_int_thread_pool_wrapper (xpool=0x101e18) at 
tpool.c:426

(gdb) thread 5
[Switching to thread 5 (LWP    6        )]
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfee9f6c0 in yield () from /usr/lib/libc.so.1
#1  0xff32d8e4 in ldap_pvt_thread_yield () at thr_posix.c:183
#2  0xff32cc9c in ldap_pvt_thread_pool_destroy (tpool=0x100100, 
run_pending=1)
    at tpool.c:342
#3  0x20400 in slapd_daemon_task (ptr=0x0) at daemon.c:1925

(gdb) thread 4
[Switching to thread 4 (LWP    7        )]
#0  0xfee9f054 in _lwp_sema_wait () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfee9f054 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1  0xfeda9acc in _park () from /usr/lib/libthread.so.1
#2  0xfeda9794 in _swtch () from /usr/lib/libthread.so.1
#3  0xfedaddc4 in _reap_wait () from /usr/lib/libthread.so.1
#4  0xfedadb1c in _reaper () from /usr/lib/libthread.so.1

(gdb) thread 3
[Switching to thread 3 (LWP    10        )]
#0  0xfedb9770 in private___lwp_cond_wait () from /usr/lib/libthread.so.1
(gdb) bt
#0  0xfedb9770 in private___lwp_cond_wait () from /usr/lib/libthread.so.1
#1  0xfeda90b4 in _age () from /usr/lib/libthread.so.1
#2  0xfedaa748 in _lwp_start () from /usr/lib/libthread.so.1

(gdb) thread 1
[Switching to thread 1 (LWP    2        )]
#0  0xfee9e9a4 in _signotifywait () from /usr/lib/libc.so.1
(gdb) bt
#0  0xfee9e9a4 in _signotifywait () from /usr/lib/libc.so.1
#1  0xfedaed5c in _dynamiclwps () from /usr/lib/libthread.so.1


--
Quanah Gibson-Mount
Senior Systems Administrator
ITSS/TSS/Computing Systems
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html