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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
28c237c0c414b644082bfcde4e42b309?d=identicon&s=25 John Leach (Guest)
on 2007-01-28 02:59
(Received via mailing list)
Hi,

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: http://ferret.davebalmain.com/trac/ticket/153

Can anyone else reproduce this?

svn co svn://davebalmain.com/ferret/tags/REL-0.10.14/ 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.

Thanks,

John.
--
http://johnleach.co.uk
28c237c0c414b644082bfcde4e42b309?d=identicon&s=25 John Leach (Guest)
on 2007-01-28 20:58
(Received via mailing list)
Hi,

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.

http://johnleach.co.uk/downloads/ruby/ferret/threa...

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

John.
--
http://johnleach.co.uk
This topic is locked and can not be replied to.