From: daz Date: 2004-08-10T11:49:47+09:00 Subject: Re: 1.8.2 preview bug? From: "Chad Fowler" > I haven't had time to really investigate this, but I've boiled it down > to a stupid repeatable test case. > $ cat mm.rb > class Bug > define_method("asdf") { > asdf > } > end > Bug.new.asdf > > $ /usr/local/bin/ruby -v mm.rb > ruby 1.8.2 (2004-07-29) [powerpc-darwin7.4.0] > ^CIllegal instruction > > It also seems to be an old problem: > > $ ruby -v mm.rb > ruby 1.8.1 (2003-12-25) [i686-linux] > Segmentation fault > > > Chad > I think this is what should happen (and _does_ on Windows). ----- ruby 1.8.0 (2003-05-15) [i386-mswin32] - and - ruby 1.9.0 (2004-06-25) [i586-bccwin32] ----- C:/TEMP/rbA082.TMP:3:in `asdf': stack level too deep (SystemStackError) from C:/TEMP/rbA082.TMP:2:in `asdf' from C:/TEMP/rbA082.TMP:3:in `asdf' from C:/TEMP/rbA082.TMP:2:in `asdf' from C:/TEMP/rbA082.TMP:3:in `asdf' from C:/TEMP/rbA082.TMP:2:in `asdf' from C:/TEMP/rbA082.TMP:3:in `asdf' from C:/TEMP/rbA082.TMP:2:in `asdf' from C:/TEMP/rbA082.TMP:3:in `asdf' ... 2746 levels... from C:/TEMP/rbA082.TMP:2:in `asdf' from C:/TEMP/rbA082.TMP:3:in `asdf' from C:/TEMP/rbA082.TMP:2:in `asdf' from C:/TEMP/rbA082.TMP:6 Same as with a def: class Bug def asdf asdf end end Bug.new.asdf # ... 1441 levels... :daz ____________________________________________________________________________ This email and all attachments have been scanned by Kingston Communications' email Anti-Virus service and no known viruses were detected. ____________________________________________________________________________