Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Win32 stdcall closure #465

Closed
wants to merge 1 commit into from
Closed

Conversation

larskanis
Copy link

@larskanis larskanis commented Jan 24, 2019

The stack pointer has been incorrectly restored after a closure call.

The issue came up at ruby-ffi: ffi/ffi#649

Patch by Alexander Mitin: #215 (comment)

Fixes #215

The stack pointer has been incorrectly restored after a closure call.

The issue came up at ruby-ffi: ffi/ffi#649

Patch by Alexander Mitin.

Fixes libffi#215
larskanis added a commit to larskanis/ffi that referenced this pull request Jan 24, 2019
This temporary switches to a forked libffi, until the fixing PR is merged:
  libffi/libffi#465

Use the following command to update the submodule:
  git submodule update --init --remote
larskanis added a commit to ffi/ffi that referenced this pull request Feb 18, 2019
This switches to a forked libffi, until the fixing PR is merged:
  libffi/libffi#465

Use the following command to update the submodule:
  git submodule update
Copy link
Member

@atgreen atgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that this may have been fixed with this commit: e1118af#diff-c4b0832c0aac7d71bfb338c67ef95028

Could you please verify?

@larskanis
Copy link
Author

@atgreen Unfortunately it is not fixed by the mentioned commit. Ruby-ffi still fails in the test here and here. As a side note: the new comment stack is not 16-bit aligned on Windows is obviously wrong since the alignment is based on bytes not bits.

@larskanis
Copy link
Author

Stdcall is fixed by a8efc2f , so this PR is obsolete.

@larskanis larskanis closed this Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

win32 x86 stdcall closure: incorrectly restored stack after closure call
2 participants