Below is the error I'm getting in segfault-handler. My node version is v0.10.25.
npm http 304 https://registry.npmjs.org/nan
[email protected] install /home/kaushik/gitRepo/scxml/node_modules/segfault-handler
node-gyp rebuild
gyp http GET https://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz
gyp http 200 https://nodejs.org/dist/v0.10.25/node-v0.10.25.tar.gz
gyp http GET https://nodejs.org/dist/v0.10.25/SHASUMS256.txt
gyp http 200 https://nodejs.org/dist/v0.10.25/SHASUMS256.txt
make: Entering directory /home/kaushik/gitRepo/scxml/node_modules/segfault-handler/build' CXX(target) Release/obj.target/segfault-handler/src/segfault-handler.o ../src/segfault-handler.cpp:61:30: error: ‘CopyablePersistentTraits’ is not a member of ‘v8’ v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback; ^ ../src/segfault-handler.cpp:61:30: note: suggested alternatives: In file included from ../node_modules/nan/nan.h:313:0, from ../src/segfault-handler.cpp:2: ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ struct CopyablePersistentTraits { ^ ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ ../src/segfault-handler.cpp:61:30: error: ‘CopyablePersistentTraits’ is not a member of ‘v8’ v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback; ^ ../src/segfault-handler.cpp:61:30: note: suggested alternatives: In file included from ../node_modules/nan/nan.h:313:0, from ../src/segfault-handler.cpp:2: ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ struct CopyablePersistentTraits { ^ ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ ../src/segfault-handler.cpp:61:67: error: wrong number of template arguments (2, should be 1) v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback; ^ In file included from /home/kaushik/.node-gyp/0.10.25/src/node.h:62:0, from ../node_modules/nan/nan.h:47, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:107:26: error: provided for ‘template<class T> class v8::Persistent’ template <class T> class Persistent; ^ ../src/segfault-handler.cpp:61:69: error: expected unqualified-id before ‘>’ token v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback; ^ ../src/segfault-handler.cpp:69:44: error: ‘CopyablePersistentTraits’ is not a member of ‘v8’ callback_args(v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback, void * const* stack, size_t stack_size, int signo, long addr) : ^ ../src/segfault-handler.cpp:69:44: note: suggested alternatives: In file included from ../node_modules/nan/nan.h:313:0, from ../src/segfault-handler.cpp:2: ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ struct CopyablePersistentTraits { ^ ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ ../src/segfault-handler.cpp:69:44: error: ‘CopyablePersistentTraits’ is not a member of ‘v8’ callback_args(v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback, void * const* stack, size_t stack_size, int signo, long addr) : ^ ../src/segfault-handler.cpp:69:44: note: suggested alternatives: In file included from ../node_modules/nan/nan.h:313:0, from ../src/segfault-handler.cpp:2: ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ struct CopyablePersistentTraits { ^ ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ ../src/segfault-handler.cpp:69:81: error: wrong number of template arguments (2, should be 1) callback_args(v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback, void * const* stack, size_t stack_size, int signo, long addr) : ^ In file included from /home/kaushik/.node-gyp/0.10.25/src/node.h:62:0, from ../node_modules/nan/nan.h:47, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:107:26: error: provided for ‘template<class T> class v8::Persistent’ template <class T> class Persistent; ^ ../src/segfault-handler.cpp:69:83: error: expected ‘,’ or ‘...’ before ‘>’ token callback_args(v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback, void * const* stack, size_t stack_size, int signo, long addr) : ^ ../src/segfault-handler.cpp:83:28: error: ‘CopyablePersistentTraits’ is not a member of ‘v8’ v8::Persistent<Function, v8::CopyablePersistentTraits<Function> > callback; ^ ../src/segfault-handler.cpp:83:28: note: suggested alternatives: In file included from ../node_modules/nan/nan.h:313:0, from ../src/segfault-handler.cpp:2: ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ struct CopyablePersistentTraits { ^ ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ ../src/segfault-handler.cpp:83:28: error: ‘CopyablePersistentTraits’ is not a member of ‘v8’ v8::Persistent<Function, v8::CopyablePersistentTraits<Function> > callback; ^ ../src/segfault-handler.cpp:83:28: note: suggested alternatives: In file included from ../node_modules/nan/nan.h:313:0, from ../src/segfault-handler.cpp:2: ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ struct CopyablePersistentTraits { ^ ../node_modules/nan/nan_persistent_pre_12_inl.h:129:8: note: ‘Nan::CopyablePersistentTraits’ ../src/segfault-handler.cpp:83:65: error: wrong number of template arguments (2, should be 1) v8::Persistent<Function, v8::CopyablePersistentTraits<Function> > callback; ^ In file included from /home/kaushik/.node-gyp/0.10.25/src/node.h:62:0, from ../node_modules/nan/nan.h:47, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:107:26: error: provided for ‘template<class T> class v8::Persistent’ template <class T> class Persistent; ^ ../src/segfault-handler.cpp:83:67: error: expected unqualified-id before ‘>’ token v8::Persistent<Function, v8::CopyablePersistentTraits<Function> > callback; ^ ../src/segfault-handler.cpp: In constructor ‘callback_helper::callback_args::callback_args(int)’: ../src/segfault-handler.cpp:70:5: error: class ‘callback_helper::callback_args’ does not have any field named ‘callback’ callback(callback), stack(backtrace_symbols(stack, stack_size)), stack_size(stack_size), signo(signo), addr(addr) { ^ ../src/segfault-handler.cpp:70:14: error: ‘callback’ was not declared in this scope callback(callback), stack(backtrace_symbols(stack, stack_size)), stack_size(stack_size), signo(signo), addr(addr) { ^ ../src/segfault-handler.cpp:70:66: error: invalid conversion from ‘char**’ to ‘void* const*’ [-fpermissive] callback(callback), stack(backtrace_symbols(stack, stack_size)), stack_size(stack_size), signo(signo), addr(addr) { ^ In file included from ../src/segfault-handler.cpp:22:0: /usr/include/execinfo.h:32:15: error: initializing argument 1 of ‘char** backtrace_symbols(void* const*, int)’ [-fpermissive] extern char **backtrace_symbols (void *const *__array, int __size) ^ ../src/segfault-handler.cpp:69:5: warning: ‘callback_helper::callback_args::stack_size’ is initialized with itself [-Winit-self] callback_args(v8::Persistent<Function, v8::CopyablePersistentTraits<Function> >* callback, void * const* stack, size_t stack_size, int signo, long addr) : ^ ../src/segfault-handler.cpp:69:5: warning: ‘callback_helper::callback_args::signo’ is initialized with itself [-Winit-self] ../src/segfault-handler.cpp:69:5: warning: ‘callback_helper::callback_args::addr’ is initialized with itself [-Winit-self] ../src/segfault-handler.cpp: In constructor ‘callback_helper::callback_helper(v8::Handle<v8::Function>)’: ../src/segfault-handler.cpp:88:5: error: ‘callback’ was not declared in this scope callback.Reset(isolate, func); ^ ../src/segfault-handler.cpp:94:59: error: invalid conversion from ‘void (*)(uv_async_t*) {aka void (*)(uv_async_s*)}’ to ‘uv_async_cb {aka void (*)(uv_async_s*, int)}’ [-fpermissive] uv_async_init(uv_default_loop(), handle, make_callback); ^ In file included from ../node_modules/nan/nan.h:46:0, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/uv/include/uv.h:1186:15: error: initializing argument 3 of ‘int uv_async_init(uv_loop_t*, uv_async_t*, uv_async_cb)’ [-fpermissive] UV_EXTERN int uv_async_init(uv_loop_t*, uv_async_t* async, ^ ../src/segfault-handler.cpp: In destructor ‘callback_helper::~callback_helper()’: ../src/segfault-handler.cpp:99:5: error: ‘callback’ was not declared in this scope callback.Reset(); ^ ../src/segfault-handler.cpp: In member function ‘void callback_helper::send(void* const*, size_t, int, long int)’: ../src/segfault-handler.cpp:107:46: error: ‘callback’ was not declared in this scope callback_args* args = new callback_args(&callback, stack, stack_size, signo, addr); ^ ../src/segfault-handler.cpp: In static member function ‘static void callback_helper::make_callback(uv_async_t*)’: ../src/segfault-handler.cpp:141:34: error: no matching function for call to ‘v8::HandleScope::HandleScope(v8::Isolate*&)’ v8::HandleScope scope(isolate); ^ ../src/segfault-handler.cpp:141:34: note: candidates are: In file included from /home/kaushik/.node-gyp/0.10.25/src/node.h:62:0, from ../node_modules/nan/nan.h:47, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&) HandleScope(const HandleScope&); ^ /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:473:3: note: no known conversion for argument 1 from ‘v8::Isolate*’ to ‘const v8::HandleScope&’ /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:448:3: note: v8::HandleScope::HandleScope() HandleScope(); ^ /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided ../src/segfault-handler.cpp:149:65: error: no matching function for call to ‘v8::Array::New(v8::Isolate*&, size_t&)’ Local<Array> argStack = Array::New(isolate, args->stack_size); ^ ../src/segfault-handler.cpp:149:65: note: candidate is: In file included from /home/kaushik/.node-gyp/0.10.25/src/node.h:62:0, from ../node_modules/nan/nan.h:47, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:1758:32: note: static v8::Local<v8::Array> v8::Array::New(int) V8EXPORT static Local<Array> New(int length = 0); ^ /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:1758:32: note: candidate expects 1 argument, 2 provided ../src/segfault-handler.cpp:151:24: error: ‘NewFromUtf8’ is not a member of ‘v8::String’ argStack->Set(i, String::NewFromUtf8(isolate, args->stack[i])); ^ ../src/segfault-handler.cpp:155:61: error: no matching function for call to ‘v8::Number::New(v8::Isolate*&, int&)’ Local<Value> argv[3] = {Number::New(isolate, args->signo), Number::New(isolate, args->addr), argStack}; ^ ../src/segfault-handler.cpp:155:61: note: candidate is: In file included from /home/kaushik/.node-gyp/0.10.25/src/node.h:62:0, from ../node_modules/nan/nan.h:47, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Number> v8::Number::New(double) V8EXPORT static Local<Number> New(double value); ^ /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:1377:33: note: candidate expects 1 argument, 2 provided ../src/segfault-handler.cpp:155:95: error: no matching function for call to ‘v8::Number::New(v8::Isolate*&, long int&)’ Local<Value> argv[3] = {Number::New(isolate, args->signo), Number::New(isolate, args->addr), argStack}; ^ ../src/segfault-handler.cpp:155:95: note: candidate is: In file included from /home/kaushik/.node-gyp/0.10.25/src/node.h:62:0, from ../node_modules/nan/nan.h:47, from ../src/segfault-handler.cpp:2: /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:1377:33: note: static v8::Local<v8::Number> v8::Number::New(double) V8EXPORT static Local<Number> New(double value); ^ /home/kaushik/.node-gyp/0.10.25/deps/v8/include/v8.h:1377:33: note: candidate expects 1 argument, 2 provided ../src/segfault-handler.cpp:158:42: error: ‘struct callback_helper::callback_args’ has no member named ‘callback’ Local<Function>::New(isolate, *args->callback)->Call(isolate->GetCurrentContext()->Global(), 3, argv); ^ ../src/segfault-handler.cpp:158:67: error: ‘class v8::Isolate’ has no member named ‘GetCurrentContext’ Local<Function>::New(isolate, *args->callback)->Call(isolate->GetCurrentContext()->Global(), 3, argv); ^ make: *** [Release/obj.target/segfault-handler/src/segfault-handler.o] Error 1 make: Leaving directory
/home/kaushik/gitRepo/scxml/node_modules/segfault-handler/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/kaushik/gitRepo/scxml/node_modules/segfault-handler
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! weird error 1
npm ERR! not ok code 0