2008年9月4日木曜日

CrashReporter of mac

Mac OS X has a system which send a bug report to apple. it's called CrashReporter.
Usually, developer can not get it because it's sent to apple directory.
thus, people implement that system by themself.

I, like all developers, want that system. We can get some entry to implement a hand-made CrashReporter. I got a sample code of Steve Gehrman. Previously, I wrote a flow of the code.
At this moment, I made a log for general knowledge of CrashReporter.

As a technical report say in http://developer.apple.com/jp/technotes/tn2004/tn2123.html, we can get hexadecimal addresses with exception tracebacks. a problem is how to change from hexadecimal to symbol. if you have a XCode, you can use "atos" but if a user doesn't, how do we get them?
to begin with, do we need symbols when a user have a crash?
generally speaking, hexadecimal address is enough because we can get symbol at local circumstance.
so, what we have to do is getting tracebacks of the crash.

i will write details later.

0 件のコメント: