Bug 385473 - Kate always crashes when I close it with Ctrl+W
Summary: Kate always crashes when I close it with Ctrl+W
Status: RESOLVED UPSTREAM
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-10-07 18:11 UTC by Airton
Modified: 2019-05-14 00:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Airton 2017-10-07 18:11:03 UTC
Application: kate (16.12.3)

Qt Version: 5.7.1
Frameworks Version: 5.31.0
Operating System: Linux 4.10.0-35-generic x86_64
Distribution: Ubuntu 17.04

-- Information about the crash:
- What I was doing when the application crashed:
1) Create an empty file
2) Write something and save it
3) Close the kate with Ctrl+W

- Unusual behavior I noticed:
Throws an "segmentation fault" exception

The crash can be reproduced every time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f074f198900 (LWP 2638))]

Thread 2 (Thread 0x7f0739b7a700 (LWP 2639)):
#0  0x00007f0749946d8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f0744296576 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f074429668c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f074a5720bb in QEventDispatcherGlib::processEvents (this=0x7f07340008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f074a51bbea in QEventLoop::exec (this=this@entry=0x7f0739b79c90, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#5  0x00007f074a349f83 in QThread::exec (this=this@entry=0x7f074abf5d20 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:507
#6  0x00007f074a9845d5 in QDBusConnectionManager::run (this=0x7f074abf5d20 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#7  0x00007f074a34ec38 in QThreadPrivate::start (arg=0x7f074abf5d20 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:368
#8  0x00007f07463c76da in start_thread (arg=0x7f0739b7a700) at pthread_create.c:456
#9  0x00007f0749952d7f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7f074f198900 (LWP 2638)):
[KCrash Handler]
#6  0x00007f074a4e5f08 in QSortFilterProxyModel::parent (this=0x55ef394ce150, child=...) at itemmodels/qsortfilterproxymodel.cpp:1900
#7  0x00007f074bbda29b in QModelIndex::parent (this=0x55ef39be33e8) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:417
#8  QTreeView::isIndexHidden (this=0x55ef396dbc00, index=...) at itemviews/qtreeview.cpp:3032
#9  0x00007f074bbdc93f in QTreeView::visualRect (this=0x55ef396dbc00, index=...) at itemviews/qtreeview.cpp:1113
#10 0x00007f074bb848da in QAccessibleTableCell::rect (this=0x55ef39be33c0) at accessible/itemviews.cpp:1063
#11 0x00007f0738c248ae in AtSpiAdaptor::accessibleInterfaces (this=this@entry=0x55ef39b421a0, interface=interface@entry=0x55ef39be33c0) at linuxaccessibility/atspiadaptor.cpp:1472
#12 0x00007f0738c2b463 in AtSpiAdaptor::accessibleInterface (this=this@entry=0x55ef39b421a0, interface=interface@entry=0x55ef39be33c0, function=..., message=..., connection=...) at linuxaccessibility/atspiadaptor.cpp:1412
#13 0x00007f0738c2b9e9 in AtSpiAdaptor::accessibleInterface (this=0x55ef39b421a0, interface=0x55ef39be33c0, function=..., message=..., connection=...) at linuxaccessibility/atspiadaptor.cpp:1368
#14 0x00007f0738c2fd6c in AtSpiAdaptor::handleMessage (this=0x55ef39b421a0, message=..., connection=...) at linuxaccessibility/atspiadaptor.cpp:1282
#15 0x00007f074a9929b0 in QDBusConnectionPrivate::activateObject (this=0x7f0734008920, node=..., msg=..., pathStartPos=27) at qdbusintegrator.cpp:1451
#16 0x00007f074a99535e in QDBusActivateObjectEvent::placeMetaCall (this=0x7f073400e460) at qdbusintegrator.cpp:1610
#17 0x00007f074a54a639 in QObject::event (this=0x55ef39b421a0, e=<optimized out>) at kernel/qobject.cpp:1263
#18 0x00007f074b94e35c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55ef39b421a0, e=0x7f073400e460) at kernel/qapplication.cpp:3799
#19 0x00007f074b955b21 in QApplication::notify (this=0x7ffffe601f00, receiver=0x55ef39b421a0, e=0x7f073400e460) at kernel/qapplication.cpp:3556
#20 0x00007f074a51dc00 in QCoreApplication::notifyInternal2 (receiver=0x55ef39b421a0, event=event@entry=0x7f073400e460) at kernel/qcoreapplication.cpp:988
#21 0x00007f074a52039d in QCoreApplication::sendEvent (event=0x7f073400e460, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x55ef3921a1c0) at kernel/qcoreapplication.cpp:1649
#23 0x00007f074a520808 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1503
#24 0x00007f074a571c93 in postEventSourceDispatch (s=0x55ef392622a0) at kernel/qeventdispatcher_glib.cpp:276
#25 0x00007f0744296377 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f07442965e0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f074429668c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f074a57209f in QEventDispatcherGlib::processEvents (this=0x55ef3926d3a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#29 0x00007f074a51bbea in QEventLoop::exec (this=this@entry=0x7ffffe601c20, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#30 0x00007f074a52433c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1261
#31 0x000055ef38d042ce in main (argc=<optimized out>, argv=<optimized out>) at ./kate/main.cpp:577

Reported using DrKonqi
Comment 1 Darren Lissimore 2017-10-07 19:04:28 UTC
Tried reproduction on KDE-Neon; 
Qt 5.9.1 
Frameworks 5.39.0
Kate 17.08.1 

Can't reproduce it. 

Working on getting an older system up and running. 
There are few bug reports showing up using Qt 5.7.1
 - and will try and get a test system up with that Qt base.
Comment 2 Airton 2017-10-11 11:20:20 UTC
(In reply to Darren Lissimore from comment #1)
> Tried reproduction on KDE-Neon; 
> Qt 5.9.1 
> Frameworks 5.39.0
> Kate 17.08.1 
> 
> Can't reproduce it. 
> 
> Working on getting an older system up and running. 
> There are few bug reports showing up using Qt 5.7.1
>  - and will try and get a test system up with that Qt base.

Is it safe to upgrade Kubuntu 17.04 to KDE Neon using PPA?

I'm very interessing to use this new KDE OS, but I can't format my system (at least now)
Comment 3 Christoph Feck 2017-10-17 20:50:01 UTC
Crash could be caused by Qt accessibility, see https://bugreports.qt.io/browse/QTBUG-58153
Comment 4 Christoph Feck 2019-05-14 00:40:10 UTC
Fixed in Qt 5.9.2 and later according to comment #3.