• 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
Crash during function prologue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash during function prologue


  • Subject: Crash during function prologue
  • From: email@hidden
  • Date: Sat, 06 Jan 2007 09:27:06 -0800

I'm a relatively new Xcode user, and I'm running into a crash during the
function
prologue of one of my functions and I'm not quite sure how to go about
debugging
it. The last time I really looked at Assembly code was bout 20 years ago on
the 6502
in my old Apple IIe, so I'm more then a little rusty, but here's the
function up to the
point it crashes (this is PPC code, not x86):

0x0032cf10  <+0000>  mflr    r0
0x0032cf14  <+0004>  stmw    r29,-12(r1)
0x0032cf18  <+0008>  stw     r0,8(r1)
0x0032cf1c  <+0012>  lis     r0,-9
0x0032cf20  <+0016>  ori     r0,r0,57648
0x0032cf24  <+0020>  stwux   r1,r1,r0

The crash is at the stwux, it's an EXC_BAD_ACCESS. At that point r1 (that's
the stack
pointer, right?) is 0xf0080230 and r0 is 0xfff7e130. Adding those actually
overflows
32 bits, and the bad access is at 0xefffe360.

Looking at the Mac OS X ABI Function Call Guide, I figured the initial part
is saving
the return address, which looks correct. And the later stuff is setting up
the stack
frame. Since this is all compiler generated code though, I'm not sure where
I need to
start attacking this. Any thoughts? Thanks!

Ben Galanti

 _______________________________________________
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

  • Follow-Ups:
    • Re: Crash during function prologue
      • From: Lawrence Gold <email@hidden>
    • Re: Crash during function prologue
      • From: Chris Espinosa <email@hidden>
    • Re: Crash during function prologue
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Re: Debug breakpoints not firing!
  • Next by Date: Re: Crash during function prologue
  • Previous by thread: Re: Interface Builder
  • Next by thread: Re: Crash during function prologue
  • Index(es):
    • Date
    • Thread