Skip to content

BinaryNinjaDebugger::DbgEngAdapter::AttachInternal #1009

@sentry

Description

@sentry

Sentry Issue: BINARYNINJA-1A

EXCEPTION_ACCESS_VIOLATION_READ / 0x0: Fatal Error: EXCEPTION_ACCESS_VIOLATION_READ / 0x0
  File "dbgengadapter.cpp", line 793, in BinaryNinjaDebugger::DbgEngAdapter::AttachInternal
  File "dbgengadapter.cpp", line 839, in BinaryNinjaDebugger::DbgEngAdapter::Attach::__l2::<T>::operator()
  File "type_traits", line 1562, in std::invoke
  File "thread", line 55, in std::thread::_Invoke<T>
...
(2 additional frame(s) were not displayed)

Based on the crash report, this is a null dereference at

if (const auto result = this->m_debugControl->SetEngineOptions(DEBUG_ENGOPT_INITIAL_BREAK); result != S_OK)
when calling a virtual method on this->m_debugControl. It looks like Start() can fail and leave this->m_debugControl null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DbgEng AdapterBugs/issues related to the DbgEndAdaptercrash

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions