From: "Berger, Daniel" Date: 2007-11-17T06:32:49+09:00 Subject: Re: segfault in ostruct with 1.8.6, where to get help? > -----Original Message----- > From: Roger Pack [mailto:rogerpack2005@gmail.com] > Sent: Friday, November 16, 2007 1:16 PM > To: ruby-core@ruby-lang.org > Subject: Re: segfault in ostruct with 1.8.6, where to get help? > > run it in gdb, see if it gives you a better backtrace (?) try > to get a minimal test that violates it. GL! > > On Nov 16, 2007 8:11 AM, andrew taylor wrote: > > Hello folks, not sure if this is the right place... > > > > I am using alot of ostructs. Everything was fine with the > 1.8.5 I was > > using, but with 1.8.6 (p110) I see alot of segfaults... > > > > >> 0.upto(100) {|n| member.driver_process_member} > > /usr/lib/ruby/1.8/ostruct.rb:75: [BUG] Segmentation fault > ruby 1.8.6 > > (2007-09-23) [i686-linux] > > > > I do not have a small test case, but I can reproduce it. > > > > The line in question (ostruct:75) is just defining the > setting for a > > new method, does not seem like a big deal. > > > > Any advice for getting to the bottom of this? I'd hate to > go back to 1.8.5. I couldn't break it: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] require 'ostruct' o = OpenStruct.new 10000.times{ o.foo } "a".upto("zzz"){ |l| eval("o.#{l} = rand(5000)") } 10000.times{ o.aa; o.bb; o.cc } p o Worked fine. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.