• 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: Stack overflow detection/Stack use over time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stack overflow detection/Stack use over time


  • Subject: Re: Stack overflow detection/Stack use over time
  • From: "Paul Sanders" <email@hidden>
  • Date: Thu, 1 Apr 2010 15:09:28 +0100

On 1 Apr 2010, at 8:52 AM, Guillaume Billard wrote:

> I don't know how these things work behind the scenes, but is
> there a simple way of diagnosing a stack overflow?

You could also try writing something like this to see if the
effect it creates in GDB mimics what you are seeing in your app:

void black_hole (int depth)
{
    black_hole (depth + 1);
}

Paul Sanders.



 _______________________________________________
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: 
 >Stack overflow detection/Stack use over time (From: Guillaume Billard <email@hidden>)
 >Re: Stack overflow detection/Stack use over time (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Stack overflow detection/Stack use over time
  • Next by Date: Re: Stack overflow detection/Stack use over time
  • Previous by thread: Re: Stack overflow detection/Stack use over time
  • Next by thread: Re: Stack overflow detection/Stack use over time
  • Index(es):
    • Date
    • Thread