Re: determine whether an ancillary program/task can run
Re: determine whether an ancillary program/task can run
- Subject: Re: determine whether an ancillary program/task can run
- From: Jens Alfke <email@hidden>
- Date: Thu, 01 Sep 2011 15:29:40 -0700
On Sep 1, 2011, at 2:09 PM, Martin Wierschin wrote:
> The problem is that this ancillary program is sometimes Intel-only, or sometimes PPC-only, while the main application is Universal. The use of this ancillary program is not mandatory, so displaying an error message, or using a fallback solution is acceptable. The issue is that trying to run an ancillary program on an unsupported architecture triggers a hard crash:
Really?! That sounds like an OS bug. NSTask should just return some POSIX error code if it can’t launch the process. What OS version is this?
>>> Exception Type: EXC_BREAKPOINT (SIGTRAP)
>>> Exception Codes: 0x0000000000000001, 0x000000009030c0b0
>>> Crashed Thread: 0
>>>
>>> Application Specific Information:
>>> *** NSTask: Task create for path '.../Resources/mysubtool' failed: 86, "Bad CPU type in executable". Terminating temporary process.
>>> *** multi-threaded process forked ***
So, this says “Terminating temporary process”, which makes me think that this message/exception is coming from the forked process, not your app’s main process. GDB may be getting confused and treating this as though it were a crash in your app. If you run the app outside of Xcode (ie. from the Finder or a shell) does it crash?
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden