XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • P2: Important
    • 5.0.0
    • GUI: Font handling
    • None
    • qtbase 7465b55d9c1c8586da7384fbf97604ed020a4fd3
      Ubuntu 10.04 x86 32-bit
      Qt configured with -qpa and using QT_QPA_PLATFORM=xcb

    • 1aaf08691dd1e1a9b5124b2835aaf121ab2b370a

    Description

      This autotest segfaults when using qpa with the xcb backend. It seems to segfault in init() while attempting to load the test font.

      Partial backtrace:

      QtQA::App::TestRunner: #6  0x4002a7d7 in QTest::FatalSignalHandler::signal (signum=11)
      QtQA::App::TestRunner:     at qtestcase.cpp:1680
      QtQA::App::TestRunner: No locals.
      QtQA::App::TestRunner: #7  <signal handler called>
      QtQA::App::TestRunner: No symbol table info available.
      QtQA::App::TestRunner: #8  0x40d729d5 in QString::operator= (this=0x8e7d05c, other=...)
      QtQA::App::TestRunner:     at tools/qstring.cpp:1387
      QtQA::App::TestRunner: No locals.
      QtQA::App::TestRunner: #9  0x4044f6fc in initFontDef (desc=..., request=..., fontDef=0x8e7d05c)
      QtQA::App::TestRunner:     at text/qfontdatabase.cpp:1041
      QtQA::App::TestRunner: No locals.
      QtQA::App::TestRunner: #10 0x4045103d in QFontDatabase::findFont (script=0, fp=0x8e7cdd8, request=...)
      QtQA::App::TestRunner:     at text/qfontdatabase_qpa.cpp:281
      QtQA::App::TestRunner:         locker = {val = 149409313}
      QtQA::App::TestRunner:         force_encoding_id = -1
      QtQA::App::TestRunner:         engine = 0x8e7d050
      QtQA::App::TestRunner:         key = {def = {family = {static null = {<No data fields>}, 
      QtQA::App::TestRunner:               static shared_null = {str = {ref = {atomic = {_q_value = -1}}, 
      QtQA::App::TestRunner:                   size = 0, alloc = 0, capacityReserved = 0, {offset = 0, d = {
      QtQA::App::TestRunner:                       0, 0}}}, data = {0, 0}}, static shared_empty = {str = {
      QtQA::App::TestRunner:                   ref = {atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:                   capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 
      QtQA::App::TestRunner:                   0}}, d = 0x8e56100, static codecForCStrings = 0x0}, 
      QtQA::App::TestRunner:             styleName = warning: can't find linker symbol for virtual table for `QString' value
      QtQA::App::TestRunner: warning:   found `typeinfo for QObject' instead
      QtQA::App::TestRunner: {static null = {<No data fields>}, 
      QtQA::App::TestRunner:               static shared_null = {str = {ref = {atomic = {_q_value = -1}}, 
      QtQA::App::TestRunner:                   size = 0, alloc = 0, capacityReserved = 0, {offset = 0, d = {
      QtQA::App::TestRunner:                       0, 0}}}, data = {0, 0}}, static shared_empty = {str = {
      QtQA::App::TestRunner:                   ref = {atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:                   capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 
      QtQA::App::TestRunner:                   0}}, d = 0x80622c8, static codecForCStrings = 0x0}, 
      QtQA::App::TestRunner:             pointSize = 9, pixelSize = 12, styleStrategy = 1, styleHint = 5, 
      QtQA::App::TestRunner:             weight = 50, fixedPitch = 0, style = 0, stretch = 100, 
      QtQA::App::TestRunner:             ignorePitch = 1, hintingPreference = 0, fixedPitchComputed = 0, 
      QtQA::App::TestRunner:             reserved = 0}, script = 0, screen = 0}
      QtQA::App::TestRunner:         family_name = {static null = {<No data fields>}, static shared_null = {
      QtQA::App::TestRunner:             str = {ref = {atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:               capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 0}}, 
      QtQA::App::TestRunner:           static shared_empty = {str = {ref = {atomic = {_q_value = -1}}, 
      QtQA::App::TestRunner:               size = 0, alloc = 0, capacityReserved = 0, {offset = 0, d = {0, 
      QtQA::App::TestRunner:                   0}}}, data = {0, 0}}, d = 0x8e7d010, 
      QtQA::App::TestRunner:           static codecForCStrings = 0x0}
      QtQA::App::TestRunner:         foundry_name = {static null = {<No data fields>}, 
      QtQA::App::TestRunner:           static shared_null = {str = {ref = {atomic = {_q_value = -1}}, 
      QtQA::App::TestRunner:               size = 0, alloc = 0, capacityReserved = 0, {offset = 0, d = {0, 
      QtQA::App::TestRunner:                   0}}}, data = {0, 0}}, static shared_empty = {str = {ref = {
      QtQA::App::TestRunner:                 atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:               capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 0}}, 
      QtQA::App::TestRunner:           d = 0x8e57970, static codecForCStrings = 0x0}
      QtQA::App::TestRunner:         desc = {family = 0x0, foundry = 0x0, style = 0x0, size = 0x0, 
      QtQA::App::TestRunner:           encoding = 0x0, familyIndex = -1}
      QtQA::App::TestRunner: #11 0x40451918 in QFontDatabase::load (d=0x8e7cdd8, script=0)
      QtQA::App::TestRunner:     at text/qfontdatabase_qpa.cpp:376
      QtQA::App::TestRunner:         key = {def = {family = {static null = {<No data fields>}, 
      QtQA::App::TestRunner:               static shared_null = {str = {ref = {atomic = {_q_value = -1}}, 
      QtQA::App::TestRunner:                   size = 0, alloc = 0, capacityReserved = 0, {offset = 0, d = {
      QtQA::App::TestRunner:                       0, 0}}}, data = {0, 0}}, static shared_empty = {str = {
      QtQA::App::TestRunner:                   ref = {atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:                   capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 
      QtQA::App::TestRunner:                   0}}, d = 0x8e56100, static codecForCStrings = 0x0}, 
      QtQA::App::TestRunner:             styleName = warning: can't find linker symbol for virtual table for `QString' value
      QtQA::App::TestRunner: warning:   found `typeinfo for QObject' instead
      QtQA::App::TestRunner: {static null = {<No data fields>}, 
      QtQA::App::TestRunner:               static shared_null = {str = {ref = {atomic = {_q_value = -1}}, 
      QtQA::App::TestRunner:                   size = 0, alloc = 0, capacityReserved = 0, {offset = 0, d = {
      QtQA::App::TestRunner:                       0, 0}}}, data = {0, 0}}, static shared_empty = {str = {
      QtQA::App::TestRunner:                   ref = {atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:                   capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 
      QtQA::App::TestRunner:                   0}}, d = 0x80622c8, static codecForCStrings = 0x0}, 
      QtQA::App::TestRunner:             pointSize = 9, pixelSize = 12, styleStrategy = 1, styleHint = 5, 
      QtQA::App::TestRunner:             weight = 50, fixedPitch = 0, style = 0, stretch = 100, 
      QtQA::App::TestRunner:             ignorePitch = 1, hintingPreference = 0, fixedPitchComputed = 0, 
      QtQA::App::TestRunner:             reserved = 0}, script = 0, screen = 0}
      QtQA::App::TestRunner:         family_list = {<QList<QString>> = {{p = {static shared_null = {ref = {
      QtQA::App::TestRunner:                     _q_value = 159}, alloc = 0, begin = 0, end = 0, 
      QtQA::App::TestRunner:                   sharable = 1, array = {0x0}}, d = 0x8e7cfd8}, 
      QtQA::App::TestRunner:               d = 0x8e7cfd8}}, <No data fields>}
      QtQA::App::TestRunner:         end = {i = 0x8e7cff8}
      QtQA::App::TestRunner:         req = {family = {static null = {<No data fields>}, 
      QtQA::App::TestRunner:             static shared_null = {str = {ref = {atomic = {_q_value = -1}}, 
      QtQA::App::TestRunner:                 size = 0, alloc = 0, capacityReserved = 0, {offset = 0, d = {
      QtQA::App::TestRunner:                     0, 0}}}, data = {0, 0}}, static shared_empty = {str = {
      QtQA::App::TestRunner:                 ref = {atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:                 capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 
      QtQA::App::TestRunner:                 0}}, d = 0x8e56100, static codecForCStrings = 0x0}, 
      QtQA::App::TestRunner:           styleName = warning: can't find linker symbol for virtual table for `QString' value
      QtQA::App::TestRunner: warning:   found `typeinfo for QObject' instead
      QtQA::App::TestRunner: {static null = {<No data fields>}, static shared_null = {
      QtQA::App::TestRunner:               str = {ref = {atomic = {_q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:                 capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 
      QtQA::App::TestRunner:                 0}}, static shared_empty = {str = {ref = {atomic = {
      QtQA::App::TestRunner:                     _q_value = -1}}, size = 0, alloc = 0, 
      QtQA::App::TestRunner:                 capacityReserved = 0, {offset = 0, d = {0, 0}}}, data = {0, 
      QtQA::App::TestRunner:                 0}}, d = 0x80622c8, static codecForCStrings = 0x0}, 
      QtQA::App::TestRunner:           pointSize = 9, pixelSize = 12, styleStrategy = 1, styleHint = 5, 
      QtQA::App::TestRunner:           weight = 50, fixedPitch = 0, style = 0, stretch = 100, 
      QtQA::App::TestRunner:           ignorePitch = 1, hintingPreference = 0, fixedPitchComputed = 0, 
      QtQA::App::TestRunner:           reserved = 0}
      QtQA::App::TestRunner:         fe = 0x0
      QtQA::App::TestRunner:         it = {i = 0x8e7cfec}
      QtQA::App::TestRunner: #12 0x4042d7c2 in QFontPrivate::engineForScript (this=0x8e7cdd8, script=0)
      QtQA::App::TestRunner:     at text/qfont.cpp:306
      QtQA::App::TestRunner:         locker = {val = 149409313}
      QtQA::App::TestRunner: #13 0x4044ac1b in QFontMetrics::width (this=0xbfaf59e4, ch=...)
      QtQA::App::TestRunner:     at text/qfontmetrics.cpp:600
      QtQA::App::TestRunner:         script = 0
      QtQA::App::TestRunner:         engine = 0x8e7cdd8
      QtQA::App::TestRunner:         glyphs = warning: can't find linker symbol for virtual table for `QGlyphLayoutArray<8>' value
      QtQA::App::TestRunner: {<QGlyphLayout> = {offsets = 0x40009222, glyphs = 0xbfaf5944, 
      QtQA::App::TestRunner:             advances_x = 0x8048de0, advances_y = 0xbfaf5938, 
      QtQA::App::TestRunner:             justifications = 0x4001ca54, attributes = 0x0, numGlyphs = 0}, 
      QtQA::App::TestRunner:           buffer = {0x1, 0x0, 0x1, 0x4001c8f8, 0x4042d492, 0x8e7cdd8, 
      QtQA::App::TestRunner:             0x40c82ff4, 0x40cb1ae0, 0x4004d318, 0x8e7cdd8, 0xffffffff, 0x0, 
      QtQA::App::TestRunner:             0xbfaf5980, 0xbfaf5938, 0xbfaf5944, 0x4000d626, 0x4001c8f8, 0x0, 
      QtQA::App::TestRunner:             0x1, 0x1, 0x804a321, 0x1, 0x40cb3620, 0x3d462c, 0x40c90000, 
      QtQA::App::TestRunner:             0x40cb1ae0, 0x41062ff4, 0xe, 0xbfaf5aac, 0xbfaf59a8, 0x40013230, 
      QtQA::App::TestRunner:             0x40094cfc, 0x4004d000, 0x61, 0xffffffff, 0x4001bff4, 0x804a321, 
      QtQA::App::TestRunner:             0x1, 0xbfaf5990, 0x4000d626, 0x4001cab0, 0x0, 0x1, 0x1, 0x0, 0x1, 
      QtQA::App::TestRunner:             0x8049690, 0x806211c, 0x0, 0x40094cfc, 0x41062ff4, 0xe, 
      QtQA::App::TestRunner:             0xbfaf5aac}}
      QtQA::App::TestRunner:         nglyphs = 1073820208
      QtQA::App::TestRunner: #14 0x0804dc9a in tst_QTextLayout::init (this=0xbfaf6178)
      QtQA::App::TestRunner:     at tst_qtextlayout.cpp:194
      

      Full log with backtrace available at http://pulse.test.qt.nokia.com:8080/file/artifacts/127687456/_artifacts/test-logs/tst_qtextlayout-00.txt (Nokia LAN).

      Attachments

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

        Activity

          People

            jiang Jiang Jiang
            rmcgover Rohan McGovern (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes