Segmentation fault (ferret/index.rb:394)


#1

/usr/lib64/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:394:
[BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [x86_64-linux]

Any idea ?


#2

patrick divan wrote:

/usr/lib64/ruby/gems/1.8/gems/ferret-0.11.6/lib/ferret/index.rb:394:
[BUG] Segmentation fault
ruby 1.8.6 (2008-08-11) [x86_64-linux]

Any idea ?

Anyone else have hints on this? I’ve looked around and the best I can
find
is to move to the ferret server which is when I started to get the
error.

I’m receiving the exact same error right down to the line number.
Which ends up being this line in ferret:
@searcher.search_each(query, options) do |doc, score|

I’m using the ferret_server already and have an index on one model:
acts_as_ferret :fields => [:description, :opportunity_title,
:tags_with_spaces],
:ferret => {:or_default => true, :analyzer =>
AfiAnalyzer.new },
:remote => true

My analyzer follows the format specified by:
http://wiki.github.com/jkraemer/acts_as_ferret/gotchas

Except that it doesn’t have the StopFilter:
class AfiAnalyzer < Ferret::Analysis::Analyzer
include Ferret::Analysis

def token_stream(field, text)
StemFilter.new(LowerCaseFilter.new(StandardTokenizer.new(text)))
end
end

The index gets updated via a rails app and via a cron job both which run
with the same user.
Patrick, any similarities?

Thanks,
reid