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

Re: (ITS#6853) slapadd/slapindex -q hang



dhawes@vt.edu wrote:
> On 03/04/2011 04:08 PM, hyc@symas.com wrote:
>> This indicates that the trickle task is still waiting for a signal on its
>> condition variable. Which is a bit odd since bdb_tool_entry_close() already
>> signals it before slap_tool_destroy() is called.
>>
>> It might be illuminating to run slapadd under gdb with a breakpoint on
>> bdb_tool_entry_close(), and singlestep through the first few lines of that
>> function where it issues the signal, and see if the trickle task actually
>> reacts or not.
>
> Setting a breakpoint on bdb_tool_entry_close() and then either
> continuing or stepping through the function allows slapadd to exit cleanly.

A fix for this is now in HEAD, please test.
   back-bdb/tools.c 1.140

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/