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

Rich Text Engine Segfaults on Linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 4.6.0
    • GUI: Text handling
    • None
    • Fedora 10/Linux. I also had the same problem on Win XP Home.

    Description

      The attached program runs fine with Qt 4.5.2 on Linux. But it segfaults with 4.6.0rc1. I think its a Qt bug; here's the start of the backtrace:

      (gdb) run
      Starting program: /tmp/texteditbug/textedit
      [Thread debugging using libthread_db enabled]
      [New Thread 0xb7fdb700 (LWP 32682)]
      bt
      Program received signal SIGSEGV, Segmentation fault.
      0x0050057a in QTextEngine::itemize (this=0x80f76e8) at text/qtextengine.cpp:1395
      1395 validate();
      Missing separate debuginfos, use: debuginfo-install GConf2-2.24.0-1.fc10.i386 ORBit2-2.14.16-1.fc10.i386 dbus-glib-0.76-3.fc10.i386 dbus-libs-1.2.4-4.fc10.i386 e2fsprogs-libs-1.41.4-6.fc10.i386 expat-2.0.1-5.fc10.1.i386 fontconfig-2.6.0-3.fc10.i386 freetype-2.3.7-3.fc10.i386 glib2-2.18.4-2.fc10.i386 glibc-2.9-3.i686 libICE-1.0.4-4.fc10.i386 libSM-1.1.0-2.fc10.i386 libX11-1.1.5-4.fc10.i386 libXau-1.0.4-1.fc10.i386 libXcursor-1.1.9-3.fc10.i386 libXdmcp-1.0.2-6.fc10.i386 libXext-1.0.4-1.fc9.i386 libXfixes-devel-4.0.3-4.fc10.i386 libXi-devel-1.1.3-4.fc9.i386 libXinerama-1.0.3-2.fc10.i386 libXrandr-1.2.3-1.fc10.i386 libXrender-0.9.4-3.fc9.i386 libcap-2.10-2.fc10.i386 libgcc-4.3.2-7.i386 libpng-1.2.37-1.fc10.i386 libstdc++-4.3.2-7.i386 libxcb-1.1.91-7.fc10.i386 linuxwacom-0.8.0.3-8.fc10.i386 zlib-1.2.3-18.fc9.i386
      (gdb) bt
      #0 0x0050057a in QTextEngine::itemize (this=0x80f76e8) at text/qtextengine.cpp:1395
      #1 0x00502226 in QTextEngine::attributes (this=0x80f76e8) at text/qtextengine.cpp:1320
      #2 0x0050ad70 in QTextLine::layout_helper (this=0xbf405524, maxGlyphs=2147483647) at text/qtextlayout.cpp:1739
      #3 0x0050c990 in QTextLine::setNumColumns (this=0xbf405524, numColumns=2147483647) at text/qtextlayout.cpp:1613
      #4 0x0050ca11 in QTextLayout::endLayout (this=0x80f9dbc) at text/qtextlayout.cpp:625
      #5 0x006e7a91 in QLineControl::updateDisplayText (this=0x80f9d40) at widgets/qlinecontrol.cpp:102
      #6 0x006e9d20 in QLineControl::finishChange (this=0x80f9d40, validateFromState=-1, update=true, edited=false)
      at widgets/qlinecontrol.cpp:588
      #7 0x006ea072 in QLineControl::internalSetText (this=0x80f9d40, txt=@0xbf4056a4, pos=11, edited=232) at widgets/qlinecontrol.cpp:626
      #8 0x006e108d in QLineControl::setText () at ../../include/QtGui/private/../../../src/gui/widgets/qlinecontrol_p.h:573
      #9 QLineEdit::setText (this=0x80cb4b8, text=@0xbf4056a4) at widgets/qlineedit.cpp:383

      Attachments

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

        Activity

          People

            firedomain Qt Graphics Team (Inactive)
            m.n.summerfield Mark Summerfield
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes