<div dir="ltr">On Sat, Aug 25, 2018 at 2:22 PM Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Windows Experts,<div><br></div><div>    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.</div><div><br></div><div>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.</div><div><br></div><div>To reproduce the crash in the Cog VM and the successful failure in the StackVM in an updated trunk image simply </div><div>- load the FFI (script attached; it does a snapshot and quit)</div><div>- run the example at the end of ExceptionInFFICallError's class comment</div></div></blockquote><div><br></div><div>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).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Any help on debugging this appreciated.<br></div><div><div dir="ltr" class="m_-2608036624964153034gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>