Skip to content

crashpad::`anonymous namespace'::HandleAbortSignal #1038

@sentry

Description

@sentry

Sentry Issue: BINARYNINJA-2K

STATUS_FATAL_APP_EXIT / 0x7ff6e3e558c6: Fatal Error: STATUS_FATAL_APP_EXIT / 0x7ff6e3e558c6
  File "crashpad_client_win.cc", line 230, in crashpad::`anonymous namespace'::HandleAbortSignal
  File "throw.cpp", line 79, in _CxxThrowException
  File "thread0.cpp", line 33, in std::_Throw_Cpp_error
  File "thread", line 127, in std::thread::join
  File "debuggercontroller.cpp", line 50, in BinaryNinjaDebugger::DebuggerController::~DebuggerController
...
(22 additional frame(s) were not displayed)

@bdash says:

The immediate cause of the crash is that DebuggerController's destructor calls std::thread::join on m_debuggerEventThread while it is executing on the debugger event thread. Attempting to join the current thread results in std::system_error(std::errc::resource_deadlock_would_occur) being thrown, and since that exception is not handled the app exits.

DebuggerController is destroyed on this thread because the DebuggerFileAccessor is the final reference to the controller, and it is deleted in response to TargetExitedEventType, DetachedEventType, and LaunchFailureEventType

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions