Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133948

Protect QCoreApplication::notifyInternal2() against null receivers?

    XMLWordPrintable

Details

    • Linux/X11

    Description

      I was going through old crash logs and found the one attached that I had saved because it caused me annoying loss of data: crash-after-xrdb-on-remote-server.log

       

      According to the notes I made this happened after I ran xmodmap on the external X11 server where the crashed application was being displayed (specifically to redefine the "mode_switch dead key" for entering accented characters).

       

      The crash and loss of edited data could have been avoided if `QCoreApplication::notifyInternal2()` had had a nullptr check. I see that still isn't the case, but with the other checks already in place this additional one wouldn't cause a measurable performance regression?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            srutledg Shawn Rutledge
            rjvbertin René Bertin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes