[Xapian-discuss] 100% relevant

Francis Irving francis at flourish.org
Sun Aug 22 12:48:31 BST 2004


On Sun, Aug 22, 2004 at 12:26:53AM +0100, Olly Betts wrote:
> > Does this explain the symptoms I'm seeing?
> 
> 0.8.0 had two bugs which could corrupt data in the Btree, but the Btree
> structure itself shouldn't have been affected.  Well, probably not.  One
> of the bugs involved accessing memory which had been released, but I
> think it was only read.  I've not seen this symptom before anyway.
> 
> > I think this is also a bug in Xapian.  One version shouldn't be able to read a
> > database made in another version and it appear corrupt.  It should give an
> > "incompatible version" error.
> 
> But 0.8.0 and 0.8.1 are meant to be *compatible* versions!  And indeed
> from what you've said, I think the database *is* corrupt, it doesn't
> just appear to be.

Well, it doesn't explain it ;(  Yoz has persuaded Search::Xapian to load the
correct libxapian.so in.  It still goes wrong in the same way before.  
Even though it is loading the right library (I've double checked this
with ktrace):

baked:~/fawkes/search$ ldd /usr/local/lib/perl5/site_perl/5.8.2/mach/auto/Search/Xapian/Xapian.so
/usr/local/lib/perl5/site_perl/5.8.2/mach/auto/Search/Xapian/Xapian.so:
        libxapianqueryparser.so.3 => /usr/local/lib/libxapianqueryparser.so.3 (0x28147000)
        libxapian.so.3 => /usr/local/lib/libxapian.so.3 (0x2815e000)
        libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x2833c000)
        libm.so.2 => /usr/lib/libm.so.2 (0x28381000)

Any other suggestions for debugging this?

Summary so far:
- On our server (FreeBSD), when making a database with the Perl bindings, it
comes out corrupted with all weightings having the value 0.
- With the same scripts, same version of Xapian, on my laptop it works fine.

I'm sure there is something wrong with the way stuff is installed...  But
I don't know how to work out what.

Francis



More information about the Xapian-discuss mailing list