Skip to content

investigate flaky test-inspect-async-hook-setup-at-inspect on Windows 2008r2 in CI #26798

Closed

Description

@Trott

Getting this non-stop in win2008r2 VS 2017 in CI.

https://ci.nodejs.org/job/node-test-binary-windows/24664/COMPILED_BY=vs2017,RUNNER=win2008r2-vs2017,RUN_SUBSET=3/console

test-rackspace-win2008r2-x64-3

21:36:40 not ok 314 parallel/test-inspect-async-hook-setup-at-inspect
21:36:40   ---
21:36:40   duration_ms: 0.516
21:36:40   severity: fail
21:36:40   exitcode: 1
21:36:40   stack: |-
21:36:40     [test] Connecting to a child Node process
21:36:40     [test] Testing /json/list
21:36:40     [err] Debugger listening on ws://127.0.0.1:52961/4afeaa3a-d321-4eaf-9ddd-2954cee7e45e
21:36:40     [err] For help, see: https://nodejs.org/en/docs/inspector
21:36:40     [err] 
21:36:40     [err] Debugger attached.
21:36:40     [err] 
21:36:40     [err] FATAL ERROR: node::inspector::Agent::ToggleAsyncHook Cannot toggle Inspector's AsyncHook, please report this.
21:36:40     [err] 
21:36:40     [err]  1: 000000013F5192FF napi_wrap+84399
21:36:40     [err] 
21:36:40     [err]  2: 000000013F4D0BD6 uv_loop_fork+44166
21:36:40     [err]  3: 000000013F4D1726 uv_loop_fork+47062
21:36:40     [err]  4: 000000013F4D1309 uv_loop_fork+46009
21:36:40     [err]  5: 000000013F4387A3 std::basic_ios<char,std::char_traits<char> >::imbue+76147
21:36:40     [err]  6: 000000013FA4EC27 v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString+242135
21:36:40     [err]  7: 000000013FA2D64C v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString+105468
21:36:40     [err]  8: 000000013FA16CFF v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString+12975
21:36:40     [err]  9: 000000013FA0FFFF v8_inspector::protocol::Runtime::API::StackTraceId::fromJSONString+33039
21:36:40     [err] 10: 000000013FA00B1D v8::internal::Factory::zero_string+23837
21:36:40     [err] 11: 000000013F805063 v8_inspector::V8InspectorSession::canDispatchMethod+675
21:36:40     [err] 12: 000000013F4393DA std::basic_ios<char,std::char_traits<char> >::imbue+79274
21:36:40     [err] 13: 000000013F4373B6 std::basic_ios<char,std::char_traits<char> >::imbue+71046
21:36:40     [err] 14: 000000013F4273CE std::basic_ios<char,std::char_traits<char> >::imbue+5534
21:36:40     [err] 15: 000000013F42642E std::basic_ios<char,std::char_traits<char> >::imbue+1534
21:36:40     [err] 16: 000000013F426F4B std::basic_ios<char,std::char_traits<char> >::imbue+4379
21:36:40     [err] 17: 000000013F427557 std::basic_ios<char,std::char_traits<char> >::imbue+5927
21:36:40     [err] 18: 000000013F8D4465 v8::internal::Isolate::InvalidatePromiseHookProtector+1029
21:36:40     [err] 19: 000000013F8B121E v8::internal::StackGuard::HandleInterrupts+398
21:36:40     [err] 20: 000000013FBA3DB5 v8::internal::OptimizingCompileDispatcher::Unblock+53381
21:36:40     [err] 21: 000000014003D34F v8::internal::interpreter::BytecodeRegisterOptimizer::RegisterTransfer+1271791
21:36:40     [err] 
21:36:40     { Error: read ECONNRESET
21:36:40         at TCP.onStreamRead (internal/stream_base_commons.js:178:27) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
21:36:40     1
21:36:40   ...

Activity

  1. added
    flaky-test
    windows
    on Mar 20, 2019
  2. added
    inspector
    on Mar 20, 2019
  3. refack commented on Mar 20, 2019

    @refack
    Contributor

    Ping @nodejs/v8-inspector

  4. changed the title [-]broken test-inspect-async-hook-setup-at-inspect on Windows 2008r2 in CI?[/-] [+]investigate flaky test-inspect-async-hook-setup-at-inspect on Windows 2008r2 in CI[/+] on Mar 21, 2019
  5. Trott commented on Mar 21, 2019

    @Trott
    MemberAuthor

    https://ci.nodejs.org/job/node-test-binary-windows/24702/COMPILED_BY=vs2017,RUNNER=win2008r2-vs2017,RUN_SUBSET=0/console

    test-rackspace-win2008r2-x64-6

    00:17:11 not ok 314 parallel/test-inspect-async-hook-setup-at-inspect
    00:17:11   ---
    00:17:11   duration_ms: 0.614
    00:17:11   severity: fail
    00:17:11   exitcode: 1
    00:17:11   stack: |-
    00:17:11     [test] Connecting to a child Node process
    00:17:11     [test] Testing /json/list
    00:17:11     [err] Debugger listening on ws://127.0.0.1:57632/cfedc474-b361-4187-80ed-1b68bdbd10cd
    00:17:11     [err] For help, see: https://nodejs.org/en/docs/inspector
    00:17:11     [err] 
    00:17:11     [err] Debugger attached.
    00:17:11     [err] 
    00:17:11     [err] FATAL ERROR: node::inspector::Agent::ToggleAsyncHook Cannot toggle Inspector's AsyncHook, please report this.
    00:17:11     [err] 
    00:17:11     [err]  1: 000000013F44A0AF napi_wrap+84447
    00:17:11     [err]  2: 000000013F4018C6 uv_loop_fork+44166
    00:17:11     [err]  3: 000000013F402416 uv_loop_fork+47062
    00:17:11     [err]  4: 000000013F401FF9 uv_loop_fork+46009
    00:17:11     [err]  5: 000000013F3692C3 std::basic_ios<char,std::char_traits<char> >::imbue+76067
    00:17:11     [err] 
    00:17:11     [err]  6: 000000013F97F7F7 v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString+242135
    00:17:11     [err]  7: 000000013F95E21C v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString+105468
    00:17:11     [err]  8: 000000013F9478CF v8_inspector::protocol::Debugger::API::SearchMatch::fromJSONString+12975
    00:17:11     [err]  9: 000000013F940BCF v8_inspector::protocol::Runtime::API::StackTraceId::fromJSONString+33039
    00:17:11     [err] 10: 000000013F9316ED v8::internal::Factory::zero_string+23837
    00:17:11     [err] 11: 000000013F735C33 v8_inspector::V8InspectorSession::canDispatchMethod+675
    00:17:11     [err] 12: 000000013F369EFA std::basic_ios<char,std::char_traits<char> >::imbue+79194
    00:17:11     [err] 13: 000000013F367ED6 std::basic_ios<char,std::char_traits<char> >::imbue+70966
    00:17:11     [err] 14: 000000013F357F3E std::basic_ios<char,std::char_traits<char> >::imbue+5534
    00:17:11     [err] 15: 000000013F356F9E std::basic_ios<char,std::char_traits<char> >::imbue+1534
    00:17:11     [err] 16: 000000013F357ABB std::basic_ios<char,std::char_traits<char> >::imbue+4379
    00:17:11     [err] 17: 000000013F3580C7 std::basic_ios<char,std::char_traits<char> >::imbue+5927
    00:17:11     [err] 18: 000000013F805035 v8::internal::Isolate::InvalidatePromiseHookProtector+1029
    00:17:11     [err] 
    00:17:11     [err] 19: 000000013F7E1DEE v8::internal::StackGuard::HandleInterrupts+398
    00:17:11     [err] 20: 000000013FAD4985 v8::internal::OptimizingCompileDispatcher::Unblock+53381
    00:17:11     [err] 21: 000000013FF6DF1F v8::internal::interpreter::BytecodeRegisterOptimizer::RegisterTransfer+1271791
    00:17:11     [err] 
    00:17:11     { Error: read ECONNRESET
    00:17:11         at TCP.onStreamRead (internal/stream_base_commons.js:182:27) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }
    00:17:11     1
    00:17:11   ...
  6. refack commented on Mar 21, 2019

    @refack
    Contributor

    Running 100 x python tools\test.py -p tap parallel/test-inspect-async-hook-setup-at-inspect begets:

    100   OK: 63   NOT OK: 37   TOTAL: 100
    

    /CC @nodejs/testing @nodejs/n-api

  7. refack commented on Mar 22, 2019

    @refack
    Contributor
  8. pinned this issue on Mar 22, 2019
  9. refack commented on Mar 22, 2019

    @refack
    Contributor

    pinning this since it has ~50% probability of failing for a CI job.

  10. joyeecheung commented on Mar 22, 2019

    @joyeecheung
    Member

    I cannot seem to identify the first CI run this appeared (some historical jobs are cleaned). It might be related to #26602

  11. joyeecheung commented on Mar 22, 2019

    @joyeecheung
    Member

    We could maybe try using TryCatch when calling into the registered hooks and display the message to have more useful information.

  12. joyeecheung commented on Mar 22, 2019

    @joyeecheung
    Member

    Trying to show more information in #26859

  13. refack commented on Mar 22, 2019

    @refack
    Contributor

    I cannot seem to identify the first CI run this appeared (some historical jobs are cleaned). It might be related to #26602

    a91d36f parent commit before #26602 landed (https://ci.nodejs.org/job/node-stress-single-test/2179/) still repros

  14. 4 remaining items

  15. joyeecheung commented on Mar 26, 2019

    @joyeecheung
    Member

    FWIW I think I found the real cause, see #26935

  16. unpinned this issue on Mar 30, 2019
  17. edopalmieri commented on Apr 9, 2019

    @edopalmieri

    Not sure if this is 100% related but I kept getting this on version: 11.13.0.
    I get no error when reverting back to 10.15.3. I am on Mac OSX 10.14.4.

    undefined:0
    
    
    illegal access
    Waiting for the debugger to disconnect...
    FATAL ERROR: node::inspector::Agent::ToggleAsyncHook Cannot toggle Inspector's AsyncHook, please report this.
     1: 0x10006778e node::Abort() [/usr/local/bin/node]
     2: 0x100067ede node::errors::TryCatchScope::~TryCatchScope() [/usr/local/bin/node]
     3: 0x100067d70 node::OnFatalError(char const*, char const*) [/usr/local/bin/node]
     4: 0x100102e9b node::inspector::Agent::ToggleAsyncHook(v8::Isolate*, v8::Persistent<v8::Function, node::ResetInDestructorPersistentTraits<v8::Function> > const&) [/usr/local/bin/node]
     5: 0x100178703 v8_inspector::V8Debugger::setAsyncCallStackDepth(v8_inspector::V8DebuggerAgentImpl*, int) [/usr/local/bin/node]
     6: 0x100180de7 v8_inspector::V8DebuggerAgentImpl::disable() [/usr/local/bin/node]
     7: 0x100199733 v8_inspector::V8InspectorSessionImpl::~V8InspectorSessionImpl() [/usr/local/bin/node]
     8: 0x1001999de v8_inspector::V8InspectorSessionImpl::~V8InspectorSessionImpl() [/usr/local/bin/node]
     9: 0x1001039e0 node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() [/usr/local/bin/node]
    10: 0x100103a3a node::inspector::(anonymous namespace)::ChannelImpl::~ChannelImpl() [/usr/local/bin/node]
    11: 0x100103e1e node::inspector::NodeInspectorClient::disconnectFrontend(int) [/usr/local/bin/node]
    12: 0x100103c55 node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() [/usr/local/bin/node]
    13: 0x100103c82 node::inspector::(anonymous namespace)::SameThreadInspectorSession::~SameThreadInspectorSession() [/usr/local/bin/node]
    14: 0x10011064c node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() [/usr/local/bin/node]
    15: 0x100110670 node::inspector::(anonymous namespace)::DeletableWrapper<node::inspector::(anonymous namespace)::MainThreadSessionState>::~DeletableWrapper() [/usr/local/bin/node]
    16: 0x10011179b std::__1::__hash_table<std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::hash<int>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > > > >::erase(std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, void*>*>) [/usr/local/bin/node]
    17: 0x1001116c2 unsigned long std::__1::__hash_table<std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::__unordered_map_hasher<int, std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::hash<int>, true>, std::__1::__unordered_map_equal<int, std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > >, std::__1::equal_to<int>, true>, std::__1::allocator<std::__1::__hash_value_type<int, std::__1::unique_ptr<node::inspector::Deletable, std::__1::default_delete<node::inspector::Deletable> > > > >::__erase_unique<int>(int const&) [/usr/local/bin/node]
    18: 0x10010fc49 node::inspector::MainThreadInterface::RemoveObject(int) [/usr/local/bin/node]
    19: 0x10010f84d node::inspector::MainThreadInterface::DispatchMessages() [/usr/local/bin/node]
    20: 0x1000c0fb6 node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task> >) [/usr/local/bin/node]
    21: 0x1000c0536 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/usr/local/bin/node]
    22: 0x1000c1417 node::NodePlatform::FlushForegroundTasks(v8::Isolate*) [/usr/local/bin/node]
    23: 0x1001034a9 node::inspector::NodeInspectorClient::runMessageLoop() [/usr/local/bin/node]
    24: 0x1000dadc3 std::__1::__function::__func<node::worker::Worker::Run()::$_0, std::__1::allocator<node::worker::Worker::Run()::$_0>, void ()>::operator()() [/usr/local/bin/node]
    25: 0x10007ea5f node::OnScopeLeave::~OnScopeLeave() [/usr/local/bin/node]
    26: 0x1000d88ba node::worker::Worker::Run() [/usr/local/bin/node]
    27: 0x1000da547 node::worker::Worker::StartThread(v8::FunctionCallbackInfo<v8::Value> const&)::$_2::__invoke(void*) [/usr/local/bin/node]
    28: 0x7fff69c1f305 _pthread_body [/usr/lib/system/libsystem_pthread.dylib]
    29: 0x7fff69c2226f _pthread_start [/usr/lib/system/libsystem_pthread.dylib]
    30: 0x7fff69c1e415 thread_start [/usr/lib/system/libsystem_pthread.dylib]
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flaky-testinspectorwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions