Repository navigation
Description
Version and Platform (required):
- Binary Ninja Version: 5.2.8722 (stable)
- Edition: Non-Commercial
- OS: Ubuntu Linux
- OS Version: 22.04
- CPU Architecture: x86_64
Bug Description:
Sometimes when interacting with UI elements binary ninja crashes. Such as searching for a type or going to an address with g. It is sporadic and I have not found a way to reproduce it.
Steps To Reproduce:
It is sporadic and I have not found a way to reproduce it. The steps for reproducing I have is:
- Open a binary and perform some UI actions such as searching in the types view or going to a function with
g. - Most of the time nothing happens. Sometimes binary ninja crashes.
Expected Behavior:
No crash should occur.
Screenshots/Video Recording:
None.
Binary:
This happens regardless of the binary opened with binary ninja.
Additional Information:
The crash is a NULL pointer dereference inside of libqt6.
I managed to catch the crash with gdb attached to binary ninja and got the stacktrace and a coredump. The entire coredump is 6gb so i couldn't upload it to the portal. I have attached the gdb session showing the backtrace, register content dump and disassembly of the crashing function in an attachment here.
gdb_binja_crash.txt
There's a thread on this in the public slack: https://binaryninja.slack.com/archives/C0CVALTLN/p1770133911954059
Activity
fuzyll commentedon Mar 24, 2026
I am reasonably certain the bug here is in Qt, and I believe it's in two places:
In release builds, that
Q_ASSERT(dev)will be compiled out and it'll just straight-up use anullptrinhandleGestureEventand similar.I'm guessing the right fix here is to use a guard like this from earlier in the source code: https://github.com/qt/qtbase/blob/dev/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp#L814-L824, but I am very unfamiliar with what this is or how it works, so I don't know.
fuzyll commentedon Mar 24, 2026
Also, another user in the Slack thread suggested using
QT_XCB_NO_XI2=1to work around the issue. If my debugging above is correct, I think that should work and avoid the crash (at the cost of some input/gesture behavior I am unfamiliar with). So, that may be a viable workaround while we continue to debug and either patch and/or upstream a fix.bdash commentedon Mar 24, 2026
Wrote up https://qt-project.atlassian.net/browse/QTBUG-145205 for the Qt folks to look at.