From: Joao Pedrosa Date: 2004-10-19T04:19:35+09:00 Subject: Re: segfault with Ruby 1.9 "nightly" Hi, > > > I couldn't reproduce it with 100,000 iteration. Can't you show > > > the stack trace? Upon further investigations, I came up with a patch to arrayfields which fixes the problem temporarily for me. Here it is: -------------- --- experimenting/arrayfields-3.4.0/lib/arrayfields.rb 2004-09-04 17:31:35.000000000 -0300 +++ /usr/local/lib/ruby/site_ruby/1.9/arrayfields.rb 2004-10-18 17:16:40.057722216 -0200 @@ -60,9 +60,14 @@ if @fieldset and (String === idx or Symbol === idx) pos = @fieldset.pos idx return nil unless pos - super(pos, *args) + i = pos else - super + i = idx + end + if args.size > 0 + super(i, *args) + else + super(i) end #}}} end -------------- I still don't know much about the problem. And I hope that this solution is good enough for me to keep going. :-) Cheers, Joao