简体   繁体   中英

Bus Error - What causes this in Ruby?

I have run into this error 5 or 10 times over the past few years and have never found a clear answer to this problem. Here is the error:

$ rake db:migrate
/usr/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.5/lib/libxml_ruby.bundle: [BUG] Bus Error
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]

Abort trap

The app I am running this in is using RMagick.

I have run into this problem when installing ImageMagick a while ago, and when installing Nokogiri, and when installing MySQL. For Nokogiri it was because I needed a more recent version of libxml . What are your thoughts on this? Any fixes? How can I check the version of RMagick the project is loading?

I am on a Mac, 10.5.8.

Thanks for the help, Lance

I hit this issue running a worker in resque after upgrading Ruby from 1.8.6 to 1.8.7:

$ QUEUE=* rake resque:work (in /Users/kimball/pulse) /usr/local/lib/ruby/1.8/openssl/ssl-internal.rb:30: [BUG] Bus Error ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin9.8.0]

Abort trap

Found this, but pretty much just says upgrade to 1.9.1:

http://redmine.ruby-lang.org/issues/show/405

If anyone knows how to fix it in 1.8.7, I'd be grateful.

Kimball

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM