[Xapian-devel] Re: [XapianBug 117] Invalid data in remote protocol
can cause buffer overflow
richard at lemurconsulting.com
Mon Apr 9 01:48:24 BST 2007
Olly Betts wrote:
> The issue is that a build with assertions enabled (mine has all enabled,
> but I've not tried just "partial" yet) when run under valgrind (so I
> suspect James' issue is different) just stalls on each test until the
> timeout happens. The command I'm running is this (from the "tests"
> ./runtest ./apitest -b remote
> I've had a poke around, and I can't see what's up. My guess is that
> there's a consistency check in the remote backend somewhere which
> runs really slowly under valgrind, or that valgrind's emulation of
> some syscall the remote backend uses is flawed. If anyone else has
> a similar build on a machine with valgrind, it would be interesting
> to know if it behaves the same way (I'm using x86_64 BTW).
My build (on an "Intel(R) Core(TM)2 CPU", so 32 bit linux), behaves the
same way. I've never seen it work with valgrind on the remote backend
actually - I just assumed it was too slow to work with the timeouts
enforced by the remote backend, and disabled valgrind for tests when
using the remote backend.
It would be rather good to fix this, though - now I know it's not the
expected behaviour, I'll look into it sometime if you don't fix it first!
More information about the Xapian-devel