v8 bootstrap error when creating a context.

159 views
Skip to first unread message

Jane Chen

unread,
Nov 10, 2016, 11:40:10 PM11/10/16
to v8-users
Embedding v8 5.3. Running code to create a context and execute the same JavaScript code in a loop. After thousands of iterations, I get "Exception thrown during bootstrapping". Here's the stack:

51 v8::internal::ReportBootstrappingException() /space/projects/v8-git/v8/src/isolate.cc:960 0x00007ffff59c3b4a 50 v8::internal::Isolate::Throw() /space/projects/v8-git/v8/src/isolate.cc:1051 0x00007ffff59c3469 49 v8::internal::Isolate::TerminateExecution() /space/projects/v8-git/v8/src/isolate.cc:913 0x00007ffff59c3633 48 v8::internal::StackGuard::HandleInterrupts() /space/projects/v8-git/v8/src/execution.cc:456 0x00007ffff5825471 47 v8::internal::__RT_impl_Runtime_StackGuard() /space/projects/v8-git/v8/src/runtime/runtime-internal.cc:294 0x00007ffff5bf2fb6 46 v8::internal::Runtime_StackGuard() /space/projects/v8-git/v8/src/runtime/runtime-internal.cc:284 0x00007ffff5bf2d87 45 Stub:CEntryStub() 0x00002e3f81706147 44 Script:~native icu-case-mapping.js() native icu-case-mapping.js:1 0x00002e3f81768f38 43 Builtin:JSEntryTrampoline() 0x00002e3f81742403 42 Stub:JSEntryStub() 0x00002e3f81725a6f 41 v8::internal::(anonymous namespace)::Invoke() /space/projects/v8-git/v8/src/execution.cc:98 0x00007ffff5823efa 40 v8::internal::Execution::Call() /space/projects/v8-git/v8/src/execution.cc:155 0x00007ffff5823bf5 39 v8::internal::Bootstrapper::CompileNative() /space/projects/v8-git/v8/src/bootstrapper.cc:2248 0x00007ffff52f5c8b 38 v8::internal::Bootstrapper::CompileExperimentalBuiltin() /space/projects/v8-git/v8/src/bootstrapper.cc:2181 0x00007ffff52f5e53 37 v8::internal::Genesis::InstallExperimentalNatives() /space/projects/v8-git/v8/src/bootstrapper.cc:3291 0x00007ffff53001ba 36 v8::internal::Genesis::Genesis() /space/projects/v8-git/v8/src/bootstrapper.cc:3897 0x00007ffff530368a 35 v8::internal::Bootstrapper::CreateEnvironment() /space/projects/v8-git/v8/src/bootstrapper.cc:331 0x00007ffff52e4843 34 v8::CreateEnvironment() /space/projects/v8-git/v8/src/api.cc:5670 0x00007ffff525d9d4 33 v8::Context::New() /space/projects/v8-git/v8/src/api.cc:5699 0x00007ffff5236114


I have evidence that GC is running. What could be the cause of this?

Thanks in advance.

Ben Noordhuis

unread,
Nov 11, 2016, 3:35:56 AM11/11/16
to v8-users
The stack trace suggests something - presumably your code - called
isolate->TerminateExecution(), possibly from another thread.

Jane Chen

unread,
Nov 11, 2016, 12:17:27 PM11/11/16
to v8-users
Thanks Ben.  You were exactly right.  Fixing it now...
Reply all
Reply to author
Forward
0 new messages