Bug 300509

Summary: Kile crashed while pasting
Product: [Applications] kate Reporter: Kenny <kstephens>
Component: partAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kenny 2012-05-23 15:59:33 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:
Copied text from file and pasted into a new line. Copied text was multiple lines. Pasted into a line that contained spaces but not text. Copy/paste included EOL.

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 0x7f9b48ac4780 (LWP 14383))]

Thread 5 (Thread 0x7f9b31799700 (LWP 14384)):
#0  0x00007f9b44a180bd in read () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f9b3fff388f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9b3ffb8abd in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9b3ffb8f96 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9b3ffb945a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9b3179e98b in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#6  0x00007f9b3ffda9a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f9b4087de9a in start_thread (arg=0x7f9b31799700) at pthread_create.c:308
#8  0x00007f9b44a254bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9b30b8d700 (LWP 14385)):
#0  0x00007f9b44a19b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9b3ffb8ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9b3ffb945a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9b3808e2c6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f9b3ffda9a5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f9b4087de9a in start_thread (arg=0x7f9b30b8d700) at pthread_create.c:308
#6  0x00007f9b44a254bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9b1d7a9700 (LWP 14387)):
#0  0x00007f9b44a19b03 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f9b3ffb8ff6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9b3ffb9124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9b462fb426 in QEventDispatcherGlib::processEvents (this=0x7f9b180008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f9b462cac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f9b462caed7 in QEventLoop::exec (this=0x7f9b1d7a8dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f9b461c9fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f9b462aa9ff in QInotifyFileSystemWatcherEngine::run (this=0x1a18100) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f9b461ccfcb in QThreadPrivate::start (arg=0x1a18100) at thread/qthread_unix.cpp:298
#9  0x00007f9b4087de9a in start_thread (arg=0x7f9b1d7a9700) at pthread_create.c:308
#10 0x00007f9b44a254bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f9b1507a700 (LWP 14461)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f9b42c84222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f9b42c84259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f9b4087de9a in start_thread (arg=0x7f9b1507a700) at pthread_create.c:308
#4  0x00007f9b44a254bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f9b48ac4780 (LWP 14383)):
[KCrash Handler]
#6  0x00007f9b1dc79e46 in Kate::TextBuffer::rangesForLine (this=<optimized out>, line=853, view=0x31f3dd0, rangesWithAttributeOnly=true) at ../../part/buffer/katetextbuffer.cpp:820
#7  0x00007f9b1dd15620 in KateRenderer::decorationsForLine (this=0x29c4870, textLine=..., line=853, selectionsOnly=false, completionHighlight=0x0, completionSelected=false) at ../../part/render/katerenderer.cpp:330
#8  0x00007f9b1dd1697a in KateRenderer::layoutLine (this=0x29c4870, lineLayout=..., maxwidth=-1, cacheLayout=<optimized out>) at ../../part/render/katerenderer.cpp:883
#9  0x00007f9b1dd1b3bd in KateLayoutCache::line (this=0x3065b40, realLine=853, virtualLine=853) at ../../part/render/katelayoutcache.cpp:318
#10 0x00007f9b1dd1c43a in KateLayoutCache::updateViewCache (this=0x3065b40, startPos=..., newViewLineCount=<optimized out>, viewLinesScrolled=<optimized out>) at ../../part/render/katelayoutcache.cpp:270
#11 0x00007f9b1dd6d4cf in doUpdateView (viewLinesScrolled=0, changed=<optimized out>, this=0x3065570) at ../../part/view/kateviewinternal.cpp:550
#12 KateViewInternal::doUpdateView (this=0x3065570, changed=<optimized out>, viewLinesScrolled=0) at ../../part/view/kateviewinternal.cpp:530
#13 0x00007f9b1dd6dbec in KateViewInternal::updateView (this=0x3065570, changed=false, viewLinesScrolled=<optimized out>) at ../../part/view/kateviewinternal.cpp:524
#14 0x00007f9b1dd5ccd6 in KateView::visibleRange (this=0x31f3dd0) at ../../part/view/kateview.cpp:2727
#15 0x00007f9b1ddbe797 in textInserted (range=..., this=0x29dd860, document=<optimized out>) at ../../part/spellcheck/ontheflycheck.cpp:155
#16 KateOnTheFlyChecker::textInserted (this=0x29dd860, document=<optimized out>, range=...) at ../../part/spellcheck/ontheflycheck.cpp:137
#17 0x00007f9b1ddbede0 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=0x29dd860, _c=<optimized out>) at ./ontheflycheck.moc:87
#18 KateOnTheFlyChecker::qt_static_metacall (_o=0x29dd860, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./ontheflycheck.moc:81
#19 0x00007f9b462e0281 in QMetaObject::activate (sender=0x2b4d5b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff482df5c0) at kernel/qobject.cpp:3547
#20 0x00007f9b47888057 in KTextEditor::Document::textInserted (this=<optimized out>, _t1=0x2b4d5b0, _t2=...) at ./document.moc:201
#21 0x00007f9b1dcd8879 in editWrapLine (newLineAdded=0x0, newLine=<optimized out>, col=19, line=851, this=0x2b4d5b0) at ../../part/document/katedocument.cpp:1181
#22 KateDocument::editWrapLine (this=0x2b4d5b0, line=851, col=19, newLine=<optimized out>, newLineAdded=0x0) at ../../part/document/katedocument.cpp:1121
#23 0x00007f9b1dcdb30a in insertText (block=false, text=..., position=..., this=0x2b4d5b0) at ../../part/document/katedocument.cpp:617
#24 KateDocument::insertText (this=0x2b4d5b0, position=..., text=..., block=false) at ../../part/document/katedocument.cpp:565
#25 0x00007f9b1dcd9ab1 in KateDocument::paste (this=0x2b4d5b0, view=0x31f3dd0, mode=<optimized out>) at ../../part/document/katedocument.cpp:2899
#26 0x00007f9b1dd5b725 in KateView::paste (this=0x31f3dd0) at ../../part/view/kateview.cpp:2157
#27 0x00007f9b462e0281 in QMetaObject::activate (sender=0x306fc30, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff482dfab0) at kernel/qobject.cpp:3547
#28 0x00007f9b453cb132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#29 0x00007f9b453cb31f in QAction::activate (this=0x306fc30, event=<optimized out>) at kernel/qaction.cpp:1257
#30 0x00007f9b453cb48f in QAction::event (this=<optimized out>, e=<optimized out>) at kernel/qaction.cpp:1183
#31 0x00007f9b46c430ca in KAction::event (this=<optimized out>, event=0x7fff482e00d0) at ../../kdeui/actions/kaction.cpp:131
#32 0x00007f9b453d1894 in notify_helper (e=0x7fff482e00d0, receiver=0x306fc30, this=0x15db8b0) at kernel/qapplication.cpp:4559
#33 QApplicationPrivate::notify_helper (this=0x15db8b0, receiver=0x306fc30, e=0x7fff482e00d0) at kernel/qapplication.cpp:4531
#34 0x00007f9b453d6713 in QApplication::notify (this=0x7fff482e15a0, receiver=0x306fc30, e=0x7fff482e00d0) at kernel/qapplication.cpp:4420
#35 0x00007f9b46d2bb46 in KApplication::notify (this=0x7fff482e15a0, receiver=0x306fc30, event=0x7fff482e00d0) at ../../kdeui/kernel/kapplication.cpp:311
#36 0x00007f9b462cbe9c in QCoreApplication::notifyInternal (this=0x7fff482e15a0, receiver=0x306fc30, event=0x7fff482e00d0) at kernel/qcoreapplication.cpp:876
#37 0x00007f9b454038b9 in sendEvent (event=0x7fff482e00d0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#38 QShortcutMap::dispatchEvent (this=<optimized out>, e=0x7fff482e0670) at kernel/qshortcutmap.cpp:879
#39 0x00007f9b45404d8a in QShortcutMap::tryShortcutEvent (this=0x15db9d0, o=<optimized out>, e=0x7fff482e0670) at kernel/qshortcutmap.cpp:364
#40 0x00007f9b453d7f92 in QApplication::notify (this=0x7fff482e15a0, receiver=0x3065570, e=0x7fff482e0670) at kernel/qapplication.cpp:3983
#41 0x00007f9b46d2bb46 in KApplication::notify (this=0x7fff482e15a0, receiver=0x3065570, event=0x7fff482e0670) at ../../kdeui/kernel/kapplication.cpp:311
#42 0x00007f9b462cbe9c in QCoreApplication::notifyInternal (this=0x7fff482e15a0, receiver=0x3065570, event=0x7fff482e0670) at kernel/qcoreapplication.cpp:876
#43 0x00007f9b45475c49 in QKeyMapper::sendKeyEvent (keyWidget=0x3065570, 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 0x00007f9b454760bb in QKeyMapperPrivate::translateKeyEvent (this=0x161a1a0, keyWidget=0x3065570, event=0x7fff482e1160, grab=false) at kernel/qkeymapper_x11.cpp:1836
#45 0x00007f9b45450637 in QApplication::x11ProcessEvent (this=0x7fff482e15a0, event=0x7fff482e1160) at kernel/qapplication_x11.cpp:3625
#46 0x00007f9b4547a0d2 in x11EventSourceDispatch (s=0x15df670, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#47 0x00007f9b3ffb8c9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f9b3ffb9060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f9b3ffb9124 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f9b462fb3bf in QEventDispatcherGlib::processEvents (this=0x15a6b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#51 0x00007f9b45479d5e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#52 0x00007f9b462cac82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#53 0x00007f9b462caed7 in QEventLoop::exec (this=0x7fff482e1500, flags=...) at kernel/qeventloop.cpp:204
#54 0x00007f9b462cff67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#55 0x0000000000436c84 in ?? ()
#56 0x00007f9b4495476d in __libc_start_main (main=0x435ad0, argc=1, ubp_av=0x7fff482e23c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff482e23b8) at libc-start.c:226
#57 0x0000000000439015 in _start ()

Reported using DrKonqi
Comment 1 Michel Ludwig 2012-05-23 18:27:40 UTC
Forwarding to KatePart.
Comment 2 Dominik Haumann 2012-07-04 13:55:26 UTC
known issue, if you have any idea how to reproduce, please let us know...

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