[KinoSearch] Segmentation fault
Alessandro Ranellucci
alex at primafila.net
Fri Nov 3 02:22:23 PST 2006
Hello,
I'm getting a segmentation fault after that only 710 documents have been
indexed. I'm using KinoSearch 0.13 and this is the code:
========
my $analyzer = KinoSearch::Analysis::PolyAnalyzer->new( language => 'it'
);
my $writer = KinoSearch::InvIndexer->new(
invindex => sprintf("%s/indexes", $Config{var}),
create => 1,
analyzer => $analyzer,
);
$writer->spec_field( name => 'msg_id', indexed => 0, analyzed => 0 );
$writer->spec_field( name => 'title', boost => 3 );
$writer->spec_field( name => 'post', stored => 1, vectorized => 1 );
$writer->spec_field( name => 'blogname', boost => 3 );
$writer->spec_field( name => 'url', indexed => 0, analyzed => 0 );
$writer->spec_field( name => 'date', indexed => 0, analyzed => 0 );
$writer->spec_field( name => 'lang', indexed => 1, analyzed => 0 );
while (my $post = $sth->fetchrow_hashref) {
my $doc = $writer->new_doc;
$doc->set_value( msg_id => $post->{id} );
$doc->set_value( title => $post->{title} );
$doc->set_value( post => $post->{body} );
$doc->set_value( blogname => $post->{blogname} );
$doc->set_value( url => $post->{url} );
$doc->set_value( date => $post->{post_date} );
$doc->set_value( lang => $post->{language} );
$writer->add_doc($doc);
}
$writer->finish;
========
This is gdb output:
Program received signal EXC_BAD_ACCESS, Could not access memory.
0x90004220 in free_list_remove_ptr ()
Also, last time I run this script (a few months ago) it worked. I'm
rebuilding my index from scratch because I noticed that new documents
were not being added to the index, although no error was thrown.
However, this is not the issue I'm reporting.
Marvin, any thoughts?
- alessandro.
More information about the kinosearch
mailing list