[MacRuby] #693: 0.6 Abort traps caused by 'require' and 'framework' in that order
#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/>
#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: ---------------------------------+------------------------------------------ Comment(by lsansonetti@…): Cannot reproduce this. I installed the gem like this: {{{ $ sudo /usr/local/bin/macgem install test-unit --version '2.0.7' Successfully installed test-unit-2.0.7 1 gem installed }}} Then I tried running the snippet above: {{{ $ lrz$ cat t.rb require 'rubygems' gem 'test-unit' # Note this is 2.0.7. require 'test/unit' framework 'Cocoa' p 42 $ /usr/local/bin/macruby t.rb 42 Loaded suite t Started Finished in 0.034035 seconds. 0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 0% passed }}} I tried in a while [ 1 ] shell loop for about 10 minutes, it never crashed. Can someone test on 10.6.3? -- Ticket URL: <http://www.macruby.org/trac/ticket/693#comment:1> MacRuby <http://macruby.org/>
Works the same on 10.6.3, though I did get the Abort Trap error when I tried to install the test-unit gem with a version of MacRuby from trunk as of 2 days ago. As of tonight, it works fine though so someone must have fixed something.. :) - Jordan On May 10, 2010, at 9:28 PM, MacRuby wrote:
#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: ---------------------------------+------------------------------------------
Comment(by lsansonetti@…):
Cannot reproduce this. I installed the gem like this:
{{{ $ sudo /usr/local/bin/macgem install test-unit --version '2.0.7' Successfully installed test-unit-2.0.7 1 gem installed }}}
Then I tried running the snippet above:
{{{ $ lrz$ cat t.rb require 'rubygems' gem 'test-unit' # Note this is 2.0.7. require 'test/unit' framework 'Cocoa'
p 42 $ /usr/local/bin/macruby t.rb 42 Loaded suite t Started
Finished in 0.034035 seconds.
0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 0% passed }}}
I tried in a while [ 1 ] shell loop for about 10 minutes, it never crashed.
Can someone test on 10.6.3?
-- Ticket URL: <http://www.macruby.org/trac/ticket/693#comment:1> MacRuby <http://macruby.org/>
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Good to know! Do you still happen to have the crash log on your disk? I would be curious to know how/why it crashed... Laurent On May 10, 2010, at 9:30 PM, Jordan K. Hubbard wrote:
Works the same on 10.6.3, though I did get the Abort Trap error when I tried to install the test-unit gem with a version of MacRuby from trunk as of 2 days ago. As of tonight, it works fine though so someone must have fixed something.. :)
- Jordan
On May 10, 2010, at 9:28 PM, MacRuby wrote:
#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: ---------------------------------+------------------------------------------
Comment(by lsansonetti@…):
Cannot reproduce this. I installed the gem like this:
{{{ $ sudo /usr/local/bin/macgem install test-unit --version '2.0.7' Successfully installed test-unit-2.0.7 1 gem installed }}}
Then I tried running the snippet above:
{{{ $ lrz$ cat t.rb require 'rubygems' gem 'test-unit' # Note this is 2.0.7. require 'test/unit' framework 'Cocoa'
p 42 $ /usr/local/bin/macruby t.rb 42 Loaded suite t Started
Finished in 0.034035 seconds.
0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 0% passed }}}
I tried in a while [ 1 ] shell loop for about 10 minutes, it never crashed.
Can someone test on 10.6.3?
-- Ticket URL: <http://www.macruby.org/trac/ticket/693#comment:1> MacRuby <http://macruby.org/>
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Attached: On May 11, 2010, at 12:57 AM, Laurent Sansonetti wrote:
Good to know! Do you still happen to have the crash log on your disk? I would be curious to know how/why it crashed...
Laurent
On May 10, 2010, at 9:30 PM, Jordan K. Hubbard wrote:
Works the same on 10.6.3, though I did get the Abort Trap error when I tried to install the test-unit gem with a version of MacRuby from trunk as of 2 days ago. As of tonight, it works fine though so someone must have fixed something.. :)
- Jordan
On May 10, 2010, at 9:28 PM, MacRuby wrote:
#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: ---------------------------------+------------------------------------------
Comment(by lsansonetti@…):
Cannot reproduce this. I installed the gem like this:
{{{ $ sudo /usr/local/bin/macgem install test-unit --version '2.0.7' Successfully installed test-unit-2.0.7 1 gem installed }}}
Then I tried running the snippet above:
{{{ $ lrz$ cat t.rb require 'rubygems' gem 'test-unit' # Note this is 2.0.7. require 'test/unit' framework 'Cocoa'
p 42 $ /usr/local/bin/macruby t.rb 42 Loaded suite t Started
Finished in 0.034035 seconds.
0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 0% passed }}}
I tried in a while [ 1 ] shell loop for about 10 minutes, it never crashed.
Can someone test on 10.6.3?
-- Ticket URL: <http://www.macruby.org/trac/ticket/693#comment:1> MacRuby <http://macruby.org/>
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
#693: 0.6 Abort traps caused by 'require' and 'framework' in that order ---------------------------------+------------------------------------------ Reporter: marick@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: Component: MacRuby | Resolution: worksforme Keywords: | ---------------------------------+------------------------------------------ Changes (by lsansonetti@…): * status: new => closed * resolution: => worksforme Comment: Jordan was unable to reproduce this on 10.6.3, so I'm closing the bug... without any crash log it's impossible to make a diagnosis. -- Ticket URL: <http://www.macruby.org/trac/ticket/693#comment:2> MacRuby <http://macruby.org/>
participants (3)
-
Jordan K. Hubbard
-
Laurent Sansonetti
-
MacRuby