[Xapian-devel] Problem indexing text with spelling enabled in Perl

Rusty Conover rconover at infogears.com
Wed Nov 14 00:38:53 GMT 2007

Hi All,

I'm using the TermGenerator::index_text() on version 1.0.4 with the  
FLAG_SPELLING turned on, because the new spelling suggestion stuff  
seems awesome, but I'm getting a segv.

(gdb) bt
#0  0xb7ae153c in Xapian::WritableDatabase::add_spelling  
(this=0xa553988, word=@0xbff97724, freqinc=1) at ./include/xapian/ 
#1  0xb7becf47 in Xapian::TermGenerator::Internal::index_text  
(this=0xa553970, itor=
       {p = 0xab2d69f " North Face Windwall 1 Jacket boys", end =  
0xab2d6c1 "", seqlen = 1}, weight=3, prefix=@0xbff977ac,  
     at queryparser/termgenerator_internal.cc:207
#2  0xb7bebf0c in Xapian::TermGenerator::index_text (this=0x9b12d68,  
itor=@0xbff9779c, weight=3, prefix=@0xbff977ac) at queryparser/ 
#3  0xb7c6b6d6 in XS_Search__Xapian__TermGenerator_index_text ()  
from /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/Search/ 
#4  0x080acc85 in Perl_pp_entersub ()
#5  0x080ab9ae in Perl_runops_standard ()
#6  0x08060ed0 in perl_run ()
#7  0x0805dc19 in main ()

It seems like there's a ref counting problem with the term, but its  
in C++ templates and I can't quite figure out what's wrong.

Any ideas to try?

I'm not quite yet re-subscribed to the list yet, but I'm working on  
it, so please reply directly for now.



More information about the Xapian-devel mailing list