Re: Crash during function prologue
Re: Crash during function prologue
- Subject: Re: Crash during function prologue
- From: Steve Christensen <email@hidden>
- Date: Sat, 6 Jan 2007 13:51:23 -0800
On Jan 6, 2007, at 9:35 AM, Jonas Maebe wrote:
On 06 Jan 2007, at 18:27, email@hidden wrote:
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.
Which means that you probably have declared about 0xfff7e130 bytes
worth of local variables in this function.
The stack should be allocating downward, so you'd expect a negative
value in r0, but it still means that he's allocating 0x81ed0 (532176)
bytes on the stack. Seems a bit excessive in terms of stack usage.
steve
_______________________________________________
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