Benjamin Krause wrote:
tvtest.rb:16: [BUG] Segmentation fault
ruby 1.8.2 (2005-04-11) [i386-linux]

Aborted
same here with Ubuntu 6.10 / Ruby 1.8.4.
Same on cygwin / Ruby 1.8.5, BUT if I turn off garbage collection (GC.disable) it doesn't crash.

I think this is related to:

http://rubyforge.org/pipermail/ferret-talk/2007-February/002504.html

and others... which David said he is working on.

The following script always seems to die at the same point on my machine and may provide some extra insight.

require 'rubygems'
require 'ferret'

fields = Ferret::Index::FieldInfos.new
fields.add_field :text, :store => :no

#GC.disable

s = `man gcc`

ix = 0
s.scan(/./m) do |c|
 puts "#{ix}: #{c}"
 i = Ferret::I.new :field_infos => fields
 i << {:text => s[0..ix+=1]}
 tv = i.reader.term_vector(0, :text)
end

Dies on character 357 on my machine...

Cheers!
Patrick

_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to