site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Dec 13, 2009, at 3:54 PM, Chris Suter wrote:
On Sat, Dec 12, 2009 at 11:22 PM, Roger Pau Monné <royger@gmail.com> wrote:
Hello, I'm trying to run a simple application in Mac OS X 10.5.8 that uses ucontext system calls getcontext, makecontext and switchcontext. I know it works on Linux, but I haven't been able to run it in Mac OS X. The code is pretty simple, it just switches context from two functions: [snip]
Your stack isn’t big enough. It needs to be at least 32K.
Is that documented somewhere? The man pages don't mention it. <http://developer.apple.com/mac/library/qa/qa2005/qa1419.html> just says it must be a multiple of 4096 bytes.
You are aware that the ucontext stuff is deprecated on OS X, aren’t you?
What replaces them? What about signal handlers installed via sigaction that get passed a ucontext_t? Is that deprecated too? -- Steve Checkoway _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Steve Checkoway