#987: segfault when passing a string instead of array to NSTask.launchedTaskWithLaunchPath -----------------------------+---------------------------------------------- Reporter: lp@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: segfault when passing a string instead of array -----------------------------+---------------------------------------------- Changes (by eloy.de.enige@…): * keywords: segfault NSTask => segfault when passing a string instead of array Old description:
When executing thefollowing erroneous code, where arguments should be in an array:
framework "foundation" task = NSTask.launchedTaskWithLaunchPath("/bin/ls", arguments:"-l") p task.isRunning p task.standardOutput
I get: => Segmentation fault
New description: When executing the following erroneous code, where arguments should be an array: {{{ % macruby -e 'NSTask.launchedTaskWithLaunchPath("/bin/ls", arguments:"-l")' zsh: segmentation fault }}} -- Comment: @Laurent: I'm wondering though, shouldn't the BridgeSupport part of MR prevent the argument from being passed on at all? I.e. raise an exception? I was looking at the Foundation BS file and it seems that this method isn't even covered in Foundation.bridgesupport, just in FoundationFull.bridgesupport. Is that relevant in any way? -- Ticket URL: <http://www.macruby.org/trac/ticket/987#comment:2> MacRuby <http://macruby.org/>