I’ve been developed this app https://github.com/ixmaps/ixnode which is based on Electron and uses raw-sockets-ng, which is compiled with node-gyp.
The app works fine, but then after an indeterminate amount of time (usually less than a minute) it will crash with a kernel error message like this (on Ubuntu):
[1833014.920238] electron: segfault at 0 ip 00007f0d978e0510 sp 00007ffdf74e8b10 error 4 in libnode.so[7f0d97402000+e84000]
On Darwin it crashes more quickly.
It does not crash if a trace is never executed, so it has something to do with the event loop, but after execution crashes don’t seem connected to any event (it may crash some time after all events are finished).
Any solutions or starting points to solve this would be sincerely appreciated. The starting point for the browser instance is https://github.com/ixmaps/ixnode/blob/master/app/index.js and the browser window is /ixmaps/ixnode/blob/master/src/js/frontend.js