Bug 241059 - kate crashes when inserting double-quoted strings in bash scripts
Summary: kate crashes when inserting double-quoted strings in bash scripts
Status: RESOLVED DUPLICATE of bug 213964
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: 2010-06-07 23:44 UTC by Steve LeCompte
Modified: 2010-06-10 22:56 UTC (History)
0 users

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 Steve LeCompte 2010-06-07 23:44:09 UTC
Application: kate (3.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-22-generic i686
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
This has probably happened to me over 20 times in kate and while I can't reduplicate it on the fly, I have a good idea when it's going to happen.  Here are the conditions that cause this crash:

1. This only happens with kate running on Linux.  It's never happened with kate running in Windows.

2. The crash only occurs after I've been using kate for several hours.

3. This is always triggered when I'm editing bash scripts.  More specifically, whenever I type a double-quote followed by some text, kate has the horribly annoying behavior of automatically moving the double-quote *after* the text.  For example, if I type something like "$foo", kate always transposes the double-quote with the very next character I type.  The kate crashes occur right after this.

As a work-around, I've gotten into the habit of quitting out of kate and re-starting it every hour or so but this of course is very disruptive.

The crash can be reproduced some of the time.

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

Thread 2 (Thread 0xb4e3eb70 (LWP 31129)):
#0  __pthread_mutex_lock (mutex=0x8d0a514) at pthread_mutex_lock.c:125
#1  0x0057aba6 in pthread_mutex_lock (mutex=0x8d0a514) at forward.c:182
#2  0x00b8d454 in IA__g_main_context_dispatch (context=0x8d0a510) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2509
#3  0x00b912d8 in g_main_context_iterate (context=0x8d0a510, block=<value optimized out>, dispatch=1, self=0x8d0b9e0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#4  0x00b914b8 in IA__g_main_context_iteration (context=0x8d0a510, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#5  0x0652b60f in QEventDispatcherGlib::processEvents (this=0x8b1c9e0, flags=...) at kernel/qeventdispatcher_glib.cpp:414
#6  0x064fe059 in QEventLoop::processEvents (this=0xb4e3e290, flags=) at kernel/qeventloop.cpp:149
#7  0x064fe4aa in QEventLoop::exec (this=0xb4e3e290, flags=...) at kernel/qeventloop.cpp:201
#8  0x063fa5a8 in QThread::exec (this=0x8cd3560) at thread/qthread.cpp:487
#9  0x064ddc1b in QInotifyFileSystemWatcherEngine::run (this=0x8cd3560) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x063fd32e in QThreadPrivate::start (arg=0x8cd3560) at thread/qthread_unix.cpp:248
#11 0x0042896e in start_thread (arg=0xb4e3eb70) at pthread_create.c:300
#12 0x0056da4e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7702710 (LWP 31126)):
[KCrash Handler]
#6  QVector<KateCodeFoldingNode*>::size (this=0x8f0e32c, node=0x92636a0, line=608) at /usr/include/qt4/QtCore/qvector.h:124
#7  KateCodeFoldingNode::findChild (this=0x8f0e32c, node=0x92636a0, line=608) at ../../kate/syntax/katecodefolding.h:85
#8  KateCodeFoldingTree::removeOpening (this=0x8f0e32c, node=0x92636a0, line=608) at ../../kate/syntax/katecodefolding.cpp:554
#9  0x01fd885e in KateCodeFoldingTree::cleanupUnneededNodes (this=0x8f0e32c, line=608) at ../../kate/syntax/katecodefolding.cpp:1321
#10 0x01fd912a in KateCodeFoldingTree::updateLine (this=0x8f0e32c, line=608, regionChanges=0xbf9a9e24, updated=0xbf9a9e3e, changed=true, colsChanged=false)
    at ../../kate/syntax/katecodefolding.cpp:530
#11 0x01f60ebe in KateBuffer::doHighlight (this=0x8f0e2f8, startLine=150004524, endLine=95, invalidate=true) at ../../kate/document/katebuffer.cpp:1332
#12 0x01f6350f in KateBuffer::editEnd (this=0x8f0e2f8) at ../../kate/document/katebuffer.cpp:538
#13 0x01f45a8e in KateDocument::editEnd (this=0x8f18b20) at ../../kate/document/katedocument.cpp:971
#14 0x01f47f7a in KateDocument::typeChars (this=0x8f18b20, view=0x8c06fd0, chars=...) at ../../kate/document/katedocument.cpp:2756
#15 0x01ffcd1d in KateViewInternal::keyPressEvent (this=0x8c085f8, e=0xbf9aa5b4) at ../../kate/view/kateviewinternal.cpp:2458
#16 0x01ffbdc9 in KateViewInternal::eventFilter (this=0x8c085f8, obj=0x8c085f8, e=0xbf9aa5b4) at ../../kate/view/kateviewinternal.cpp:2261
#17 0x064fecda in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x8788088, receiver=0x8c085f8, event=0xbf9aa5b4) at kernel/qcoreapplication.cpp:819
#18 0x010b54b9 in QApplicationPrivate::notify_helper (this=0x8788088, receiver=0x8c085f8, e=0xbf9aa5b4) at kernel/qapplication.cpp:4296
#19 0x010bdb71 in QApplication::notify (this=0xbf9ab064, receiver=0x8c085f8, e=0xbf9aa5b4) at kernel/qapplication.cpp:3763
#20 0x0097af2a in KApplication::notify (this=0xbf9ab064, receiver=0x8c085f8, event=0xbf9aa5b4) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x064ffa3b in QCoreApplication::notifyInternal (this=0xbf9ab064, receiver=0x8c085f8, event=0xbf9aa5b4) at kernel/qcoreapplication.cpp:704
#22 0x010b62be in QCoreApplication::sendSpontaneousEvent (receiver=0x8c085f8, event=0x8f0e32c) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#23 qt_sendSpontaneousEvent (receiver=0x8c085f8, event=0x8f0e32c) at kernel/qapplication.cpp:5279
#24 0x0116fd90 in QKeyMapper::sendKeyEvent (keyWidget=0x8c085f8, grab=false, type=QEvent::KeyPress, code=34, modifiers=..., text=..., autorepeat=<value optimized out>, count=<value optimized out>, 
    nativeScanCode=48, nativeVirtualKey=34, nativeModifiers=1) at kernel/qkeymapper_x11.cpp:1861
