From: kimura w. <ki...@us...> - 2005-09-22 13:10:59
|
Hi, Wed, 21 Sep 2005 23:56:07 +0100, Jonathan Paisley wrote: > >On 21 Sep 2005, at 23:36, Matt Mower wrote: > >> Irulan:~ matt$ irb -r osx/cocoa >> /opt/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.1.0/ >> rubycocoa.bundle: >> [BUG] Bus Error >> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.1.0] >> >> Abort trap >> Irulan:~ matt$ irb >> irb(main):001:0> require 'osx/cocoa' >> => true >> irb(main):002:0> >> >> MacOSX10.4.2, anyone? > >It's a bug in CoreFoundation that's triggered by the presence of >command line arguments. > >More detail in this message (posted by me :) and others in the thread >from ruby-talk: > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/142893 > >I *think* a workaround should be in 1.8.3. > I think so. This problem occurs with other extension libraries, too. It's a immediate solution by modification of "irb.rb" in {prefix}/lib/ruby/1.8, but this modification effects a bit initialization process of irb. ----- --- irb.rb.org 2005-04-20 04:24:56.000000000 +0900 +++ irb.rb 2005-09-22 21:45:11.000000000 +0900 @@ -49,9 +49,9 @@ # initialize IRB and start TOP_LEVEL irb def IRB.start(ap_path = nil) - $0 = File::basename(ap_path, ".rb") if ap_path IRB.setup(ap_path) + $0 = File::basename(ap_path, ".rb") if ap_path if @CONF[:SCRIPT] irb = Irb.new(nil, @CONF[:SCRIPT]) ----- -- kimura wataru |