#693: 0.6 Abort traps caused by 'require' and 'framework' in that order ---------------------------------+------------------------------------------ Reporter: mar...@… | Owner: lsansone...@… 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/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel