'stack overflow' message for Darwin; host hooks
Dale Johannesen
dalej@apple.com
Mon Feb 10 20:28:00 GMT 2003
On Thursday, February 6, 2003, at 02:03 PM, Mike Stump wrote:
> On Thursday, February 6, 2003, at 12:54 PM, Geoffrey Keating wrote:
>>> I'm of two minds here. On the one hand, honoring the user's limits
>>> is
>>> a good thing; on the other hand, we know that the default stack limit
>>> is too low for us on Darwin and it seems to me that we ought not to
>>> make the user worry about that.
>>
>> It's too low for some highly atypical test cases, but in real
>> programs the limit is not a problem.
This is not always true; at least 3 users ran into it before we added
the Apple local call
to setrlimit that Mike refers to below.
> Then you'll want to remove the Apple local code that bumps it up
> automatically, then turn it loose on the community, and see if people
> like the result. I think I know the answer. I think the answer is,
> it is just way too low on darwin.
Yes, clearly this is a Darwin-specific problem. It seems to me having
the setrlimit call
on Darwin, but not elsewhere, is the right thing.
More information about the Gcc-patches
mailing list