gregbell/active_admin — Issue #1023: Running Test Suite causes Bus Error with yard
Author: MoritzMoritz
Created: 2012-02-16 13:02:34+00:00
State: open

Hi,
I am trying to contribute to the project.
When I run the tests I get the following Bus Error with yard. I tried it out with ruby 1.9.3 and ruby 1.9.2.
I can avoid the issue by commenting out the yard-gem in the Gemfile and the yard.rake-file.

$ rake test
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/yard-0.7.5/lib/yard.rb:38: [BUG] Bus Error
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]

-- control frame ----------
c:0023 p:---- s:0073 b:0073 l:000072 d:000072 CFUNC :callcc
c:0022 p:0080 s:0070 b:0070 l:0001c0 d:0001c0 TOP /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/yard-0.7.5/lib/yard.rb:38
c:0021 p:---- s:0067 b:0067 l:000066 d:000066 FINISH
c:0020 p:---- s:0065 b:0065 l:000064 d:000064 CFUNC :require
c:0019 p:0011 s:0061 b:0061 l:001c38 d:001c38 TOP /Users/mb/Projects/active_admin/tasks/yard.rake:1
c:0018 p:---- s:0059 b:0059 l:000058 d:000058 FINISH
c:0017 p:---- s:0057 b:0057 l:000056 d:000056 CFUNC :load
c:0016 p:0013 s:0053 b:0053 l:000eb0 d:000eb0 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25
c:0015 p:0032 s:0049 b:0049 l:000f20 d:000f20 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/default_loader.rb:6
c:0014 p:0106 s:0045 b:0045 l:000fa8 d:000fa8 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:569
c:0013 p:0306 s:0038 b:0038 l:001e08 d:001e08 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:508
c:0012 p:0009 s:0033 b:0033 l:001908 d:0001b8 BLOCK /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:82
c:0011 p:0009 s:0031 b:0031 l:001090 d:001090 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:133
c:0010 p:0011 s:0027 b:0027 l:001908 d:001908 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:81
c:0009 p:0019 s:0024 b:0024 l:000ee8 d:000188 BLOCK /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:65
c:0008 p:0009 s:0022 b:0022 l:001180 d:001180 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:133
c:0007 p:0011 s:0018 b:0018 l:000ee8 d:000ee8 METHOD /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:63
c:0006 p:0060 s:0015 b:0015 l:002118 d:002118 TOP /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/bin/rake:33
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC :load
c:0003 p:0127 s:0007 b:0007 l:001bf8 d:001930 EVAL /Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/bin/rake:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001bf8 d:001bf8 TOP
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/bin/rake:19:in `

'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/bin/rake:19:in `load'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/bin/rake:33:in `'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:508:in `raw_load_rakefile'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/application.rb:569:in `load_imports'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/default_loader.rb:6:in `load'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/Users/mb/Projects/active_admin/tasks/yard.rake:1:in `'
/Users/mb/Projects/active_admin/tasks/yard.rake:1:in `require'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/yard-0.7.5/lib/yard.rb:38:in `'
/Users/mb/.rvm/gems/ruby-1.9.2-p290@active_admin/gems/yard-0.7.5/lib/yard.rb:38:in `callcc'

-- C level backtrace information -------------------------------------------
0 libruby.1.9.1.dylib 0x000000010380451e rb_vm_bugreport + 110
1 libruby.1.9.1.dylib 0x00000001036f8533 report_bug + 259
2 libruby.1.9.1.dylib 0x00000001036f86a1 rb_bug + 161
3 libruby.1.9.1.dylib 0x000000010379afb2 sigbus + 18
4 libsystem_c.dylib 0x00007fff8435fcfa _sigtramp + 26
5 ??? 0x00007f934a645f90 0x0 + 140270585012112

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6