I'm trying to to write some simpe test which produces the problem now.
It (probably) happens if thread calling _search finishes after related
IndexSearcher is deleted

Borek

> -----Original Message-----
> From: Itamar Syn-Hershko [mailto:ita...@code972.com]
> Sent: Monday, July 26, 2010 8:28 PM
> To: clucene-developers@lists.sourceforge.net
> Subject: Re: [CLucene-dev] Exception during thread finish
> 
> If you're sure this is not a race condition between your threads, try
> the atomicthreads branch. We fixed several threading errors there.
> Actually, if this resolves this issue, I might just go ahead and merge
> it to master and wait no more...
> 
> Itamar.
> 
> On 26/7/2010 3:51 PM, Kostka Bořivoj wrote:
> > I run the IndexSearcher::_search method from separate thread (different 
> > from thread
> where IndexSearcher is created and deleted).
> > When the thread finishes, I get exceptionin mutex_thread::lock() The reason 
> > is
> _internal is already deleted (contains 0xdddddddd).
> >
> > Any idea what could be wrong?
> >
> > Borek
> >
> > Call stack:
> >
> > clucene-sharedd.dll!lucene::util::mutex_thread::lock()  Line 50 + 0x5 bytes
>       C++
> > clucene-
> sharedd.dll!lucene::util::mutexGuard::mutexGuard(lucene::util::mutex_thread&
> rMutex={...})  Line 248       C++
> > clucene-cored.dll!lucene::util::_ThreadLocal::setNull()  Line 139 + 0x15 
> > bytes
>       C++
> > clucene-cored.dll!lucene::util::ThreadLocals::UnregisterThread()  Line 232
>       C++
> > clucene-cored.dll!lucene::util::_ThreadLocal::UnregisterCurrentThread()  
> > Line 210
>       C++
> > clucene-cored.dll!DllMain(unsigned short hinstDLL=0, unsigned long 
> > fdwReason=3,
> void * __formal=0x00000000)  Line 37  C++
> > clucene-cored.dll!__DllMainCRTStartup(void * hDllHandle=0x01010000, unsigned
> long dwReason=3, void * lpreserved=0x00000000)  Line 498 + 0x11 bytes C
> > clucene-cored.dll!_DllMainCRTStartup(void * hDllHandle=0x01010000, unsigned
> long dwReason=3, void * lpreserved=0x00000000)  Line 462 + 0x11 bytes C
> > ntdll.dll!_ldrpcallinitrout...@16()  + 0x14 bytes
> > ntdll.dll!_ldrshutdownthr...@0()  + 0xed bytes
> > kernel32.dll!_exitthr...@4()  + 0x3e bytes
> > msvcr80d.dll!_endthreadex(unsigned int retcode=0)  Line 414 C
> > msvcr80d.dll!_callthreadstartex()  Line 348 + 0x15 bytes    C
> > msvcr80d.dll!_threadstartex(void * ptd=0x0164fc80)  Line 331        C
> > kernel32.dll!_basethreadst...@8()  + 0x37 bytes
> >
> > ------------------------------------------------------------------------------
> > The Palm PDK Hot Apps Program offers developers who use the
> > Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> > of $1 Million in cash or HP Products. Visit us here for more details:
> > http://ad.doubleclick.net/clk;226879339;13503038;l?
> > http://clk.atdmt.com/CRS/go/247765532/direct/01/
> > _______________________________________________
> > CLucene-developers mailing list
> > CLucene-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/clucene-developers
> >
> >
> >
> 
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to