Bug 300537

Summary: Kile crashed while pasting
Product: [Applications] kile Reporter: Kenny <kstephens>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 2.1.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kenny 2012-05-24 02:10:51 UTC
Application: kile (2.1.0)
KDE Platform Version: 4.8.2 (4.8.2)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
Pasting three lines of text copied from kile. Pasted onto a selected line (consists of 4 spaces). Happens consistently but not everytime.

The crash can be reproduced some of the time.

-- Backtrace:
Application: Kile (kile), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f504d045780 (LWP 28666))]

Thread 5 (Thread 0x7f5035d1a700 (LWP 28672)):
#0  0x00007f5048f9ab03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5044539ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f504453a45a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5035d1f98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007f504455b9a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5044dfee9a in start_thread (arg=0x7f5035d1a700) at pthread_create.c:308
#6  0x00007f5048fa64bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f503510e700 (LWP 28673)):
#0  0x00007f5048f9ab03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5044539ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f504453a45a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f503c60f2c6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f504455b9a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5044dfee9a in start_thread (arg=0x7f503510e700) at pthread_create.c:308
#6  0x00007f5048fa64bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f50215bf700 (LWP 28701)):
#0  0x00007f5044e00f69 in __pthread_mutex_lock (mutex=0x7f5014000a60) at pthread_mutex_lock.c:92
#1  0x00007f5044575561 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5044539555 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5044539f1b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f504453a124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f504a87c426 in QEventDispatcherGlib::processEvents (this=0x7f50140008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007f504a84bc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007f504a84bed7 in QEventLoop::exec (this=0x7f50215bedd0, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007f504a74afa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007f504a82b9ff in QInotifyFileSystemWatcherEngine::run (this=0x1e99860) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007f504a74dfcb in QThreadPrivate::start (arg=0x1e99860) at thread/qthread_unix.cpp:298
#11 0x00007f5044dfee9a in start_thread (arg=0x7f50215bf700) at pthread_create.c:308
#12 0x00007f5048fa64bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f502ffff700 (LWP 28903)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5047205222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f5047205259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f5044dfee9a in start_thread (arg=0x7f502ffff700) at pthread_create.c:308
#4  0x00007f5048fa64bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f504d045780 (LWP 28666)):
[KCrash Handler]
#6  0x00007f5021a8fe46 in Kate::TextBuffer::rangesForLine (this=<optimized out>, line=589, view=0x3694410, rangesWithAttributeOnly=true) at ../../part/buffer/katetextbuffer.cpp:820
#7  0x00007f5021b2b620 in KateRenderer::decorationsForLine (this=0x3694b20, textLine=..., line=589, selectionsOnly=false, completionHighlight=0x0, completionSelected=false) at ../../part/render/katerenderer.cpp:330
#8  0x00007f5021b2c97a in KateRenderer::layoutLine (this=0x3694b20, lineLayout=..., maxwidth=-1, cacheLayout=<optimized out>) at ../../part/render/katerenderer.cpp:883
#9  0x00007f5021b313bd in KateLayoutCache::line (this=0x36fcfb0, realLine=589, virtualLine=589) at ../../part/render/katelayoutcache.cpp:318
#10 0x00007f5021b3243a in KateLayoutCache::updateViewCache (this=0x36fcfb0, startPos=..., newViewLineCount=<optimized out>, viewLinesScrolled=<optimized out>) at ../../part/render/katelayoutcache.cpp:270
#11 0x00007f5021b834cf in doUpdateView (viewLinesScrolled=0, changed=<optimized out>, this=0x34fc7b0) at ../../part/view/kateviewinternal.cpp:550
#12 KateViewInternal::doUpdateView (this=0x34fc7b0, changed=<optimized out>, viewLinesScrolled=0) at ../../part/view/kateviewinternal.cpp:530
#13 0x00007f5021b83bec in KateViewInternal::updateView (this=0x34fc7b0, changed=false, viewLinesScrolled=<optimized out>) at ../../part/view/kateviewinternal.cpp:524
#14 0x00007f5021b72cd6 in KateView::visibleRange (this=0x3694410) at ../../part/view/kateview.cpp:2727
#15 0x00007f5021bd4797 in textInserted (range=..., this=0x2c52ae0, document=<optimized out>) at ../../part/spellcheck/ontheflycheck.cpp:155
#16 KateOnTheFlyChecker::textInserted (this=0x2c52ae0, document=<optimized out>, range=...) at ../../part/spellcheck/ontheflycheck.cpp:137
#17 0x00007f5021bd4de0 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=0x2c52ae0, _c=<optimized out>) at ./ontheflycheck.moc:87
#18 KateOnTheFlyChecker::qt_static_metacall (_o=0x2c52ae0, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./ontheflycheck.moc:81
#19 0x00007f504a861281 in QMetaObject::activate (sender=0x2c4fa70, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff4b85b90) at kernel/qobject.cpp:3547
#20 0x00007f504be09057 in KTextEditor::Document::textInserted (this=<optimized out>, _t1=0x2c4fa70, _t2=...) at ./document.moc:201
#21 0x00007f5021aee879 in editWrapLine (newLineAdded=0x0, newLine=<optimized out>, col=70, line=587, this=0x2c4fa70) at ../../part/document/katedocument.cpp:1181
#22 KateDocument::editWrapLine (this=0x2c4fa70, line=587, col=70, newLine=<optimized out>, newLineAdded=0x0) at ../../part/document/katedocument.cpp:1121
#23 0x00007f5021af130a in insertText (block=false, text=..., position=..., this=0x2c4fa70) at ../../part/document/katedocument.cpp:617
#24 KateDocument::insertText (this=0x2c4fa70, position=..., text=..., block=false) at ../../part/document/katedocument.cpp:565
#25 0x00007f5021aefab1 in KateDocument::paste (this=0x2c4fa70, view=0x3694410, mode=<optimized out>) at ../../part/document/katedocument.cpp:2899
#26 0x00007f5021b71725 in KateView::paste (this=0x3694410) at ../../part/view/kateview.cpp:2157
#27 0x00007f504a861281 in QMetaObject::activate (sender=0x3506dd0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff4b86080) at kernel/qobject.cpp:3547
#28 0x00007f504994c132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#29 0x00007f504994c31f in QAction::activate (this=0x3506dd0, event=<optimized out>) at kernel/qaction.cpp:1257
#30 0x00007f504994c48f in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#31 0x00007f504b1c40ca in KAction::event (this=<optimized out>, event=0x7ffff4b866a0) at ../../kdeui/actions/kaction.cpp:131
#32 0x00007f5049952894 in notify_helper (e=0x7ffff4b866a0, receiver=0x3506dd0, this=0x1a799d0) at kernel/qapplication.cpp:4559
#33 QApplicationPrivate::notify_helper (this=0x1a799d0, receiver=0x3506dd0, e=0x7ffff4b866a0) at kernel/qapplication.cpp:4531
#34 0x00007f5049957713 in QApplication::notify (this=0x7ffff4b87b70, receiver=0x3506dd0, e=0x7ffff4b866a0) at kernel/qapplication.cpp:4420
#35 0x00007f504b2acb46 in KApplication::notify (this=0x7ffff4b87b70, receiver=0x3506dd0, event=0x7ffff4b866a0) at ../../kdeui/kernel/kapplication.cpp:311
#36 0x00007f504a84ce9c in QCoreApplication::notifyInternal (this=0x7ffff4b87b70, receiver=0x3506dd0, event=0x7ffff4b866a0) at kernel/qcoreapplication.cpp:876
#37 0x00007f50499848b9 in sendEvent (event=0x7ffff4b866a0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#38 QShortcutMap::dispatchEvent (this=<optimized out>, e=0x7ffff4b86c40) at kernel/qshortcutmap.cpp:879
#39 0x00007f5049985d8a in QShortcutMap::tryShortcutEvent (this=0x1a79af0, o=<optimized out>, e=0x7ffff4b86c40) at kernel/qshortcutmap.cpp:364
#40 0x00007f5049958f92 in QApplication::notify (this=0x7ffff4b87b70, receiver=0x34fc7b0, e=0x7ffff4b86c40) at kernel/qapplication.cpp:3983
#41 0x00007f504b2acb46 in KApplication::notify (this=0x7ffff4b87b70, receiver=0x34fc7b0, event=0x7ffff4b86c40) at ../../kdeui/kernel/kapplication.cpp:311
#42 0x00007f504a84ce9c in QCoreApplication::notifyInternal (this=0x7ffff4b87b70, receiver=0x34fc7b0, event=0x7ffff4b86c40) at kernel/qcoreapplication.cpp:876
#43 0x00007f50499f6c49 in QKeyMapper::sendKeyEvent (keyWidget=0x34fc7b0, grab=<optimized out>, type=QEvent::KeyPress, code=86, modifiers=..., text=..., autorepeat=false, count=1, nativeScanCode=55, nativeVirtualKey=118, nativeModifiers=20) at kernel/qkeymapper_x11.cpp:1866
#44 0x00007f50499f70bb in QKeyMapperPrivate::translateKeyEvent (this=0x1ab8280, keyWidget=0x34fc7b0, event=0x7ffff4b87730, grab=false) at kernel/qkeymapper_x11.cpp:1836
#45 0x00007f50499d1637 in QApplication::x11ProcessEvent (this=0x7ffff4b87b70, event=0x7ffff4b87730) at kernel/qapplication_x11.cpp:3625
#46 0x00007f50499fb0d2 in x11EventSourceDispatch (s=0x1a7d670, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#47 0x00007f5044539c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f504453a060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f504453a124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f504a87c3bf in QEventDispatcherGlib::processEvents (this=0x1a44b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#51 0x00007f50499fad5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#52 0x00007f504a84bc82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#53 0x00007f504a84bed7 in QEventLoop::exec (this=0x7ffff4b87ad0, flags=...) at kernel/qeventloop.cpp:204
#54 0x00007f504a850f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#55 0x0000000000436c84 in ?? ()
#56 0x00007f5048ed576d in __libc_start_main (main=0x435ad0, argc=1, ubp_av=0x7ffff4b88998, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffff4b88988) at libc-start.c:226
#57 0x0000000000439015 in _start ()

Reported using DrKonqi
Comment 1 Michel Ludwig 2012-06-12 18:32:00 UTC

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