JJB Blog

Is rcov failing with a bus error? Here is the solution.

Is rcov failing with a bus error?

..../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:322: [BUG] Bus Error
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.8.0]

rake aborted!
Command failed with status (): [/usr/local/bin/ruby -Ilib:test -S rcov --t...]

This has been happening to me inconsistently for months and driving me crazy. The solution is to use the --no-rcovrt flag, which will not use the c binding and will make rcov run, according to the help page, “30 to 300 times slower”. A small price to pay for consistent test coverage reporting.

(I discovered the solution on this thread)


No Comments Yet


There are no comments yet. You could be the first!

Leave a Comment