This assertion indeed indicates that your are trying to use V8 from a thread that does not own an isolate.
You should get exclusive access to the isolate you are going to use with Locker: https://github.com/v8/v8/blob/master/include/v8.h#L3638 -- Vyacheslav Egorov On Fri, Jun 15, 2012 at 1:16 PM, Serega <[email protected]> wrote: > # > # Fatal error in ../src/isolate.h, line 440 > # CHECK(isolate != __null) failed > # > > Program received signal SIGTRAP, Trace/breakpoint trap. > [Switching to Thread 0x7ffff4d56700 (LWP 8551)] > v8::internal::OS::DebugBreak () at ../src/platform-linux.cc:389 > 389 } > (gdb) step > v8::internal::OS::Abort () at ../src/platform-linux.cc:373 > 373 abort(); > (gdb) step > > Program received signal SIGABRT, Aborted. > 0x00007ffff6cbd445 in raise () from /lib/x86_64-linux-gnu/libc.so.6 > (gdb) step > Single stepping until exit from function raise, > which has no line number information. > [Thread 0x7ffff4d56700 (LWP 8551) exited] > [Thread 0x7fffef7fe700 (LWP 8552) exited] > [Thread 0x7fffeffff700 (LWP 8550) exited] > [Thread 0x7ffff5d58700 (LWP 8548) exited] > [Thread 0x7ffff6559700 (LWP 8547) exited] > [Thread 0x7ffff7ff7700 (LWP 8546) exited] > [Thread 0x7ffff7fd5740 (LWP 8519) exited] > > Program terminated with signal SIGABRT, Aborted. > The program no longer exists. > > Thank you! > One Question more, can you show example, how to isolate v8? > > On 15 июн, 13:38, Vyacheslav Egorov <[email protected]> wrote: >> Hello, >> >> Please link against debug version of V8 to get more information about the >> crash. >> >> Also ensure that the thread that invokes your even_handler owns V8 >> Isolate if you have multiple threads using V8 concurrently. >> >> -- >> Vyacheslav Egorov >> >> >> >> >> >> >> >> On Fri, Jun 15, 2012 at 8:28 AM, Serega <[email protected]> wrote: >> > Hellow! I'm having a little trouble. >> >> > 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. >> >> > Why i can't create HandleScope in function that is runing thrue >> > pointer? >> >> > void *event_handler(...) { >> >> > HandleScope handle_scope; >> >> > ... >> > } >> >> > -- >> > v8-users mailing list >> > [email protected] >> >http://groups.google.com/group/v8-users > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
