At 10:13 AM 1/11/2007, kurt@OpenLDAP.org wrote:
Full_Name: Kurt Zeilenga Version: HEAD OS: FreeBSD 4 URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (71.80.218.136)
In current HEAD (as well as for the last couple of days), slapd(8) has been consistently (every time) been hanging on shutdown. For instance, when running test000, gdb shows:
thread apply all bt
Thread 2 (process 71085, thread 2): #0 0x28fc0197 in _thread_kern_sched () from /usr/lib/libc_r.so.4 #1 0x28fc09e5 in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4 #2 0x28fc296d in pthread_cond_timedwait () from /usr/lib/libc_r.so.4 #3 0x28fa959b in _thread_gc () from /usr/lib/libc_r.so.4 #4 0x28f824d8 in _thread_start () from /usr/lib/libc_r.so.4 #5 0x0 in ?? ()
Thread 1 (process 71085, thread 1): #0 0x28fc1914 in __sys_poll () from /usr/lib/libc_r.so.4 #1 0x28fc0df9 in _thread_kern_sched_state_unlock () from /usr/lib/libc_r.so.4 #2 0x28fc07ae in _thread_kern_scheduler () from /usr/lib/libc_r.so.4 #3 0x0 in ?? ()
The last few log messages are: daemon: shutdown requested and initiated. slapd shutdown: waiting for 0 threads to terminate slapd shutdown: initiated ====> bdb_cache_release_all slapd destroy: freeing system resources.
I suspect a recent (in the last week or so) is the cause...
I complete rebuild seems have cured this problem.
Kurt