Support Node.js 9.x version by zhaoda · Pull Request #439 · node-ffi/node-ffi · GitHub
Skip to content

Support Node.js 9.x version#439

Merged
TooTallNate merged 1 commit into
node-ffi:masterfrom
zhaoda:patch-1
Dec 1, 2017
Merged

Support Node.js 9.x version#439
TooTallNate merged 1 commit into
node-ffi:masterfrom
zhaoda:patch-1

Conversation

@zhaoda

@zhaoda zhaoda commented Nov 23, 2017

Copy link
Copy Markdown
Contributor

No description provided.

addaleax pushed a commit to node-ffi-napi/node-ffi that referenced this pull request Nov 27, 2017
@bnoordhuis

Copy link
Copy Markdown

@TooTallNate TooTallNate merged commit 811ad02 into node-ffi:master Dec 1, 2017
@TooTallNate

Copy link
Copy Markdown
Member

Thanks! I'll take care of you suggestions @bnoordhuis

@alexeykuzmin

Copy link
Copy Markdown

@TooTallNate are you going to publish a new version with the Node.js 9 support?

@TooTallNate

TooTallNate commented Dec 7, 2017 via email

Copy link
Copy Markdown
Member

@bnoordhuis

Copy link
Copy Markdown

I had a real quick look and the crashes appear to be cif->arg_types and cif->rtype pointers pointing to invalid memory locations - sometimes 0, sometimes a random address.

From a quick reading of the source:

  1. the test creates a ffi.Callback object
  2. then drops the reference to said object
  3. calls gc() to reclaim the cif memory
  4. memory is written over while still in use by libffi

If it works with older node.js versions, that's probably purely accidental.

@hibiyasleep

hibiyasleep commented Feb 7, 2018

Copy link
Copy Markdown

Can you* release v2.2.1 of ffi with this PR included? (*edit: dear maintainers)

@brandonkirsch

Copy link
Copy Markdown

811ad02

This pull request seems to fix my build issue on Windows 7 + NWJS 0.28.1 (32-bit) + Visual Studio 2015.

Initial testing with some 3rd party DLLs seems to work.

@VishwasShashidhar

Copy link
Copy Markdown

Folks, it'll really help if the above mentioned fix is released. Thanks.

lukaskollmer added a commit to lukaskollmer/objc that referenced this pull request Feb 20, 2018
@VishwasShashidhar

VishwasShashidhar commented Jun 21, 2018

Copy link
Copy Markdown

@TooTallNate Can you please release this? We've been waiting for a long time now. We'll also need support for node 10.x, I'll create another issue for that.

kcrt pushed a commit to kcrt/node-ffi that referenced this pull request Jul 6, 2018
@berkon

berkon commented Oct 2, 2018

Copy link
Copy Markdown

@TooTallNate Can you please release this? We've been waiting for a long time now. We'll also need support for node 10.x, I'll create another issue for that.

A new release with this patch would be very helpful, because building native modules for Electron 3.x.x is currently broken!

@belloyang

belloyang commented Oct 30, 2018

Copy link
Copy Markdown

hi @berkon I encountered the same issue with my electron project. Do you happen to know of any workaround before this patch is released? Thank you

@berkon

berkon commented Oct 30, 2018

Copy link
Copy Markdown

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.

10 participants