Skip to content

Instantly share code, notes, and snippets.

@gengjiawen
Last active November 7, 2019 08:56
Show Gist options
  • Save gengjiawen/734b674e277b61c1a8998c6b57bffc75 to your computer and use it in GitHub Desktop.
Save gengjiawen/734b674e277b61c1a8998c6b57bffc75 to your computer and use it in GitHub Desktop.
Node.js master asan issue
=== debug test-crypto-dh-leak ===
Path: parallel/test-crypto-dh-leak
assert.js:378
throw err;
^
AssertionError [ERR_ASSERTION]: before=187871232 after=223272960
at Object.<anonymous> (/root/node/test/parallel/test-crypto-dh-leak.js:26:1)
at Module._compile (internal/modules/cjs/loader.js:1117:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:968:32)
at Function.Module._load (internal/modules/cjs/loader.js:872:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1197:12)
at internal/main/run_main_module.js:16:11 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
Command: out/Debug/node --expose-gc --noconcurrent_recompilation /root/node/test/parallel/test-crypto-dh-leak.js
=== debug test-fs-opendir ===
Path: parallel/test-fs-opendir
=================================================================
==29882==ERROR: AddressSanitizer: heap-use-after-free on address 0x606000048fe0 at pc 0x0000035bf59c bp 0x7ffc7e2c81c0 sp 0x7ffc7e2c81b8
READ of size 8 at 0x606000048fe0 thread T0
#0 0x35bf59b in uv__fs_readdir_cleanup /root/node/out/Debug/../../deps/uv/src/uv-common.c:692:18
#1 0x35d8c8a in uv_fs_req_cleanup /root/node/out/Debug/../../deps/uv/src/unix/fs.c:1870:5
#2 0x120cce7 in node::fs::FSReqAfterScope::~FSReqAfterScope() /root/node/out/Debug/../../src/node_file.cc:487:3
#3 0x11d15bf in node::fs_dir::AfterDirRead(uv_fs_s*) /root/node/out/Debug/../../src/node_dir.cc:226:1
#4 0x11e4046 in node::MakeLibuvRequestCallback<uv_fs_s, void (*)(uv_fs_s*)>::Wrapper(uv_fs_s*) /root/node/out/Debug/../../src/req_wrap-inl.h:125:5
#5 0x35cea48 in uv__fs_done /root/node/out/Debug/../../deps/uv/src/unix/fs.c:1464:3
#6 0x35b2b77 in uv__work_done /root/node/out/Debug/../../deps/uv/src/threadpool.c:313:5
#7 0x35c2750 in uv__async_io /root/node/out/Debug/../../deps/uv/src/unix/async.c:147:5
#8 0x361fe7c in uv__io_poll /root/node/out/Debug/../../deps/uv/src/unix/linux-core.c:421:11
#9 0x35c38b6 in uv_run /root/node/out/Debug/../../deps/uv/src/unix/core.c:375:5
#10 0x135cb6e in node::NodeMainInstance::Run() /root/node/out/Debug/../../src/node_main_instance.cc:136:9
#11 0x10c71ce in node::Start(int, char**) /root/node/out/Debug/../../src/node.cc:1042:38
#12 0x4390c84 in main /root/node/out/Debug/../../src/node_main.cc:126:10
#13 0x7fdd5a2961e2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x271e2)
#14 0xca3e2d in _start (/root/node/out/Debug/node+0xca3e2d)
0x606000048fe0 is located 0 bytes inside of 56-byte region [0x606000048fe0,0x606000049018)
freed by thread T7 here:
#0 0xd1baad in free (/root/node/out/Debug/node+0xd1baad)
#1 0x35b7e68 in uv__free /root/node/out/Debug/../../deps/uv/src/uv-common.c:88:3
#2 0x35dc9c0 in uv__fs_closedir /root/node/out/Debug/../../deps/uv/src/unix/fs.c:528:3
#3 0x35ce209 in uv__fs_work /root/node/out/Debug/../../deps/uv/src/unix/fs.c:1423:5
#4 0x35b44b9 in worker /root/node/out/Debug/../../deps/uv/src/threadpool.c:122:5
#5 0x7fdd5a490668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
previously allocated by thread T9 here:
#0 0xd1bd2d in malloc (/root/node/out/Debug/node+0xd1bd2d)
#1 0x35b7cf4 in uv__malloc /root/node/out/Debug/../../deps/uv/src/uv-common.c:77:12
#2 0x35dc2b5 in uv__fs_opendir /root/node/out/Debug/../../deps/uv/src/unix/fs.c:455:9
#3 0x35ce1df in uv__fs_work /root/node/out/Debug/../../deps/uv/src/unix/fs.c:1421:5
#4 0x35b44b9 in worker /root/node/out/Debug/../../deps/uv/src/threadpool.c:122:5
#5 0x7fdd5a490668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
Thread T7 created by T0 here:
#0 0xd064ba in pthread_create (/root/node/out/Debug/node+0xd064ba)
#1 0x360f3ca in uv_thread_create_ex /root/node/out/Debug/../../deps/uv/src/unix/thread.c:258:9
#2 0x360efa5 in uv_thread_create /root/node/out/Debug/../../deps/uv/src/unix/thread.c:212:10
#3 0x35b3c38 in init_threads /root/node/out/Debug/../../deps/uv/src/threadpool.c:225:9
#4 0x35b23e4 in init_once /root/node/out/Debug/../../deps/uv/src/threadpool.c:252:3
#5 0x7fdd5a49941e in __pthread_once_slow (/lib/x86_64-linux-gnu/libpthread.so.0+0x1241e)
Thread T9 created by T0 here:
#0 0xd064ba in pthread_create (/root/node/out/Debug/node+0xd064ba)
#1 0x360f3ca in uv_thread_create_ex /root/node/out/Debug/../../deps/uv/src/unix/thread.c:258:9
#2 0x360efa5 in uv_thread_create /root/node/out/Debug/../../deps/uv/src/unix/thread.c:212:10
#3 0x35b3c38 in init_threads /root/node/out/Debug/../../deps/uv/src/threadpool.c:225:9
#4 0x35b23e4 in init_once /root/node/out/Debug/../../deps/uv/src/threadpool.c:252:3
#5 0x7fdd5a49941e in __pthread_once_slow (/lib/x86_64-linux-gnu/libpthread.so.0+0x1241e)
SUMMARY: AddressSanitizer: heap-use-after-free /root/node/out/Debug/../../deps/uv/src/uv-common.c:692:18 in uv__fs_readdir_cleanup
Shadow bytes around the buggy address:
0x0c0c800011a0: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd
0x0c0c800011b0: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
0x0c0c800011c0: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd
0x0c0c800011d0: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fd
0x0c0c800011e0: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
=>0x0c0c800011f0: fd fd fd fd fd fd fd fd fa fa fa fa[fd]fd fd fd
0x0c0c80001200: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fa
0x0c0c80001210: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c80001220: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c80001230: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c0c80001240: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
Shadow gap: cc
==29882==ABORTING
Command: out/Debug/node /root/node/test/parallel/test-fs-opendir.js
=== debug test-inspector-async-hook-after-done ===
Path: parallel/test-inspector-async-hook-after-done
Message Debugger.enable received the response
Message NodeRuntime.notifyWhenWaitingForDisconnect received the response
Message Runtime.runIfWaitingForDebugger received the response
Message Debugger.setAsyncCallStackDepth received the response
Worker is done
Test is done
=================================================================
==4904==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16af9ea in node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:236:11
#2 0x16b19a6 in node::inspector::MainThreadHandle::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:338:17
#3 0x16b8e91 in void node::inspector::(anonymous namespace)::AnotherThreadObjectReference<node::inspector::(anonymous namespace)::MainThreadSessionState>::Call<std::_Bind<void (* (std::_Placeholder<1>, void (node::inspector::(anonymous namespace)::MainThreadSessionState::*)(std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >), std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >))(node::inspector::(anonymous namespace)::MainThreadSessionState*, void (node::inspector::(anonymous namespace)::MainThreadSessionState::*)(std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >), std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >&)> >(std::_Bind<void (* (std::_Placeholder<1>, void (node::inspector::(anonymous namespace)::MainThreadSessionState::*)(std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >), std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >))(node::inspector::(anonymous namespace)::MainThreadSessionState*, void (node::inspector::(anonymous namespace)::MainThreadSessionState::*)(std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >), std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >&)>) const /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:124:14
#4 0x16b8b0f in void node::inspector::(anonymous namespace)::AnotherThreadObjectReference<node::inspector::(anonymous namespace)::MainThreadSessionState>::Call<std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> > >(void (node::inspector::(anonymous namespace)::MainThreadSessionState::*)(std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >), std::unique_ptr<v8_inspector::StringBuffer, std::default_delete<v8_inspector::StringBuffer> >) const /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:130:5
#5 0x16b3487 in node::inspector::(anonymous namespace)::CrossThreadInspectorSession::Dispatch(v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:187:12
#6 0x16d84b0 in node::inspector::protocol::NodeWorkers::Receive(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/../../src/inspector/worker_agent.cc:147:17
#7 0x16d8178 in node::inspector::protocol::WorkerAgent::sendMessageToWorker(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/../../src/inspector/worker_agent.cc:95:13
#8 0xe0eff9 in node::inspector::protocol::NodeWorker::DispatcherImpl::sendMessageToWorker(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::DictionaryValue, std::default_delete<node::inspector::protocol::DictionaryValue> >, node::inspector::protocol::ErrorSupport*) /root/node/out/Debug/gen/src/node/inspector/protocol/NodeWorker.cpp:289:44
#9 0xe0e6eb in node::inspector::protocol::NodeWorker::DispatcherImpl::dispatch(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::DictionaryValue, std::default_delete<node::inspector::protocol::DictionaryValue> >) /root/node/out/Debug/gen/src/node/inspector/protocol/NodeWorker.cpp:267:5
#10 0xd8ebc3 in node::inspector::protocol::UberDispatcher::dispatch(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::Value, std::default_delete<node::inspector::protocol::Value> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/gen/src/node/inspector/protocol/Protocol.cpp:1114:17
#11 0x162d62e in node::inspector::(anonymous namespace)::ChannelImpl::dispatchProtocolMessage(v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:271:25
#12 0x163fcf8 in node::inspector::NodeInspectorClient::dispatchMessageFromFrontend(int, v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:565:28
#13 0x162b3b3 in node::inspector::(anonymous namespace)::SameThreadInspectorSession::Dispatch(v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:1029:13
#14 0x16723d8 in node::inspector::(anonymous namespace)::JSBindingsConnection<node::inspector::(anonymous namespace)::LocalConnection>::Dispatch(v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/inspector_js_api.cc:144:26
#15 0x1b132c9 in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) /root/node/out/Debug/../../deps/v8/src/api/api-arguments-inl.h:158:3
#16 0x1b0fe11 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:111:36
#17 0x1b0c62d in v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:141:5
#18 0x1b0ba33 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:129:1
#19 0x391869f in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (/root/node/out/Debug/node+0x391869f)
#20 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#21 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#22 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#23 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#24 0x3633ab8 in Builtins_ArgumentsAdaptorTrampoline (/root/node/out/Debug/node+0x3633ab8)
#25 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#26 0x3633ab8 in Builtins_ArgumentsAdaptorTrampoline (/root/node/out/Debug/node+0x3633ab8)
#27 0x7ec99b68430f (<unknown module>)
#28 0x3641619 in Builtins_JSEntryTrampoline (/root/node/out/Debug/node+0x3641619)
#29 0x36413f7 in Builtins_JSEntry (/root/node/out/Debug/node+0x36413f7)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16af9ea in node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:236:11
#2 0x16b19a6 in node::inspector::MainThreadHandle::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:338:17
#3 0x16b7d95 in node::inspector::(anonymous namespace)::AnotherThreadObjectReference<node::inspector::(anonymous namespace)::MainThreadSessionState>::~AnotherThreadObjectReference() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:118:14
#4 0x16b3290 in node::inspector::(anonymous namespace)::CrossThreadInspectorSession::~CrossThreadInspectorSession() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:173:7
#5 0x16b32cb in node::inspector::(anonymous namespace)::CrossThreadInspectorSession::~CrossThreadInspectorSession() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:173:7
#6 0x165a55f in std::default_delete<node::inspector::InspectorSession>::operator()(node::inspector::InspectorSession*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#7 0x1657d69 in std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#8 0x16de735 in std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >::~pair() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_pair.h:208:12
#9 0x16de708 in void __gnu_cxx::new_allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> >::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:153:10
#10 0x16de63f in void std::allocator_traits<std::allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> > >::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >(std::allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> >&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:497:8
#11 0x16de60b in std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> > >::_M_deallocate_node(std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable_policy.h:2102:7
#12 0x16e22c3 in std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_erase(unsigned long, std::__detail::_Hash_node_base*, std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1886:13
#13 0x16e1e38 in std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_erase(std::integral_constant<bool, true>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1912:7
#14 0x16e1c5c in std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::erase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:772:16
#15 0x16db56c in std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > > >::erase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unordered_map.h:815:21
#16 0x16d8c53 in node::inspector::protocol::NodeWorkers::Detached(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/../../src/inspector/worker_agent.cc:151:17
#17 0x16d8b30 in node::inspector::protocol::WorkerAgent::detach(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/../../src/inspector/worker_agent.cc:119:13
#18 0xe10440 in node::inspector::protocol::NodeWorker::DispatcherImpl::detach(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::DictionaryValue, std::default_delete<node::inspector::protocol::DictionaryValue> >, node::inspector::protocol::ErrorSupport*) /root/node/out/Debug/gen/src/node/inspector/protocol/NodeWorker.cpp:353:44
#19 0xe0e6eb in node::inspector::protocol::NodeWorker::DispatcherImpl::dispatch(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::DictionaryValue, std::default_delete<node::inspector::protocol::DictionaryValue> >) /root/node/out/Debug/gen/src/node/inspector/protocol/NodeWorker.cpp:267:5
#20 0xd8ebc3 in node::inspector::protocol::UberDispatcher::dispatch(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::Value, std::default_delete<node::inspector::protocol::Value> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/gen/src/node/inspector/protocol/Protocol.cpp:1114:17
#21 0x162d62e in node::inspector::(anonymous namespace)::ChannelImpl::dispatchProtocolMessage(v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:271:25
#22 0x163fcf8 in node::inspector::NodeInspectorClient::dispatchMessageFromFrontend(int, v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:565:28
#23 0x162b3b3 in node::inspector::(anonymous namespace)::SameThreadInspectorSession::Dispatch(v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:1029:13
#24 0x16723d8 in node::inspector::(anonymous namespace)::JSBindingsConnection<node::inspector::(anonymous namespace)::LocalConnection>::Dispatch(v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/inspector_js_api.cc:144:26
#25 0x1b132c9 in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) /root/node/out/Debug/../../deps/v8/src/api/api-arguments-inl.h:158:3
#26 0x1b0fe11 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:111:36
#27 0x1b0c62d in v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:141:5
#28 0x1b0ba33 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:129:1
#29 0x391869f in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (/root/node/out/Debug/node+0x391869f)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16af9ea in node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:236:11
#2 0x16b19a6 in node::inspector::MainThreadHandle::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:338:17
#3 0x16cf413 in node::inspector::protocol::TracingAgent::~TracingAgent() /root/node/out/Debug/../../src/inspector/tracing_agent.cc:123:17
#4 0x16cf6ab in node::inspector::protocol::TracingAgent::~TracingAgent() /root/node/out/Debug/../../src/inspector/tracing_agent.cc:121:31
#5 0x163d43f in std::default_delete<node::inspector::protocol::TracingAgent>::operator()(node::inspector::protocol::TracingAgent*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#6 0x163d061 in std::unique_ptr<node::inspector::protocol::TracingAgent, std::default_delete<node::inspector::protocol::TracingAgent> >::reset(node::inspector::protocol::TracingAgent*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:394:4
#7 0x16275a0 in node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() /root/node/out/Debug/../../src/inspector_agent.cc:250:20
#8 0x162781b in node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() /root/node/out/Debug/../../src/inspector_agent.cc:248:27
#9 0x162ae0f in std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl>::operator()(node::inspector::(anonymous namespace)::ChannelImpl*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#10 0x1626a09 in std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#11 0x162cead in std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >::~pair() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_pair.h:208:12
#12 0x162ce88 in void __gnu_cxx::new_allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> >::destroy<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >(std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:153:10
#13 0x162ce0f in void std::allocator_traits<std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> > >::destroy<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >(std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> >&, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:497:8
#14 0x162cddb in std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> > >::_M_deallocate_node(std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable_policy.h:2102:7
#15 0x162cab3 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_erase(unsigned long, std::__detail::_Hash_node_base*, std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1886:13
#16 0x162c4c0 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::erase(std::__detail::_Node_const_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1861:14
#17 0x162c250 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::erase(std::__detail::_Node_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:768:16
#18 0x162b9f5 in std::unordered_map<int, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> >, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > > >::erase(std::__detail::_Node_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unordered_map.h:798:21
#19 0x163f3cf in node::inspector::NodeInspectorClient::disconnectFrontend(int) /root/node/out/Debug/../../src/inspector_agent.cc:552:15
#20 0x162b162 in node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() /root/node/out/Debug/../../src/inspector_agent.cc:1022:13
#21 0x162b20b in node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() /root/node/out/Debug/../../src/inspector_agent.cc:1019:59
#22 0x165a55f in std::default_delete<node::inspector::InspectorSession>::operator()(node::inspector::InspectorSession*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#23 0x1657d69 in std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#24 0x16b577d in node::inspector::(anonymous namespace)::MainThreadSessionState::~MainThreadSessionState() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:146:7
#25 0x16b573a in std::default_delete<node::inspector::(anonymous namespace)::MainThreadSessionState>::operator()(node::inspector::(anonymous namespace)::MainThreadSessionState*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#26 0x16b4409 in std::unique_ptr<node::inspector::(anonymous namespace)::MainThreadSessionState, std::default_delete<node::inspector::(anonymous namespace)::MainThreadSessionState> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#27 0x16b4c00 in node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:24:40
#28 0x16b4c3b in node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:24:40
#29 0x16c986f in std::default_delete<node::inspector::Deletable>::operator()(node::inspector::Deletable*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
Indirect leak of 384 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16396d8 in __gnu_cxx::new_allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >::allocate(unsigned long, void const*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:114:27
#2 0x16395e3 in std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > >::allocate(std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >&, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:444:20
#3 0x1639129 in std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > > std::__allocate_guarded<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > >(std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/allocated_ptr.h:97:21
#4 0x1638ea9 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(node::inspector::MainThreadInterface*&, std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr_base.h:677:19
#5 0x1638bf7 in std::__shared_ptr<node::inspector::MainThreadInterface, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr_base.h:1344:14
#6 0x1638936 in std::shared_ptr<node::inspector::MainThreadInterface>::shared_ptr<std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:359:4
#7 0x1638656 in std::shared_ptr<node::inspector::MainThreadInterface> std::allocate_shared<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::allocator<node::inspector::MainThreadInterface> const&, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:701:14
#8 0x1638364 in std::shared_ptr<node::inspector::MainThreadInterface> std::make_shared<node::inspector::MainThreadInterface, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:717:14
#9 0x16346ef in node::inspector::NodeInspectorClient::getThreadHandle() /root/node/out/Debug/../../src/inspector_agent.cc:669:20
#10 0x162212e in node::inspector::Agent::Start(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, node::DebugOptions const&, std::shared_ptr<node::HostPort>, bool) /root/node/out/Debug/../../src/inspector_agent.cc:791:44
#11 0x10bd801 in node::Environment::InitializeInspector(std::unique_ptr<node::inspector::ParentInspectorHandle, std::default_delete<node::inspector::ParentInspectorHandle> >) /root/node/out/Debug/../../src/node.cc:219:21
#12 0x14faf83 in node::worker::Worker::Run() /root/node/out/Debug/../../src/node_worker.cc:328:15
#13 0x15019e0 in node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::operator()(void*) const /root/node/out/Debug/../../src/node_worker.cc:585:3
#14 0x1501844 in node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::__invoke(void*) /root/node/out/Debug/../../src/node_worker.cc:585:3
#15 0x7f558c104668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
SUMMARY: AddressSanitizer: 432 byte(s) leaked in 4 allocation(s).
Command: out/Debug/node /root/node/test/parallel/test-inspector-async-hook-after-done.js
=== debug test-inspector-heap-allocation-tracker ===
Path: parallel/test-inspector-heap-allocation-tracker
=================================================================
==4942==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16af9ea in node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:236:11
#2 0x16b19a6 in node::inspector::MainThreadHandle::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:338:17
#3 0x16cf413 in node::inspector::protocol::TracingAgent::~TracingAgent() /root/node/out/Debug/../../src/inspector/tracing_agent.cc:123:17
#4 0x16cf6ab in node::inspector::protocol::TracingAgent::~TracingAgent() /root/node/out/Debug/../../src/inspector/tracing_agent.cc:121:31
#5 0x163d43f in std::default_delete<node::inspector::protocol::TracingAgent>::operator()(node::inspector::protocol::TracingAgent*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#6 0x163d061 in std::unique_ptr<node::inspector::protocol::TracingAgent, std::default_delete<node::inspector::protocol::TracingAgent> >::reset(node::inspector::protocol::TracingAgent*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:394:4
#7 0x16275a0 in node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() /root/node/out/Debug/../../src/inspector_agent.cc:250:20
#8 0x162781b in node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() /root/node/out/Debug/../../src/inspector_agent.cc:248:27
#9 0x162ae0f in std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl>::operator()(node::inspector::(anonymous namespace)::ChannelImpl*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#10 0x1626a09 in std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#11 0x162cead in std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >::~pair() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_pair.h:208:12
#12 0x162ce88 in void __gnu_cxx::new_allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> >::destroy<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >(std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:153:10
#13 0x162ce0f in void std::allocator_traits<std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> > >::destroy<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >(std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> >&, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:497:8
#14 0x162cddb in std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> > >::_M_deallocate_node(std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable_policy.h:2102:7
#15 0x162cab3 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_erase(unsigned long, std::__detail::_Hash_node_base*, std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1886:13
#16 0x162c4c0 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::erase(std::__detail::_Node_const_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1861:14
#17 0x162c250 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::erase(std::__detail::_Node_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:768:16
#18 0x162b9f5 in std::unordered_map<int, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> >, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > > >::erase(std::__detail::_Node_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unordered_map.h:798:21
#19 0x163f3cf in node::inspector::NodeInspectorClient::disconnectFrontend(int) /root/node/out/Debug/../../src/inspector_agent.cc:552:15
#20 0x162b162 in node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() /root/node/out/Debug/../../src/inspector_agent.cc:1022:13
#21 0x162b20b in node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() /root/node/out/Debug/../../src/inspector_agent.cc:1019:59
#22 0x165a55f in std::default_delete<node::inspector::InspectorSession>::operator()(node::inspector::InspectorSession*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#23 0x1657d69 in std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#24 0x1672f72 in node::inspector::(anonymous namespace)::JSBindingsConnection<node::inspector::(anonymous namespace)::LocalConnection>::~JSBindingsConnection() /root/node/out/Debug/../../src/inspector_js_api.cc:63:7
#25 0x1672fab in node::inspector::(anonymous namespace)::JSBindingsConnection<node::inspector::(anonymous namespace)::LocalConnection>::~JSBindingsConnection() /root/node/out/Debug/../../src/inspector_js_api.cc:63:7
#26 0xfb83b3 in node::BaseObject::DeleteMe(void*) /root/node/out/Debug/../../src/env.cc:1105:3
#27 0xfaf7a5 in node::Environment::RunCleanup() /root/node/out/Debug/../../src/env.cc:610:7
#28 0x1506183 in node::worker::Worker::Run()::$_0::operator()() const /root/node/out/Debug/../../src/node_worker.cc:270:15
#29 0x15059ec in std::_Function_handler<void (), node::worker::Worker::Run()::$_0>::_M_invoke(std::_Any_data const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_function.h:300:2
Indirect leak of 384 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16396d8 in __gnu_cxx::new_allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >::allocate(unsigned long, void const*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:114:27
#2 0x16395e3 in std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > >::allocate(std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >&, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:444:20
#3 0x1639129 in std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > > std::__allocate_guarded<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > >(std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/allocated_ptr.h:97:21
#4 0x1638ea9 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(node::inspector::MainThreadInterface*&, std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr_base.h:677:19
#5 0x1638bf7 in std::__shared_ptr<node::inspector::MainThreadInterface, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr_base.h:1344:14
#6 0x1638936 in std::shared_ptr<node::inspector::MainThreadInterface>::shared_ptr<std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:359:4
#7 0x1638656 in std::shared_ptr<node::inspector::MainThreadInterface> std::allocate_shared<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::allocator<node::inspector::MainThreadInterface> const&, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:701:14
#8 0x1638364 in std::shared_ptr<node::inspector::MainThreadInterface> std::make_shared<node::inspector::MainThreadInterface, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:717:14
#9 0x16346ef in node::inspector::NodeInspectorClient::getThreadHandle() /root/node/out/Debug/../../src/inspector_agent.cc:669:20
#10 0x162212e in node::inspector::Agent::Start(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, node::DebugOptions const&, std::shared_ptr<node::HostPort>, bool) /root/node/out/Debug/../../src/inspector_agent.cc:791:44
#11 0x10bd801 in node::Environment::InitializeInspector(std::unique_ptr<node::inspector::ParentInspectorHandle, std::default_delete<node::inspector::ParentInspectorHandle> >) /root/node/out/Debug/../../src/node.cc:219:21
#12 0x14faf83 in node::worker::Worker::Run() /root/node/out/Debug/../../src/node_worker.cc:328:15
#13 0x15019e0 in node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::operator()(void*) const /root/node/out/Debug/../../src/node_worker.cc:585:3
#14 0x1501844 in node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::__invoke(void*) /root/node/out/Debug/../../src/node_worker.cc:585:3
#15 0x7fbf54cbd668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
SUMMARY: AddressSanitizer: 400 byte(s) leaked in 2 allocation(s).
Command: out/Debug/node /root/node/test/parallel/test-inspector-heap-allocation-tracker.js
=== debug test-process-euid-egid ===
Path: parallel/test-process-euid-egid
==8119==LeakSanitizer has encountered a fatal error.
==8119==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==8119==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
Command: out/Debug/node /root/node/test/parallel/test-process-euid-egid.js
=== debug test-process-uid-gid ===
Path: parallel/test-process-uid-gid
==8621==LeakSanitizer has encountered a fatal error.
==8621==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==8621==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
Command: out/Debug/node /root/node/test/parallel/test-process-uid-gid.js
=== debug test-vm-cached-data ===
Path: parallel/test-vm-cached-data
assert.js:93
throw new AssertionError(obj);
^
AssertionError [ERR_ASSERTION]:
=================================================================
==15617==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x2e154e4 in v8::internal::CodeSerializer::Serialize(v8::internal::Handle<v8::internal::SharedFunctionInfo>) /root/node/out/Debug/../../deps/v8/src/snapshot/code-serializer.cc:76:7
#2 0x11a92b0 in node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/node_contextify.cc:759:7
#3 0x1b132c9 in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) /root/node/out/Debug/../../deps/v8/src/api/api-arguments-inl.h:158:3
#4 0x1b0ece2 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:111:36
#5 0x1b0c5d7 in v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:137:5
#6 0x1b0ba33 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:129:1
#7 0x391869f in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (/root/node/out/Debug/node+0x391869f)
#8 0x363a9b6 in Builtins_JSBuiltinsConstructStub (/root/node/out/Debug/node+0x363a9b6)
#9 0x3b5531b in Builtins_ConstructHandler (/root/node/out/Debug/node+0x3b5531b)
#10 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#11 0x363a8bc in Builtins_JSConstructStubGeneric (/root/node/out/Debug/node+0x363a8bc)
#12 0x3b5531b in Builtins_ConstructHandler (/root/node/out/Debug/node+0x3b5531b)
#13 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#14 0x3641619 in Builtins_JSEntryTrampoline (/root/node/out/Debug/node+0x3641619)
#15 0x36413f7 in Builtins_JSEntry (/root/node/out/Debug/node+0x36413f7)
#16 0x1e932dc in v8::internal::GeneratedCode<unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, long, unsigned long**>::Call(unsigned long, unsigned long, unsigned long, unsigned long, long, unsigned long**) /root/node/out/Debug/../../deps/v8/src/execution/simulator.h:138:12
#17 0x1e932dc in v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) /root/node/out/Debug/../../deps/v8/src/execution/execution.cc:266:33
#18 0x1e924c8 in v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) /root/node/out/Debug/../../deps/v8/src/execution/execution.cc:358:10
#19 0x18fdaef in v8::Script::Run(v8::Local<v8::Context>) /root/node/out/Debug/../../deps/v8/src/api/api.cc:2157:7
#20 0x11ae760 in node::contextify::ContextifyScript::EvalMachine(node::Environment*, long, bool, bool, bool, v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/node_contextify.cc:931:22
#21 0x11ace93 in node::contextify::ContextifyScript::RunInThisContext(v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/node_contextify.cc:834:3
#22 0x1b132c9 in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) /root/node/out/Debug/../../deps/v8/src/api/api-arguments-inl.h:158:3
#23 0x1b0fe11 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:111:36
#24 0x1b0c62d in v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:141:5
#25 0x1b0ba33 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:129:1
#26 0x391869f in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (/root/node/out/Debug/node+0x391869f)
#27 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#28 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#29 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#30 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
Indirect leak of 576 byte(s) in 1 object(s) allocated from:
#0 0xd4b78d in operator new[](unsigned long, std::nothrow_t const&) (/root/node/out/Debug/node+0xd4b78d)
#1 0x2e513b7 in unsigned char* v8::internal::NewArray<unsigned char>(unsigned long) /root/node/out/Debug/../../deps/v8/src/utils/allocation.h:38:15
#2 0x2e513b7 in v8::internal::SerializedData::AllocateData(unsigned int) /root/node/out/Debug/../../deps/v8/src/snapshot/serializer-common.cc:99:11
#3 0x2e1cca4 in v8::internal::SerializedCodeData::SerializedCodeData(std::vector<unsigned char, std::allocator<unsigned char> > const*, v8::internal::CodeSerializer const*) /root/node/out/Debug/../../deps/v8/src/snapshot/code-serializer.cc:380:3
#4 0x2e15f33 in v8::internal::CodeSerializer::SerializeSharedFunctionInfo(v8::internal::Handle<v8::internal::SharedFunctionInfo>) /root/node/out/Debug/../../deps/v8/src/snapshot/code-serializer.cc:93:22
#5 0x2e15447 in v8::internal::CodeSerializer::Serialize(v8::internal::Handle<v8::internal::SharedFunctionInfo>) /root/node/out/Debug/../../deps/v8/src/snapshot/code-serializer.cc:67:32
#6 0x11a92b0 in node::contextify::ContextifyScript::New(v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/node_contextify.cc:759:7
#7 0x1b132c9 in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) /root/node/out/Debug/../../deps/v8/src/api/api-arguments-inl.h:158:3
#8 0x1b0ece2 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<true>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:111:36
#9 0x1b0c5d7 in v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:137:5
#10 0x1b0ba33 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:129:1
#11 0x391869f in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (/root/node/out/Debug/node+0x391869f)
#12 0x363a9b6 in Builtins_JSBuiltinsConstructStub (/root/node/out/Debug/node+0x363a9b6)
#13 0x3b5531b in Builtins_ConstructHandler (/root/node/out/Debug/node+0x3b5531b)
#14 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#15 0x363a8bc in Builtins_JSConstructStubGeneric (/root/node/out/Debug/node+0x363a8bc)
#16 0x3b5531b in Builtins_ConstructHandler (/root/node/out/Debug/node+0x3b5531b)
#17 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
#18 0x3641619 in Builtins_JSEntryTrampoline (/root/node/out/Debug/node+0x3641619)
#19 0x36413f7 in Builtins_JSEntry (/root/node/out/Debug/node+0x36413f7)
#20 0x1e932dc in v8::internal::GeneratedCode<unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, long, unsigned long**>::Call(unsigned long, unsigned long, unsigned long, unsigned long, long, unsigned long**) /root/node/out/Debug/../../deps/v8/src/execution/simulator.h:138:12
#21 0x1e932dc in v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) /root/node/out/Debug/../../deps/v8/src/execution/execution.cc:266:33
#22 0x1e924c8 in v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) /root/node/out/Debug/../../deps/v8/src/execution/execution.cc:358:10
#23 0x18fdaef in v8::Script::Run(v8::Local<v8::Context>) /root/node/out/Debug/../../deps/v8/src/api/api.cc:2157:7
#24 0x11ae760 in node::contextify::ContextifyScript::EvalMachine(node::Environment*, long, bool, bool, bool, v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/node_contextify.cc:931:22
#25 0x11ace93 in node::contextify::ContextifyScript::RunInThisContext(v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/node_contextify.cc:834:3
#26 0x1b132c9 in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) /root/node/out/Debug/../../deps/v8/src/api/api-arguments-inl.h:158:3
#27 0x1b0fe11 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:111:36
#28 0x1b0c62d in v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:141:5
#29 0x1b0ba33 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:129:1
#30 0x391869f in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (/root/node/out/Debug/node+0x391869f)
#31 0x364edd1 in Builtins_InterpreterEntryTrampoline (/root/node/out/Debug/node+0x364edd1)
SUMMARY: AddressSanitizer: 600 byte(s) leaked in 2 allocation(s).
at produce (/root/node/test/parallel/test-vm-cached-data.js:34:10)
at testProduceConsume (/root/node/test/parallel/test-vm-cached-data.js:42:16)
at Object.<anonymous> (/root/node/test/parallel/test-vm-cached-data.js:53:1)
at Module._compile (internal/modules/cjs/loader.js:1117:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:968:32)
at Function.Module._load (internal/modules/cjs/loader.js:872:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1197:12)
at internal/main/run_main_module.js:16:11 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: 1,
expected: 0,
operator: 'strictEqual'
}
Command: out/Debug/node /root/node/test/parallel/test-vm-cached-data.js
=== debug test-worker-debug ===
Path: parallel/test-worker-debug
Test basic debug scenario
This is a message from a worker
Test disabling attach to workers
This is a message from a worker
Test disabled waitForDebuggerOnStart
Test attach to a running worker and then start a new one
This is a message from a worker
Test NodeRuntime.waitForDisconnect in worker
Test done
=================================================================
==16658==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16af9ea in node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:236:11
#2 0x16b19a6 in node::inspector::MainThreadHandle::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:338:17
#3 0x16b7d95 in node::inspector::(anonymous namespace)::AnotherThreadObjectReference<node::inspector::(anonymous namespace)::MainThreadSessionState>::~AnotherThreadObjectReference() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:118:14
#4 0x16b3290 in node::inspector::(anonymous namespace)::CrossThreadInspectorSession::~CrossThreadInspectorSession() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:173:7
#5 0x16b32cb in node::inspector::(anonymous namespace)::CrossThreadInspectorSession::~CrossThreadInspectorSession() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:173:7
#6 0x165a55f in std::default_delete<node::inspector::InspectorSession>::operator()(node::inspector::InspectorSession*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#7 0x1657d69 in std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#8 0x16de735 in std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >::~pair() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_pair.h:208:12
#9 0x16de708 in void __gnu_cxx::new_allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> >::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >(std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:153:10
#10 0x16de63f in void std::allocator_traits<std::allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> > >::destroy<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >(std::allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> >&, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:497:8
#11 0x16de60b in std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true> > >::_M_deallocate_node(std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable_policy.h:2102:7
#12 0x16e22c3 in std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_erase(unsigned long, std::__detail::_Hash_node_base*, std::__detail::_Hash_node<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, true>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1886:13
#13 0x16e1e38 in std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::_M_erase(std::integral_constant<bool, true>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1912:7
#14 0x16e1c5c in std::_Hashtable<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > >, std::__detail::_Select1st, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<true, false, true> >::erase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:772:16
#15 0x16db56c in std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> >, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> > > > >::erase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unordered_map.h:815:21
#16 0x16d8c53 in node::inspector::protocol::NodeWorkers::Detached(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/../../src/inspector/worker_agent.cc:151:17
#17 0x16d8b30 in node::inspector::protocol::WorkerAgent::detach(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/../../src/inspector/worker_agent.cc:119:13
#18 0xe10440 in node::inspector::protocol::NodeWorker::DispatcherImpl::detach(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::DictionaryValue, std::default_delete<node::inspector::protocol::DictionaryValue> >, node::inspector::protocol::ErrorSupport*) /root/node/out/Debug/gen/src/node/inspector/protocol/NodeWorker.cpp:353:44
#19 0xe0e6eb in node::inspector::protocol::NodeWorker::DispatcherImpl::dispatch(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::DictionaryValue, std::default_delete<node::inspector::protocol::DictionaryValue> >) /root/node/out/Debug/gen/src/node/inspector/protocol/NodeWorker.cpp:267:5
#20 0xd8ebc3 in node::inspector::protocol::UberDispatcher::dispatch(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::unique_ptr<node::inspector::protocol::Value, std::default_delete<node::inspector::protocol::Value> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /root/node/out/Debug/gen/src/node/inspector/protocol/Protocol.cpp:1114:17
#21 0x162d62e in node::inspector::(anonymous namespace)::ChannelImpl::dispatchProtocolMessage(v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:271:25
#22 0x163fcf8 in node::inspector::NodeInspectorClient::dispatchMessageFromFrontend(int, v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:565:28
#23 0x162b3b3 in node::inspector::(anonymous namespace)::SameThreadInspectorSession::Dispatch(v8_inspector::StringView const&) /root/node/out/Debug/../../src/inspector_agent.cc:1029:13
#24 0x16723d8 in node::inspector::(anonymous namespace)::JSBindingsConnection<node::inspector::(anonymous namespace)::LocalConnection>::Dispatch(v8::FunctionCallbackInfo<v8::Value> const&) /root/node/out/Debug/../../src/inspector_js_api.cc:144:26
#25 0x1b132c9 in v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) /root/node/out/Debug/../../deps/v8/src/api/api-arguments-inl.h:158:3
#26 0x1b0fe11 in v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:111:36
#27 0x1b0c62d in v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:141:5
#28 0x1b0ba33 in v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) /root/node/out/Debug/../../deps/v8/src/builtins/builtins-api.cc:129:1
#29 0x391869f in Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit (/root/node/out/Debug/node+0x391869f)
Direct leak of 16 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16af9ea in node::inspector::MainThreadInterface::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:236:11
#2 0x16b19a6 in node::inspector::MainThreadHandle::Post(std::unique_ptr<node::inspector::Request, std::default_delete<node::inspector::Request> >) /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:338:17
#3 0x16cf413 in node::inspector::protocol::TracingAgent::~TracingAgent() /root/node/out/Debug/../../src/inspector/tracing_agent.cc:123:17
#4 0x16cf6ab in node::inspector::protocol::TracingAgent::~TracingAgent() /root/node/out/Debug/../../src/inspector/tracing_agent.cc:121:31
#5 0x163d43f in std::default_delete<node::inspector::protocol::TracingAgent>::operator()(node::inspector::protocol::TracingAgent*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#6 0x163d061 in std::unique_ptr<node::inspector::protocol::TracingAgent, std::default_delete<node::inspector::protocol::TracingAgent> >::reset(node::inspector::protocol::TracingAgent*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:394:4
#7 0x16275a0 in node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() /root/node/out/Debug/../../src/inspector_agent.cc:250:20
#8 0x162781b in node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() /root/node/out/Debug/../../src/inspector_agent.cc:248:27
#9 0x162ae0f in std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl>::operator()(node::inspector::(anonymous namespace)::ChannelImpl*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#10 0x1626a09 in std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#11 0x162cead in std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >::~pair() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_pair.h:208:12
#12 0x162ce88 in void __gnu_cxx::new_allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> >::destroy<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >(std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:153:10
#13 0x162ce0f in void std::allocator_traits<std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> > >::destroy<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >(std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> >&, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:497:8
#14 0x162cddb in std::__detail::_Hashtable_alloc<std::allocator<std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false> > >::_M_deallocate_node(std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable_policy.h:2102:7
#15 0x162cab3 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_erase(unsigned long, std::__detail::_Hash_node_base*, std::__detail::_Hash_node<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false>*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1886:13
#16 0x162c4c0 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::erase(std::__detail::_Node_const_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:1861:14
#17 0x162c250 in std::_Hashtable<int, std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > >, std::__detail::_Select1st, std::equal_to<int>, std::hash<int>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::erase(std::__detail::_Node_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/hashtable.h:768:16
#18 0x162b9f5 in std::unordered_map<int, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> >, std::hash<int>, std::equal_to<int>, std::allocator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > > > >::erase(std::__detail::_Node_iterator<std::pair<int const, std::unique_ptr<node::inspector::(anonymous namespace)::ChannelImpl, std::default_delete<node::inspector::(anonymous namespace)::ChannelImpl> > >, false, false>) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unordered_map.h:798:21
#19 0x163f3cf in node::inspector::NodeInspectorClient::disconnectFrontend(int) /root/node/out/Debug/../../src/inspector_agent.cc:552:15
#20 0x162b162 in node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() /root/node/out/Debug/../../src/inspector_agent.cc:1022:13
#21 0x162b20b in node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() /root/node/out/Debug/../../src/inspector_agent.cc:1019:59
#22 0x165a55f in std::default_delete<node::inspector::InspectorSession>::operator()(node::inspector::InspectorSession*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#23 0x1657d69 in std::unique_ptr<node::inspector::InspectorSession, std::default_delete<node::inspector::InspectorSession> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#24 0x16b577d in node::inspector::(anonymous namespace)::MainThreadSessionState::~MainThreadSessionState() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:146:7
#25 0x16b573a in std::default_delete<node::inspector::(anonymous namespace)::MainThreadSessionState>::operator()(node::inspector::(anonymous namespace)::MainThreadSessionState*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
#26 0x16b4409 in std::unique_ptr<node::inspector::(anonymous namespace)::MainThreadSessionState, std::default_delete<node::inspector::(anonymous namespace)::MainThreadSessionState> >::~unique_ptr() /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:284:4
#27 0x16b4c00 in node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:24:40
#28 0x16b4c3b in node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() /root/node/out/Debug/../../src/inspector/main_thread_interface.cc:24:40
#29 0x16c986f in std::default_delete<node::inspector::Deletable>::operator()(node::inspector::Deletable*) const /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/unique_ptr.h:81:2
Indirect leak of 384 byte(s) in 1 object(s) allocated from:
#0 0xd4b46d in operator new(unsigned long) (/root/node/out/Debug/node+0xd4b46d)
#1 0x16396d8 in __gnu_cxx::new_allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >::allocate(unsigned long, void const*) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/ext/new_allocator.h:114:27
#2 0x16395e3 in std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > >::allocate(std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >&, unsigned long) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/alloc_traits.h:444:20
#3 0x1639129 in std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > > std::__allocate_guarded<std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> > >(std::allocator<std::_Sp_counted_ptr_inplace<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, (__gnu_cxx::_Lock_policy)2> >&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/allocated_ptr.h:97:21
#4 0x1638ea9 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(node::inspector::MainThreadInterface*&, std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr_base.h:677:19
#5 0x1638bf7 in std::__shared_ptr<node::inspector::MainThreadInterface, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr_base.h:1344:14
#6 0x1638936 in std::shared_ptr<node::inspector::MainThreadInterface>::shared_ptr<std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::_Sp_alloc_shared_tag<std::allocator<node::inspector::MainThreadInterface> >, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:359:4
#7 0x1638656 in std::shared_ptr<node::inspector::MainThreadInterface> std::allocate_shared<node::inspector::MainThreadInterface, std::allocator<node::inspector::MainThreadInterface>, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(std::allocator<node::inspector::MainThreadInterface> const&, node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:701:14
#8 0x1638364 in std::shared_ptr<node::inspector::MainThreadInterface> std::make_shared<node::inspector::MainThreadInterface, node::inspector::Agent*, uv_loop_s*, v8::Isolate*, node::MultiIsolatePlatform*>(node::inspector::Agent*&&, uv_loop_s*&&, v8::Isolate*&&, node::MultiIsolatePlatform*&&) /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/shared_ptr.h:717:14
#9 0x16346ef in node::inspector::NodeInspectorClient::getThreadHandle() /root/node/out/Debug/../../src/inspector_agent.cc:669:20
#10 0x162212e in node::inspector::Agent::Start(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, node::DebugOptions const&, std::shared_ptr<node::HostPort>, bool) /root/node/out/Debug/../../src/inspector_agent.cc:791:44
#11 0x10bd801 in node::Environment::InitializeInspector(std::unique_ptr<node::inspector::ParentInspectorHandle, std::default_delete<node::inspector::ParentInspectorHandle> >) /root/node/out/Debug/../../src/node.cc:219:21
#12 0x14faf83 in node::worker::Worker::Run() /root/node/out/Debug/../../src/node_worker.cc:328:15
#13 0x15019e0 in node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::operator()(void*) const /root/node/out/Debug/../../src/node_worker.cc:585:3
#14 0x1501844 in node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::__invoke(void*) /root/node/out/Debug/../../src/node_worker.cc:585:3
#15 0x7fed67231668 in start_thread (/lib/x86_64-linux-gnu/libpthread.so.0+0x9668)
SUMMARY: AddressSanitizer: 416 byte(s) leaked in 3 allocation(s).
Command: out/Debug/node /root/node/test/parallel/test-worker-debug.js
=== debug test-net-bytes-per-incoming-chunk-overhead ===
Path: sequential/test-net-bytes-per-incoming-chunk-overhead
assert.js:378
throw err;
^
AssertionError [ERR_ASSERTION]: measured 778.56768 bytes per chunk
at process.<anonymous> (/root/node/test/sequential/test-net-bytes-per-incoming-chunk-overhead.js:40:3)
at process.emit (events.js:215:7) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '=='
}
Command: out/Debug/node --expose-gc /root/node/test/sequential/test-net-bytes-per-incoming-chunk-overhead.js
[09:32|% 100|+ 2684|- 9]: Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment