Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8923 closed defect (fixed)

Crash when trying to record a power search

Reported by: superm1@… Owned by: stuartm
Priority: minor Milestone: 0.24
Component: MythTV - General Version: 0.23-fixes
Severity: medium Keywords:
Cc: Ticket locked: no

Description

A user reported at the Mythbuntu bug tracker a crash when trying to perform a power search.

They had version 0.23.1 r26231 installed with debug symbols. Here is the backtrace:

#0  0x08085209 in QString (this=0xbf9e4e98, other=...)
    at /usr/include/qt4/QtCore/qstring.h:714
No locals.
#1  0x080b4ff0 in MythUITextEdit::GetText (this=0x0)
    at ../../libs/libmythui/mythuitextedit.h:46
No locals.
#2  0x0817bb53 in PowerSearchPopup::recordClicked (this=0xaa7a0128)
    at proglist.cpp:2214
        genreflag = 191
        what = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0x0, 
          static codecForCStrings = 0x0}
        mainStack = 0xbf9e4ef8
        schededit = 0xbf9e4f7c
        text = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0x5, 
          static codecForCStrings = 0x0}
        record = 0x0
#3  0x081e7f29 in PowerSearchPopup::qt_metacall (this=0xaa7a0128, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf9e4f7c)
    at moc_proglist.cpp:240
No locals.
#4  0x09b1ec9a in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#5  0x09b2d3d5 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#6  0x004428f3 in MythUIButton::Clicked (this=0xaa4ef198)
    at moc_mythuibutton.cpp:96
No locals.
#7  0x00376ad2 in MythUIButton::Push (this=0xaa4ef198, lock=false)
    at mythuibutton.cpp:176
No locals.
#8  0x00376903 in MythUIButton::keyPressEvent (this=0xaa4ef198, e=0xbf9e5574)
    at mythuibutton.cpp:137
        action = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0x9d8ad90, 
          static codecForCStrings = 0x0}
        i = 0
        actions = {<QList<QString>> = {{p = {static shared_null = {ref = {
                    _q_value = 7466}, alloc = 0, begin = 0, end = 0, 
                  sharable = 1, array = {0x0}}, d = 0xaa4e0e08}, 
              d = 0xaa4e0e08}}, <No data fields>}
        handled = true
#9  0x00358f43 in MythScreenType::keyPressEvent (this=0xaa7a0128, 
    event=0xbf9e5574) at mythscreentype.cpp:404
        handled = false
        actions = {<QList<QString>> = {{p = {static shared_null = {ref = {
                    _q_value = 7466}, alloc = 0, begin = 0, end = 0, 
                  sharable = 1, array = {0x0}}, d = 0x6}, 
              d = 0x6}}, <No data fields>}
#10 0x0031bfac in MythMainWindow::eventFilter (this=0x9d85720, e=0xbf9e5574)
    at mythmainwindow.cpp:1586
        top = 0xaa7a0128
        ke = 0xbf9e5574
        it = 0x9f22a70
        ge = 0x9a35403
#11 0x09b18cda in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#12 0x0372b4b9 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
   from /usr/lib/libQtGui.so.4
No symbol table info available.
#13 0x03733b71 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libQtGui.so.4
No symbol table info available.
#14 0x09b19a3b in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
   from /usr/lib/libQtCore.so.4
No symbol table info available.
#15 0x0372c2be in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#16 0x037e5d90 in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#17 0x037e82f5 in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#18 0x037bb757 in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/libQtGui.so.4
No symbol table info available.
#19 0x037eb60a in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#20 0x032675e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
No symbol table info available.
#21 0x0326b2d8 in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#22 0x0326b4b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
No symbol table info available.
#23 0x09b455d5 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#24 0x037eb135 in ?? () from /usr/lib/libQtGui.so.4
No symbol table info available.
#25 0x09b18059 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
No symbol table info available.
#26 0x09b184aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQtCore.so.4
No symbol table info available.
#27 0x09b1c69f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
No symbol table info available.
#28 0x0372b577 in QApplication::exec() () from /usr/lib/libQtGui.so.4
No symbol table info available.
#29 0x08084b1c in main (argc=3, argv=0xbf9e6374) at main.cpp:1515
        settingsQuery = {<QList<QString>> = {{p = {static shared_null = {
                  ref = {_q_value = 7466}, alloc = 0, begin = 0, end = 0, 
                  sharable = 1, array = {0x0}}, d = 0x82640f8}, 
              d = 0x82640f8}}, <No data fields>}
        binname = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0x9d5e530, 
          static codecForCStrings = 0x0}
        a = <incomplete type>
        pluginname = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0x8265570, 
          static codecForCStrings = 0x0}
        settingsOverride = {{d = 0x8264c80, e = 0x8264c80}}
        themedir = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0xb2a44f90, 
          static codecForCStrings = 0x0}
        networkControl = 0x0
        bPromptForBackend = false
        upgradeAllowed = false
        callCleanup = warning: can't find linker symbol for virtual table for `(anonymous namespace)::CleanupGuard' value
