Bug 344428

Summary: Crash if I click System Log button
Product: [Applications] KSystemLog Reporter: ali.sherif10
Component: generalAssignee: Nicolas Ternisien <nicolas.ternisien>
Status: RESOLVED FIXED    
Severity: crash CC: cpigat242, kernelmd
Priority: NOR    
Version First Reported In: 0.4   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Adds file existance checking, when user tries to change log mode.
Copy of patch from Bug 342490

Description ali.sherif10 2015-02-21 17:44:42 UTC
Application: ksystemlog (0.4)
KDE Platform Version: 4.14.1
Qt Version: 4.8.6
Operating System: Linux 3.16.0-30-generic x86_64
Distribution: Ubuntu 14.10

-- Information about the crash:
Apllication crashes, if I click System Log button, which is at the top of the screen.

-- Backtrace:
Application: KSystemlog (ksystemlog), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fefa9b6d8c0 (LWP 5893))]

Thread 2 (Thread 0x7fef9889e700 (LWP 5895)):
#0  0x00007fefa71f53dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fefa383eee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fefa383effc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fefa864204e in QEventDispatcherGlib::processEvents (this=0x7fef940008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007fefa86134f1 in QEventLoop::processEvents (this=this@entry=0x7fef9889dce0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fefa8613805 in QEventLoop::exec (this=this@entry=0x7fef9889dce0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fefa8511c39 in QThread::exec (this=this@entry=0x272c1d0) at thread/qthread.cpp:538
#7  0x00007fefa85f5033 in QInotifyFileSystemWatcherEngine::run (this=0x272c1d0) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fefa851439f in QThreadPrivate::start (arg=0x272c1d0) at thread/qthread_unix.cpp:349
#9  0x00007fefa412c0a5 in start_thread (arg=0x7fef9889e700) at pthread_create.c:309
#10 0x00007fefa71ff88d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fefa9b6d8c0 (LWP 5893)):
[KCrash Handler]
#6  childIndex (column=0, row=34329984, this=0x31) at ../../include/QtGui/private/../../../src/gui/itemviews/qstandarditemmodel_p.h:85
#7  QStandardItem::child (this=<optimized out>, row=34329984, column=0) at itemviews/qstandarditemmodel.cpp:1700
#8  0x00007fefa7f2c362 in itemFromIndex (index=..., this=<optimized out>) at ../../include/QtGui/private/../../../src/gui/itemviews/qstandarditemmodel_p.h:162
#9  QStandardItemModel::data (this=<optimized out>, index=..., role=0) at itemviews/qstandarditemmodel.cpp:2653
#10 0x00007fefa7d6f981 in QComboBoxPrivate::itemText (this=this@entry=0x1f07d10, index=...) at widgets/qcombobox.cpp:1287
#11 0x00007fefa7d72f5f in QComboBoxPrivate::_q_emitCurrentIndexChanged (this=0x1f07d10, index=...) at widgets/qcombobox.cpp:1279
#12 0x00007fefa8628a7a in QMetaObject::activate (sender=sender@entry=0x1f1ac30, m=m@entry=0x7fefa8978860 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fffd2fe9ae0) at kernel/qobject.cpp:3567
#13 0x00007fefa8672404 in QAbstractItemModel::rowsInserted (this=this@entry=0x1f1ac30, _t1=..., _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:196
#14 0x00007fefa860e062 in QAbstractItemModel::endInsertRows (this=0x1f1ac30) at kernel/qabstractitemmodel.cpp:2433
#15 0x00007fefa7f2da75 in QStandardItemModelPrivate::rowsInserted (this=<optimized out>, parent=parent@entry=0x1f1ac50, row=row@entry=0, count=count@entry=1) at itemviews/qstandarditemmodel.cpp:558
#16 0x00007fefa7f2e7bf in QStandardItemPrivate::insertRows (this=0x1f1ac70, row=row@entry=0, count=count@entry=1, items=...) at itemviews/qstandarditemmodel.cpp:433
#17 0x00007fefa7f3004c in QStandardItem::insertRow (this=<optimized out>, row=row@entry=0, items=...) at itemviews/qstandarditemmodel.cpp:1457
#18 0x00007fefa7f300c3 in QStandardItemModel::insertRow (this=this@entry=0x1f1ac30, row=row@entry=0, items=...) at itemviews/qstandarditemmodel.cpp:2498
#19 0x00007fefa7d74375 in insertRow (aitem=0x25cdd90, arow=<optimized out>, this=0x1f1ac30) at ../../include/QtGui/../../src/gui/itemviews/qstandarditemmodel.h:438
#20 QComboBox::insertItem (this=<optimized out>, index=0, icon=..., text=..., userData=...) at widgets/qcombobox.cpp:2145
#21 0x000000000042fcc0 in _start ()

Report to nicolas.ternisien@gmail.com

Reproducible: Always

Steps to Reproduce:
1. Click System Log.

Actual Results:  
Application crashes.
Comment 1 . 2015-03-11 20:47:02 UTC
Confirmed

Here is my backtrace (basically the same as above):

Application: ksystemlog (0.4)
KDE Platform Version: 4.14.1
Qt Version: 4.8.6
Operating System: Linux 3.16.0-31-generic x86_64
Distribution: Ubuntu 14.10