#25 0x011722f5 in QKeyMapperPrivate::translateKeyEvent (this=0x87b05e0, keyWidget=0x8c085f8, event=0xbf9aac7c, grab=true) at kernel/qkeymapper_x11.cpp:1831
#26 0x01145757 in QApplication::x11ProcessEvent (this=0xbf9ab064, event=0xbf9aac7c) at kernel/qapplication_x11.cpp:3394
#27 0x0117560a in x11EventSourceDispatch (s=0x878a250, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00b8d5e5 in g_main_dispatch (context=0x8789a00) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#29 IA__g_main_context_dispatch (context=0x8789a00) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#30 0x00b912d8 in g_main_context_iterate (context=0x8789a00, block=<value optimized out>, dispatch=1, self=0x87860b0) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#31 0x00b914b8 in IA__g_main_context_iteration (context=0x8789a00, may_block=1) at /build/buildd/glib2.0-2.24.1/glib/gmain.c:2654
#32 0x0652b5d5 in QEventDispatcherGlib::processEvents (this=0x87699c0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#33 0x01175135 in QGuiEventDispatcherGlib::processEvents (this=0x87699c0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#34 0x064fe059 in QEventLoop::processEvents (this=0xbf9aaf74, flags=) at kernel/qeventloop.cpp:149
#35 0x064fe4aa in QEventLoop::exec (this=0xbf9aaf74, flags=...) at kernel/qeventloop.cpp:201
#36 0x0650269f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#37 0x010b5577 in QApplication::exec () at kernel/qapplication.cpp:3579
#38 0x00795a65 in kdemain (argc=1, argv=0xbf9ab704) at ../../../kate/app/katemain.cpp:377
#39 0x080485fb in main (argc=1, argv=0xbf9ab704) at kate_dummy.cpp:3

Possible duplicates by query: bug 213964.

Reported using DrKonqi
Comment 1 Dominik Haumann 2010-06-10 22:56:15 UTC

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