Forum: Ferret test/functional/thread_safety_index_test.rb failures - segfa

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
John L. (Guest)
on 2007-01-28 03:59
(Received via mailing list)

I just checked out ferret 0.10.14 from subversion and am getting
intermittent failures from the thread_safety_index_test.rb script.

Sometimes it runs through to the end with no errors, but other times I
get errors, including segfaults.

I reported the bug here:

Can anyone else reproduce this?

svn co svn:// ferret-0.10.14
cd ferret-0.10.14
rake ext
ruby test/functional/thread_safety_index_test.rb

You'll need to run it a few times though (just the last line).
Sometimes it returns successful, sometimes it returns weird and random
test errors, and every so often it actually segfaults.

Additionally, I encountered problems running "rake ext" on a box that
already has Ferret 0.10.14 installed as a gem.  You may need to do this
on a box without Ferret already installed (or figure out why it fails to
build and fix it :)

I'm on Ubuntu Edgy.


John L. (Guest)
on 2007-01-28 21:58
(Received via mailing list)

I've tweaked the test script to almost guarantee a segfault now.  I've
also simplified it to try help rule out a few things.  It no longer
deletes or optimizes the index: just one thread for adding docs and one
thread for searching docs.

You'll need to drop it in the directory "test/functional/" in an
unpacked Ferret source package.

This topic is locked and can not be replied to.