I have a C++ app using libssl.so.1.1 as a dependency, it runs correctly when I run it directly but when included via the .node binary I get a segmentation fault.
Tried to build with nan and node-addon-api, same error.
Is there some kind of conflict with the version of openssl in node versus the one I use as a dependency?
- Node Version: v8.9.4 and v9.6.1
- Platform: ubuntu:16.04
binding.gyp
{
"targets": [
{
"target_name": "nuclea",
"cflags!": [ "-fno-exceptions", "-std=gnu++0x" ],
"cflags_cc!": [ "-fno-exceptions", "-std=gnu++0x" ],
"cflags": [ "-std=c++14" ],
"cflags_cc": [ "-std=c++14" ],
"sources": [ "src/app.cc" ],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"link_settings": {
"libraries": [
"-lapp"
],
"ldflags": [
"-L<(module_root_dir)/libs"
]
},
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ]
}
]
}
Segfault
PID 1941 received SIGSEGV for address: 0x7f6d7735bbe0
/app/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x1b60)[0x7f6d85f23b60]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f6d88505390]
/app/libs/libssl.so.1.1(+0x269be0)[0x7f6d7735bbe0]
I have a C++ app using libssl.so.1.1 as a dependency, it runs correctly when I run it directly but when included via the .node binary I get a segmentation fault.
Tried to build with
nanandnode-addon-api, same error.Is there some kind of conflict with the version of openssl in node versus the one I use as a dependency?
binding.gyp
Segfault