On May 29, 2006, at 3:54 AM, Alexander Kluyev wrote:
(MacOS X 10.4.6 on Mac Intel Core Duo).
I've experienced "EXC_BAD_INSTRUCTION" exception calling
CFPreferencesCopyValue(...) API function.
Having traced this call I detected that the exception is raised by the
following instruction:
.....
0x90824daa movdqa [ebp - 0x28], xmm0
(within
_CFReadBytesFromFile internal procedure)
.....
in
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/
CoreFoundatio
n shared library (@0x90801000).
Here effective address of [ebp - 0x28] is not 16-aligned as
required for
SSE2 "movdqa" instruction.
You're right -- the stack is misaligned. This is almost certainly
one of three things:
-You have assembly code in the backtrace which is not maintaining a
16-byte aligned stack
-You're compiling with -mpreferred-stack-boundary=2 (4 is the default)
-A compiler bug
We're not aware of any compiler bugs in the area, so the first two
are more likely.
Hope this helps,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden