Version: 3.3.3 (using KDE 3.5.3 Level "a" , unofficial build of SUSE ) Compiler: Target: x86_64-suse-linux OS: Linux (x86_64) release 2.6.16.13-4-smp I've a got a cpp source file. In the middle of a file, I've got an "else". Position the cursor immediately after "else" and hit Enter to insert a new line. KDevelop crashes with the following stack trace. System configuration startup check disabled. Using host libthread_db library "/lib64/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 46958858403920 (LWP 2333)] [New Thread 1082132800 (LWP 2352)] [KCrash handler] #5 0x00002aaaabac2333 in KateTextLine::stringAtPos ( this=<value optimized out>, pos=4294967295, match=<value optimized out>) at ./kate/part/katetextline.cpp:191 #6 0x00002aaaabb40137 in KateCSmartIndent::calcContinue (this=0x4be8070, start=@0x7fff3a490af0, end=@0x7fff3a490c90) at ./kate/part/kateautoindent.cpp:894 #7 0x00002aaaabb41025 in KateCSmartIndent::calcIndent (this=0x4be8070, begin=@0x7fff3a490c90, needContinue=true) at ./kate/part/kateautoindent.cpp:778 #8 0x00002aaaabb413e8 in KateCSmartIndent::processNewline (this=0x4be8070, begin=@0x7fff3a490c90, needContinue=true) at ./kate/part/kateautoindent.cpp:595 #9 0x00002aaaabb533e1 in KateDocument::newLine (this=0x199ec20, c=@0x7fff3a490d00, v=<value optimized out>) at ./kate/part/katedocument.cpp:3001 #10 0x00002aaaabb630f0 in KateViewInternal::doReturn (this=0x4bd5fb0) at ./kate/part/kateviewinternal.cpp:898 #11 0x00002aaaabb73687 in KateViewInternal::keyPressEvent (this=0x4bd5fb0, e=0x7fff3a491610) at ./kate/part/kateviewinternal.cpp:2477 #12 0x00002aaaabb5f656 in KateViewInternal::eventFilter (this=0x4bd5fb0, obj=0x4bd5fb0, e=0x7fff3a491610) at ./kate/part/kateviewinternal.cpp:2409 #13 0x00002ab571c11492 in QObject::activate_filters (this=0x4bd5fb0, e=0x7fff3a491610) at kernel/qobject.cpp:903 #14 0x00002ab571c114e7 in QObject::event (this=0x4bd5fb0, e=0x7fff3a491610) at kernel/qobject.cpp:735 #15 0x00002ab571c445c8 in QWidget::event (this=0x4bea870, e=0xffffffff) at kernel/qwidget.cpp:4678 #16 0x00002ab571bbaa95 in QApplication::internalNotify ( this=<value optimized out>, receiver=0x4bd5fb0, e=0x7fff3a491610) at kernel/qapplication.cpp:2636 #17 0x00002ab571bbbd69 in QApplication::notify (this=0x7fff3a491ab0, receiver=0x4bd5fb0, e=0x7fff3a491610) at kernel/qapplication.cpp:2393 #18 0x00002ab5715a8b38 in KApplication::notify (this=0x7fff3a491ab0, receiver=0x4bd5fb0, event=0x7fff3a491610) at ./kdecore/kapplication.cpp:552 #19 0x00002ab571b611ae in QETWidget::translateKeyEvent (this=0x4bd5fb0, event=<value optimized out>, grab=<value optimized out>) at kernel/qapplication.h:523 #20 0x00002ab571b621b0 in QApplication::x11ProcessEvent (this=0x7fff3a491ab0, event=0x7fff3a4918d0) at kernel/qapplication_x11.cpp:3493 #21 0x00002ab571b7125f in QEventLoop::processEvents (this=0x592fb0, flags=4) at kernel/qeventloop_x11.cpp:192 #22 0x00002ab571bcf7a1 in QEventLoop::enterLoop (this=0x4bea870) at kernel/qeventloop.cpp:198 #23 0x00002ab571bcf64a in QEventLoop::exec (this=0x4bea870) at kernel/qeventloop.cpp:145 #24 0x00000000004072f7 in main ()
Created attachment 16746 [details] honor the return value in case of an error added a proposed patch
*** This bug has been marked as a duplicate of 129263 ***