• 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: Question about the C++ backtrace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about the C++ backtrace


  • Subject: Re: Question about the C++ backtrace
  • From: Fritz Anderson <email@hidden>
  • Date: Tue, 29 Nov 2011 07:27:00 -0600

On 28 Nov 2011, at 7:39 PM, William Squires wrote:

int  offset        = 0;
sscanf(strs[i], "%*d %s %*s %s %*s %d", &moduleName,
   &functionSymbol, &offset);

This should give a booboo - You have 6 % specifiers, but only three arguments being passed to conform. This'll almost assuredly screw the pooch (stack pointer)!

I wondered about that myself, but before saying anything, I typed "man sscanf" in a Terminal window.

* specifiers skip inputs.

β€” F

 _______________________________________________
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: 
 >Question about the C++ backtrace (From: 成 ε˜‰δΌŸ <email@hidden>)
 >Re: Question about the C++ backtrace (From: William Squires <email@hidden>)

  • Prev by Date: Re: Question about the C++ backtrace
  • Next by Date: Re: [SOLVED] Debugging ARC app on Snow Leopard
  • Previous by thread: Re: Question about the C++ backtrace
  • Next by thread: Debugging ARC app on Snow Leopard
  • Index(es):
    • Date
    • Thread