Bug 1627965 - klog segfaults in QT during startup
Summary: klog segfaults in QT during startup
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: klog
Version: 28
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-09-12 01:27 UTC by Jim Lieb
Modified: 2019-03-29 19:12 UTC (History)
2 users (show)

Fixed In Version: klog-0.9.7.1-1.fc28 klog-0.9.7.1-1.fc29 klog-0.9.7.1-1.fc30
Clone Of:
Environment:
Last Closed: 2019-03-20 21:17:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
gdb stack trace of segfault (8.39 KB, text/plain)
2018-09-12 01:27 UTC, Jim Lieb
no flags Details
git patch file for update (2.88 KB, application/mbox)
2018-10-25 19:42 UTC, Jim Lieb
no flags Details

Description Jim Lieb 2018-09-12 01:27:37 UTC
Created attachment 1482517 [details]
gdb stack trace of segfault

Description of problem:
klog segfaults in QT during first startup. This is after it populates the logbook.dat sqlite database with its initial state. Klog has popped up the first two dialog boxes (GPL etc.) and fileopen for cty.csv.

Subsequent starts have similar behavior with the same stack trace.

Version-Release number of selected component (if applicable):
klog-0.9.2.9-2.fc28.x86-64

How reproducible:
Run from the shell either under gdb or the shell itself. The program segfaults before the main window is displayed.

Steps to Reproduce:
1. Run from the KDE bar this just disappears
2. Run /usr/bin/klog from bash. Reports segfault
3. Run under gdb with or without debug-info. See attached stack trace

Actual results:
segfault. see stack trace

Expected results:
At this point, it should continue in initialization and eventually display the main window.

Additional info:
gdb stack trace attached.

I suspect this is actually a QT bug in that it is deep into the QT stack. I looked at the klog code (DXCCStatusWidget) and it is not doing much at all before calling QT (QTableView::setSortingEnabled(bool)). The rest of my KDE workstation install works...

This behavior occurred both before and after an update to my F28 workstation as of 11Sep18. The update did upgrade some QT5 components but there was no difference in behavior.

Comment 1 Jim Lieb 2018-10-18 23:43:21 UTC
Here is a stack trace with syms. This is deep in QT5. I checked the project SVN and there are some changes but this path has not appear changed except to add some new features (slots for doubleclicking etc.).

where
#0  0x00007ffff7b27e97 in QHeaderViewPrivate::_q_layoutAboutToBeChanged (this=0x106c960)
    at ../../include/QtCore/../../src/corelib/tools/qarraydata.h:61
#1  0x00007ffff6e7ccbe in QMetaObject::activate(QObject*, int, int, void**) () at kernel/qobject.cpp:3767
#2  0x00007ffff6e7d36b in QMetaObject::activate (sender=sender@entry=0x1075150, 
    m=m@entry=0x7ffff70bbd00 <QAbstractItemModel::staticMetaObject>, 
    local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7fffffffc110)
    at kernel/qobject.cpp:3629
#3  0x00007ffff6dfefda in QAbstractItemModel::layoutAboutToBeChanged (this=this@entry=0x1075150, 
    _t1=..., _t2=<optimized out>, _t2@entry=QAbstractItemModel::NoLayoutChangeHint)
    at .moc/moc_qabstractitemmodel.cpp:588
#4  0x00007ffff7b77e69 in QTableModel::sort (this=0x1075150, column=<optimized out>, 
    order=<optimized out>) at itemviews/qtablewidget.cpp:530
#5  0x00007ffff7b671b9 in QTableView::setSortingEnabled (this=0x10666b0, enable=<optimized out>)
    at itemviews/qtableview.cpp:2551
#6  0x0000000000560bc9 in DXCCStatusWidget::createUI (this=0x101e000) at dxccstatuswidget.cpp:58
#7  0x00000000005609b9 in DXCCStatusWidget::DXCCStatusWidget (this=0x101e000, dp=0x1017c60, parent=0x0)
    at dxccstatuswidget.cpp:36
#8  0x0000000000436bff in MainWindow::MainWindow (this=0x7fffffffc710, _klogDir=..., tversion=...)
    at mainwindow.cpp:178
#9  0x000000000041fb2b in main (argc=1, argv=0x7fffffffd418) at main.cpp:252

Comment 2 Jim Lieb 2018-10-20 01:27:24 UTC
I have built klog from the project SVN using branch 0.9.4.1 and it works. Note that my build uses current F28 QT5 libs etc. so although the segfault is deep in QT5, there is something not right with the combo of latest QT5 and the 0.9.2.9-2 build.

Can we upgrade to upstream latest here?

Comment 3 Jim Lieb 2018-10-20 19:06:58 UTC
I have further refined my tests. I also built 0.9.2.1, and 0.9.3 (marked official releases) from SVN source and saw the same stack traces. They all crash in the instantiation of the DXCCStatusWidget.

My build of 0.9.4 does not crash. This release has some rework and extension of this widget class but I have not traced down the "why". Given that upstream is already moving on, finding a fix for 0.9.3 and earlier is a waste of time.

The better path would be to simply import the new upstream release.

Comment 4 Jim Lieb 2018-10-25 19:42:31 UTC
Created attachment 1497560 [details]
git patch file for update

I have done a local update and built with fedpkg local and mockbuild. Tested on current F28 on an x86_64 with no errors.

I have a FAS account (still?) but do not have perms for this package so here is the patch to be applied to master, f28, and f29. When this lands in bohdi, I'll be happy to test

Comment 5 Richard Shaw 2019-03-04 16:43:08 UTC
I'm going to close this with an update to the latest version here shortly. Please reopen if it doesn't fix the problem. There was a new qt build on 12/30/18 so that may make a difference.

Comment 6 Fedora Update System 2019-03-04 16:48:30 UTC
klog-0.9.7-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-3c3d767f36

Comment 7 Fedora Update System 2019-03-04 16:48:34 UTC
klog-0.9.7-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e45d53b06e

Comment 8 Fedora Update System 2019-03-05 04:37:51 UTC
klog-0.9.7-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e45d53b06e

Comment 9 Fedora Update System 2019-03-05 14:44:00 UTC
klog-0.9.7-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-3c3d767f36

Comment 10 Fedora Update System 2019-03-11 19:13:22 UTC
klog-0.9.7.1-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-66b308f164

Comment 11 Fedora Update System 2019-03-11 19:13:34 UTC
klog-0.9.7.1-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-afcbe5eab0

Comment 12 Fedora Update System 2019-03-11 19:13:44 UTC
klog-0.9.7.1-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2019-9f165d570e

Comment 13 Fedora Update System 2019-03-12 16:08:50 UTC
klog-0.9.7.1-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-66b308f164

Comment 14 Fedora Update System 2019-03-12 22:59:33 UTC
klog-0.9.7.1-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-9f165d570e

Comment 15 Fedora Update System 2019-03-12 23:40:59 UTC
klog-0.9.7.1-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-afcbe5eab0

Comment 16 Fedora Update System 2019-03-20 21:17:27 UTC
klog-0.9.7.1-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2019-03-20 22:12:53 UTC
klog-0.9.7.1-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2019-03-21 14:40:32 UTC
klog-0.9.7.1-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2019-03-29 19:12:03 UTC
klog-0.9.7.1-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.