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

libqmng causes application to crash with MNG error 11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.8.5
    • Fix Version/s: 4.8.6, 5.2.1
    • Component/s: Image formats
    • Labels:
      None
    • Environment:
      Arch Linux
      kdbg 2.5.4
      qt 4.8.5
      KDE 4.11.3 (although the bug is WM independent)
    • Commits:
      515617e55be9a7bfa738a9c32ef8b19065de37d4 9ae386653c321c8ddc10fad5ea88f32ebb3d3ffe

      Description

      I have been using kdbg happily for years, but recently it started crashing with the following error:

      kdbg(13170)/kdeui (KIconLoader) KIconLoader::iconPath: Illegal icon group:  16
      MNG error 1060: MHDR simplicity indicates unsupported feature(s); chunk MHDR; subcode 0:0
      MNG error 11: Function is invalid at this point; chunk MHDR; subcode 0:0
      

      The last line is then repeated ~27500 times. I reported this to the Arch Linux qt packager (https://bugs.archlinux.org/task/37093), who informed me that Arch had just upgraded to libmng 2.x, and since Qt doesn't support that yet, it now uses the internal libqmng. Therefore, it seems there is a bug in the Qt MNG code - or at least some error is being handled less gracefully than desired.

      I collected the following stack trace, although it doesn't seem very useful:

      #0 0x00007ffff51d469d in vfprintf () from /usr/lib/libc.so.6
      #1 0x00007ffff51d9591 in buffered_vfprintf () from /usr/lib/libc.so.6
      #2 0x00007ffff51d47ce in vfprintf () from /usr/lib/libc.so.6
      #3 0x00007ffff51de717 in fprintf () from /usr/lib/libc.so.6
      #4 0x00007ffff67758fc in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
      #5 0x00007ffff6775a99 in ?? () from /usr/lib/libQtCore.so.4
      #6 0x00007ffff6775ce4 in qWarning(char const*, ...) () from /usr/lib/libQtCore.so.4
      #7 0x00007fffea32ae10 in ?? () from /usr/lib/qt4/plugins/imageformats/libqmng.so
      #8 0x00007fffea34b144 in ?? () from /usr/lib/qt4/plugins/imageformats/libqmng.so
      #9 0x00007fffea34d5a1 in ?? () from /usr/lib/qt4/plugins/imageformats/libqmng.so
      #10 0x00007fffea32afa1 in ?? () from /usr/lib/qt4/plugins/imageformats/libqmng.so
      #11 0x00007ffff5ac5e34 in QImageReader::read(QImage*) () from /usr/lib/libQtGui.so.4
      #12 0x00007ffff5ac6384 in QImageReader::read() () from /usr/lib/libQtGui.so.4
      #13 0x00007ffff5addcb7 in ?? () from /usr/lib/libQtGui.so.4
      #14 0x00007ffff5ade2ef in ?? () from /usr/lib/libQtGui.so.4
      #15 0x00007ffff5ade547 in ?? () from /usr/lib/libQtGui.so.4
      #16 0x00007ffff6893b48 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
      #17 0x00007ffff5ade66b in ?? () from /usr/lib/libQtGui.so.4
      

        Attachments

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

          Activity

            People

            Assignee:
            vgt Eirik Aavitsland
            Reporter:
            jrmrjnck Jonathan Doman
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes