• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask Explodes. Clueless.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask Explodes. Clueless.


  • Subject: Re: NSTask Explodes. Clueless.
  • From: Seth Willits <email@hidden>
  • Date: Tue, 05 Feb 2013 10:39:33 -0800

> 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.


> That in turn would suggest that the EINVAL is coming from somewhere else.
> NSTask's implementation might also be using fork() + posix_spawn() in your OS version. You should look for possible EINVAL errors from posix_spawn().

Looking at the manpage, EINVAL can be thrown because "The value specified by file_actions or attrp is invalid." I looked at both of those and both appear completely beyond my influence, so I don't know what could cause it.



--
Seth Willits






_______________________________________________

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

  • Follow-Ups:
    • Re: NSTask Explodes. Clueless.
      • From: Chris Hanson <email@hidden>
References: 
 >NSTask Explodes. Clueless. (From: Seth Willits <email@hidden>)
 >Re: NSTask Explodes. Clueless. (From: Greg Parker <email@hidden>)

  • Prev by Date: Re: What's the difference between [NSOperationQueue currentQueue] and performSelectorOnMainThread (iOS platform)
  • Next by Date: Do CALayer filters apply to non-image drawing?
  • Previous by thread: Re: NSTask Explodes. Clueless.
  • Next by thread: Re: NSTask Explodes. Clueless.
  • Index(es):
    • Date
    • Thread