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

Crashes in OpenGL code in when Qt is configured with -sanitize thread

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9
    • GUI: OpenGL
    • None

    Description

      qtbase/examples/opengl/hellowindow
      1   ??                                                                                                                                                                                0x7ffff6db5f95 
      2   memcpy                                                                                                                                                                            0x7ffff6d5d223 
      3   ??                                                                                                                                                                                0x7fffe3ab67d0 
      4   ??                                                                                                                                                                                0x7fffe3ac5344 
      5   ??                                                                                                                                                                                0x7fffe3ac6ae3 
      6   ??                                                                                                                                                                                0x7fffe3ab16a8 
      7   ??                                                                                                                                                                                0x7fffe391ab25 
      8   ??                                                                                                                                                                                0x7fffe3831b60 
      9   QOpenGLFunctions::glLinkProgram                                                                                                                     qopenglfunctions.h       1748 0x7ffff6b9a2e8 
      10  QOpenGLShaderProgram::link                                                                                                                          qopenglshaderprogram.cpp 1303 0x7ffff6b9a2e8 
      11  Renderer::initialize                                                                                                                                hellowindow.cpp          235  0x406672       
      12  Renderer::render                                                                                                                                    hellowindow.cpp          159  0x406a8b       
      13  QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (Renderer:: *)()>::call(void (Renderer:: *)(), Renderer *, void * *) qobjectdefs_impl.h       136  0x407429       
      14  QtPrivate::FunctionPointer<void (Renderer:: *)()>::call<QtPrivate::List<>, void>(void (Renderer:: *)(), Renderer *, void * *)                       qobjectdefs_impl.h       169  0x407429       
      15  QtPrivate::QSlotObject<void (Renderer:: *)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void * *, bool *)        qobject_impl.h           120  0x407429       
      16  QtPrivate::QSlotObjectBase::call                                                                                                                    qobject_impl.h           101  0x7ffff628c8a4 
      17  QSingleShotTimer::timerEvent                                                                                                                        qtimer.cpp               318  0x7ffff628c8a4 
      18  QObject::event                                                                                                                                      qobject.cpp              1227 0x7ffff627608c 
      19  QCoreApplicationPrivate::notify_helper                                                                                                              qcoreapplication.cpp     1150 0x7ffff6225d29 
      20  doNotify                                                                                                                                            qcoreapplication.cpp     1091 0x7ffff6225e2b 
      ... <More>                                                                                                                                                                                           
      

      With a simple Qt Quick application:

      main.qml
      import QtQuick 2.0
      import QtQuick.Window 2.0
      
      Window {
          width: 600
          height: 400
          visible: true
      }
      
      The inferior stopped because it received a signal from the operating system.
      
      Signal name : 
      SIGSEGV
      Signal meaning : 
      Segmentation fault
      
      1   ??                                                                         0x7ffff6db5f95 
      2   memcpy                                                                     0x7ffff6d5d223 
      3   ??                                                                         0x7fffe54de7d0 
      4   ??                                                                         0x7fffe54ed344 
      5   ??                                                                         0x7fffe54eeae3 
      6   ??                                                                         0x7fffe54d96a8 
      7   ??                                                                         0x7fffe5342b25 
      8   ??                                                                         0x7fffe51c6da2 
      9   ??                                                                         0x7fffe526100c 
      10  ??                                                                         0x7fffe52610d1 
      11  ??                                                                         0x7fffe51964f8 
      12  QOpenGLFunctions::glClear                 qopenglfunctions.h          620  0x7fffe661d075 
      13  QSGBindable::clear                        qsgrenderer.cpp             77   0x7fffe661d075 
      14  QSGBatchRenderer::Renderer::renderBatches qsgbatchrenderer.cpp        2539 0x7fffe663234c 
      15  QSGBatchRenderer::Renderer::render        qsgbatchrenderer.cpp        2763 0x7fffe663bb92 
      16  QSGRenderer::renderScene                  qsgrenderer.cpp             243  0x7fffe661e1fc 
      17  QSGRenderer::renderScene                  qsgrenderer.cpp             196  0x7fffe661e776 
      18  QSGDefaultRenderContext::renderNextFrame  qsgdefaultrendercontext.cpp 181  0x7fffe6697f5f 
      19  QQuickWindowPrivate::renderSceneGraph     qquickwindow.cpp            474  0x7fffe674f1a3 
      20  QSGGuiThreadRenderLoop::renderWindow      qsgrenderloop.cpp           429  0x7fffe6678fe6 
      ... <More>                                                                                                                                                                                                                                                                               
      

      Configure options:

      -developer-build
      -debug
      -opensource
      -confirm-license
      -nomake
      tests
      -nomake
      examples
      -silent
      -sanitize
      thread
      

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes