I have a crash report from our QA tester that I’m trying to reproduce/debug. I’m now going through the hoops to symbolicate the crash report.
Apple documentation says to drag the crash report into the Devices window in Xcode and it will symbolicate automagically. I see the crash report in the list but no symbols. It doesn’t happen possibly because the app wasn’t built on my local machine, it was built on our build server?? Yes, I also tried Resymbolicate, still no symbols.
OK, now I try to go the manual route, using atos. I put the sym file in the same directory as the executable and run:
atos -o /Path/to/my/executable 0x00000001006341f8
0x00000001006341f8 (in Chartcube)
Nothing.
I try some other addresses for another thread and I get seemingly good results:
atos -o Chartcube 0x000000010047cbe0
-[SChartDateFrequency setDefaults] (in Chartcube) + 32
So, it at least sort of works.
Maybe atos is confused for some reason, so I’ll try lldb to lookup this address:
(lldb) image lookup -v --address 0x000000010047cbe0
Address: Chartcube[0x000000010047cbe0] (Chartcube.__TEXT.__text + 4680612)
Summary: Chartcube`-[SChartDateFrequency setDefaults] + 32
Module: file = "/Path/to/my/executable, arch = "arm64"
This works too. How about the problematic address:
(lldb) image lookup -v --address 0x0000000100634488
Address: Chartcube[0x0000000100634488] (Chartcube.__TEXT.__objc_methname + 44672)
Summary: "re:TouchPoint:"
Module: file = "/Path/to/my/executable", arch = "arm64"
Uh oh, this looks like a completely bogus symbol. This is confirmed when I try another one:
(lldb) image lookup -v --address 0x0000000100633fd8
Address: Chartcube[0x0000000100633fd8] (Chartcube.__TEXT.__objc_methname + 43472)
Summary: "ickStyle"
Module: file = "/Path/to/my/executable", arch = "arm64"
There isn’t an offset into the symbol, and it’s showing an objc_methname which I believe is a selector. Why???
Looking at the address in the crash report I see:
16 Chartcube 0x0000000100634488 0x1000ec000 + 5538952
17 Chartcube 0x0000000100633fd8 0x1000ec000 + 5537752
Those are some suspiciously huge offsets which leads me to believe the stack might be borked, but who knows.
Anyone have ideas on why I’m not able to get correct symbols?
Thanks.
Doug Hill