Issue #5224 has been updated by naruse (Yui NARUSE).

Status changed from Assigned to Closed

This is fixed in Ruby 1.9.3-p125.
----------------------------------------
Bug #5224: Yard seems to be crashing ruby.
https://bugs.ruby-lang.org/issues/5224#change-26461

Author: gf3 (Gianni Chiappetta)
Status: Closed
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: 
Target version: 
ruby -v: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.1]


Installing a gem, fails after install. Subsequent calls do not work (e.g. rake -T).


gianni at hera in ~/Projects/ruby/resort on master
$ gem install activerecord -v 3.1.0.rc6 
Fetching: builder-3.0.0.gem (100%)
Fetching: i18n-0.6.0.gem (100%)
Fetching: bcrypt-ruby-2.1.4.gem (100%)
Building native extensions.  This could take a while...
Fetching: activemodel-3.1.0.rc6.gem (100%)
Fetching: arel-2.2.1.gem (100%)
Fetching: activerecord-3.1.0.rc6.gem (100%)
Successfully installed activesupport-3.1.0.rc6
Successfully installed builder-3.0.0
Successfully installed i18n-0.6.0
Successfully installed bcrypt-ruby-2.1.4
Successfully installed activemodel-3.1.0.rc6
Successfully installed arel-2.2.1
Successfully installed activerecord-3.1.0.rc6
7 gems installed
/Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard.rb:38: [BUG] Bus Error
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.1]

-- control frame ----------
c:0019 p:---- s:0074 b:0074 l:000073 d:000073 CFUNC  :callcc
c:0018 p:0080 s:0071 b:0071 l:001ef0 d:001ef0 TOP    /Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard.rb:38
c:0017 p:---- s:0068 b:0068 l:000067 d:000067 FINISH
c:0016 p:---- s:0066 b:0066 l:000065 d:000065 CFUNC  :require
c:0015 p:0053 s:0062 b:0062 l:000bb8 d:000bb8 METHOD /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0014 p:0030 s:0055 b:0055 l:001128 d:001128 METHOD /Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard/rubygems/doc_manager.rb:5
c:0013 p:0080 s:0052 b:0052 l:000318 d:000318 METHOD /Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard/rubygems/doc_manager.rb:59
c:0012 p:0021 s:0049 b:0049 l:0026d8 d:0026d8 METHOD /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/doc_manager.rb:116
c:0011 p:0037 s:0046 b:0046 l:0019e0 d:000cf0 BLOCK  /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:148
c:0010 p:---- s:0043 b:0043 l:000042 d:000042 FINISH
c:0009 p:---- s:0041 b:0041 l:000040 d:000040 CFUNC  :each
c:0008 p:0200 s:0038 b:0038 l:0019e0 d:0019e0 METHOD /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147
c:0007 p:0076 s:0032 b:0032 l:001550 d:001550 METHOD /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278
c:0006 p:0193 s:0028 b:0028 l:000ee0 d:000ee0 METHOD /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147
c:0005 p:0013 s:0022 b:0022 l:000458 d:000458 METHOD /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117
c:0004 p:0178 s:0017 b:0017 l:0000f0 d:0000f0 METHOD /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65
c:0003 p:0164 s:0009 b:0009 l:001998 d:002370 EVAL   /Users/gianni/.rvm/rubies/ruby-1.9.2-p290/bin/gem:21
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001998 d:001998 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/bin/gem:21:in `<main>'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:65:in `run'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:117:in `run'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:147:in `process_args'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:278:in `invoke'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147:in `execute'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:147:in `each'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:148:in `block in execute'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/doc_manager.rb:116:in `generate_ri'
/Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard/rubygems/doc_manager.rb:59:in `install_ri_yard'
/Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard/rubygems/doc_manager.rb:5:in `load_yardoc'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/gianni/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard.rb:38:in `<top (required)>'
/Users/gianni/.rvm/gems/ruby-1.9.2-p290@resort/gems/yard-0.7.2/lib/yard.rb:38:in `callcc'

-- C level backtrace information -------------------------------------------
0   libruby.1.9.1.dylib                 0x0000000104ee74fe rb_vm_bugreport + 110
1   libruby.1.9.1.dylib                 0x0000000104ddb513 report_bug + 259
2   libruby.1.9.1.dylib                 0x0000000104ddb681 rb_bug + 161
3   libruby.1.9.1.dylib                 0x0000000104e7df92 sigbus + 18
4   libsystem_c.dylib                   0x00007fff93922cfa _sigtramp + 26
5   ???                                 0x00007fff649e2c40 0x0 + 140734881475648

[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



-- 
http://bugs.ruby-lang.org/