[MacRuby-devel] [MacRuby] #693: 0.6 Abort traps caused by 'require' and 'framework' in that order

MacRuby ruby-noreply at macosforge.org
Wed May 5 14:11:06 PDT 2010


#693: 0.6 Abort traps caused by 'require' and 'framework' in that order
---------------------------------+------------------------------------------
 Reporter:  marick@…             |       Owner:  lsansonetti@…        
     Type:  defect               |      Status:  new                  
 Priority:  major                |   Milestone:                       
Component:  MacRuby              |    Keywords:                       
---------------------------------+------------------------------------------
 Here's a program:

 {{{
 require 'rubygems'
 gem 'test-unit'    # Note this is 2.0.7.
 require 'test/unit'
 framework 'Cocoa'
 }}}

 Much of the time (but not always), this fails with:

 {{{
 method dispatch is b0rked
 Abort trap
 }}}

 Sometimes it's this:

 {{{
 unknown: [BUG] Segmentation fault
 MacRuby version 0.6 (ruby 1.9.0) [universal-darwin10.0, x86_64]

 Abort trap
 }}}

 Sometimes it exits successfully.

 Here's a way to make it consistently exit successfully: put the "framework
 Cocoa" before the "gem test-unit".

 Another fun way to make it consistently exit successfully is to replace
 "require test/unit' with the *contents* of that file.

 Even though there's a simple workaround, I'm calling it "major" because
 the workaround is hard to find.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/693>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list