Projects

Ticket #151 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[[MacRuby sharedRuntime] evaluateString:@"a"] crashes the application

Reported by: rakoth.lichlord@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby 0.4
Component: MacRuby Keywords:
Cc:

Description

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

Change History

Changed 3 years ago by lsansonetti@…

I cannot reproduce this problem with the EmbeddedMacRuby example. Could you share your code, or give a full threaded backtrace from GDB?

Changed 3 years ago 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.

Changed 3 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.4

Excellent - closing.

Note: See TracTickets for help on using tickets.