https://bugs.kde.org/show_bug.cgi?id=369507
Bug ID: 369507 Summary: kate crashes when changing file encoding Product: kate Version: 16.08 Platform: Gentoo Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: application Assignee: kwrite-bugs-n...@kde.org Reporter: dev.rindeal+bugs.kde....@gmail.com kate detects wrong encoding and opens cp1252 file as utf8, when trying to change the encoding, it crashes Reproducible: Always Steps to Reproduce: 1. open a file 2. try to change encoding from utf8 to cp1250 Actual Results: crash Expected Results: encoding is changed Application: kate (16.08.1) Qt Version: 5.6.1 Frameworks Version: 5.26.0 Operating System: Linux 4.1.33-gentoo x86_64 Distribution (Platform): Gentoo Packages -- Backtrace: Application: Kate (kate), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7fc8e5be97c0 (LWP 585))] Thread 3 (Thread 0x7fc8cbfff700 (LWP 618)): #0 timerSourcePrepareHelper (src=<optimized out>, timeout=0x7fc8cbffec2c) at kernel/qeventdispatcher_glib.cpp:129 #1 0x00007fc8e1afd545 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:159 #2 0x00007fc8dcc9a826 in g_main_context_prepare () at /tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3442 #3 0x00007fc8dcc9b026 in g_main_context_iterate () at /tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3820 #4 0x00007fc8dcc9b1b2 in g_main_context_iteration () at /tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901 #5 0x00007fc8e1afd8db in QEventDispatcherGlib::processEvents (this=0x7fc8c40008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419 #6 0x00007fc8e1ab109a in QEventLoop::exec (this=this@entry=0x7fc8cbffede0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #7 0x00007fc8e19223ac in QThread::exec (this=this@entry=0x7fc8e5d57bc0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:500 #8 0x00007fc8e5ce7505 in QDBusConnectionManager::run (this=0x7fc8e5d57bc0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:189 #9 0x00007fc8e192658d in QThreadPrivate::start (arg=0x7fc8e5d57bc0 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:341 #10 0x00007fc8de90f494 in start_thread () from /lib64/libpthread.so.0 #11 0x00007fc8e0edf5dd in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7fc8d474d700 (LWP 614)): #0 0x00007fc8e0ed65fd in poll () from /lib64/libc.so.6 #1 0x00007fc8ded337e2 in poll () at /usr/include/bits/poll2.h:46 #2 _xcb_conn_wait () at /tmp/portage/x11-libs/libxcb-1.12/work/libxcb-1.12/src/xcb_conn.c:479 #3 0x00007fc8ded354f7 in xcb_wait_for_event () at /tmp/portage/x11-libs/libxcb-1.12/work/libxcb-1.12/src/xcb_in.c:693 #4 0x00007fc8d6ca83b9 in QXcbEventReader::run (this=0x2386aa0) at qxcbconnection.cpp:1325 #5 0x00007fc8e192658d in QThreadPrivate::start (arg=0x2386aa0) at thread/qthread_unix.cpp:341 #6 0x00007fc8de90f494 in start_thread () from /lib64/libpthread.so.0 #7 0x00007fc8e0edf5dd in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7fc8e5be97c0 (LWP 585)): [KCrash Handler] #6 std::__atomic_base<int>::load () at /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/bits/atomic_base.h:396 #7 QAtomicOps<int>::load<int> () at /usr/include/qt5/QtCore/qatomic_cxx11.h:96 #8 QBasicAtomicInteger<int>::load () at /usr/include/qt5/QtCore/qbasicatomic.h:116 #9 QtPrivate::RefCount::isShared () at /usr/include/qt5/QtCore/qrefcount.h:95 #10 QHash<KTextEditor::Message*, QList<QSharedPointer<QAction> > >::detach () at /usr/include/qt5/QtCore/qhash.h:267 #11 QHash<KTextEditor::Message*, QList<QSharedPointer<QAction> > >::operator[] () at /usr/include/qt5/QtCore/qhash.h:723 #12 KateMessageWidget::postMessage () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0/src/view/katemessagewidget.cpp:189 #13 0x00007fc8e56a784c in KTextEditor::ViewPrivate::postMessage () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0/src/view/kateview.cpp:3478 #14 0x00007fc8e5620999 in KTextEditor::DocumentPrivate::postMessage () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0/src/document/katedocument.cpp:5952 #15 0x00007fc8e562e22f in KTextEditor::DocumentPrivate::openFile () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0/src/document/katedocument.cpp:2290 #16 0x00007fc8e52d7b3d in KParts::ReadOnlyPartPrivate::openLocalFile () at /tmp/portage/kde-frameworks/kparts-5.26.0-r1/work/kparts-5.26.0/src/readonlypart.cpp:187 #17 0x00007fc8e52d8864 in KParts::ReadOnlyPart::openUrl () at /tmp/portage/kde-frameworks/kparts-5.26.0-r1/work/kparts-5.26.0/src/readonlypart.cpp:150 #18 0x00007fc8e561934e in KTextEditor::DocumentPrivate::openUrl () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0/src/document/katedocument.cpp:2620 #19 0x00007fc8e56195d2 in KTextEditor::DocumentPrivate::documentReload () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0/src/document/katedocument.cpp:4244 #20 0x00007fc8e5791439 in KateViewEncodingAction::qt_static_metacall () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0_build/src/moc_kateviewhelpers.cpp:339 #21 0x00007fc8e1ad7db8 in QMetaObject::activate (sender=0x28c0f90, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3730 #22 0x00007fc8e3856dd5 in KSelectAction::triggered () at /tmp/portage/kde-frameworks/kwidgetsaddons-5.26.0/work/kwidgetsaddons-5.26.0_build/src/moc_kselectaction.cpp:300 #23 0x00007fc8e56c5b7d in KateViewEncodingAction::Private::_k_subActionTriggered () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0/src/view/kateviewhelpers.cpp:2405 #24 0x00007fc8e5791420 in KateViewEncodingAction::qt_static_metacall () at /tmp/portage/kde-frameworks/ktexteditor-5.26.0-r1/work/ktexteditor-5.26.0_build/src/moc_kateviewhelpers.cpp:338 #25 0x00007fc8e1ad7db8 in QMetaObject::activate (sender=0x2a85600, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3730 #26 0x00007fc8e3856d5f in KSelectAction::triggered () at /tmp/portage/kde-frameworks/kwidgetsaddons-5.26.0/work/kwidgetsaddons-5.26.0_build/src/moc_kselectaction.cpp:286 #27 0x00007fc8e3859aad in KSelectAction::actionTriggered () at /tmp/portage/kde-frameworks/kwidgetsaddons-5.26.0/work/kwidgetsaddons-5.26.0/src/kselectaction.cpp:343 #28 0x00007fc8e1ad80de in QtPrivate::QSlotObjectBase::call (a=0x7fff3d5cf580, r=0x2a85600, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:124 #29 QMetaObject::activate (sender=0x28714a0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff3d5cf580) at kernel/qobject.cpp:3715 #30 0x00007fc8e1ad8657 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fc8e2c9c740 <QActionGroup::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff3d5cf580) at kernel/qobject.cpp:3595 #31 0x00007fc8e27e32ff in QActionGroup::triggered (this=<optimized out>, _t1=0x2822b00) at .moc/moc_qactiongroup.cpp:241 #32 0x00007fc8e27e3508 in QActionGroupPrivate::_q_actionTriggered (this=<optimized out>) at kernel/qactiongroup.cpp:85 #33 0x00007fc8e27e3f79 in QActionGroup::qt_static_metacall (_o=_o@entry=0x28714a0, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=6, _a=_a@entry=0x7fff3d5cf6f0) at .moc/moc_qactiongroup.cpp:117 #34 0x00007fc8e1ad7db8 in QMetaObject::activate (sender=sender@entry=0x2822b00, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff3d5cf6f0) at kernel/qobject.cpp:3730 #35 0x00007fc8e1ad8657 in QMetaObject::activate (sender=sender@entry=0x2822b00, m=m@entry=0x7fc8e2c9c660 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fff3d5cf6f0) at kernel/qobject.cpp:3595 #36 0x00007fc8e27dfa52 in QAction::triggered (this=this@entry=0x2822b00, _t1=true) at .moc/moc_qaction.cpp:369 #37 0x00007fc8e27e2330 in QAction::activate (this=this@entry=0x2822b00, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1163 #38 0x00007fc8e29409d2 in QMenuPrivate::activateCausedStack (this=this@entry=0x289b6d0, causedStack=..., action=action@entry=0x2822b00, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1130 #39 0x00007fc8e29467a6 in QMenuPrivate::activateAction (this=this@entry=0x289b6d0, action=action@entry=0x2822b00, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1207 #40 0x00007fc8e294a899 in QMenu::mouseReleaseEvent (this=<optimized out>, e=0x7fff3d5cfcb0) at widgets/qmenu.cpp:2634 #41 0x00007fc8e282acd8 in QWidget::event (this=this@entry=0x2871460, event=event@entry=0x7fff3d5cfcb0) at kernel/qwidget.cpp:9114 #42 0x00007fc8e294b31b in QMenu::event (this=0x2871460, e=0x7fff3d5cfcb0) at widgets/qmenu.cpp:2748 #43 0x00007fc8e27e87dc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x2871460, e=0x7fff3d5cfcb0) at kernel/qapplication.cpp:3804 #44 0x00007fc8e27ee1ce in QApplication::notify (this=<optimized out>, receiver=0x2871460, e=0x7fff3d5cfcb0) at kernel/qapplication.cpp:3277 #45 0x00007fc8e1ab211a in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x2871460, event=event@entry=0x7fff3d5cfcb0) at kernel/qcoreapplication.cpp:1015 #46 0x00007fc8e27ecf35 in QCoreApplication::sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225 #47 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x2871460, event=event@entry=0x7fff3d5cfcb0, alienWidget=0x0, alienWidget@entry=0x2871460, nativeWidget=0x2871460, buttonDown=buttonDown@entry=0x7fc8e2cc7a90 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2775 #48 0x00007fc8e2844fd7 in QWidgetWindow::handleMouseEvent (this=this@entry=0x2bdd9a0, event=event@entry=0x7fff3d5d00b0) at kernel/qwidgetwindow.cpp:501 #49 0x00007fc8e28471fb in QWidgetWindow::event (this=0x2bdd9a0, event=0x7fff3d5d00b0) at kernel/qwidgetwindow.cpp:233 #50 0x00007fc8e27e87dc in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x2bdd9a0, e=0x7fff3d5d00b0) at kernel/qapplication.cpp:3804 #51 0x00007fc8e27ed956 in QApplication::notify (this=0x7fff3d5d0790, receiver=0x2bdd9a0, e=0x7fff3d5d00b0) at kernel/qapplication.cpp:3561 #52 0x00007fc8e1ab211a in QCoreApplication::notifyInternal2 (receiver=receiver@entry=0x2bdd9a0, event=event@entry=0x7fff3d5d00b0) at kernel/qcoreapplication.cpp:1015 #53 0x00007fc8e22aea93 in QCoreApplication::sendSpontaneousEvent (event=0x7fff3d5d00b0, receiver=0x2bdd9a0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228 #54 QGuiApplicationPrivate::processMouseEvent (e=0x2dbcbe0) at kernel/qguiapplication.cpp:1877 #55 0x00007fc8e22b0495 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x2dbcbe0) at kernel/qguiapplication.cpp:1661 #56 0x00007fc8e22927ab in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:648 #57 0x00007fc8d6cdc8a0 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:70 #58 0x00007fc8dcc9af53 in g_main_dispatch () at /tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3154 #59 g_main_context_dispatch () at /tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3769 #60 0x00007fc8dcc9b10f in g_main_context_iterate () at /tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3840 #61 0x00007fc8dcc9b1b2 in g_main_context_iteration () at /tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901 #62 0x00007fc8e1afd8bf in QEventDispatcherGlib::processEvents (this=0x23ac850, flags=...) at kernel/qeventdispatcher_glib.cpp:417 #63 0x00007fc8e1ab109a in QEventLoop::exec (this=this@entry=0x7fff3d5d0430, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #64 0x00007fc8e1ab868d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285 #65 0x000000000044618e in main () at /tmp/portage/kde-apps/kate-16.08.1/work/kate-16.08.1/kate/main.cpp:576 -- You are receiving this mail because: You are watching all bug changes.