[Xapian-discuss] Perl make test fails on threads in rhel5

Olly Betts olly at survex.com
Thu Nov 8 13:52:32 GMT 2007


On Thu, Nov 08, 2007 at 01:21:19PM +0000, Tim Brody wrote:
> ok 34 - check PositionIterator
> ok 35 - create TermIterator
> ok 36 - check TermIterator
> dubious
>        Test returned status 0 (wstat 11, 0xb)

Assuming that's a signal number, it died with a segmentation fault.

> DIED. FAILED tests 37-65
>        Failed 29/65 tests, 55.38% okay

The next test is trying to create a valueiterator from a document, which
was tested in 1.0.3.0 by document.t so it's not just that the wrapper
there is wrong (and the XS code and typemap look OK anyway).

The test script hasn't actually created any threads at that point, so I
wonder if this is unrelated to threads.

If you just comment out "use threads;" and the block of 4 lines lower
down where the threads are created and joined, does it still fail?

Do you get any problems reported if you run the test under valgrind?

Or perhaps run under gdb to get a backtrace from where the seg fault
happens.

Cheers,
    Olly



More information about the Xapian-discuss mailing list