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

Illegal instruction crash in qUnpremultiply()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.5.0 Alpha
    • GUI: Painting
    • None
    • gcc 4.7.2
      Pentium Dual Core E6600
    • 63d5a42b59149bfdebc9a5a123e7115a813bcaa4

    Description

      My app crashes with the following backtrace:

      #0  0x00007f8161bf3eb3 in _mm_set_epi32 (__q0=928440, __q1=928440, __q2=928440, __q3=928440) at /usr/lib/gcc/x86_64-linux-gnu/4.7/include/emmintrin.h:586
      #1  _mm_set1_epi32 (__A=928440) at /usr/lib/gcc/x86_64-linux-gnu/4.7/include/emmintrin.h:626
      #2  qUnpremultiply (p=301989888) at ../../include/QtGui/../../src/gui/painting/qrgb.h:102
      #3  0x00007f8161e11fb8 in convertARGB32FromARGB32PM (buffer=0x7fff8961c710, src=0x740710, count=16) at painting/qdrawhelper.cpp:398
      #4  0x00007f8161c8326a in convert_generic (dest=0x6adaf0, src=0x6c0410) at image/qimage_conversions.cpp:162
      #5  0x00007f8161c77056 in QImage::convertToFormat_helper (this=0x7fff8961ebf0, format=QImage::Format_ARGB32, flags=...) at image/qimage.cpp:1992
      #6  0x00007f8161ffe042 in QImage::convertToFormat (this=0x7fff8961ebf0, f=QImage::Format_ARGB32, flags=...) at image/qimage_compat.cpp:47
      #7  0x00007f81626740f7 in QCommonStyle::generatedIconPixmap (this=0x64bd00, iconMode=QIcon::Disabled, pixmap=..., opt=0x7fff8961ecf0)
          at styles/qcommonstyle.cpp:6085
      #8  0x00007f81625b71ea in QApplicationPrivate::applyQIconStyleHelper (this=0x605830, mode=QIcon::Disabled, base=...) at kernel/qapplication.cpp:4490
      #9  0x00007f8161cb90a6 in PixmapEntry::pixmap (this=0x6b9cc0, size=..., mode=QIcon::Disabled, state=QIcon::Off) at image/qiconloader.cpp:542
      #10 0x00007f8161cb91fa in QIconLoaderEngine::pixmap (this=0x6b9620, size=..., mode=QIcon::Disabled, state=QIcon::Off) at image/qiconloader.cpp:564
      #11 0x00007f8161cb14c9 in QIcon::pixmap (this=0x7fff8961ff38, window=0x0, size=..., mode=QIcon::Disabled, state=QIcon::Off) at image/qicon.cpp:832
      #12 0x00007f8161cb13cd in QIcon::pixmap (this=0x7fff8961ff38, size=..., mode=QIcon::Disabled, state=QIcon::Off) at image/qicon.cpp:768
      #13 0x00007f8162674dbd in QIcon::pixmap (this=0x7fff8961ff38, extent=16, mode=QIcon::Disabled, state=QIcon::Off)
          at ../../include/QtGui/../../src/gui/image/qicon.h:77
      #14 0x00007f81626b7514 in QWindowsStyle::drawControl (this=0x64bd00, ce=QStyle::CE_MenuItem, opt=0x7fff8961fed0, p=0x7fff8961ffb0, widget=0x6b9530)
          at styles/qwindowsstyle.cpp:1158
      #15 0x00007f81627b4ef4 in QMenu::paintEvent (this=0x6b9530, e=0x7fff89620c50) at widgets/qmenu.cpp:2411
      

      It looks like the problem is in the change https://codereview.qt-project.org/#/c/110251/ . I can't reproduce the crash after reverting it.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            avolkov Alexander Volkov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes