On Feb 6, 2013, at 10:29 PM, Chris Hanson wrote:
> On Feb 4, 2013, at 11:26 AM, Seth Willits wrote:
>
>> Looking around the open source code for exec(), it appears EINVAL (22) can
>> be returned if the task was exec()'d when not called from a vfork()'d
>> process, with the comment /* If we're
On 2/4/13 8:26 PM, Seth Willits wrote:
[snip]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.Foundation0x978142d8
___NEW_PROCESS_COULD_NOT_BE_EXECD___ + 7
1 com.apple.Foundation0x976d2e16 -[NSConcreteTask
launchWithDictionary:] + 4698
2
On Feb 4, 2013, at 11:26 AM, Seth Willits wrote:
> Looking around the open source code for exec(), it appears EINVAL (22) can be
> returned if the task was exec()'d when not called from a vfork()'d process,
> with the comment /* If we're not in vfork, don't permit a mutithreaded task
> to exec
On Feb 5, 2013, at 10:39 AM, Seth Willits wrote:
>> Does your crash log show multiple threads? I would expect that the crash log
>> shows only one thread because NSTask called fork() already.
>
> Hmm. Yes, there's only one thread. I didn't notice that. That explains the
> crash (of the forked
> Does your crash log show multiple threads? I would expect that the crash log
> shows only one thread because NSTask called fork() already.
Hmm. Yes, there's only one thread. I didn't notice that. That explains the
crash (of the forked process) "instead of an exception," like you mentioned.
>
On Feb 4, 2013, at 11:26 AM, Seth Willits wrote:
> Exception Type: EXC_BREAKPOINT (SIGTRAP)
> Exception Codes: 0x0002, 0x
>
> *** NSTask: Task create for path
> '/Applications/App.app/Contents/Resources/mytask' failed: 22, "Invalid
> argument". Terminating temporary