EXC_BAD_ACCESS / KERN_INVALID_ADDRESS / 0x10: Fatal Error: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS / 0x10
File "function.cpp", line 220, in BinaryNinja::Function::GetStart
File "qwidget.cpp", in QWidget::event
File "qframe.cpp", line 522, in QFrame::event
File "qcoreapplication.cpp", line 1246, in QCoreApplicationPrivate::sendThroughObjectEventFilters
File "qapplication.cpp", line 3299, in QApplicationPrivate::notify_helper
...
(35 additional frame(s) were not displayed)
This can be reproduced in single function view with disassembly showing by hitting Cmd-A to select all lines in a function, clicking the collapse marker in the function header to collapse all lines, double-clicking on the same function's name to return back to the single function view, then double-clicking on the collapse marker in the function header to expand all lines.
The immediate cause of the crash is that line.function is null within the path that handles FunctionHeaderLineType.
Sentry Issue: BINARYNINJA-B3
@bdash says: