Hi,
I just installed via script/plugin from the stable svn tag. (Revision 54) I'm running Rails 1.1.2 and have Ferret 0.9.3 (with C extensions. no compilation problems)

I put together a simple model to test it and I'm getting a segfault.
The model:
class Report < ActiveRecord::Base
  acts_as_ferret :fields => [:title, :name]
end

$ script/console
Loading development environment.
>> a = Report.new :title => "test", :name => "me"
=> #<Report:0xb780db98 @attributes={"name"=>"me", "title"=>"test", "auto_update"=>true, "path"=>nil}, @new_record=true>
>> a.save
./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:466: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i386-linux]

vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:466 reads:
self.class.ferret_index << self.to_doc if @ferret_reindex
by inserting logger.debug statements I have been able to determine that self.to_doc isn't the problem so I think it must be segfaulting during the <<.

Does someone know if I have set up something improperly, or is this truly a bug?
Thanks,
John
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to