[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Patch callback thunkEntry to not optimize (#353)

Guille Polito notifications at github.com
Wed Jan 16 11:14:36 UTC 2019


O2 and O1 compilation produce a segmentation fault due to stack corruption (when debugging we saw some extra pushes from the stack) on callbacks return. This happens on windows 32, when compiling with mingw gcc 7.4.0.

The issue can be reproduced easily by running the Alien qsort example in latest vms in both Pharo and Squeak.

This PR proposes to patch just the thunkEntry function. Not optimizing just that function solves the issue in our environment, though maybe there is a more fine-grained solution. We should still investigate what is the particular optimization that causes the problem.
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/353

-- Commit Summary --

  * Patch callback thunkEntry to not optimize, failing in win32 using gcc 7.4.0

-- File Changes --

    M platforms/Cross/plugins/IA32ABI/ia32abicc.c (2)

-- Patch Links --

https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/353.patch
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/353.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/353
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20190116/a68d48c3/attachment.html>


More information about the Vm-dev mailing list