-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Clang/llvm segfaults when using multiple C++ addons (was: error when using with websockets) #259
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
Comments
Hi James, are you using gcc 4.9? This might be related to a problem with the use of |
i'm on osx 10.9.5, and my gcc is llvm 6.0. removing the |
I've not be able to reproduce this locally on Linux with io.js v3.2.0 and compiling with gcc 5.1. I'll try to run a similar test using a Mac tomorrow. Given you're using llvm, are you able to run the app that segfaults via its |
i've never used lldb before, but here's the trace:
|
Thank you, the backtrace you've provided is very useful. The Function statics should be thread-safe by default however http://stackoverflow.com/questions/17623815/why-does-compile-order-sometimes-cause-a-segmentation-fault-when-using-stdmap has a suggestion to use an Initializer Function Trick. Give me a day or two to see if I can reproduce this problem consistently using clang/llvm. If so, this might require a change to the |
I can recreate this problem consistently using clang 6.0 (llvm 3.5) and io.js v3.2.0 with pretty much any two nan-based native modules that invoke a call to I think we've hit the same problem described in @kkoopa are you able to provide any suggestions or help? |
Remove https://github.com/lovell/sharp/blob/master/binding.gyp#L66 On Thursday 27 August 2015 05:40:56 Lovell Fuller wrote:
|
Thanks for the swift reply @kkoopa and great spot. The use of |
See also the related fsevents/fsevents#82 and possible fix nodejs/nan#431. |
@aeosynth This should be fixed on the |
works for me, thanks! |
app.js:
websockets/ws
also recently added support for iojs v3edit: this is using sharp master
The text was updated successfully, but these errors were encountered: