From: Gabriele Marrone Date: 2006-11-17T20:04:46+09:00 Subject: Re: failure in irb with rubycocoa (MAC OS X) On 17/nov/06, at 02:05, normanrosner@googlemail.com wrote: > That's what happened >>> require 'osx/cocoa' > /usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0/rubycocoa.bundle: [BUG] > Bus Error > ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] The first thing you should do is upgrading ruby: 1.8.2 is quite old. You can follow the Mac OS X instructions here: http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger That URL is even referenced by developer.apple.com. Anyway, under Cocoa SIGBUS is usually received when something tries to send messages to an object which has already been released. The following Objective C code: [myObject release]; [myObject someMessage]; is likely to produce a Bus Error signal (as long as nothing else retains myObject). So, if upgrading ruby doesn't actually fix the problem, there could be a bug of this kind within rubycocoa. (Finally Apple will release Objective C 2.0 with garbage collector along with Leopard! :)) -- Gabriele Marrone