Skip to content

V8 inspector agent crashes on shutdown after attaching debugger when running unit tests #21

Description

@bghgary

Describe the bug
The unit tests crash on shutdown after attaching a debugger (e.g., with ChromeDevTools).

To Reproduce
Steps to reproduce the behavior:

  1. Set waitForDebugger to true in tests.js.
  2. Run the unit tests.
  3. Attach the V8 debugger using Chrome about://inspect.
  4. Continue when the debugger; statement hits.
  5. Unit tests crashes after completing the tests

Call Stack

<unknown> 0x000071421b6815bf
<unknown> 0x000071421b6837bd
<unknown> 0x000071421b683a29
std::__ndk1::default_delete::operator()(v8_inspector::V8InspectorSession *) const memory:2338
std::__ndk1::unique_ptr::reset(v8_inspector::V8InspectorSession *) memory:2593
std::__ndk1::unique_ptr::~unique_ptr() memory:2547
Babylon::V8NodeInspector::~V8NodeInspector() V8InspectorAgent.cpp:183
Babylon::V8NodeInspector::~V8NodeInspector() V8InspectorAgent.cpp:183
std::__ndk1::default_delete::operator()(Babylon::V8NodeInspector *) const memory:2338
std::__ndk1::unique_ptr::reset(Babylon::V8NodeInspector *) memory:2593
Babylon::AgentImpl::Stop() V8InspectorAgent.cpp:417
Babylon::V8InspectorAgent::stop() V8InspectorAgent.cpp:667
Babylon::AppRuntime::RunEnvironmentTier(const char *) AppRuntime_V8.cpp:91
Babylon::AppRuntime::RunPlatformTier() AppRuntime_Android.cpp:10
$_1::operator()() const AppRuntime.cpp:12
decltype(std::__ndk1::forward<Babylon::AppRuntime::AppRuntime(std::__ndk1::function<void (std::exception const&)>)::$_1&>(fp)()) std::__ndk1::__invoke<Babylon::AppRuntime::AppRuntime(std::__ndk1::function<void (std::exception const&)>)::$_1&>(Babylon::AppRuntime::AppRuntime(std::__ndk1::function<void (std::exception const&)>)::$_1&) type_traits:3501
std::__ndk1::__invoke_void_return_wrapper::__call<…>($_1 &) __functional_base:348
std::__ndk1::__function::__alloc_func::operator()() functional:1540
std::__ndk1::__function::__func::operator()() functional:1714
std::__ndk1::__function::__value_func::operator()() const functional:1867
std::__ndk1::function::operator()() const functional:2473
decltype(std::__ndk1::forward<std::__ndk1::function<void ()> >(fp)()) std::__ndk1::__invoke<std::__ndk1::function<void ()> >(std::__ndk1::function<void ()>&&) type_traits:3501
std::__ndk1::__thread_execute<…>(std::__ndk1::tuple<…> &, std::__ndk1::__tuple_indices<…>) thread:273
std::__ndk1::__thread_proxy<…>(void *) thread:283
__pthread_start(void *) 0x00007142b5480f3c
__start_thread 0x00007142b542fc8e
__bionic_clone 0x00007142b542e516

Expected behavior
The unit tests to exit cleanly.

Other

  • Platform: Android

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions