Re: -42 errors and GDB...grrrr
Re: -42 errors and GDB...grrrr
- Subject: Re: -42 errors and GDB...grrrr
- From: Jim Ingham <email@hidden>
- Date: Wed, 14 Nov 2007 10:26:21 -0800
Can you file a bug about this with bugreporter.apple.com. gdb needs
to up the number of open files, since it opens lots of debug
information in various .o files, etc. But we should reduce that back
to the default when we fork to start your program. We already do some
other stuff like this (e.g. setting the group back to your user
group), so we can do this too. I can't think of anything else that we
do in gdb like this, so it looks like you were just unlucky...
Jim
On Nov 13, 2007, at 6:41 PM, Blair M. Burtan wrote:
Here's an interesting gotchya. I have an app that doesn't
gracefully handle
-42 Too Many Files Open errors by design i.e. An exception is thrown
but
just stops the app. Mind you this error NEVER occurred before it
was ported
to Mach-O. I could get the app to die when run normally but running
under
GDB, the app wouldn't throw the exception.
Turns out that normally the default number of open files allowed is
256 but
when an app is running in GDB it's RLIM_INFINITY (10240 to be exact).
Yeesh. What other nasty things are covered up by GDB?
Blair M. Burtan
Northern Lights Productions
www.northernlights3D.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Jim Ingham
Apple Developer Tools
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden