#987: NSTask segfault -----------------------------+---------------------------------------------- Reporter: lp@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: segfault NSTask -----------------------------+---------------------------------------------- Comment(by lsansonetti@…): {{{ (gdb) bt #0 create_intersected_charset_table [inlined] () at /Users/lrz/src /macruby-trunk/string.c:5157 #1 0x00000001000b826f in rstr_count (str=17191007168, sel=0x7fff86f4c4a8, argc=1884185952, argv=<value temporarily unavailable, due to optimizations>) at string.c:5226 #2 0x00007fff82ae1e8a in -[NSConcreteTask launchWithDictionary:] () #3 0x00007fff82aeb7f4 in +[NSTask launchedTaskWithLaunchPath:arguments:] () }}} It's crashing because the arguments: parameter is supposed to be an Array. Here, a RubyString is passed, so Cocoa tries to call #count on it. However, as #count is a core method, it can't be called from Objective-C. -- Ticket URL: <http://www.macruby.org/trac/ticket/987#comment:1> MacRuby <http://macruby.org/>