warning:   found `(anonymous namespace)::BookmarkDialog::customEvent(QEvent*)' instead
{m_cleanFunction = 0x8078271 <cleanup>}
        pa_ret = 0
        dir = {d_ptr = {d = 0x9d89ef8}}
        priv_thread = 3050298224
        status = 0
        pmanager = 0xb3bf5218
        fileprefix = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0x9d5e158, 
          static codecForCStrings = 0x0}
        sysEventHandler = 0x9df2c38
        cmdline = {parseTypes = 1535, settingsOverride = {{d = 0x8264c80, 
              e = 0x8264c80}}, settingsQuery = {<QList<QString>> = {{p = {
                  static shared_null = {ref = {_q_value = 7466}, alloc = 0, 
                    begin = 0, end = 0, sharable = 1, array = {0x0}}, 
                  d = 0x82640f8}, d = 0x82640f8}}, <No data fields>}, 
          display = {static null = {<No data fields>}, static shared_null = {
              ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
              clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
              capacity = 0, reserved = 0, array = {0}}, 
            static shared_empty = {ref = {_q_value = 1620}, alloc = 0, 
              size = 0, data = 0x9c2e48e, clean = 0, simpletext = 0, 
              righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, 
              array = {0}}, d = 0x8265570, static codecForCStrings = 0x0}, 
          geometry = {static null = {<No data fields>}, static shared_null = {
              ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
              clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
              capacity = 0, reserved = 0, array = {0}}, 
            static shared_empty = {ref = {_q_value = 1620}, alloc = 0, 
              size = 0, data = 0x9c2e48e, clean = 0, simpletext = 0, 
              righttoleft = 0, asciiCache = 0, capacity = 0, reserved = 0, 
              array = {0}}, d = 0x8265570, static codecForCStrings = 0x0}, 
          wantsToExit = false}
        finfo = {d_ptr = {d = 0x9d2ba70}}
        ResetSettings = false
        priv_thread_created = true
        themename = {static null = {<No data fields>}, static shared_null = {
            ref = {_q_value = 3645}, alloc = 0, size = 0, data = 0x8265582, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, static shared_empty = {
            ref = {_q_value = 1620}, alloc = 0, size = 0, data = 0x9c2e48e, 
            clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, 
            capacity = 0, reserved = 0, array = {0}}, d = 0xb2a1a7d0, 
          static codecForCStrings = 0x0}
        mainWindow = 0x9d85720
        bcm = {<> = {<No data fields>}, static staticMetaObject = {d = {
              superdata = 0x82652b0, 
              stringdata = 0x8210e40 "BackendConnectionManager", 
              data = 0x8210de0, extradata = 0x0}}, m_reconnecting = 0x0, 
          m_reconnect_timer = 0x9e241a8, m_first_time = false}
        bBypassAutoDiscovery = false
        cmdline_err = false
        mon = 0xb2a27090
        ret = 50840524

The user provided additional details (such as a threaded backtrace and logs on Launchpad at https://bugs.launchpad.net/mythbuntu/+bug/636499 in the first comment.

Change History (4)

comment:1 Changed 9 years ago by sphery

Milestone: unknown0.24
Owner: set to stuartm
Status: newassigned

comment:2 Changed 9 years ago by stuartm

Resolution: fixed
Status: assignedclosed

(In [26269]) Fix a segfault when using the Advanced Search dialog. We were referencing a non-existant textedit when we instead wanted to use the buttonlist, they were referenced by similarly named variables and I'm guessing either a typo or copy/paste error was to blame. This has been broken since 0.22 so it seems it's not a frequently used feature. Fixes #8923

comment:3 Changed 9 years ago by Josh Rosenberg

Thanks for the quick fix! Will this be available in 0.23.1?

comment:4 Changed 9 years ago by sphery

(In [26862]) Refs #8923. Fix crash in Advanced Search. Backports [26269] from trunk.

Note: See TracTickets for help on using tickets.