Skip to content

Crash in libqt (sometimes) when performing GUI interactions #7973

Open

Description

@Lidenburg

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:

  1. Open a binary and perform some UI actions such as searching in the types view or going to a function with g.
  2. 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

  1. added theissue type on Feb 18, 2026
  2. added
    Component: UI
    Effort: Low
    Impact: Critical
    UI: Types
    UI: Linear
    UI: Dialogs
    State: Awaiting Triage
    on Feb 18, 2026
  3. added this to the Jotunheim milestone on Feb 18, 2026
  4. added
    Dependency: Qt
    State: Blocked (Dependency)
    and removed
    State: Awaiting Triage
    on Mar 24, 2026
  5. self-assigned this
    on Mar 24, 2026
  6. fuzyll commented on Mar 24, 2026

    @fuzyll
    Contributor

    I am reasonably certain the bug here is in Qt, and I believe it's in two places:

    1. https://github.com/qt/qtbase/blob/dev/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp#L1144-1145
    2. https://github.com/qt/qtbase/blob/dev/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp#L1231-1232

    In release builds, that Q_ASSERT(dev) will be compiled out and it'll just straight-up use a nullptr in handleGestureEvent and 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.

  7. fuzyll commented on Mar 24, 2026

    @fuzyll
    Contributor

    Also, another user in the Slack thread suggested using QT_XCB_NO_XI2=1 to 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.

  8. bdash commented on Mar 24, 2026

    @bdash
    Contributor

    Wrote up https://qt-project.atlassian.net/browse/QTBUG-145205 for the Qt folks to look at.

  9. modified the milestones: Jotunheim, Krypton on Apr 7, 2026
  10. modified the milestones: Krypton, L on Aug 12, 2026
  11. added
    Impact: High
    and removed
    Impact: Critical
    on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Component: UIDependency: QtEffort: LowImpact: HighState: Blocked (Dependency)UI: DialogsUI: LinearUI: Types

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions