From: Šplíchal J. <spl...@to...> - 2012-04-13 07:25:07
|
Hi Ben, We are using slightly different version but I tested the issue with sources from origin/master and also from origin/vc6-fixes-working and the test crashes as described in all the cases - at least in debug version. But we found the issue when using release version. I am using VS2005 on Windows 7. Jiri From: Ben van Klinken [mailto:bva...@gm...] Sent: Friday, April 13, 2012 12:50 AM To: clu...@li... Subject: Re: [CLucene-dev] Bug in SegmentMerger and IndexWriter Hi Jiri, What branch are you using? I just tried compiling and running that test and it ran without any issues ben 2012/4/12 Šplíchal Jiří <spl...@to...<mailto:spl...@to...>> Hello, please find attached TestIndexWriter.cpp extended with one more test that shows two different bugs: 1) If you leave the test as it is, than it crashes on line 680 when optimizing an index that was previously empty (all documents were deleted) and then some documents has been added. We were able to fix this bug, the problem is in SegmentMerger.cpp 769 where reader->norms(fi->name, normBuffer.values); is called with normBuffer.values == NULL. To prevent this it is sufficient to initialize the normBuffer at the beginning of the method with length 1. 2) If you uncomment writer->optimize(); on line 660 in the test, than the following call to writer->close(); crashes. We have not found any solution for this issue where we could be sure about all consequences. But the problematic method in this case is bool IndexWriter::flushDocStores() which intializes a local variable files by calling: const std::vector<std::string>& files = docWriter->files(); but the following calls have as side effect modification of this vector in such way that the application crashes. Best Regards, Jiri ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ CLucene-developers mailing list CLu...@li...<mailto:CLu...@li...> https://lists.sourceforge.net/lists/listinfo/clucene-developers |