-
Notifications
You must be signed in to change notification settings - Fork 291
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
N-API module causes segfault on node 12.13.1, runs fine on 12.13.0 #2398
Comments
@nodejs/platform-macos |
Since the crash happens in dyld, the dynamic linker, and the address is invalid, my hunch is that this is some kind of memory corruption that may have been dormant until now (i.e., it worked by accident until it didn't.) Is the backtrace always exactly the same? I suppose it's possible that nodejs/node@2764567f90 is responsible because that contains a change where libuv now loads CoreFoundation.framework eagerly (libuv/libuv@038eacfbf4, already reverted in libuv's v1.x branch because of regressions), which your code also depends on. You could try reverting that commit and see if it makes a difference. |
Hi @bnoordhuis, thanks for reaching out!
Yes, it is the same for 12.13.1, 12.14.0 and 12.14.1
Since I have not yet built node myself I could need a little help on this. |
There's a BUILDING.md in the source tarball that lists the prerequisites and steps but normally it's just a edit: but if you want to revert that commit, it's probably easier to |
@bnoordhuis I spent some time investigating on this issue yesterday evening. The issue persists up until node Rebuilding node You might take a look at this as well? |
@s1hofmann - looks like this issue can be closed now .please let me know if that is not the case |
@PoojaDurgad Yes, issue has been resolved. Closing. |
I'm experiencing a macOS specific problem in my N-API addon libnut, no problems on Linux and Windows.
Up until node v12.13.0 everything is working fine, but with any node version >= v12.13.1, running e.g. the example snippet below causes a segfault and exits (original issue).
Any help or hints would be appreciated!
index.js
No error:
nvm use 12.13.0 && node index.js
Segfault:
nvm use 12.13.1 && node index.js
Stacktrace:
The text was updated successfully, but these errors were encountered: