[Vm-dev] FFI exception failure support on Win64 (Win32 also?)
Eliot Miranda
eliot.miranda at gmail.com
Sat Aug 25 21:50:16 UTC 2018
On Sat, Aug 25, 2018 at 2:22 PM Eliot Miranda <eliot.miranda at gmail.com>
wrote:
> Hi Windows Experts,
>
> I'm trying to have the FFI exception failure support work across the
> board. What I see now is that the 64-bit StackVM works, while the 64-bit
> CogVM does not, even though they have exactly the same exception handling
> machinery in place (the new squeakExceptionHandler machinery; thank you
> whoever wrote it, it looks very nice), and the same essential architecture
> for jumping back into the interpreter.
>
> I expect the issue is that the machinery for maintaining a chain through
> the stack and/or the stack search used in exception delivery is broken my
> careless management of the C stack in the Cog VM, whereas in the StackVM
> the C stack remains undisturbed.
>
> To reproduce the crash in the Cog VM and the successful failure in the
> StackVM in an updated trunk image simply
> - load the FFI (script attached; it does a snapshot and quit)
> - run the example at the end of ExceptionInFFICallError's class comment
>
And curiously on 32-bits both StackVM and CogVM fail (but I'm running on
64-bit Windows so that might affect things; I hope not).
> Any help on debugging this appreciated.
> _,,,^..^,,,_
> best, Eliot
>
--
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180825/c309e42f/attachment-0001.html>
More information about the Vm-dev
mailing list