I experience the same problem, although it occurs on line 227, since the indexes are being created for the first time. Strangely enough, it works perfectly fine on my OSX Laptop, but it dies on our Fedora Core Linux server. The following is the error I get.
/var/www/project/config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:227: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [i386-linux] Aborted John Andrews wrote: > On 5/23/06, Jan Prill <[EMAIL PROTECTED]> wrote: >> >> sorry, I just realised that you already included the request in your mail. >> with 'me' and 'test' there should be no locale problems. If these are the >> strings you are actually using my previous mail won't be of much help... > > That's right. I have also tried longer strings with no strange > characters such as "accounts payable" and had the same result. > >> Have you tried to index something by using ferret without acts_as_ferret? I >> would encourage you to do so by following the short tutorial at >> http://ferret.davebalmain.com/api/files/TUTORIAL.html . By doing this >> you've eliminated a 'single point of failure' and you'll find out if it is a >> problem of your installation of ferret. > > I thought I had, but it must have been on my OSX machine. On the > machine in question (Fedora 5) I performed the steps from the > tutorial. Similar result; this time during search instead of insert: > irb(main):002:0> require 'rubygems' > => true > irb(main):003:0> require 'ferret' > => true > irb(main):004:0> include Ferret > => Object > irb(main):005:0> index = Index::Index.new > => #<Ferret::Index::Index:0xb7cd6524> > irb(main):006:0> index << "this is a new document to be indexed" > => #<Ferret::Index::Index:0xb7cd6524> > irb(main):007:0> index << ["and here", "is another", "new document", > "to index"]=> #<Ferret::Index::Index:0xb7cd6524> > irb(main):008:0> index << {:title => "Programming Ruby", :content => > "blah blah blah"} > => #<Ferret::Index::Index:0xb7cd6524> > irb(main):009:0> index << {:title => "Programming Java", :content => > "yada yada yada"} > => #<Ferret::Index::Index:0xb7cd6524> > irb(main):010:0> index.search "document" > (irb):10: [BUG] Segmentation fault > ruby 1.8.4 (2005-12-24) [i386-linux] > > So my problem lies within ferret. Any ideas what I should try from here? > Thanks for your help > -John -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

