Summary: | kate crashes when opening a session with sftp files | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Jaak Simm <jaaksimm> |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | johannes.schwenk, kound |
Priority: | VHI | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jaak Simm
2010-03-14 14:09:54 UTC
related: bug #203774, bug #230426 *** Bug 234211 has been marked as a duplicate of this bug. *** info from bug 234211: > I using kate to edit files with the fish protocol. > After I selected two files to open them, a bug appears, that there was a line > without description on the opened files overview. > Now kate crashes every time I start it. Debug with <code>valgrind --track-origins=yes kate</code> ==15756== Invalid read of size 4 ==15756== at 0x40A60A4: KateViewDocumentProxyModel::sort() (kateviewdocumentproxymodel.cpp:620) ==15756== by 0x40A6B07: KateViewDocumentProxyModel::opened(QModelIndex const&) (kateviewdocumentproxymodel.cpp:216) ==15756== by 0x40754E4: KateMainWindow::slotWindowActivated() (katemainwindow.cpp:566) ==15756== by 0x407A601: KateMainWindow::qt_metacall(QMetaObject::Call, int, void**) (katemainwindow.moc:181) ==15756== by 0x57DBAFF: QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) (in /usr/lib/qt4/libQtCore.so.4.6.2) ==15756== Address 0xa0628d4 is 0 bytes after a block of size 20 alloc'd ==15756== at 0x402593F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==15756== by 0x56C20BB: qMalloc(unsigned int) (in /usr/lib/qt4/libQtCore.so.4.6.2) ==15756== by 0xBE9E3CAB: ??? ==15756== ==15756== Invalid read of size 4 ==15756== at 0x40A3371: KateViewDocumentProxyModel::mapToSource(QModelIndex const&) const (qabstractitemmodel.h:77) ==15756== by 0x40A60B7: KateViewDocumentProxyModel::sort() (kateviewdocumentproxymodel.cpp:620) ==15756== by 0x40A6B07: KateViewDocumentProxyModel::opened(QModelIndex const&) (kateviewdocumentproxymodel.cpp:216) ==15756== by 0x40754E4: KateMainWindow::slotWindowActivated() (katemainwindow.cpp:566) ==15756== by 0x407A601: KateMainWindow::qt_metacall(QMetaObject::Call, int, void**) (katemainwindow.moc:181) ==15756== by 0x57DBAFF: QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) (in /usr/lib/qt4/libQtCore.so.4.6.2) ==15756== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==15756== KCrash: Application 'kate' crashing... Warning: connect() failed: : No such file or directory ==15756== Warning: invalid file descriptor -1 in syscall write() ==15756== Warning: invalid file descriptor -1 in syscall write() ==15756== Warning: invalid file descriptor -1 in syscall read() KCrash cannot reach kdeinit, launching directly. might be fixed in gitorious with this commit (see bug# 213014): http://gitorious.org/kate/kate/commit/f6702b275e3f50f4cbe6dbf8755db36fef5b7319 Can you build Kate from gitorious and try again? http://gitorious.org/kate/pages/Building%20Kate Compiled the latest git (nice guide btw), but still crashes: Application: Kate (kate), signal: Aborted [KCrash Handler] #6 0x00e83416 in __kernel_vsyscall () #7 0x0017ea81 in raise () from /lib/libc.so.6 #8 0x0018034a in abort () from /lib/libc.so.6 #9 0x058287ec in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4 #10 0x058289cc in ?? () from /usr/lib/libQtCore.so.4 #11 0x05828aea in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4 #12 0x05828b2d in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib/libQtCore.so.4 #13 0x005d1bbe in QList<int>::operator[] (this=0x9e022f8, i=1) at /usr/include/QtCore/qlist.h:447 #14 0x005ec16a in KateViewDocumentProxyModel::sort (this=0x9e022d0) at /home/jr/kde/kate/kate/app/kateviewdocumentproxymodel.cpp:639 #15 0x005ebbc0 in KateViewDocumentProxyModel::setSortRole (this=0x9e022d0, role=0) at /home/jr/kde/kate/kate/app/kateviewdocumentproxymodel.cpp:609 #16 0x005bf91a in KateFileList::setSortRole (this=0x9c9dd48, role=0) at /home/jr/kde/kate/kate/app/katefilelist.cpp:174 #17 0x005c3a28 in KateMainWindow::KateMainWindow (this=0x9e2e990, sconfig=0x9a93d80, sgroup=..., __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at /home/jr/kde/kate/kate/app/katemainwindow.cpp:206 #18 0x005b0251 in KateApp::newMainWindow (this=0xbfc6e42c, sconfig_=0x9a93d80, sgroup_=...) at /home/jr/kde/kate/kate/app/kateapp.cpp:390 #19 0x005dbc35 in KateSessionManager::activateSession (this=0x9b13028, session=..., closeLast=false, saveLast=false, loadNew=true) at /home/jr/kde/kate/kate/app/katesession.cpp:341 #20 0x005dc9d0 in KateSessionManager::chooseSession (this=0x9b13028) at /home/jr/kde/kate/kate/app/katesession.cpp:484 #21 0x005aeea1 in KateApp::startupKate (this=0xbfc6e42c) at /home/jr/kde/kate/kate/app/kateapp.cpp:182 #22 0x005ae883 in KateApp::initKate (this=0xbfc6e42c) at /home/jr/kde/kate/kate/app/kateapp.cpp:135 #23 0x005ae1dc in KateApp::KateApp (this=0xbfc6e42c, args=0x9947e00) at /home/jr/kde/kate/kate/app/kateapp.cpp:72 #24 0x00f6d6cc in kdemain (argc=1, argv=0xbfc6eac4) at /home/jr/kde/kate/kate/app/katemain.cpp:373 #25 0x08048689 in main (argc=1, argv=0xbfc6eac4) at /home/jr/kde/build/kate/app/kate_dummy.cpp:3 is this related to 203774? might be fixed, please try with current git version of kate and tell us whether the problem persists. yes, fixed for kde >= 4.4.4. @Jaak: if you "git pull" and recompile with `make install` the crash should be gone. *** This bug has been marked as a duplicate of bug 203774 *** This is fixed for me in the newest git version! Thank you very much! This makes work so much easier! Note: Could build kate easiliy with instructions found here http://dhaumann.blogspot.com/2010/04/quick-compiling-kate-in-stable-kde.html @Johannes: Better use http://gitorious.org/kate/pages/Building%20Kate. This is identical to your link, but contains a little fix: It's debugfull instead of fulldebug :) |