Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7560629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:57:10+00:00 2026-05-30T12:57:10+00:00

IIRC, this normally works. But recently I’ve noticed that NSAssert…() isn’t giving me stack

  • 0

IIRC, this normally works. But recently I’ve noticed that NSAssert…() isn’t giving me stack traces, or at least, not useful ones:

2012-02-26 14:41:19.283 MyApp[3299:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '…'
*** First throw call stack:
(0x33cc58bf 0x353e11e5 0x33cc57b9 0x317583b3 0x78423 0x76e35 0x77dbf 0x217dd 0x12c63 0x3178a943 0x33c99a63 0x33c996c9 0x33c9829f 0x33c1b4dd 0x33c1b3a5 0x3585bfcd 0x34d60743 0xde87 0x30dc)
terminate called throwing an exception(gdb) bt
#0  0x3629232c in __pthread_kill ()
#1  0x34b3ef5a in pthread_kill ()
#2  0x34b37fea in abort ()
#3  0x35fe9f6a in abort_message ()
#4  0x35fe734c in default_terminate ()
#5  0x353e12e2 in _objc_terminate ()
#6  0x35fe73c4 in safe_handler_caller ()
#7  0x35fe7450 in std::terminate ()
#8  0x35fe8824 in __cxa_rethrow ()
#9  0x353e1234 in objc_exception_rethrow ()
#10 0x33c1b544 in CFRunLoopRunSpecific ()
#11 0x33c1b3a4 in CFRunLoopRunInMode ()
#12 0x3585bfcc in GSEventRunModal ()
#13 0x34d60742 in UIApplicationMain ()
#14 0x0000de86 in main (argc=1, argv=0x2fdffaa4) at …/main.mm:18
(gdb) 

I read somewhere that using an iOS deployment target that Xcode doesn’t have symbols for causes this, and I did change the setting recently from 4.0 to 4.3. However, changing it back makes no difference.

OTOH, assert(…) works as expected.

Why isn’t Xcode providing a proper navigable stack trace when NSAssert…() fails?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:57:11+00:00Added an answer on May 30, 2026 at 12:57 pm

    I’m not sure why this is, but, if you set an exception breakpoint the breakpoint seems to stop execution early enough to see a useful backtrace. Once the breakpoint is hit bt in the console works as expected.

    enter image description here

    Make sure you don’t check the “Automatically continue after evaluating” box. That seems to result in a useless backtrace like the one you posted.

    You could also use NSSetUncaughtExceptionHandler() to set a logging callback function as described here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Google results on this one are a bit thin, but suggest that it is
I have old code that uses size_t which IIRC comes from cstring.h. On OS
What does x :: xs' mean? I dont have much functional experience but IIRC
I've recently having problems with custm CALLBACK's function pointers, and that boiled down into
Any (supported) way of doing this? IIRC it usually switches over by itself to
I'm having a serious brain fart over this but essentially i have a table
Edit Thanks for the suggestions; to clarify, we already use SSL, but that doesn't
Visual Studio 2008 SP1 (although IIRC, the behavior was present in 2005 as well)
I last used C professionally around 1997 IIRC. I've used a lot of C++
Back in 2000 (when .NET was unleashed upon us IIRC) it was an innovative

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.