• 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: -[MyClass mySelector] + 99. How interpret "99"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[MyClass mySelector] + 99. How interpret "99"?


  • Subject: Re: -[MyClass mySelector] + 99. How interpret "99"?
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 17 Mar 2007 16:53:42 -0700
  • Thread-topic: -[MyClass mySelector] + 99. How interpret "99"?

On Mar 16 Fri 02:46:00 2007, Shawn Erickson wrote:

>> When my program crashes, I sometimes get a nice console printout like:
>>
>> -[MyClass mySelector] + 99
>>
>> How can I translate this to a line number?
>
> <http://developer.apple.com/technotes/tn2004/tn2123.html>
> <http://developer.apple.com/technotes/tn2004/tn2124.html>
> man atos

Shawn, these are certainly interesting documents and I learned several
tricks, but none of them say how to translate that '99' to a line number in
my source code.  The atos program in particular gives "the symbol...whose
corresponding range of addresses contains the specified address".  I
interpret that to mean "the function/method in which the crash occurred".
But I believe that we can get better granularity than that.

Some weeks ago, I was able to pinpoint the statement causing a rare crash by
adding a statement which did something stupid, causing a guaranteed crash,
compile/running it, noting the number in the crash report, then moving that
known-crash-causing statement and re-compil/running until the number in the
Crash Log was close to the number in the rare Crash Log.

But there must be a more intelligent way; obviously Apple supplies that
number to help us with this problem.  How can we use it?

Thanks again,

Jerry


 _______________________________________________
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

  • Follow-Ups:
    • Re: -[MyClass mySelector] + 99. How interpret "99"?
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: What's the feedback address again?
  • Next by Date: Re: -[MyClass mySelector] + 99. How interpret "99"?
  • Previous by thread: Re: What's the feedback address again?
  • Next by thread: Re: -[MyClass mySelector] + 99. How interpret "99"?
  • Index(es):
    • Date
    • Thread