In function that is call from reference i'm creating HandleScope, but on it this line program crashes with this segfault.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff5f66700 (LWP 21828)]
0x00007ffff72bcff7 in v8::HandleScope::HandleScope() () from /usr/lib/libv8.so
(gdb) step
Single stepping until exit from function _ZN2v811HandleScopeC2Ev,
which has no line number information.
[Thread 0x7ffff5f66700 (LWP 21828) exited]
[Thread 0x7fffe77fe700 (LWP 21832) exited]
[Thread 0x7fffe7fff700 (LWP 21831) exited]
[Thread 0x7ffff4f64700 (LWP 21830) exited]
[Thread 0x7ffff5765700 (LWP 21829) exited]
[Thread 0x7ffff6767700 (LWP 21827) exited]
[Thread 0x7ffff7ff7700 (LWP 21826) exited]
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.