[KinoSearch] Another minimal test case: File::Find causes crash

Marvin Humphrey marvin at rectangular.com
Tue Jun 5 20:13:42 PDT 2007


Edward,

Thanks for the report and for the test case.  It allowed me to  
isolate the problem quickly.

On Jun 5, 2007, at 8:25 AM, Edward Betts wrote:

> I'm running this with KinoSearch-0.20_03 from CPAN. It needs a
> reasonably big collection of files, like 50,000 of them.

The time to trigger the error was proportional the amount of material  
consumed.  Since you were only capturing titles, it took a while to  
reach the 16 MiB default threshold.  The flushing process happened to  
require opening a new file, and... kaboom.

> Error in function kino_FSFolder_open_outstream at
> c_src/KinoSearch/Store/FSFolder.c:56: Can't open '_1.skip': No such
> file or directory
>         at /home/edward/src/KinoSearch-0.20_03/blib/lib/KinoSearch/ 
> Index/SegWriter.pm

This happened because File::Find had changed the working directory  
and the relative path to the index was no longer valid.  Relative  
index paths get absolute-ified as of repository revision 2461,  
resolving the issue.

Cheers,

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/





More information about the kinosearch mailing list