Skip to content

Instantly share code, notes, and snippets.

@hashseed
Created January 29, 2019 09:01
Show Gist options
  • Save hashseed/8ee8fe7a5c491cff13c62292ae298fcc to your computer and use it in GitHub Desktop.
Save hashseed/8ee8fe7a5c491cff13c62292ae298fcc to your computer and use it in GitHub Desktop.
test/parallel/test-trace-events-dynamic-enable-workers-disabled.js failure
$ gdb -args out/node node/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js
(gdb) break api.cc:460
Breakpoint 1 at 0x26b7469: file ../v8/src/api.cc, line 460.
(gdb) r
Starting program: /usr/local/google/home/yangguo/gn-node/src/out/node node/test/parallel/test-trace-events-dynamic-enable-workers-disabled.js
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7f05d162b700 (LWP 76014)]
[New Thread 0x7f05d0e2a700 (LWP 76015)]
[New Thread 0x7f05cbfff700 (LWP 76016)]
[New Thread 0x7f05cb7fe700 (LWP 76017)]
[New Thread 0x7f05caffd700 (LWP 76018)]
[New Thread 0x7f05d272f700 (LWP 76019)]
[New Thread 0x7f05ca7fc700 (LWP 76021)]
[New Thread 0x7f05d272b700 (LWP 76022)]
Thread 1 "node" hit Breakpoint 1, v8::Utils::ReportApiFailure (location=0x56062657e69d "HandleScope::HandleScope",
message=0x560626651aab "Entering the V8 API without proper locking in place") at ../v8/src/api.cc:460
460 FatalErrorCallback callback = nullptr;
(gdb)
(gdb) bt
#0 v8::Utils::ReportApiFailure (location=0x56062657e69d "HandleScope::HandleScope",
message=0x560626651aab "Entering the V8 API without proper locking in place") at ../v8/src/api.cc:460
#1 0x00005606278352af in v8::Utils::ApiCheck (condition=false, location=0x56062657e69d "HandleScope::HandleScope",
message=0x560626651aab "Entering the V8 API without proper locking in place") at ../v8/src/api.h:135
#2 0x00005606277f0ddf in v8::HandleScope::Initialize (this=0x7ffe69b3fa28, isolate=0x56062a5be130)
at ../v8/src/api.cc:1092
#3 0x00005606277f0d4d in v8::HandleScope::HandleScope (this=0x7ffe69b3fa28, isolate=0x56062a5be130)
at ../v8/src/api.cc:1081
#4 0x0000560628e0a8ad in node::worker::MessagePort::OnMessage (this=0x7f05b8002a90) at ../node/src/node_messaging.cc:528
#5 0x0000560628e0c934 in node::worker::MessagePort::MessagePort(node::Environment*, v8::Local<v8::Context>, v8::Local<v8::Object>)::$_0::operator()(uv_async_s*) const (this=0x7f05b8002b00, handle=0x7f05b8002b00)
at ../node/src/node_messaging.cc:437
#6 0x0000560628e0c905 in node::worker::MessagePort::MessagePort(node::Environment*, v8::Local<v8::Context>, v8::Local<v8::Object>)::$_0::__invoke(uv_async_s*) (handle=0x7f05b8002b00) at ../node/src/node_messaging.cc:434
#7 0x0000560628f883fb in uv__async_io (loop=0x5606295b19c0 <default_loop_struct>,
w=0x5606295b1b88 <default_loop_struct+456>, events=1) at ../node/deps/uv/src/unix/async.c:118
#8 0x0000560628fa0f5b in uv__io_poll (loop=0x5606295b19c0 <default_loop_struct>, timeout=0)
at ../node/deps/uv/src/unix/linux-core.c:378
#9 0x0000560628f88a1f in uv_run (loop=0x5606295b19c0 <default_loop_struct>, mode=UV_RUN_DEFAULT)
at ../node/deps/uv/src/unix/core.c:371
#10 0x0000560628c4e1c6 in node::Start (isolate=0x56062a47ffa0, isolate_data=0x56062a516490, args=..., exec_args=...)
at ../node/src/node.cc:1290
#11 0x0000560628c4af72 in node::Start (event_loop=0x5606295b19c0 <default_loop_struct>, args=..., exec_args=...)
at ../node/src/node.cc:1407
#12 0x0000560628c489c4 in node::Start (argc=2, argv=0x56062a4795a0) at ../node/src/node.cc:1472
#13 0x00005606277d11d1 in main (argc=2, argv=0x7ffe69b44088) at ../node/src/node_main.cc:126
(gdb) f 2
#2 0x00005606277f0ddf in v8::HandleScope::Initialize (this=0x7ffe69b3fa28, isolate=0x56062a5be130)
at ../v8/src/api.cc:1092
1092 Utils::ApiCheck(
(gdb) p isolate
$1 = (v8::Isolate *) 0x56062a5be130
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f05d26f9700 (LWP 75997) "node" 0x00005606277f0ddf in v8::HandleScope::Initialize (this=0x7ffe69b3fa28,
isolate=0x56062a5be130) at ../v8/src/api.cc:1092
2 Thread 0x7f05d162b700 (LWP 76014) "node" 0x00007f05d1714ca7 in __GI_epoll_pwait (epfd=13, events=0x7f05d1627dc0,
maxevents=1024, timeout=-1, set=0x0) at ../sysdeps/unix/sysv/linux/epoll_pwait.c:42
3 Thread 0x7f05d0e2a700 (LWP 76015) "node" pthread_cond_wait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
4 Thread 0x7f05cbfff700 (LWP 76016) "node" pthread_cond_wait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
5 Thread 0x7f05cb7fe700 (LWP 76017) "node" pthread_cond_wait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
6 Thread 0x7f05caffd700 (LWP 76018) "node" pthread_cond_wait@@GLIBC_2.3.2 ()
at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
7 Thread 0x7f05d272f700 (LWP 76019) "node" 0x00007f05d20fe536 in futex_abstimed_wait_cancelable (private=0,
abstime=0x0, expected=0,
futex_word=0x5606295b1738 <node::inspector::(anonymous namespace)::start_io_thread_semaphore>)
at ../sysdeps/unix/sysv/linux/futex-internal.h:205
8 Thread 0x7f05ca7fc700 (LWP 76021) "node" 0x00005606277dafd4 in v8::internal::Foreign::cast (object=...)
at ../v8/src/objects/map-inl.h:31
9 Thread 0x7f05d272b700 (LWP 76022) "node" 0x00007f05d20fe536 in futex_abstimed_wait_cancelable (private=0,
abstime=0x0, expected=0,
futex_word=0x5606295b1738 <node::inspector::(anonymous namespace)::start_io_thread_semaphore>)
at ../sysdeps/unix/sysv/linux/futex-internal.h:205
(gdb) f 8
#8 0x0000560628fa0f5b in uv__io_poll (loop=0x5606295b19c0 <default_loop_struct>, timeout=0)
at ../node/deps/uv/src/unix/linux-core.c:378
378 w->cb(loop, w, pe->events);
(gdb) t 8
[Switching to thread 8 (Thread 0x7f05ca7fc700 (LWP 76021))]
#0 0x00005606277dafd4 in v8::internal::Foreign::cast (object=...) at ../v8/src/objects/map-inl.h:31
31 CAST_ACCESSOR(Map)
(gdb) bt
#0 0x00005606277dafd4 in v8::internal::Foreign::cast (object=...) at ../v8/src/objects/map-inl.h:31
#1 0x000056062783c237 in v8::internal::Map::instance_descriptors (this=0x7f05ca7f9618) at ../v8/src/objects/map-inl.h:34
#2 0x000056062809df5d in v8::internal::Map::ShareDescriptor (isolate=0x56062a5be130, map=..., descriptors=...,
descriptor=0x7f05ca7f9828) at ../v8/src/objects.cc:9581
#3 0x0000560628079f53 in v8::internal::Map::CopyAddDescriptor (isolate=0x56062a5be130, map=...,
descriptor=0x7f05ca7f9828, flag=v8::internal::INSERT_TRANSITION) at ../v8/src/objects.cc:10257
#4 0x000056062807a1ee in v8::internal::Map::CopyWithConstant (isolate=0x56062a5be130, map=..., name=..., constant=...,
attributes=v8::internal::NONE, flag=v8::internal::INSERT_TRANSITION) at ../v8/src/objects.cc:4139
#5 0x00005606280a0818 in v8::internal::Map::TransitionToDataProperty (isolate=0x56062a5be130, map=..., name=...,
value=..., attributes=v8::internal::NONE, constness=v8::internal::PropertyConstness::kMutable,
store_origin=v8::internal::StoreOrigin::kNamed) at ../v8/src/objects.cc:10061
#6 0x0000560628013e80 in v8::internal::LookupIterator::PrepareTransitionToDataProperty (this=0x7f05ca7fa2e0,
receiver=..., value=..., attributes=v8::internal::NONE, store_origin=v8::internal::StoreOrigin::kNamed)
at ../v8/src/lookup.cc:644
#7 0x0000560628084bff in v8::internal::Object::AddDataProperty (it=0x7f05ca7fa2e0, value=...,
attributes=v8::internal::NONE, should_throw=..., store_origin=v8::internal::StoreOrigin::kNamed)
at ../v8/src/objects.cc:5599
#8 0x0000560628082ab8 in v8::internal::Object::SetProperty (it=0x7f05ca7fa2e0, value=...,
store_origin=v8::internal::StoreOrigin::kNamed, should_throw=...) at ../v8/src/objects.cc:5345
#9 0x0000560627f4ccd2 in v8::internal::StoreIC::Store (this=0x7f05ca7fa6d0, object=..., name=..., value=...,
store_origin=v8::internal::StoreOrigin::kNamed) at ../v8/src/ic/ic.cc:1445
#10 0x0000560627f5524b in v8::internal::__RT_impl_Runtime_StoreIC_Miss (args=..., isolate=0x56062a5be130)
at ../v8/src/ic/ic.cc:2330
#11 0x0000560627f54e42 in v8::internal::Runtime_StoreIC_Miss (args_length=5, args_object=0x7f05ca7fa8c8,
isolate=0x56062a5be130) at ../v8/src/ic/ic.cc:2315
#12 0x0000560628917fb2 in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_NoBuiltinExit ()
at ../buildtools/third_party/libc++/trunk/include/iterator:1171
#13 0x0000560628a5ca41 in Builtins_StaNamedPropertyHandler ()
at ../buildtools/third_party/libc++/trunk/include/iterator:1171
#14 0x0000200e45b9f821 in ?? ()
#15 0x00002c9a5a686401 in ?? ()
#16 0x0000200e45ba0481 in ?? ()
#17 0x0000002600000000 in ?? ()
#18 0x0000200e45ba0a29 in ?? ()
#19 0x0000000000000026 in ?? ()
#20 0x0000200e45b9f821 in ?? ()
#21 0x00002c9a5a686401 in ?? ()
#22 0x00007f05ca7fa8d0 in ?? ()
#23 0x00007f05ca7fa8d0 in ?? ()
#24 0x0000200e45ba0a29 in ?? ()
#25 0x00007f05ca7fa9a8 in ?? ()
#26 0x0000000000000146 in ?? ()
#27 0x000056062a5f5180 in ?? ()
#28 0x0000000000000018 in ?? ()
#29 0x00007f05ca7fa9a8 in ?? ()
#30 0x0000560628635208 in Builtins_InterpreterEntryTrampoline ()
(gdb) f 10
#10 0x0000560627f5524b in v8::internal::__RT_impl_Runtime_StoreIC_Miss (args=..., isolate=0x56062a5be130)
at ../v8/src/ic/ic.cc:2330
2330 RETURN_RESULT_OR_FAILURE(isolate, ic.Store(receiver, key, value));
(gdb) p isolate
$2 = (v8::internal::Isolate *) 0x56062a5be130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment