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

libqxcb-glx-integration segfault

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.7.0
    • Fix Version/s: 5.7.2
    • Component/s: QPA: X11/XCB
    • Labels:
      None
    • Environment:
      linux amd64 (fedora rawhide)

      Description

      Bino 3D video player crashes with qt 5.7
      after QXcbGlxWindow::createVisual code change.
      No issue with older versions of qt5 even with qt4.

      The bino faulty code :

      bool video_output_qt::supports_stereo() const
      {
          QGLFormat fmt = _format;
          fmt.setStereo(true);
          QGLWidget *tmpwidget = new QGLWidget(fmt);         ->  segfault  here
          bool ret = tmpwidget->format().stereo();
          delete tmpwidget;
          return ret;
      }
      

      The backtrace :

       Thread 1 "bino" received signal SIGSEGV, Segmentation fault.
      0x00007ffff7e31219 in QXcbGlxWindow::createVisual() ()
         from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
      (gdb) bt
      #0  0x00007ffff7e31219 in QXcbGlxWindow::createVisual() ()
         from /usr/lib64/qt5/plugins/xcbglintegrations/libqxcb-glx-integration.so
      #1  0x00007fffdf454c66 in QXcbWindow::create() () from /lib64/libQt5XcbQpa.so.5
      #2  0x00007fffdf441370 in QXcbIntegration::createPlatformWindow(QWindow*) const () from /lib64/libQt5XcbQpa.so.5
      #3  0x00007ffff48de429 in QWindowPrivate::create(bool) () from /lib64/libQt5Gui.so.5
      #4  0x00007ffff7f9ac4a in QGLContext::chooseContext(QGLContext const*) () from /lib64/libQt5OpenGL.so.5
      #5  0x00007ffff7f9971a in QGLContext::create(QGLContext const*) () from /lib64/libQt5OpenGL.so.5
      #6  0x00007ffff7f9753f in QGLWidget::setContext(QGLContext*, QGLContext const*, bool) ()
         from /lib64/libQt5OpenGL.so.5
      #7  0x00007ffff7f99a75 in QGLWidgetPrivate::initContext(QGLContext*, QGLWidget const*) ()
         from /lib64/libQt5OpenGL.so.5
      #8  0x00005555555b8f48 in video_output_qt::supports_stereo (this=<optimized out>) at video_output_qt.cpp:886
      

        Attachments

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

          Activity

            People

            • Assignee:
              lagocs Laszlo Agocs
              Reporter:
              eddy02 eddy pilon
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes