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

(ITS#3431) HEAD syncrepl replica fails to fully shut down



Full_Name: Quanah Gibson-Mount
Version: HEAD
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (171.66.182.82)


After having my provider slapd die, I went to shut down the replica, which
reported that it was waiting for two threads to finish.  After 30 minutes, it
was still in this state.

GDB shows:

[Switching to Thread 5 (LWP 1)]
0xfee1cbd0 in __fdsync () from /usr/lib/libc.so.1
(gdb) info threads
  10 Thread 4 (LWP 3)  0xfee1fadc in yield () from /usr/lib/libc.so.1
  9 Thread 3          0xfee1f470 in _lwp_sema_wait () from /usr/lib/libc.so.1
  8 Thread 2 (LWP 2)  0xfee1edc0 in _signotifywait () from /usr/lib/libc.so.1
  7 Thread 1          0xfed4da10 in _reap_wait_cancel () from
/usr/lib/libthread.so.1
  6 LWP    2          0xfee1edc0 in _signotifywait () from /usr/lib/libc.so.1
  5 LWP    3          0xfee1fadc in yield () from /usr/lib/libc.so.1
  4 LWP    4          0xfee1f470 in _lwp_sema_wait () from /usr/lib/libc.so.1
  3 LWP    5          0xfed591fc in private___lwp_cond_wait () from
/usr/lib/libthread.so.1
* 2 Thread 5 (LWP 1)  0xfee1cbd0 in __fdsync () from /usr/lib/libc.so.1
  1 LWP    1          0xfee1cbd0 in __fdsync () from /usr/lib/libc.so.1

(gdb) bt
#0  0xfee1cbd0 in __fdsync () from /usr/lib/libc.so.1
#1  0xfed5a2f8 in fsync () from /usr/lib/libthread.so.1
#2  0xfed5a2f8 in fsync () from /usr/lib/libthread.so.1

(gdb) thread 7
[Switching to thread 7 (Thread 1        )]#0  0xfed4da10 in _reap_wait_cancel ()
from /usr/lib/libthread.so.1

(gdb) bt
#0  0xfed4da10 in _reap_wait_cancel () from /usr/lib/libthread.so.1
#1  0xfed4fca4 in _thrp_join () from /usr/lib/libthread.so.1
#2  0xff33eb98 in ldap_pvt_thread_join (thread=4, thread_return=0x0) at
thr_posix.c:165
#3  0x00026404 in slapd_daemon () at daemon.c:2035
#4  0x00016970 in main ()

(gdb) thread 8
[Switching to thread 8 (Thread 2 (LWP 2))]#0  0xfee1edc0 in _signotifywait ()
from /usr/lib/libc.so.1

(gdb) bt
#0  0xfee1edc0 in _signotifywait () from /usr/lib/libc.so.1
#1  0xfed4e958 in _dynamiclwps () from /usr/lib/libthread.so.1
#2  0xfed51c34 in thr_yield () from /usr/lib/libthread.so.1

(gdb) thread 9
[Switching to thread 9 (Thread 3        )]#0  0xfee1f470 in _lwp_sema_wait ()
from /usr/lib/libc.so.1

(gdb) bt
#0  0xfee1f470 in _lwp_sema_wait () from /usr/lib/libc.so.1
#1  0xfed496e4 in _park () from /usr/lib/libthread.so.1
#2  0xfed493ac in _swtch () from /usr/lib/libthread.so.1
#3  0xfed4d9c0 in _reap_wait () from /usr/lib/libthread.so.1
#4  0xfed4d718 in _reaper () from /usr/lib/libthread.so.1
#5  0xfed5b024 in _thread_start () from /usr/lib/libthread.so.1
#6  0xfed5b024 in _thread_start () from /usr/lib/libthread.so.1

(gdb) thread 10
[Switching to thread 10 (Thread 4 (LWP 3))]#0  0xfee1fadc in yield () from
/usr/lib/libc.so.1

(gdb) bt
#0  0xfee1fadc in yield () from /usr/lib/libc.so.1
#1  0xff33ebe0 in ldap_pvt_thread_yield () at thr_posix.c:190
#2  0xff33d604 in ldap_pvt_thread_pool_destroy (tpool=0x1ada88, run_pending=1)
at tpool.c:376
#3  0x0002630c in slapd_daemon_task (ptr=0x0) at daemon.c:2007
#4  0xfed5b024 in _thread_start () from /usr/lib/libthread.so.1
#5  0xfed5b024 in _thread_start () from /usr/lib/libthread.so.1