Segmentation fault in node 0.12
I've got an segementation fault with ws0.7.1, development environment is list below: node.js 0.12, ws0.7.1,gcc 4.9.1 ubuntu x64 in vmware workstation
The same application runs successfully in centos 6.5, gcc 4.4.7;
The output in gdb is: Program received signal SIGSEGV, Segmentation fault. 0x00007fffef57af04 in BufferUtil::Mask(v8::FunctionCallbackInfov8::Value const&) () from /home/princ/workspace/nico-server/node_modules/pomelo/node_modules/pomelo-admin/node_modules/socket.io-client/node_modules/ws/build/Release/bufferutil.node
This doesn't seem to use the latest ws build. Can you post the output of your npm ls and the full npm install output?
https://github.com/NetEase/pomelo/blob/master/package.json#L31 - It's still using the old socket.io which doesn't depend on [email protected]. They should upgrade to the latest version of socket.io and engine.io-client should bump to https://github.com/Automattic/engine.io-client/blob/master/package.json#L26 0.7 as well.
I change the package.json of pomelo-admin, the output of segmentation fault is with ws 0.7.1
Provide a full output of the build and the output of npm ls.
npm ls:

build:

And the bt of gdb:
#0 0x00007fffef57b507 in BufferUtil::Mask(v8::FunctionCallbackInfo<v8::Value> const&) ()
from /home/princ/workspace/nico-server/node_modules/pomelo/node_modules/pomelo-admin/node_modules/socket.io-client/node_modules/ws/node_modules/bufferutil/build/Release/bufferutil.node
#1 0x000000000082a11c in v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) ()
#2 0x000000000084c1ff in v8::internal::Builtin_HandleApiCall(int, v8::internal::Object**, v8::internal::Isolate*) ()