Version: (using KDE 4.1.2) Installed from: SuSE RPMs How to reproduce: 1) In KWrite, bring up the Open File dialog. 2) In the Location input field, type "." or "..". 3) Press Enter. Expected behavior: The search directory should change to given directory, if the directory exists and is readable. Otherwise, some error message should be displayed. Actual behavior: KWrite crashes. The behavior is 100 % reproducible for me. It also happens if I input the names of some directories in my currect directory, especially "bin".
I can reproduce this bug on openSuSE 11, KDE 4.1.2 (KDE 4.1.2) "release 44.5", with following backtrace: Application: KWrite (kwrite), signal SIGSEGV [?1034h(no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 0x7f1e4ac03700 (LWP 30855)] [KCrash handler] #5 KDirModelNode::rowNumber (this=0x0) at /usr/src/debug/kdelibs-4.1.2/kio/kio/kdirmodel.cpp:97 #6 0x00007f1e4a029ce0 in KDirModelPrivate::indexForNode (this=0xce6670, node=0x0, rowNumber=-1) at /usr/src/debug/kdelibs-4.1.2/kio/kio/kdirmodel.cpp:216 #7 0x00007f1e4a02c7f2 in KDirModelPrivate::_k_slotNewItems (this=0xce6670, items=@0xca81a0) at /usr/src/debug/kdelibs-4.1.2/kio/kio/kdirmodel.cpp:310 #8 0x00007f1e4a02de06 in KDirModel::qt_metacall (this=0xcdc880, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff52c3db40) at /usr/src/debug/kdelibs-4.1.2/build/kio/kdirmodel.moc:76 #9 0x00007f1e488f5274 in QMetaObject::activate (sender=0xcdbbc0, from_signal_index=<value optimized out>, to_signal_index=13, argv=0xffffffff) at kernel/qobject.cpp:3031 #10 0x00007f1e4a017dd5 in KDirLister::newItems (this=0x0, _t1=<value optimized out>) at /usr/src/debug/kdelibs-4.1.2/build/kio/kdirlister.moc:256 #11 0x00007f1e4a018bf0 in KDirLister::Private::emitItems (this=0xcdc710) at /usr/src/debug/kdelibs-4.1.2/kio/kio/kdirlister.cpp:2238 #12 0x00007f1e4a01a4ca in KDirListerCache::slotEntries ( this=<value optimized out>, job=<value optimized out>, entries=<value optimized out>) at /usr/src/debug/kdelibs-4.1.2/kio/kio/kdirlister.cpp:997 #13 0x00007f1e4a025e0b in KDirListerCache::qt_metacall (this=0xca4400, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff52c3de60) at /usr/src/debug/kdelibs-4.1.2/build/kio/kdirlister_p.moc:97 #14 0x00007f1e488f5274 in QMetaObject::activate (sender=0xd03cb0, from_signal_index=<value optimized out>, to_signal_index=40, argv=0xffffffff) at kernel/qobject.cpp:3031 #15 0x00007f1e49ff6bf4 in KIO::ListJob::entries (this=0x0, _t1=0xd03cb0, _t2=<value optimized out>) at /usr/src/debug/kdelibs-4.1.2/build/kio/jobclasses.moc:763 #16 0x00007f1e4a004385 in KIO::ListJobPrivate::slotListEntries (this=0xe76d10, list=@0x7fff52c3e3c0) at /usr/src/debug/kdelibs-4.1.2/kio/kio/job.cpp:2318 #17 0x00007f1e4a004476 in KIO::ListJob::qt_metacall (this=0xd03cb0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff52c3e220) at /usr/src/debug/kdelibs-4.1.2/build/kio/jobclasses.moc:750 #18 0x00007f1e488f5274 in QMetaObject::activate (sender=0xe156a0, from_signal_index=<value optimized out>, to_signal_index=10, argv=0xffffffff) at kernel/qobject.cpp:3031 #19 0x00007f1e4a09eef5 in KIO::SlaveInterface::listEntries (this=0x0, _t1=<value optimized out>) at /usr/src/debug/kdelibs-4.1.2/build/kio/slaveinterface.moc:175 #20 0x00007f1e4a0a1637 in KIO::SlaveInterface::dispatch (this=0xe156a0, _cmd=<value optimized out>, rawdata=@0x16) at /usr/src/debug/kdelibs-4.1.2/kio/kio/slaveinterface.cpp:195 #21 0x00007f1e4a09f602 in KIO::SlaveInterface::dispatch (this=0xe156a0) at /usr/src/debug/kdelibs-4.1.2/kio/kio/slaveinterface.cpp:90 #22 0x00007f1e4a092e3e in KIO::Slave::gotInput (this=0xe156a0) at /usr/src/debug/kdelibs-4.1.2/kio/kio/slave.cpp:322 #23 0x00007f1e4a093148 in KIO::Slave::qt_metacall (this=0xe156a0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fff52c3e560) at /usr/src/debug/kdelibs-4.1.2/build/kio/slave.moc:75 #24 0x00007f1e488f5274 in QMetaObject::activate (sender=0x692690, from_signal_index=<value optimized out>, to_signal_index=4, argv=0xffffffff) at kernel/qobject.cpp:3031 #25 0x00007f1e49fd10e1 in KIO::ConnectionPrivate::dequeue (this=0xcdd560) at /usr/src/debug/kdelibs-4.1.2/kio/kio/connection.cpp:82 #26 0x00007f1e49fd178a in KIO::Connection::qt_metacall (this=0x692690, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xd01d40) at /usr/src/debug/kdelibs-4.1.2/build/kio/connection.moc:72 #27 0x00007f1e488eff3d in QObject::event (this=0x692690, e=0xd3bf60) at kernel/qobject.cpp:1155 #28 0x00007f1e4524117d in QApplicationPrivate::notify_helper (this=0x61b470, receiver=0x692690, e=0xd3bf60) at kernel/qapplication.cpp:3803 #29 0x00007f1e45248f2a in QApplication::notify (this=0x7fff52c40e80, receiver=0x692690, e=0xd3bf60) at kernel/qapplication.cpp:3768 #30 0x00007f1e49b688ab in KApplication::notify (this=0x7fff52c40e80, receiver=0x692690, event=0xd3bf60) at /usr/src/debug/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:311 #31 0x00007f1e488e0e71 in QCoreApplication::notifyInternal ( this=0x7fff52c40e80, receiver=0x692690, event=0xd3bf60) at kernel/qcoreapplication.cpp:587 #32 0x00007f1e488e1b2a in QCoreApplicationPrivate::sendPostedEvents ( receiver=0x0, event_type=0, data=0x602d10) at kernel/qcoreapplication.h:209 #33 0x00007f1e48909713 in postEventSourceDispatch (s=<value optimized out>) at kernel/qcoreapplication.h:214 #34 0x00007f1e42cea93a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #35 0x00007f1e42cee040 in ?? () from /usr/lib64/libglib-2.0.so.0 #36 0x00007f1e42cee1dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #37 0x00007f1e4890939f in QEventDispatcherGlib::processEvents (this=0x61ab90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319 #38 0x00007f1e452d1ccf in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198 #39 0x00007f1e488df772 in QEventLoop::processEvents ( this=<value optimized out>, flags={i = 1388572400}) at kernel/qeventloop.cpp:143 #40 0x00007f1e488df8fd in QEventLoop::exec (this=0x7fff52c3ef30, flags= {i = 1388572496}) at kernel/qeventloop.cpp:194 #41 0x00007f1e4565ab25 in QDialog::exec (this=0x7fff52c3efc0) at dialogs/qdialog.cpp:447 #42 0x00007f1e4a0cae7b in KEncodingFileDialog::getOpenUrlsAndEncoding ( encoding=@0x86c430, startDir=<value optimized out>, filter=@0x7fff52c3f110, parent=0x6e40a0, caption=<value optimized out>) at /usr/src/debug/kdelibs-4.1.2/kio/kfile/kencodingfiledialog.cpp:162 #43 0x00007f1e4a8206da in ?? () from /usr/lib64/libkdeinit4_kwrite.so #44 0x00007f1e4a820bc5 in ?? () from /usr/lib64/libkdeinit4_kwrite.so #45 0x00007f1e488f5274 in QMetaObject::activate (sender=0xbd6f70, from_signal_index=<value optimized out>, to_signal_index=6, argv=0xffffffff) at kernel/qobject.cpp:3031 #46 0x00007f1e4523b4f7 in QAction::triggered (this=0x0, _t1=false) at .moc/release-shared/moc_qaction.cpp:216 #47 0x00007f1e4523bcc0 in QAction::activate (this=0xbd6f70, event=<value optimized out>) at kernel/qaction.cpp:1125 #48 0x00007f1e4523f267 in QAction::event (this=0x0, e=<value optimized out>) at kernel/qaction.cpp:1044 #49 0x00007f1e452981c3 in QWidgetAction::event (this=0xbd6f70, event=0x7fff52c3f7a0) at kernel/qwidgetaction.cpp:230 #50 0x00007f1e4524117d in QApplicationPrivate::notify_helper (this=0x61b470, receiver=0xbd6f70, e=0x7fff52c3f7a0) at kernel/qapplication.cpp:3803 #51 0x00007f1e45248f2a in QApplication::notify (this=0x7fff52c40e80, receiver=0xbd6f70, e=0x7fff52c3f7a0) at kernel/qapplication.cpp:3768 #52 0x00007f1e49b688ab in KApplication::notify (this=0x7fff52c40e80, receiver=0xbd6f70, event=0x7fff52c3f7a0) at /usr/src/debug/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:311 #53 0x00007f1e488e0e71 in QCoreApplication::notifyInternal ( this=0x7fff52c40e80, receiver=0xbd6f70, event=0x7fff52c3f7a0) at kernel/qcoreapplication.cpp:587 #54 0x00007f1e4527680d in QShortcutMap::dispatchEvent ( this=<value optimized out>, e=0x7fff52c3fca0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209 #55 0x00007f1e4527813c in QShortcutMap::tryShortcutEvent (this=0x61b580, w=<value optimized out>, e=0x7fff52c3fca0) at kernel/qshortcutmap.cpp:362 #56 0x00007f1e45249f52 in QApplication::notify (this=<value optimized out>, receiver=0x87a0c0, e=0x7fff52c3fca0) at kernel/qapplication.cpp:3430 #57 0x00007f1e49b688ab in KApplication::notify (this=0x7fff52c40e80, receiver=0x87a0c0, event=0x7fff52c3fca0) at /usr/src/debug/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:311 #58 0x00007f1e488e0e71 in QCoreApplication::notifyInternal ( this=0x7fff52c40e80, receiver=0x87a0c0, event=0x7fff52c3fca0) at kernel/qcoreapplication.cpp:587 #59 0x00007f1e452ce834 in QKeyMapper::sendKeyEvent (keyWidget=0x87a0c0, grab=<value optimized out>, type=QEvent::KeyPress, code=79, modifiers= {i = 1388576464}, text=@0x7fff52c3fec0, autorepeat=<value optimized out>, count=1, nativeScanCode=32, nativeVirtualKey=111, nativeModifiers=4) at kernel/qkeymapper_x11.cpp:1655 #60 0x00007f1e452d0b24 in QKeyMapperPrivate::translateKeyEvent (this=0x6536f0, keyWidget=0x87a0c0, event=0x7fff52c409d0, grab=112) at kernel/qkeymapper_x11.cpp:1626 #61 0x00007f1e452aba00 in QApplication::x11ProcessEvent (this=0x7fff52c40e80, event=0x7fff52c409d0) at kernel/qapplication_x11.cpp:3051 #62 0x00007f1e452d255c in x11EventSourceDispatch (s=0x61ebf0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:142 #63 0x00007f1e42cea93a in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #64 0x00007f1e42cee040 in ?? () from /usr/lib64/libglib-2.0.so.0 #65 0x00007f1e42cee1dc in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #66 0x00007f1e4890939f in QEventDispatcherGlib::processEvents (this=0x61ab90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:319 #67 0x00007f1e452d1ccf in QGuiEventDispatcherGlib::processEvents (this=0x0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:198 #68 0x00007f1e488df772 in QEventLoop::processEvents ( this=<value optimized out>, flags={i = 1388580032}) at kernel/qeventloop.cpp:143 #69 0x00007f1e488df8fd in QEventLoop::exec (this=0x7fff52c40d00, flags= {i = 1388580112}) at kernel/qeventloop.cpp:194 #70 0x00007f1e488e1ded in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845 #71 0x00007f1e4a81f158 in kdemain () from /usr/lib64/libkdeinit4_kwrite.so #72 0x00007f1e445f6436 in __libc_start_main () from /lib64/libc.so.6 #73 0x0000000000400859 in _start () #0 0x00007f1e4467a230 in nanosleep () from /lib64/libc.so.6
the code for the dialog is in kdelibs, hence re-assigning.
*** Bug 173196 has been marked as a duplicate of this bug. ***
Here: Qt: 4.4.3 KDE: 4.1.2 (KDE 4.1.2) KWrite: 4.1.2 (KDE 4.1.2) KDEMOD in ArchLinux i686: I can reproduce this bug. ASSERT: "result" in file /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/kdirmodel.cpp, line 310 Backtrace: Aplicación: KWrite (kwrite), señal SIGABRT (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 0xb62d1700 (LWP 4398)] [KCrash handler] #6 0xb804f424 in __kernel_vsyscall () #7 0xb67f0720 in raise () from /lib/libc.so.6 #8 0xb67f2058 in abort () from /lib/libc.so.6 #9 0xb7480965 in qt_message_output () from /usr/lib/libQtCore.so.4 #10 0xb7480a17 in qFatal () from /usr/lib/libQtCore.so.4 #11 0xb7480aa6 in qt_assert () from /usr/lib/libQtCore.so.4 #12 0xb7e4c4dd in KDirModelPrivate::_k_slotNewItems (this=0x91836e0, items=@0x92dc6e0) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/kdirmodel.cpp:310 #13 0xb7e4c615 in KDirModel::qt_metacall (this=0x9183cb0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfa6971c) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/kdirmodel.moc:76 #14 0xb7575b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #15 0xb7576063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #16 0xb7e2f2c4 in KDirLister::newItems (this=0x9183620, _t1=@0x92dc6e0) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/kdirlister.moc:256 #17 0xb7e302db in KDirLister::Private::emitItems (this=0x9183bf0) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/kdirlister.cpp:2238 #18 0xb7e32232 in KDirListerCache::slotEntries (this=0x9147a98, job=0x914a948, entries=@0xbfa69c34) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/kdirlister.cpp:997 #19 0xb7e42bfb in KDirListerCache::qt_metacall (this=0x9147a98, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbfa69928) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/kdirlister_p.moc:97 #20 0xb7575b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #21 0xb7576063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #22 0xb7e0610a in KIO::ListJob::entries (this=0x914a948, _t1=0x914a948, _t2=@0xbfa69c34) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/jobclasses.moc:763 #23 0xb7e13283 in KIO::ListJobPrivate::slotListEntries (this=0x928ff48, list=@0xbfa69c34) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/job.cpp:2318 #24 0xb7e13410 in KIO::ListJob::qt_metacall (this=0x914a948, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfa69afc) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/jobclasses.moc:750 #25 0xb7575b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #26 0xb7576063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #27 0xb7ed6c64 in KIO::SlaveInterface::listEntries (this=0x926aff0, _t1=@0xbfa69c34) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/slaveinterface.moc:175 #28 0xb7eda927 in KIO::SlaveInterface::dispatch (this=0x926aff0, _cmd=106, rawdata=@0xbfa69c84) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/slaveinterface.cpp:195 #29 0xb7ed74bc in KIO::SlaveInterface::dispatch (this=0x926aff0) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/slaveinterface.cpp:90 #30 0xb7ec72be in KIO::Slave::gotInput (this=0x926aff0) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/slave.cpp:322 #31 0xb7ec9d3b in KIO::Slave::qt_metacall (this=0x926aff0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfa69d98) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/slave.moc:75 #32 0xb7575b03 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #33 0xb7576063 in QMetaObject::activate () from /usr/lib/libQtCore.so.4 #34 0xb7dd3a98 in KIO::Connection::readyRead (this=0x914dce8) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/connection.moc:84 #35 0xb7dd5bed in KIO::ConnectionPrivate::dequeue (this=0x914dce8) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kio/kio/connection.cpp:82 #36 0xb7dd5d6e in KIO::Connection::qt_metacall (this=0x914dce8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x916c4f8) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/build/kio/connection.moc:72 #37 0xb757092b in QMetaCallEvent::placeMetaCall () from /usr/lib/libQtCore.so.4 #38 0xb75724f9 in QObject::event () from /usr/lib/libQtCore.so.4 #39 0xb6d98eac in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #40 0xb6d9f423 in QApplication::notify () from /usr/lib/libQtGui.so.4 #41 0xb7babe9e in KApplication::notify (this=0xbfa6b678, receiver=0x914dce8, event=0x92668e8) at /home/jan/Dev/packages/kdemod-core/work/kdelibs/src/kdelibs-4.1.2/kdeui/kernel/kapplication.cpp:311 #42 0xb7563f60 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #43 0xb75648e0 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4 #44 0xb7564a7e in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4 #45 0xb758b090 in ?? () from /usr/lib/libQtCore.so.4 #46 0x00000000 in ?? () #0 0xb804f424 in __kernel_vsyscall ()
Now, using KDE 4.1.3 (in ArchLinux i686) the behaviour seems to be different. Typing ".." or "." and pressing Enter don't crash the applicating but shows "/" Even if I'm in /home/user , if I type ".." and press Enter, the file dialog displays "/" instead of "/home". Also, in the "path bar" on the top of the file selector dialog, it shows an empty textbox for the kioslave (like an empty kioslave) plus ".." I don't know if this is a temporary fix or another bug (maybe related to kioslaves or something). Can anyone else confirm this new behaviour ? --- Using KDE svn (kdelibs svn rev.884602 / kdebase svn rev.884595) This seems to be really fixed. ".." + Return now go to the parent folder and "." + Return remains in the same folder
This is fixed already using: Qt: 4.4.3 KDE: 4.1.85 (KDE 4.1.85 (KDE 4.2 Beta2)) kdelibs svn rev. 895869 / kdebase svn rev. 895869 :)
I can confirm this works fine in kde 4.1.85. Closing the bug.