Re: ucontext switch problem
Re: ucontext switch problem
- Subject: Re: ucontext switch problem
- From: Steve Checkoway <email@hidden>
- Date: Sun, 13 Dec 2009 17:02:21 -0800
On Dec 13, 2009, at 3:54 PM, Chris Suter wrote:
> On Sat, Dec 12, 2009 at 11:22 PM, Roger Pau Monné <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden