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

Segfault in QTextEngine::shapeTextWithHarfbuzz

    XMLWordPrintable

Details

    Description

      When I create QCommandLinkButtons that have descriptions containing line breaks (\n) I get a segfault in Qt:

      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Gui.so.5(_ZNK11QTextEngine21shapeTextWithHarfbuzzEi+0x75b)[0x7fe09be2e1db]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Gui.so.5(_ZNK11QTextEngine9shapeTextEi+0xd3)[0x7fe09be2edb3]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Gui.so.5(_ZNK11QTextEngine5shapeEi+0xdb)[0x7fe09be2f19b]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Gui.so.5(_ZN9QTextLine13layout_helperEi+0xf18)[0x7fe09be40e48]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Gui.so.5(_ZN9QTextLine12setLineWidthEd+0xcd)[0x7fe09be41fdd]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(+0x231b7e)[0x7fe09c97eb7e]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(_ZNK18QCommandLinkButton8sizeHintEv+0xab)[0x7fe09c97ef8b]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(_ZNK13QWidgetItemV222updateCacheIfNecessaryEv+0x52)[0x7fe09c8a4fa2]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(_ZNK13QWidgetItemV211maximumSizeEv+0x3d)[0x7fe09c8a529d]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(+0x14736a)[0x7fe09c89436a]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(_ZNK10QBoxLayout8sizeHintEv+0x16)[0x7fe09c894e26]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(_ZNK7QLayout13totalSizeHintEv+0x4f)[0x7fe09c8a11df]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(_ZNK7QWidget8sizeHintEv+0x20)[0x7fe09c8ab330]
      /local/mlangen/AbsInt/SVN/build/launcher.default/usr/lib/libQt5Widgets.so.5(_ZN11QScrollArea9setWidgetEP7QWidget+0x22a)[0x7fe09ca2624a]
      ./alauncher(_ZN9ALauncherC2EP7QWidget+0xd9e)[0x459ec2]
      ./alauncher(main+0xc26)[0x43d3e4]
      /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fe09b0f6a15]
      ./alauncher[0x43c6e9]
      Assert: Caught fatal signal 11 (Segmentation Violation).
      

      If the \n are replace by, e.g., colons the crash does not occur.

      Attachments

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

        Activity

          People

            ritt.ks Konstantin Ritt
            mlangen Marc Langenbach
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes