[MacRuby] #151: [[MacRuby sharedRuntime] evaluateString:@"a"] crashes the application
#151: [[MacRuby sharedRuntime] evaluateString:@"a"] crashes the application ---------------------------------------+------------------------------------ Reporter: rakoth.lichlord@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ This obviously happens because the code to be evaluated contains an error - local variable '''a''' is undefined - but as I see in objc.m, '''evaluateString''' should throw an exception, not crash the app. GBD cannot catch this bug somehow, this is all I get: Cannot access memory at address 0x2444c75f -- Ticket URL: <http://www.macruby.org/trac/ticket/151> MacRuby <http://macruby.org/>
#151: [[MacRuby sharedRuntime] evaluateString:@"a"] crashes the application ---------------------------------------+------------------------------------ Reporter: rakoth.lichlord@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Resolution: Keywords: | ---------------------------------------+------------------------------------ Comment(by lsansonetti@apple.com): I cannot reproduce this problem with the EmbeddedMacRuby example. Could you share your code, or give a full threaded backtrace from GDB? -- Ticket URL: <http://www.macruby.org/trac/ticket/151#comment:1> MacRuby <http://macruby.org/>
#151: [[MacRuby sharedRuntime] evaluateString:@"a"] crashes the application ---------------------------------------+------------------------------------ Reporter: rakoth.lichlord@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ Comment(by rakoth.lichlord@…): I've checked EmbeddedMacRuby example and our code only differs in that you catch the exception yourself, while I expected that MacRuby framework would do that. No matter - it's great as it is, so please close this ticket, and thanks for those examples. -- Ticket URL: <http://www.macruby.org/trac/ticket/151#comment:2> MacRuby <http://macruby.org/>
#151: [[MacRuby sharedRuntime] evaluateString:@"a"] crashes the application ---------------------------------------+------------------------------------ Reporter: rakoth.lichlord@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.4 Component: MacRuby | Resolution: fixed Keywords: | ---------------------------------------+------------------------------------ Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.4 Comment: Excellent - closing. -- Ticket URL: <http://www.macruby.org/trac/ticket/151#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby