[Vm-dev] FFI exception failure support on Win64 (Win32 also?)

Eliot Miranda eliot.miranda at gmail.com
Sat Aug 25 21:22:53 UTC 2018

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

Any help on debugging this appreciated.
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180825/fe3af14f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LoadFFI.st
Type: application/octet-stream
Size: 1667 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180825/fe3af14f/attachment.obj>

More information about the Vm-dev mailing list