Bug 270063 - Kate crashes on coding folding > expand top level (KateLineLayout::viewLineCount (this=0x0))
Summary: Kate crashes on coding folding > expand top level (KateLineLayout::viewLineCo...
Status: RESOLVED DUPLICATE of bug 254873
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-04-04 10:49 UTC by Patrick Yau
Modified: 2011-08-01 12:41 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 Patrick Yau 2011-04-04 10:49:32 UTC
Application: kate (3.6.1)
KDE Platform Version: 4.6.1 (4.6.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-28-generic i686
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:

open a few files
do some editing on them
view > code folding > collapse top level
do some editing, save 
do some editing, save 
view > code folding > expand top level <- crash here

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
[Current thread is 1 (Thread 0xb77f7710 (LWP 22695))]

Thread 4 (Thread 0xb5657b70 (LWP 22696)):
#0  0x00f1ce36 in clock_gettime (clock_id=15863796, tp=0xb5656f90) at ../sysdeps/unix/clock_gettime.c:100
#1  0x00bc250b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x00c996e5 in QTimerInfoList::updateCurrentTime (this=0x9481a94) at kernel/qeventdispatcher_unix.cpp:339
#4  0x00c9972a in QTimerInfoList::timerWait (this=0x9481a94, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x00c977a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb56570bc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00c9783d in timerSourcePrepare (source=0x0, timeout=0xf20ff4) at kernel/qeventdispatcher_glib.cpp:169
#7  0x00ddde6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x00dde279 in ?? () from /lib/libglib-2.0.so.0
#9  0x00dde848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x00c9759f in QEventDispatcherGlib::processEvents (this=0x9486578, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0x00c67609 in QEventLoop::processEvents (this=0xb5657290, flags=) at kernel/qeventloop.cpp:149
#12 0x00c67a8a in QEventLoop::exec (this=0xb5657290, flags=...) at kernel/qeventloop.cpp:201
#13 0x00b63b7e in QThread::exec (this=0x9464508) at thread/qthread.cpp:490
#14 0x00c4635b in QInotifyFileSystemWatcherEngine::run (this=0x9464508) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x00b66df9 in QThreadPrivate::start (arg=0x9464508) at thread/qthread_unix.cpp:266
#16 0x00324cc9 in start_thread (arg=0xb5657b70) at pthread_create.c:304
#17 0x0026269e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb4d12b70 (LWP 22697)):
#0  0x00f2a416 in __kernel_vsyscall ()
#1  0x003294dc in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x0026fd9d in __pthread_cond_wait (cond=0x2f41290, mutex=0x2f41278) at forward.c:139
#3  0x02e3d877 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x2f3c1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0x02e3d8c1 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x2f3c1a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0x00324cc9 in start_thread (arg=0xb4d12b70) at pthread_create.c:304
#6  0x0026269e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb3029b70 (LWP 22699)):
#0  0x00f1ce38 in clock_gettime (clock_id=1, tp=0xb3028f90) at ../sysdeps/unix/clock_gettime.c:100
#1  0x00bc250b in do_gettime () at tools/qelapsedtimer_unix.cpp:105
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:119
#3  0x00c996e5 in QTimerInfoList::updateCurrentTime (this=0xb2701834) at kernel/qeventdispatcher_unix.cpp:339
#4  0x00c9972a in QTimerInfoList::timerWait (this=0xb2701834, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x00c977a8 in timerSourcePrepareHelper (src=<value optimized out>, timeout=0xb30290bc) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00c9783d in timerSourcePrepare (source=0x0, timeout=0x1) at kernel/qeventdispatcher_glib.cpp:169
#7  0x00ddde6a in g_main_context_prepare () from /lib/libglib-2.0.so.0
#8  0x00dde279 in ?? () from /lib/libglib-2.0.so.0
#9  0x00dde848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#10 0x00c9759f in QEventDispatcherGlib::processEvents (this=0xb2700468, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#11 0x00c67609 in QEventLoop::processEvents (this=0xb3029290, flags=) at kernel/qeventloop.cpp:149
#12 0x00c67a8a in QEventLoop::exec (this=0xb3029290, flags=...) at kernel/qeventloop.cpp:201
#13 0x00b63b7e in QThread::exec (this=0x93ee838) at thread/qthread.cpp:490
#14 0x00c4635b in QInotifyFileSystemWatcherEngine::run (this=0x93ee838) at io/qfilesystemwatcher_inotify.cpp:248
#15 0x00b66df9 in QThreadPrivate::start (arg=0x93ee838) at thread/qthread_unix.cpp:266
#16 0x00324cc9 in start_thread (arg=0xb3029b70) at pthread_create.c:304
#17 0x0026269e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb77f7710 (LWP 22695)):
[KCrash Handler]
#7  KateLineLayout::viewLineCount (this=0x0) at ../../kate/render/katelinelayout.cpp:173
#8  0x0272a704 in KateLayoutCache::viewLine (this=0x9bf2118, realCursor=...) at ../../kate/render/katelayoutcache.cpp:387
#9  0x0278c560 in KateViewInternal::viewLineOffset (this=0x9e17ea8, virtualCursor=..., offset=-21, keepX=false) at ../../kate/view/kateviewinternal.cpp:1283
#10 0x0278ce06 in KateViewInternal::maxStartPos (this=0x9e17ea8, changed=false) at ../../kate/view/kateviewinternal.cpp:415
#11 0x02797dcd in KateViewInternal::slotRegionVisibilityChangedAt (this=0x9e17ea8, clear_cache=false) at ../../kate/view/kateviewinternal.cpp:659
#12 0x0279873f in KateViewInternal::qt_metacall (this=0x9e17ea8, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0xbf8fceb4) at ./kateviewinternal.moc:130
#13 0x00c6e8ca in QMetaObject::metacall (object=0x9e17ea8, cl=QMetaObject::InvokeMetaMethod, idx=43, argv=0xbf8fceb4) at kernel/qmetaobject.cpp:237
#14 0x00c816ad in QMetaObject::activate (sender=0x9e2001c, m=0x286764c, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#15 0x0276a21f in KateCodeFoldingTree::regionVisibilityChangedAt (this=0x9e2001c, _t1=4294967280, _t2=false) at ./katecodefolding.moc:112
#16 0x0276a352 in KateCodeFoldingTree::collapseToplevelNodes (this=0x9e2001c) at ../../kate/syntax/katecodefolding.cpp:1591
#17 0x0276de8b in KateCodeFoldingTree::qt_metacall (this=0x9e2001c, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf8fd048) at ./katecodefolding.moc:95
#18 0x00c6e8ca in QMetaObject::metacall (object=0x9e2001c, cl=QMetaObject::InvokeMetaMethod, idx=8, argv=0xbf8fd048) at kernel/qmetaobject.cpp:237
#19 0x00c816ad in QMetaObject::activate (sender=0x9e8de78, m=0x19d5370, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3280
#20 0x0104ef99 in QAction::triggered (this=0x9e8de78, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#21 0x010508dc in QAction::activate (this=0x9e8de78, event=QAction::Trigger) at kernel/qaction.cpp:1256
#22 0x01052b68 in QAction::event (this=0xbf8fcafc, e=0x0) at kernel/qaction.cpp:1182
#23 0x007fa683 in KAction::event (this=0x9e8de78, event=0xbf8fd568) at ../../kdeui/actions/kaction.cpp:131
#24 0x01056fdc in QApplicationPrivate::notify_helper (this=0x9177c88, receiver=0x9e8de78, e=0xbf8fd568) at kernel/qapplication.cpp:4396
#25 0x0105d04e in QApplication::notify (this=0xbf8fe4ac, receiver=0x9e8de78, e=0xbf8fd568) at kernel/qapplication.cpp:3798
#26 0x009167da in KApplication::notify (this=0xbf8fe4ac, receiver=0x9e8de78, event=0xbf8fd568) at ../../kdeui/kernel/kapplication.cpp:311
#27 0x00c68b3b in QCoreApplication::notifyInternal (this=0xbf8fe4ac, receiver=0x9e8de78, event=0xbf8fd568) at kernel/qcoreapplication.cpp:732
#28 0x0109876d in sendEvent (this=0x9177d34, e=0xbf8fd9e4) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#29 QShortcutMap::dispatchEvent (this=0x9177d34, e=0xbf8fd9e4) at kernel/qshortcutmap.cpp:879
#30 0x0109a59e in QShortcutMap::tryShortcutEvent (this=0x9177d34, o=0x9e17ea8, e=0xbf8fd9e4) at kernel/qshortcutmap.cpp:364
#31 0x0105ec52 in QApplication::notify (this=0xbf8fe4ac, receiver=0x9e17ea8, e=0xbf8fd9e4) at kernel/qapplication.cpp:3840
#32 0x009167da in KApplication::notify (this=0xbf8fe4ac, receiver=0x9e17ea8, event=0xbf8fd9e4) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00c68b3b in QCoreApplication::notifyInternal (this=0xbf8fe4ac, receiver=0x9e17ea8, event=0xbf8fd9e4) at kernel/qcoreapplication.cpp:732
#34 0x01056b9e in sendSpontaneousEvent (receiver=0x9e17ea8, event=0xbf8fcafc) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#35 qt_sendSpontaneousEvent (receiver=0x9e17ea8, event=0xbf8fcafc) at kernel/qapplication.cpp:5388
#36 0x0111369d in QKeyMapper::sendKeyEvent (keyWidget=0x9e17ea8, grab=false, type=QEvent::KeyPress, code=95, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, nativeScanCode=20, nativeVirtualKey=95, nativeModifiers=5) at kernel/qkeymapper_x11.cpp:1867
#37 0x01115b49 in QKeyMapperPrivate::translateKeyEvent (this=0x91a1c98, keyWidget=0x9e17ea8, event=0xbf8fe0ac, grab=false) at kernel/qkeymapper_x11.cpp:1837
#38 0x010e9387 in QApplication::x11ProcessEvent (this=0xbf8fe4ac, event=0xbf8fe0ac) at kernel/qapplication_x11.cpp:3429
#39 0x0111936a in x11EventSourceDispatch (s=0x917b250, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#40 0x00dda855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#41 0x00dde668 in ?? () from /lib/libglib-2.0.so.0
#42 0x00dde848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#43 0x00c97565 in QEventDispatcherGlib::processEvents (this=0x9158b58, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#44 0x01118be5 in QGuiEventDispatcherGlib::processEvents (this=0x9158b58, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#45 0x00c67609 in QEventLoop::processEvents (this=0xbf8fe3a4, flags=) at kernel/qeventloop.cpp:149
#46 0x00c67a8a in QEventLoop::exec (this=0xbf8fe3a4, flags=...) at kernel/qeventloop.cpp:201
#47 0x00c6c00f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#48 0x01055e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#49 0x006d87b7 in kdemain (argc=1, argv=0xbf8feb54) at ../../../kate/app/katemain.cpp:377
#50 0x0804859b in main (argc=1, argv=0xbf8feb54) at kate_dummy.cpp:3

Possible duplicates by query: bug 265985, bug 252520, bug 238887, bug 238394, bug 235046.

Reported using DrKonqi
Comment 1 Dominik Haumann 2011-08-01 08:45:30 UTC
Adrian: Can you have a look?
Comment 2 Dominik Haumann 2011-08-01 12:41:17 UTC

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