• 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: Mapping CrashReporter addresses to Obj-C method names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mapping CrashReporter addresses to Obj-C method names


  • Subject: Re: Mapping CrashReporter addresses to Obj-C method names
  • From: Glenn Andreas <email@hidden>
  • Date: Wed, 14 Apr 2004 15:20:00 -0500

Does anyone know how to map the addresses that appear in a CrashReporter log to their corresponding Objective-C method names? When a deployment-built application crashes (i.e. no debug symbols), the CrashReporter log contains lines like:

6 com.modeless.liquidledger 0x00022eac 0x1000 + 0x21eac
7 com.modeless.liquidledger 0x000304e0 0x1000 + 0x2f4e0
8 com.apple.Foundation 0x909f794c _nsnote_callback + 0xb0
9 com.apple.CoreFoundation 0x901aa7f0 __CFXNotificationPost + 0x1b4
10 com.apple.CoreFoundation 0x901af200 _CFXNotificationPostNotification + 0x340
11 com.apple.Foundation 0x909f5798 -[NSNotificationCenter postNotificationName:object:userInfo:] + 0x74

In order to determine the location of the crash, I need to first determine what "0x00022eac 0x1000 + 0x21eac" means (in line 6, for example). I can use "otool -ov" on the Mach-O executable (com.modeless.liquidledger) to show the implementation addresses of methods, but I'm not sure how the addresses in the CrashReporter log relate to the output of otool.

It is possible, but not obvious. 0x1000 is the start of your TEXT section (which is where most all of the application specific code lives), so if you can find all your method implementation addresses (which is also contained in the exectuable in a different section),if it says something like __TEXT+0x21eac then that would correspond to where it is crashing.



--
Glenn Andreas email@hidden mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Mapping CrashReporter addresses to Obj-C method names (From: Itrat Khan <email@hidden>)

  • Prev by Date: Re: Setting env vars from Cocoa with /bin/sh?
  • Next by Date: Re: Is there a ruled (row numbered) subclass to NSDocument?
  • Previous by thread: Mapping CrashReporter addresses to Obj-C method names
  • Next by thread: NSTextView White Space ...
  • Index(es):
    • Date
    • Thread