• 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
"magic numbers incorrect" error trying to use atos on i386 binary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"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

  • Prev by Date: crash with Quicktime 7.1
  • Next by Date: Re: Miscellaneous XCode Questions
  • Previous by thread: crash with Quicktime 7.1
  • Next by thread: Re: "magic numbers incorrect" error trying to use atos on i386 binary
  • Index(es):
    • Date
    • Thread