Bug 262025 - Kate crashes on closing file
Summary: Kate crashes on closing file
Status: RESOLVED DUPLICATE of bug 248926
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:
Depends on:
Blocks:
 
Reported: 2011-01-04 02:10 UTC by th3flyboy
Modified: 2011-06-25 17:54 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 th3flyboy 2011-01-04 02:10:00 UTC
Application: kate (3.5.90)
KDE Platform Version: 4.5.90 (4.6 RC1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-24-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:
Closing a cmakelists.txt file with a vertical split between two code files.

- Unusual behavior I noticed:
The cmakelists.txt file was reaching the end of file half way down the scroll bar and would loop back to the top when the bottom was reached of the file, not the scroll bar.

-- Backtrace:
Application: Kate (kate), signal: Aborted
[Current thread is 1 (Thread 0x7ff693fd7760 (LWP 8080))]

Thread 5 (Thread 0x7ff67ca98700 (LWP 8084)):
#0  0x00007ff690f44665 in __pthread_mutex_lock (mutex=0x1f64a68) at pthread_mutex_lock.c:61
#1  0x00007ff690a8406e in ?? () from /lib/libglib-2.0.so.0
#2  0x00007ff690a8445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007ff6918281e6 in QEventDispatcherGlib::processEvents (this=0x1b0fbd0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007ff6917faa02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007ff6917fadec in QEventLoop::exec (this=0x7ff67ca97db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007ff6917052fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007ff6917da5f8 in QInotifyFileSystemWatcherEngine::run (this=0x1f5c7e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007ff69170827e in QThreadPrivate::start (arg=0x1f5c7e0) at thread/qthread_unix.cpp:266
#9  0x00007ff690f42971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007ff69398892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff67b06d700 (LWP 8085)):
#0  0x00007ff690f45c9d in __pthread_mutex_unlock_usercnt (mutex=0x2183e98) at pthread_mutex_unlock.c:52
#1  __pthread_mutex_unlock (mutex=0x2183e98) at pthread_mutex_unlock.c:290
#2  0x00007ff690a7eb02 in g_main_context_query () from /lib/libglib-2.0.so.0
#3  0x00007ff690a83efc in ?? () from /lib/libglib-2.0.so.0
#4  0x00007ff690a8445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#5  0x00007ff6918281e6 in QEventDispatcherGlib::processEvents (this=0x216bd80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#6  0x00007ff6917faa02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#7  0x00007ff6917fadec in QEventLoop::exec (this=0x7ff67b06cdb0, flags=) at kernel/qeventloop.cpp:201
#8  0x00007ff6917052fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#9  0x00007ff6917da5f8 in QInotifyFileSystemWatcherEngine::run (this=0x216a7b0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007ff69170827e in QThreadPrivate::start (arg=0x216a7b0) at thread/qthread_unix.cpp:266
#11 0x00007ff690f42971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#12 0x00007ff69398892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff67a86c700 (LWP 8086)):
#0  0x00007ff69397c203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff690a84009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007ff690a8445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007ff6918281e6 in QEventDispatcherGlib::processEvents (this=0x218da90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007ff6917faa02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007ff6917fadec in QEventLoop::exec (this=0x7ff67a86bdd0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007ff6917052fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007ff689cb9b6c in Herqq::Upnp::HControlPointThread::run() () from /usr/lib/libHUpnp.so.0
#8  0x00007ff69170827e in QThreadPrivate::start (arg=0x2193f20) at thread/qthread_unix.cpp:266
#9  0x00007ff690f42971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007ff69398892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff67a01c700 (LWP 8087)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff681631334 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7ff68193c160) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x00007ff681631369 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7ff68194a234) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x00007ff690f42971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#4  0x00007ff69398892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff693fd7760 (LWP 8080)):
[KCrash Handler]
#6  0x00007ff6938d5ba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007ff6938d96b0 in abort () at abort.c:92
#8  0x00007ff69390f43b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007ff6939194b6 in malloc_printerr (action=3, str=0x7ff6939e9e33 "free(): invalid pointer", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007ff681c0e60f in qDeleteAll<QSet<Kate::TextCursor*>::const_iterator> (this=0x3d70f70, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qalgorithms.h:322
#11 qDeleteAll<QSet<Kate::TextCursor*> > (this=0x3d70f70, __in_chrg=<value optimized out>) at /usr/include/qt4/QtCore/qalgorithms.h:330
#12 Kate::TextBuffer::~TextBuffer (this=0x3d70f70, __in_chrg=<value optimized out>) at ../../kate/buffer/katetextbuffer.cpp:85
#13 0x00007ff681c93cd0 in KateBuffer::~KateBuffer (this=0x3d70f70, __in_chrg=<value optimized out>) at ../../kate/document/katebuffer.cpp:93
#14 0x00007ff69180dd5f in QObjectPrivate::deleteChildren (this=0x4bc9fc0) at kernel/qobject.cpp:1957
#15 0x00007ff69181541b in QObject::~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:945
#16 0x00007ff68e302a02 in KParts::Part::~Part (this=0x32cec00, __vtt_parm=0x7ff682005860, __in_chrg=<value optimized out>) at ../../kparts/part.cpp:213
#17 0x00007ff681c6f489 in KateDocument::~KateDocument (this=0x32cec00, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../kate/document/katedocument.cpp:304
#18 0x00007ff692472a0a in KateDocManager::deleteDoc (this=0x1893dc0, doc=0x32cec00) at ../../../kate/app/katedocmanager.cpp:226
#19 0x00007ff692477452 in KateDocManager::closeDocument (this=0x1893dc0, doc=0x32cec00, closeUrl=true) at ../../../kate/app/katedocmanager.cpp:373
#20 0x00007ff692483537 in KateViewManager::slotDocumentClose (this=<value optimized out>, document=0x32cec00) at ../../../kate/app/kateviewmanager.cpp:205
#21 0x00007ff692487c31 in KateViewManager::qt_metacall (this=0x1af06f0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffc13960b0) at ./kateviewmanager.moc:130
#22 0x00007ff691813b27 in QMetaObject::activate (sender=0x1d0cb20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#23 0x00007ff692d6a852 in QAction::triggered (this=0x1f90, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#24 0x00007ff692d6bf5b in QAction::activate (this=0x1d0cb20, event=<value optimized out>) at kernel/qaction.cpp:1256
#25 0x00007ff69314b57a in QAbstractButtonPrivate::click (this=0x1b49650) at widgets/qabstractbutton.cpp:528
#26 0x00007ff69314b82c in QAbstractButton::mouseReleaseEvent (this=0x1cd8dd0, e=0x7fffc1396a10) at widgets/qabstractbutton.cpp:1121
#27 0x00007ff69321b52a in QToolButton::mouseReleaseEvent (this=0x1f90, e=0x1f90) at widgets/qtoolbutton.cpp:721
#28 0x00007ff692dc804e in QWidget::event (this=0x1cd8dd0, event=0x7fffc1396a10) at kernel/qwidget.cpp:8187
#29 0x00007ff692d71fdc in QApplicationPrivate::notify_helper (this=0x1775640, receiver=0x1cd8dd0, e=0x7fffc1396a10) at kernel/qapplication.cpp:4396
#30 0x00007ff692d7830e in QApplication::notify (this=0x7fffc13977a0, receiver=0x1cd8dd0, e=0x7fffc1396a10) at kernel/qapplication.cpp:3959
#31 0x00007ff692007086 in KApplication::notify (this=0x7fffc13977a0, receiver=0x1cd8dd0, event=0x7fffc1396a10) at ../../kdeui/kernel/kapplication.cpp:311
#32 0x00007ff6917fbcdc in QCoreApplication::notifyInternal (this=0x7fffc13977a0, receiver=0x1cd8dd0, event=0x7fffc1396a10) at kernel/qcoreapplication.cpp:732
#33 0x00007ff692d76dbe in sendEvent (receiver=0x1cd8dd0, event=0x7fffc1396a10, alienWidget=0x1cd8dd0, nativeWidget=0x1c02a70, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#34 QApplicationPrivate::sendMouseEvent (receiver=0x1cd8dd0, event=0x7fffc1396a10, alienWidget=0x1cd8dd0, nativeWidget=0x1c02a70, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:3058
#35 0x00007ff692dfa345 in QETWidget::translateMouseEvent (this=0x1c02a70, event=<value optimized out>) at kernel/qapplication_x11.cpp:4403
#36 0x00007ff692df8c5c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fffc1397330) at kernel/qapplication_x11.cpp:3536
#37 0x00007ff692e250e2 in x11EventSourceDispatch (s=0x1776740, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#38 0x00007ff690a80342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#39 0x00007ff690a842a8 in ?? () from /lib/libglib-2.0.so.0
#40 0x00007ff690a8445c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#41 0x00007ff691828193 in QEventDispatcherGlib::processEvents (this=0x1746fa0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#42 0x00007ff692e24a4e in QGuiEventDispatcherGlib::processEvents (this=0x1f90, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#43 0x00007ff6917faa02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#44 0x00007ff6917fadec in QEventLoop::exec (this=0x7fffc1397660, flags=) at kernel/qeventloop.cpp:201
#45 0x00007ff6917feebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#46 0x00007ff693c2ad26 in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../../kate/app/katemain.cpp:377
#47 0x00007ff6938c0d8e in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fffc1398d38) at libc-start.c:226
#48 0x0000000000400659 in _start ()

Reported using DrKonqi
Comment 1 Milian Wolff 2011-01-04 12:49:45 UTC
can you reproduce that, if so please run kate through valgrind:

valgrind --log-file=/tmp/kate.memcheck.log --track-origins=yes --num-callers=50 kate

and reproduce the bug then send us the log file
Comment 2 Dario Andres 2011-01-23 16:09:36 UTC
[Comment from a bug triager]
The backtrace looks related to the one in bug 248926 (which already has 3 cases...)
Regards
Comment 3 Dominik Haumann 2011-06-25 17:54:50 UTC

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