Bug 402966 - kwrite crashed when creating a dir in save dialog
Summary: kwrite crashed when creating a dir in save dialog
Status: RESOLVED DUPLICATE of bug 401916
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 18.12.0
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2019-01-07 10:42 UTC by Franz Trischberger
Modified: 2019-01-27 12:11 UTC (History)
0 users

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 Franz Trischberger 2019-01-07 10:42:22 UTC
Application: kwrite (18.12.0)
 (Compiled from sources)
Qt Version: 5.12.0
Frameworks Version: 5.53.0
Operating System: Linux 4.19.13-gentoo x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:
I wanted to save a new and empty file. I wanted to save it in a new directory. Creating the directory lead to kwrite crashing.

-- Backtrace:
Application: KWrite (kwrite), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc23d2fac80 (LWP 6748))]

Thread 4 (Thread 0x7fc2171b5700 (LWP 6751)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x563d03a61ec8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x563d03a61e78, cond=0x563d03a61ea0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x563d03a61ea0, mutex=0x563d03a61e78) at pthread_cond_wait.c:655
#3  0x00007fc217b0de1b in cnd_wait (mtx=0x563d03a61e78, cond=0x563d03a61ea0) at ../mesa-18.3.1/src/../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x563d03d6c970) at ../mesa-18.3.1/src/util/u_queue.c:270
#5  0x00007fc217b0db27 in impl_thrd_routine (p=<optimized out>) at ../mesa-18.3.1/src/../include/c11/threads_posix.h:87
#6  0x00007fc234cf096a in start_thread (arg=0x7fc2171b5700) at pthread_create.c:463
#7  0x00007fc2393c21bf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fc2210c7700 (LWP 6750)):
#0  0x00007fc2393b65f3 in __GI___poll (fds=0x7fc21c004db0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc232c499c9 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fc21c004db0, timeout=<optimized out>, context=0x7fc21c000bf0) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:4221
#2  g_main_context_iterate (context=context@entry=0x7fc21c000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3915
#3  0x00007fc232c49adc in g_main_context_iteration (context=0x7fc21c000bf0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3981
#4  0x00007fc239d2109b in QEventDispatcherGlib::processEvents (this=0x7fc21c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fc239cca1ca in QEventLoop::exec (this=this@entry=0x7fc2210c6d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007fc239b2963a in QThread::exec (this=this@entry=0x7fc2363ccd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:531
#7  0x00007fc236154fb5 in QDBusConnectionManager::run (this=0x7fc2363ccd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007fc239b2acf6 in QThreadPrivate::start (arg=0x7fc2363ccd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361
#9  0x00007fc234cf096a in start_thread (arg=0x7fc2210c7700) at pthread_create.c:463
#10 0x00007fc2393c21bf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fc229573700 (LWP 6749)):
#0  0x00007fc2393b65f3 in __GI___poll (fds=fds@entry=0x7fc229572cb8, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc231f007f7 in poll (__timeout=-1, __nfds=1, __fds=0x7fc229572cb8) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x563d0348f8a0, cond=cond@entry=0x563d0348f8e0, vector=vector@entry=0x0, count=count@entry=0x0) at /var/tmp/portage/x11-libs/libxcb-1.13.1/work/libxcb-1.13.1/src/xcb_conn.c:479
#3  0x00007fc231f0242a in xcb_wait_for_event (c=c@entry=0x563d0348f8a0) at /var/tmp/portage/x11-libs/libxcb-1.13.1/work/libxcb-1.13.1/src/xcb_in.c:697
#4  0x00007fc22bd27cda in QXcbEventQueue::run (this=0x563d0349bbf0) at qxcbeventqueue.cpp:225
#5  0x00007fc239b2acf6 in QThreadPrivate::start (arg=0x563d0349bbf0) at thread/qthread_unix.cpp:361
#6  0x00007fc234cf096a in start_thread (arg=0x7fc229573700) at pthread_create.c:463
#7  0x00007fc2393c21bf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fc23d2fac80 (LWP 6748)):
[KCrash Handler]
#6  0x00007fc238253286 in std::__atomic_base<int>::operator-- (this=0x20) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/atomic_base.h:304
#7  QAtomicOps<int>::deref<int> (_q_value=...) at /usr/include/qt5/QtCore/qatomic_cxx11.h:271
#8  QBasicAtomicInteger<int>::deref (this=0x20) at /usr/include/qt5/QtCore/qbasicatomic.h:115
#9  QSharedDataPointer<KFileItemPrivate>::~QSharedDataPointer (this=0x563d041a76d0, __in_chrg=<optimized out>) at /usr/include/qt5/QtCore/qshareddata.h:89
#10 KFileItem::~KFileItem (this=0x563d041a76d0, __in_chrg=<optimized out>) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/kfileitem.h:47
#11 0x00007fc23830fc25 in QList<KFileItem>::node_destruct (this=0x563d0421bed0, n=<optimized out>) at /usr/include/qt5/QtCore/qlist.h:455
#12 QList<KFileItem>::erase (this=0x563d0421bed0, it=...) at /usr/include/qt5/QtCore/qlist.h:539
#13 0x00007fc23831013a in KCoreDirListerCache::reinsert (this=this@entry=0x7fc238573400 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, item=..., oldUrl=...) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/kcoredirlister_p.h:309
#14 0x00007fc23830559d in KCoreDirListerCache::processPendingUpdates (this=this@entry=0x7fc238573400 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/kcoredirlister.cpp:2013
#15 0x00007fc238305c34 in KCoreDirListerCache::slotResult (this=0x7fc238573400 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, j=<optimized out>) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/kcoredirlister.cpp:1341
#16 0x00007fc239cf5417 in QtPrivate::QSlotObjectBase::call (a=0x7ffc8dcaf110, r=0x7fc238573400 <(anonymous namespace)::Q_QGS_kDirListerCache::innerFunction()::holder>, this=0x563d041c67d0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#17 QMetaObject::activate (sender=sender@entry=0x563d04144780, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffc8dcaf110) at kernel/qobject.cpp:3759
#18 0x00007fc239cf5967 in QMetaObject::activate (sender=sender@entry=0x563d04144780, m=m@entry=0x7fc23b355500 <KJob::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x7ffc8dcaf110) at kernel/qobject.cpp:3631
#19 0x00007fc23b0fe1cc in KJob::result (this=this@entry=0x563d04144780, _t1=<optimized out>, _t1@entry=0x563d04144780, _t2=...) at src/lib/KF5CoreAddons_autogen/include/moc_kjob.cpp:573
#20 0x00007fc23b0fed01 in KJob::finishJob (this=0x563d04144780, emitResult=<optimized out>) at /var/tmp/portage/kde-frameworks/kcoreaddons-5.53.1/work/kcoreaddons-5.53.1/src/lib/jobs/kjob.cpp:109
#21 0x00007fc23b100bca in KJob::emitResult (this=<optimized out>) at /var/tmp/portage/kde-frameworks/kcoreaddons-5.53.1/work/kcoreaddons-5.53.1/src/lib/jobs/kjob.cpp:293
#22 0x00007fc2382bb050 in KIO::SimpleJob::slotFinished (this=this@entry=0x563d04144780) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/simplejob.cpp:232
#23 0x00007fc2382af98b in KIO::ListJob::slotFinished (this=0x563d04144780) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/listjob.cpp:247
#24 0x00007fc239cf5417 in QtPrivate::QSlotObjectBase::call (a=0x7ffc8dcaf350, r=0x563d04144780, this=0x7fc224008550) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#25 QMetaObject::activate (sender=sender@entry=0x563d04186a00, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x0) at kernel/qobject.cpp:3759
#26 0x00007fc239cf5967 in QMetaObject::activate (sender=sender@entry=0x563d04186a00, m=m@entry=0x7fc23856c5a0 <KIO::SlaveInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=4, argv=argv@entry=0x0) at kernel/qobject.cpp:3631
#27 0x00007fc23828ea43 in KIO::SlaveInterface::finished (this=this@entry=0x563d04186a00) at src/core/KF5KIOCore_autogen/include/moc_slaveinterface.cpp:441
#28 0x00007fc238292ac4 in KIO::SlaveInterface::dispatch (this=0x563d04186a00, _cmd=<optimized out>, rawdata=...) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/slaveinterface.cpp:160
#29 0x00007fc23828f198 in KIO::SlaveInterface::dispatch (this=0x563d04186a00) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/slaveinterface.cpp:89
#30 0x00007fc2382954f1 in KIO::Slave::gotInput (this=0x563d04186a00) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/slave.cpp:406
#31 0x00007fc239cf5417 in QtPrivate::QSlotObjectBase::call (a=0x7ffc8dcaf5f0, r=0x563d04186a00, this=0x563d041ca270) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#32 QMetaObject::activate (sender=0x563d0416bfb0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3759
#33 0x00007fc239cf5967 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fc23856b300 <KIO::Connection::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3631
#34 0x00007fc238237809 in KIO::Connection::readyRead (this=<optimized out>) at src/core/KF5KIOCore_autogen/include/moc_connection_p.cpp:147
#35 KIO::ConnectionPrivate::dequeue (this=0x563d041e57b0) at /var/tmp/portage/kde-frameworks/kio-5.53.0/work/kio-5.53.0/src/core/connection.cpp:46
#36 0x00007fc239cf603a in QObject::event (this=0x563d0416bfb0, e=<optimized out>) at kernel/qobject.cpp:1249
#37 0x00007fc23a9bf7ac in QApplicationPrivate::notify_helper (this=this@entry=0x563d0347da00, receiver=receiver@entry=0x563d0416bfb0, e=e@entry=0x563d0415bb30) at kernel/qapplication.cpp:3752
#38 0x00007fc23a9c6d10 in QApplication::notify (this=0x7ffc8dcb08a0, receiver=0x563d0416bfb0, e=0x563d0415bb30) at kernel/qapplication.cpp:3499
#39 0x00007fc239ccb3d7 in QCoreApplication::notifyInternal2 (receiver=0x563d0416bfb0, event=0x563d0415bb30) at kernel/qcoreapplication.cpp:1061
#40 0x00007fc239ccb66e in QCoreApplication::sendEvent (receiver=<optimized out>, event=event@entry=0x563d0415bb30) at kernel/qcoreapplication.cpp:1451
#41 0x00007fc239cce247 in QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x563d03474770) at kernel/qcoreapplication.cpp:1800
#42 0x00007fc239cce7b8 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1654
#43 0x00007fc239d21293 in postEventSourceDispatch (s=s@entry=0x563d034ce300) at kernel/qeventdispatcher_glib.cpp:276
#44 0x00007fc232c49817 in g_main_dispatch (context=0x7fc224004ff0) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3182
#45 g_main_context_dispatch (context=context@entry=0x7fc224004ff0) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3847
#46 0x00007fc232c49a50 in g_main_context_iterate (context=context@entry=0x7fc224004ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3920
#47 0x00007fc232c49adc in g_main_context_iteration (context=0x7fc224004ff0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3981
#48 0x00007fc239d2107f in QEventDispatcherGlib::processEvents (this=0x563d034e4900, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#49 0x00007fc239cca1ca in QEventLoop::exec (this=this@entry=0x7ffc8dcafc00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#50 0x00007fc23abafe97 in QDialog::exec (this=0x563d03e7aa30) at dialogs/qdialog.cpp:557
#51 0x00007fc23abafd9c in QDialog::exec (this=this@entry=0x7ffc8dcafd40) at dialogs/qdialog.cpp:553
#52 0x00007fc23abc1eb5 in QFileDialog::getSaveFileUrl (parent=0x563d03804a20, caption=..., dir=..., filter=..., selectedFilter=selectedFilter@entry=0x0, options=..., supportedSchemes=...) at dialogs/qfiledialog.cpp:2434
#53 0x00007fc23ccb407b in KTextEditor::DocumentPrivate::documentSaveAs (this=0x563d037ed0b0) at /var/tmp/portage/kde-frameworks/ktexteditor-5.53.0/work/ktexteditor-5.53.0/src/document/katedocument.cpp:4304
#54 0x00007fc23ccb1387 in KTextEditor::DocumentPrivate::documentSave (this=0x563d037ed0b0) at /var/tmp/portage/kde-frameworks/ktexteditor-5.53.0/work/ktexteditor-5.53.0/src/document/katedocument.cpp:4295
#55 0x00007fc23ce364aa in KTextEditor::DocumentPrivate::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x7ffc8dcaffc0) at src/KF5TextEditor_autogen/DV7UALDUNI/moc_katedocument.cpp:512
#56 0x00007fc239cf52f3 in QMetaObject::activate (sender=sender@entry=0x563d0390af40, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc8dcaffc0) at kernel/qobject.cpp:3778
#57 0x00007fc239cf5967 in QMetaObject::activate (sender=sender@entry=0x563d0390af40, m=m@entry=0x7fc23b091820 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc8dcaffc0) at kernel/qobject.cpp:3631
#58 0x00007fc23a9b90c2 in QAction::triggered (this=this@entry=0x563d0390af40, _t1=<optimized out>) at .moc/moc_qaction.cpp:380
#59 0x00007fc23a9bb6dc in QAction::activate (this=0x563d0390af40, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1166
#60 0x00007fc23a9bc031 in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1092
#61 0x00007fc23a9bf7ac in QApplicationPrivate::notify_helper (this=this@entry=0x563d0347da00, receiver=receiver@entry=0x563d0390af40, e=e@entry=0x7ffc8dcb02d0) at kernel/qapplication.cpp:3752
#62 0x00007fc23a9c6d10 in QApplication::notify (this=0x7ffc8dcb08a0, receiver=0x563d0390af40, e=0x7ffc8dcb02d0) at kernel/qapplication.cpp:3499
#63 0x00007fc239ccb3d7 in QCoreApplication::notifyInternal2 (receiver=0x563d0390af40, event=0x7ffc8dcb02d0) at kernel/qcoreapplication.cpp:1061
#64 0x00007fc23a293462 in QShortcutMap::dispatchEvent (this=this@entry=0x563d0347dae0, e=e@entry=0x7ffc8dcb0380) at kernel/qshortcutmap.cpp:700
#65 0x00007fc23a29352a in QShortcutMap::tryShortcut (this=this@entry=0x563d0347dae0, e=e@entry=0x7ffc8dcb0380) at kernel/qshortcutmap.cpp:351
#66 0x00007fc23a24ab53 in QWindowSystemInterface::handleShortcutEvent (window=<optimized out>, window@entry=0x563d03ad8c10, timestamp=253504146, keyCode=83, modifiers=..., nativeScanCode=39, nativeVirtualKey=115, nativeModifiers=20, text=..., autorepeat=false, count=1) at kernel/qwindowsysteminterface.cpp:462
#67 0x00007fc23a267427 in QGuiApplicationPrivate::processKeyEvent (e=0x563d03e97620) at kernel/qguiapplication.cpp:2209
#68 0x00007fc23a26c4f5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x563d03e97620) at kernel/qguiapplication.cpp:1843
#69 0x00007fc23a24775b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1068
#70 0x00007fc22bd28cca in xcbSourceDispatch (source=source@entry=0x563d034cb350) at qxcbeventdispatcher.cpp:105
#71 0x00007fc232c49817 in g_main_dispatch (context=0x7fc224004ff0) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3182
#72 g_main_context_dispatch (context=context@entry=0x7fc224004ff0) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3847
#73 0x00007fc232c49a50 in g_main_context_iterate (context=context@entry=0x7fc224004ff0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3920
#74 0x00007fc232c49adc in g_main_context_iteration (context=0x7fc224004ff0, may_block=may_block@entry=1) at /var/tmp/portage/dev-libs/glib-2.58.2/work/glib-2.58.2/glib/gmain.c:3981
#75 0x00007fc239d2107f in QEventDispatcherGlib::processEvents (this=0x563d034e4900, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#76 0x00007fc239cca1ca in QEventLoop::exec (this=this@entry=0x7ffc8dcb0730, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#77 0x00007fc239cd2bc0 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1364
#78 0x0000563d0215a1b5 in main (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/kwrite-18.12.0/work/kate-18.12.0/kwrite/main.cpp:294
[Inferior 1 (process 6748) detached]

Reported using DrKonqi
Comment 1 Christoph Feck 2019-01-27 12:11:46 UTC

*** This bug has been marked as a duplicate of bug 401916 ***