From: Ronald Oussoren <ronaldoussoren@ma...> - 2006-06-14 05:55:57
On Wednesday, June 14, 2006, at 05:40AM, Bob Ippolito <bob@...> wrote:
>> Maybe you could add some kind of assertion to libffi so that it
>> checks the stack alignment on every function call? It'd be a lot
>> easier to find out what's wrong if it crashed every time the stack
>> was mangled instead of just when particular alignment sensitive SSE2
>> functions get called...
>Just an idea... the simplest thing that could possibly work is
>probably just to call movdqu in the ctypes stub function prolog when
>trying to debug this; fewer statements than any other "assert not
>stackptr & 0xF".
The last thing I tried last night was an assert of the stack alignment in ffi_closure_SYSV. That one is triggered around the time the crash should occur and seems be in a call to valueForKey:. I crashed soon afterwards and haven't investigated that further, this could well be a red herring. What is certain is that the asserts triggers some time after the last call to the adjust method.
I'll add asserts at more places when I have time to work on this again.
Get latest updates about Open Source Projects, Conferences and News.