-- Backtrace:
Application: KSystemlog (ksystemlog), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fb72b1328c0 (LWP 29715))]

Thread 2 (Thread 0x7fb719520700 (LWP 29807)):
#0  0x00007fb7287af84d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fb724df9ee4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fb724df9ffc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fb729bfc04e in QEventDispatcherGlib::processEvents (this=0x7fb70c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:436
#4  0x00007fb729bcd4f1 in QEventLoop::processEvents (this=this@entry=0x7fb71951fce0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fb729bcd805 in QEventLoop::exec (this=this@entry=0x7fb71951fce0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fb729acbc39 in QThread::exec (this=this@entry=0x154fd50) at thread/qthread.cpp:538
#7  0x00007fb729baf033 in QInotifyFileSystemWatcherEngine::run (this=0x154fd50) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007fb729ace39f in QThreadPrivate::start (arg=0x154fd50) at thread/qthread_unix.cpp:349
#9  0x00007fb7256e70a5 in start_thread (arg=0x7fb719520700) at pthread_create.c:309
#10 0x00007fb7287b9cfd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7fb72b1328c0 (LWP 29715)):
[KCrash Handler]
#5  childIndex (column=0, row=27043776, this=0x31) at ../../include/QtGui/private/../../../src/gui/itemviews/qstandarditemmodel_p.h:85
#6  QStandardItem::child (this=<optimized out>, row=27043776, column=0) at itemviews/qstandarditemmodel.cpp:1700
#7  0x00007fb7294e6362 in itemFromIndex (index=..., this=<optimized out>) at ../../include/QtGui/private/../../../src/gui/itemviews/qstandarditemmodel_p.h:162
#8  QStandardItemModel::data (this=<optimized out>, index=..., role=0) at itemviews/qstandarditemmodel.cpp:2653
#9  0x00007fb729329981 in QComboBoxPrivate::itemText (this=this@entry=0x13ee9b0, index=...) at widgets/qcombobox.cpp:1287
#10 0x00007fb72932cf5f in QComboBoxPrivate::_q_emitCurrentIndexChanged (this=0x13ee9b0, index=...) at widgets/qcombobox.cpp:1279
#11 0x00007fb729be2a7a in QMetaObject::activate (sender=sender@entry=0x13ee820, m=m@entry=0x7fb729f32860 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7fff813671d0) at kernel/qobject.cpp:3567
#12 0x00007fb729c2c404 in QAbstractItemModel::rowsInserted (this=this@entry=0x13ee820, _t1=..., _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:196
#13 0x00007fb729bc8062 in QAbstractItemModel::endInsertRows (this=0x13ee820) at kernel/qabstractitemmodel.cpp:2433
#14 0x00007fb7294e7a75 in QStandardItemModelPrivate::rowsInserted (this=<optimized out>, parent=parent@entry=0x13eedf0, row=row@entry=0, count=count@entry=1) at itemviews/qstandarditemmodel.cpp:558
#15 0x00007fb7294e87bf in QStandardItemPrivate::insertRows (this=0x13eee10, row=row@entry=0, count=count@entry=1, items=...) at itemviews/qstandarditemmodel.cpp:433
#16 0x00007fb7294ea04c in QStandardItem::insertRow (this=<optimized out>, row=row@entry=0, items=...) at itemviews/qstandarditemmodel.cpp:1457
#17 0x00007fb7294ea0c3 in QStandardItemModel::insertRow (this=this@entry=0x13ee820, row=row@entry=0, items=...) at itemviews/qstandarditemmodel.cpp:2498
#18 0x00007fb72932e375 in insertRow (aitem=0x153bf80, arow=<optimized out>, this=0x13ee820) at ../../include/QtGui/../../src/gui/itemviews/qstandarditemmodel.h:438
#19 QComboBox::insertItem (this=<optimized out>, index=0, icon=..., text=..., userData=...) at widgets/qcombobox.cpp:2145
#20 0x000000000042fcc0 in _start ()
Comment 2 TItov Denis 2015-03-26 09:48:14 UTC
On new systems that can happen because of absence of /var/log/syslog. I have fixed this problem by adding check for log file availability in the "file_check.patch".

However, this patch is useless as is, because of bug 342490 ("crashing when clicking refresh button"), which is fixed by the patch in designated topic. For convenience, I have also attached this patch to the topic ("refresh_fix.patch")
Comment 3 TItov Denis 2015-03-26 09:49:30 UTC
Created attachment 91750 [details]
Adds file existance checking, when user tries to change log mode.
Comment 4 TItov Denis 2015-03-26 09:50:20 UTC
Created attachment 91751 [details]
Copy of patch from Bug 342490
Comment 5 ali.sherif10 2015-06-04 16:45:17 UTC
I think the bugs is fixed. Should I change its status to RESOLVED FIXED?
Comment 6 ali.sherif10 2015-06-04 16:46:10 UTC
It's fixed in Kubuntu 15.04.
Comment 7 Andrew Crouthamel 2018-11-01 13:41:43 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2018-11-16 11:34:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2018-12-01 03:48:31 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!