• 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: Increasing your app's stack size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Increasing your app's stack size


  • Subject: Re: Increasing your app's stack size
  • From: Jack Repenning <email@hidden>
  • Date: Wed, 19 Sep 2007 14:51:42 -0700

On Sep 19, 2007, at 2:21 PM, Mark Thomas wrote:

But looking at this technote it should possible ? - but at the minute this
is a hunch, it there a way to tell from a crash log it's this issue.


Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0

Thread 0 Crashed:
0 com.apple.CoreFoundation 0x93235834 CFURLCopyAbsoluteURL + 80
..
...
175 com.bt.220v 0x00007cb0 start + 56


That's consistent with a stack overflow; for example, the program below crashes with GDP reporting EXC_BAD_ACCESS (after 262071 frames ... don't single-step this at home, kids! ;-). But you only show 175 frames, which is really not very many. My program has really tiny frames, of course, and yours might conceivably have frames fat enough to exhaust available space so quickly, but it seems quite unlikely.

Do you have any info about this URL that's being CopyAbsoluted? Is it something you provided? Maybe it's malformed.





-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#include <stdio.h>

void something(int frame) {
    something(frame+1);
}

int main (int argc, const char * argv[]) {
    // insert code here...
    printf("Hello, World!\n");
    something(0);
    return 0;
}
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

-==-
Jack Repenning
Chief Technology Officer
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
office: +1 650.228.2562
mobile: +1 408.835.8090
raindance: +1 877.326.2337, x844.7461
aim: jackrepenning
skype: jrepenning




_______________________________________________ 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: 
 >Re: Increasing your app's stack size (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: guardmalloc with no frame pointers...
  • Next by Date: Re: Increasing your app's stack size
  • Previous by thread: Re: Increasing your app's stack size
  • Next by thread: Re: Increasing your app's stack size
  • Index(es):
    • Date
    • Thread