• 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: -42 errors and GDB...grrrr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >-42 errors and GDB...grrrr (From: "Blair M. Burtan" <email@hidden>)

  • Prev by Date: Re: Linking 64 bit app against vDSP other Accelerate libraries?
  • Next by Date: Re: Where can I find a 10.2 sdk?
  • Previous by thread: -42 errors and GDB...grrrr
  • Next by thread: How to put image file inside the project?
  • Index(es):
    • Date
    • Thread