Segfault when running "require("gazebojs")"
I successfully step through the installation of gazebojs. However when I tried to run the test described on the official website I got
$ node
var gazebojs = require("gazebojs")
Segmentation fault (core dumped)
I'm not sure what can be the problem in this case. The installation message contains several warnings but didn't break the compilation process
$ npm install gazebojs || echo "Installation failed!"
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@2.0.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future
versions of Node.js
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> gazebojs@7.0.2 install /home/zisu/node_modules/gazebojs
> node-gyp rebuild
make: Entering directory '/home/usr/node_modules/gazebojs/build'
CXX(target) Release/obj.target/gazebo/GZPubSub.o
CXX(target) Release/obj.target/gazebo/PubSub.o
CXX(target) Release/obj.target/gazebo/GazeboPubSub.o
CXX(target) Release/obj.target/gazebo/json2pb.o
CXX(target) Release/obj.target/gazebo/ConfigLoader.o
CXX(target) Release/obj.target/gazebo/OgreMaterialParser.o
SOLINK_MODULE(target) Release/obj.target/gazebo.node
COPY Release/gazebo.node
make: Leaving directory '/home/usr/node_modules/gazebojs/build'
usr@1.0.0 /home/usr
└── gazebojs@7.0.2 extraneous
npm WARN usr@1.0.0 No description
npm WARN usr@1.0.0 No repository field.
Any feedback would be appreciated.
Updates:
I managed to traceback some error message. Here is the traceback log:
PID 14513 received SIGSEGV for address: 0x0
/home/usr/node_modules/segfault-handler/build/Release/segfault-handler.node(+0x2dce)[0x7f33bc45cdce]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f33c263e390]
/usr/local/lib/libprotobuf.so.15(_ZNK6google8protobuf5Arena17OnArenaAllocationEPKSt9type_infom+0x16)[0x7f33ad6741a6]
/usr/local/lib/libprotobuf.so.15(_ZN6google8protobuf5Arena18CreateMaybeMessageINS0_19FileDescriptorProtoEIEEEPT_PS1_DpOT0_+0x59)[0x7f33ad6d7dc9]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf11MessageLite14ParseFromArrayEPKvi+0xa8)[0x7f33ace6f038]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf25EncodedDescriptorDatabase3AddEPKvi+0x46)[0x7f33aceb81b6]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf14DescriptorPool24InternalAddGeneratedFileEPKvi+0x78)[0x7f33ace799b8]
/usr/lib/x86_64-linux-gnu/libprotobuf.so.9(_ZN6google8protobuf55protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eprotoEv+0x4c)[0x7f33acea848c]
/lib64/ld-linux-x86-64.so.2(+0x106ba)[0x7f33c2e9f6ba]
/lib64/ld-linux-x86-64.so.2(+0x107cb)[0x7f33c2e9f7cb]
/lib64/ld-linux-x86-64.so.2(+0x158e2)[0x7f33c2ea48e2]
/lib64/ld-linux-x86-64.so.2(+0x10564)[0x7f33c2e9f564]
/lib64/ld-linux-x86-64.so.2(+0x14da9)[0x7f33c2ea3da9]
/lib/x86_64-linux-gnu/libdl.so.2(+0xf09)[0x7f33c2429f09]
/lib64/ld-linux-x86-64.so.2(+0x10564)[0x7f33c2e9f564]
/lib/x86_64-linux-gnu/libdl.so.2(+0x1571)[0x7f33c242a571]
/lib/x86_64-linux-gnu/libdl.so.2(dlopen+0x31)[0x7f33c2429fa1]
/usr/lib/x86_64-linux-gnu/libuv.so.1(uv_dlopen+0x26)[0x7f33c2a5d156]
node(_ZN4node6DLOpenERKN2v820FunctionCallbackInfoINS0_5ValueEEE+0x104)[0xae0134]
node(_ZN2v88internal25FunctionCallbackArguments4CallEPFvRKNS_20FunctionCallbackInfoINS_5ValueEEEE+0xaa)[0x67741a]
node[0x69e940]
node[0x69ecbd]
[0x3dd15690963b]
Segmentation fault (core dumped)
add a comment