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

Re: tpool cleanup?



Pierangelo Masarati writes:
> Another issue that's happening right now is that ldap_pvt_thread_exit()
> may be called even if no ldap_pvt_thread_pool_submit() was issued (e.g.
> try starting slapd and killing it before any operation is run); this
> causes the thread debug build to fail with
>
> slapd shutdown: waiting for 0 threads to terminate
> slapd stopped.
> thr_debug.c:619: ldap_pvt_thread_exit error: !threading_enabled is 1
> Abort (core dumped)

Since it did not crash on the !threading_enabled test in the
preceding ldap_pvt_thread_create(), I think that thread
must have done ldap_pvt_thread_exit() *after* slapd did
ldap_debug_thread_destroy() (which resets threading_enabled).

-- 
Hallvard