Invoking some callback function twice leads to Segmentation fault: Nan
问题 I am writing C++ addon using nbind - GitHub link for most thing and Nan - GitHub link for calling callbacks asynchronous. When I invoke callback only once, it works perfect. But When I invoke callback twice it gives Segmentation fault (core dumped) . Couldn't find error using gdb . Here is JS and C++ codes(compiling using node-gyp configure build ): //main.js code var nbind = require('nbind'); var lib = nbind.init().lib; lib.HeaderExample.callJS(function(a) { console.log("result" + a); });