# Segmentation fault (ferret/index.rb:394)

**URL:** <https://www.ruby-forum.com/t/segmentation-fault-ferret-index-rb-394/184524>\
**Category:** Ferret\
**Created:** [March 3, 2010, 10:16pm UTC](https://www.ruby-forum.com/t/segmentation-fault-ferret-index-rb-394/184524 "2010-03-03T22:16:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Post date:** [March 3, 2010, 10:16pm UTC](https://www.ruby-forum.com/t/segmentation-fault-ferret-index-rb-394/184524/1 "2010-03-03T22:16:26Z")

</div>

/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 ?

---

<div class="post-metadata">

**Author:** ![oldbug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/c0e974/32.png) [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Post date:** [May 5, 2010, 7:04am UTC](https://www.ruby-forum.com/t/segmentation-fault-ferret-index-rb-394/184524/2 "2010-05-05T07:04:09Z")

</div>

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](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
