#55: NSAppleScript#executeAndReturnError causes a SEGFAULT. -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@gmail.com | Owner: lsansonetti@apple.com Type: defect | Status: closed Priority: minor | Milestone: Component: MacRuby | Resolution: wontfix Keywords: bug | -------------------------------------+-------------------------------------- Changes (by lsansonetti@apple.com): * status: new => closed * resolution: => wontfix Comment: It looks like a bug in NSAppleScript, which doesn't work in GC mode. {{{ $ cat t.m #import <Foundation/Foundation.h> int main(void) { [[[NSAppleScript alloc] initWithSource:@"say \"hello world\""] executeAndReturnError:nil]; sleep(5); return 0; } $ gcc t.m -o t -framework Foundation -fobjc-gc $ ./t # boom }}} Doesn't reproduce when {{{-fobjc-gc}}} is omitted. I filed <rdar://problem/5958648> NSAppleScript crashes in GC mode -- Ticket URL: <http://ruby.macosforge.org/trac/ticket/55#comment:1> macruby <http://ruby.macosforge.org/>