"magic numbers incorrect" error trying to use atos on i386 binary
"magic numbers incorrect" error trying to use atos on i386 binary
- Subject: "magic numbers incorrect" error trying to use atos on i386 binary
- From: Greg Hurrell <email@hidden>
- Date: Sat, 13 May 2006 10:40:29 +0200
I'm on a ppc machine and I'm trying to decipher a crash log sent by a
user running on i386. I'm using atos and unstripped copies of the
binary to try to translate from addresses to symbols. I have kept an
unstripped copy of the binary and used lipo so that I can extract the
ppc portion and the i386 portion depending on which type of
architecture produces the crash log.
The problem is that I get a vmutils error, "mach header magic numbers
incorrect in header", "atos cannot load symbols for the file",
whenever I try this on the i386 binary. Here is the commandline output:
$ atos -o i386_unstripped
2006-05-13 10:31:21.239 atos[1222] *** vmutils: mach header magic
numbers incorrect in header /Users/ghurrell/unstripped/i386_unstripped
atos cannot load symbols for the file i386_unstripped.
Apple's Technical Note 2123 (http://developer.apple.com/technotes/
tn2004/tn2123.html) says:
atos does not currently support a -arch command line option; for a
universal binary, it always works with the current architecture (r.
4086505). Until this limitation is lifted, if you need to do cross-
architecture address-to-symbol mapping, the best approach is to use
lipo to extract a temporary copy of the code for the relevant
architecture, and then run atos against that.
I understand from this that I should be able to use atos on a PowerPC
to convert i386 addresses to symbols, provided I have a stripped copy
of the binary for that architecture. Yet it's not working. Works fine
for the ppc portion of the executable. Do I have to set up an i386
machine in order to do this? Any suggestions? A Google search for
"mach header magic numbers incorrect in header" returns zero hits!
Cheers,
Greg
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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