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

OpenLDAP 2.0 beta on NT

2.0 beta builds and compiles cleanly on NT (without sasl), but goes to 100%
cpu utilization after the first query, due to a tight loop in
ldap_int_thread_pool_wrapper. This is because of bugs in the pthread
emulation (thr_nt.c) - in ldap_pvt_thread_cond_wait the SignalObjectAndWait
call fails with an unchecked error of 'attempt to release mutex not owned by
caller' so no wait occurs.

The best solution I believe is to replace the existing pthread emulation
with pthreads-win32 (http://sources.redhat.com/pthreads-win32/) a high
quality open source emulation. Set 'HAVE_PTHREAD' and 'HAVE_PTHREADS_FINAL'
and use thr_posix.c rather than thr_nt.c (which can be removed.)


The information in this email is confidential and may be privileged.  The 
contents may not be disclosed, copied, printed, forwarded or disseminated, 
or used by anyone other than the addressee.   If you are not the intended 
recipient, please contact the sender of this e-mail.

Loot Group of Companies cannot accept any responsibility for the accuracy 
or completeness of this message as it has been transmitted over a public 
network.  If you suspect that the message may have been intercepted or 
amended please call the sender immediately.

LOOT, at your local newsagent and on the web at http://www.loot.com/