testRAMDirectorySize doesn't hang - it just crashes with heap corruption. I
didn't test with Release build, but I see no reason why this should matter.
Here's the stack trace:
msvcr80d.dll!free(void * pUserData=0x01560378) Line 1178 + 0xb bytes
C++
>
> clucene-cored.dll!lucene::util::ArrayBase<lucene::index::DocumentsWriter::Posting
> *>::deleteArray() Line 53 + 0xf bytes C++
clucene-cored.dll!lucene::util::ObjectArray<lucene::index::DocumentsWriter::Posting>::deleteUntilNULL()
Line 150 C++
clucene-cored.dll!lucene::index::DocumentsWriter::~DocumentsWriter()
Line 129 C++
clucene-cored.dll!lucene::index::DocumentsWriter::`scalar deleting
destructor'() + 0x16 bytes C++
clucene-cored.dll!lucene::index::IndexWriter::closeInternal(bool
waitForMerges=true) Line 541 + 0x2e bytes C++
clucene-cored.dll!lucene::index::IndexWriter::close(bool
waitForMerges=true) Line 480 C++
cl_test.exe!testRAMDirectorySize(CuTest * tc=0x00e4cf40) Line 157 +
0xd bytes C++
The ObjectArray<Posting> is apparently the very same
DocumentsWriter.postingsFreeListDW, the issue we thought we solved already.
From the quick look I had, it seems as if now the array itself is being deleted
twice - probably as a result of a non-locking deletion from another thread.
Can you look into it?
Itamar.
On 28/7/2010 7:02 PM, Kostka Bořivoj wrote:
> I ported index\store\TestRAMDirectory.java into cl_test with following results
>
> - found (and fixed) one trivial bug in RAMDirectory constructor from char *
> path (setLockFactory was not called)
> - testRAMDirectorySize (in Debug build) hangs in attempt to report corrupted
> heap during IndexWriter close
> method uses intensive multithreaded indexing
>
> See intensive_testing branch for source code
>
> Borek
>
>
> ------------------------------------------------------------------------------
> 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://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> CLucene-developers mailing list
> [email protected]
> 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://p.sf.net/sfu/dev2dev-palm
_______________________________________________
CLucene-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clucene-developers