Perform Single-Object Prelink and BAD ACCESS exceptions
Perform Single-Object Prelink and BAD ACCESS exceptions
- Subject: Perform Single-Object Prelink and BAD ACCESS exceptions
- From: Jon Hodgson <email@hidden>
- Date: Fri, 11 Jun 2010 14:07:33 +0100
Ok, so I have two versions of the same product, which are mostly identical.
They've been building quite happily on 3.1.4 and earlier versions of
XCode for quite a while now.
I build on 3.2.2, and one version crashes, with an EXC_BAD_ACCESS error
So I investigate
I find that the crash is happening in some assembler code, that hasn't
changed in years
in one bit of the nasm file I have
SECTION .data
coeffs_0 dd 0.13654762463195771, 0.036681502163648017
dd 0.13654762463195771, 0.036681502163648017
and another part of the same file, the line
movaps xmm1, [coeffs_0]
So, note that I am reading from an address which is within my own
code, in fact defined in the same file.
I step through at assembler level, and can confirm that bit assembled
correctly, and the address being pointed to contains the correct data.
BUT, one version gives an EXC_BAD_ACCESS exception, the other does not.
So I look at build settings, they are almost identical (as they should
be, I'm using config files for almost everything to keep consistency).
I do however notice one difference,
Perform Single-Object Prelink is set in the version that works, not
set in the one that doesn't.
Surely that can't be the problem? think I
But I try changing it anyway, just in case
Build
No exception
change it back, build
Exception
change it back, build
No exception
Ok, so that is causing it.
Meanwhile I have another machine still running XCode 3.1.4, I try it
on there, it makes no difference
Note, I'm using SDK 10.4 and GCC 4.0 as a result of that.
Anybody got any idea what's going on?
_______________________________________________
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