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

QOpenGLWindow use after destruct

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.8.0 Beta3, 6.9.0 FF
    • 6.9
    • GUI: OpenGL
    • None
    • Ubuntu
    • WebAssembly
    • c337cdf39 (dev), 52c9346f5 (6.8)

    Description

      ~QOpenGLWindowPrivate accesses QOpenGLWindow,
      but the latter has already been destroyed when this
      happens.
       
      Detected by -sanitize undefined for this application:
       
      #include <QApplication>
      #include <QOpenGLWindow>

      int main(int argc, char *argv[])
      {
      QApplication app(argc, argv);
      QOpenGLWindow *window = new QOpenGLWindow();
      delete window;
      return app.exec();
      {color:#3b3b3b}}
       

      Attachments

        For Gerrit Dashboard: QTBUG-126845
        # Subject Branch Project Status CR V

        Activity

          People

            evenandersen Even Oscar Andersen
            evenandersen Even Oscar Andersen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes