[Xapian-discuss] xapian-tcpsrv throws "Error reading block" exceptions

Olly Betts olly at survex.com
Sun Jun 18 22:39:19 BST 2006


On Sat, Jun 17, 2006 at 01:13:58AM -0400, Rocco Caputo wrote:
> It seems to be coming from both the flint and quartz backends.

They currently share a lot of code, so that's not too suprising.
Or maybe it's the remote backend.

> I switched from flint to quartz and partly rebuild the database from
> scratch.  The error persists:
> 
> Exception: REMOTE:Error reading block 184743170: got end of file at
> Search.pm line 281.
> Exception: REMOTE:Error reading block 4050387271: File too large at
> Search.pm line 281.
> Exception: REMOTE:Error reading block 2298544404: File too large at
> Search.pm line 281.
> Exception: REMOTE:Error reading block 4279173661: File too large at
> Search.pm line 281.

Did you try my -fno-strict-aliasing suggestion?  Check if the perl
bindings are built with it, and if not make sure they are!

Other things to try:

* Run quartzcheck on the quartz database to see if it finds any corruption.

* Run xapian-tcpsrv under valgrind to see if it can find anything
  untoward going on.

Cheers,
    Olly



More information about the Xapian-discuss mailing list