[MacRuby] #962: Appscript framework causes EXC_BAD_ACCCESS error with MacRuby 0.7
#962: Appscript framework causes EXC_BAD_ACCCESS error with MacRuby 0.7 --------------------------------------+------------------------------------- Reporter: gabriel.gilder@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: appscript --------------------------------------+------------------------------------- Setup: 1. Build the Appscript framework from https://appscript.svn.sourceforge.net/svnroot/appscript/objc- appscript/trunk 2. Install the framework in /Library/Frameworks or ~/Library/Frameworks 3. Checkout macruby-appscript from https://appscript.svn.sourceforge.net/svnroot/appscript/macruby- appscript/trunk 4. cd to trunk and run `sudo macruby setup.rb` Steps to reproduce: 1. Start a new MacRuby Application project 2. Add the Appscript.framework to Frameworks 3. Add "require 'appscript'" to rb_main.rb 4. Build and run In MacRuby 0.7, the resulting error occurs: [Switching to process 39091] Running… Program received signal: “EXC_BAD_ACCESS”. sharedlibrary apply-load-rules all warning: Unable to restore previously selected frame. Data Formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.) And the debugger opens up with some kind of memory trace that makes no sense to me. :) It runs perfectly with MacRuby 0.6. Please let me know if I can provide any more information... thanks! -Gabriel -- Ticket URL: <http://www.macruby.org/trac/ticket/962> MacRuby <http://macruby.org/>
#962: Appscript framework causes EXC_BAD_ACCCESS error with MacRuby 0.7 --------------------------------------+------------------------------------- Reporter: gabriel.gilder@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: appscript --------------------------------------+------------------------------------- Comment(by gabriel.gilder@…): Oops, line breaks got stripped out... reposting for clarity. Setup: 1. Build the Appscript framework from https://appscript.svn.sourceforge.net/svnroot/appscript/objc- appscript/trunk [[BR]] 2. Install the framework in /Library/Frameworks or ~/Library/Frameworks[[BR]] 3. Checkout macruby-appscript from https://appscript.svn.sourceforge.net/svnroot/appscript/macruby- appscript/trunk [[BR]] 4. cd to trunk and run `sudo macruby setup.rb` Steps to reproduce:[[BR]] 1. Start a new MacRuby Application project[[BR]] 2. Add the Appscript.framework to Frameworks[[BR]] 3. Add "require 'appscript'" to rb_main.rb[[BR]] 4. Build and run In MacRuby 0.7, the resulting error occurs:[[BR]] [Switching to process 39091][[BR]] Running…[[BR]] Program received signal: “EXC_BAD_ACCESS”.[[BR]] sharedlibrary apply-load-rules all[[BR]] warning: Unable to restore previously selected frame.[[BR]] Data Formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.) And the debugger opens up with some kind of memory trace that makes no sense to me. :) It runs perfectly with MacRuby 0.6. -- Ticket URL: <http://www.macruby.org/trac/ticket/962#comment:1> MacRuby <http://macruby.org/>
#962: Appscript framework causes EXC_BAD_ACCCESS error with MacRuby 0.7 --------------------------------------+------------------------------------- Reporter: gabriel.gilder@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: appscript --------------------------------------+------------------------------------- Comment(by lsansonetti@…): Looks like an infinite #method_added loop is caused somehow. -- Ticket URL: <http://www.macruby.org/trac/ticket/962#comment:2> MacRuby <http://macruby.org/>
#962: Appscript framework causes EXC_BAD_ACCCESS error with MacRuby 0.7 --------------------------------------+------------------------------------- Reporter: gabriel.gilder@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: appscript --------------------------------------+------------------------------------- Comment(by lsansonetti@…): Here is a reduction of the bug: {{{7 class Module m = method(:method_added) define_method(:method_added) do |name| p :call_basic_method_added, name m.call(name) end end class Foo def test; end end }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/962#comment:3> MacRuby <http://macruby.org/>
#962: Appscript framework causes EXC_BAD_ACCCESS error with MacRuby 0.7 --------------------------------------+------------------------------------- Reporter: gabriel.gilder@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: appscript | --------------------------------------+------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.8 Comment: Should be fixed in r4812. -- Ticket URL: <http://www.macruby.org/trac/ticket/962#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby