Bug 330350 - crashes on some specific input at the end of line
Summary: crashes on some specific input at the end of line
Status: RESOLVED DUPLICATE of bug 328271
Alias: None
Product: kate
Classification: Unclassified
Component: general (show other bugs)
Version: 3.11.3
Platform: Fedora RPMs Linux
: NOR crash (vote)
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-24 06:45 UTC by Ilya Taranov
Modified: 2014-01-24 07:30 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 Ilya Taranov 2014-01-24 06:45:20 UTC
I am editing some file, trying to put some special symbol at the end of the line, sometimes at this moment kate crashes.
For any particular line and character it happens every time.

Note: the only unusual setting I may have is line buffer length of 16K.

Reproducible: Always

Steps to Reproduce:
The string I have:
hx <- (dnorm(x, means[1], sigmas[1]) + dnorm(x, means[2], sigmas[2]) + dnorm(x, means[3], sigmas[3]) + dnorm(x, means[4], sigmas[4]) + dnorm(x, means[5], sigmas[5]))

If I add "/" at the end kate crashes.
Actual Results:  
SIGSEGV, I suppose

Expected Results:  
actually print "/"

Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f695cdc68c0 (LWP 8323))]

Thread 3 (Thread 0x7f694eda5700 (LWP 8324)):
#0  0x0000003af6e0b565 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003b171860bb in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQtScript.so.4
#2  0x0000003b171860f9 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQtScript.so.4
#3  0x0000003af6e07c53 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003af6af5dbd in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f68cca08700 (LWP 8352)):
#0  0x0000003af8e8714a in g_private_get_impl (key=0x3af9127b60 <g_thread_specific_private>) at gthread-posix.c:976
#1  0x0000003af8e875c9 in g_private_get (key=<optimized out>) at gthread-posix.c:1007
#2  0x0000003af8e6c600 in g_thread_self () at gthread.c:993
#3  0x0000003af8e481dd in g_main_context_iteration (context=0x7f68c80009a0, may_block=1) at gmain.c:3762
#4  0x0000003affba7166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#5  0x0000003affb78ecf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#6  0x0000003affb791c5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#7  0x0000003affa7866f in QThread::exec() () from /lib64/libQtCore.so.4
#8  0x0000003affb5a733 in QInotifyFileSystemWatcherEngine::run() () from /lib64/libQtCore.so.4
#9  0x0000003affa7ad0f in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#10 0x0000003af6e07c53 in start_thread () from /lib64/libpthread.so.0
#11 0x0000003af6af5dbd in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f695cdc68c0 (LWP 8323)):
[KCrash Handler]
#5  0x00007f69500bae20 in KateDocument::defStyleNum(int, int) () from /lib64/libkatepartinterfaces.so.4
#6  0x00007f69500e2529 in KateScriptDocument::isString(int, int) () from /lib64/libkatepartinterfaces.so.4
#7  0x00007f6950060f8d in KateScriptDocument::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) [clone .part.33] () from /lib64/libkatepartinterfaces.so.4
#8  0x00007f6950062003 in KateScriptDocument::qt_metacall(QMetaObject::Call, int, void**) () from /lib64/libkatepartinterfaces.so.4
#9  0x0000003b171f1d16 in QScript::callQtMethod(QTJSC::ExecState*, QMetaMethod::MethodType, QObject*, QTJSC::ArgList const&, QMetaObject const*, int, bool) () from /lib64/libQtScript.so.4
#10 0x0000003b171f2e59 in QScript::QtFunction::execute(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::ArgList const&) () from /lib64/libQtScript.so.4
#11 0x0000003b171f30e9 in QScript::QtFunction::call(QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::JSValue, QTJSC::ArgList const&) () from /lib64/libQtScript.so.4
#12 0x0000003b170f8258 in QTJSC::NativeFuncWrapper::operator()(QTJSC::ExecState*, QTJSC::JSObject*, QTJSC::JSValue, QTJSC::ArgList const&) const () from /lib64/libQtScript.so.4
#13 0x0000003b170d60f0 in cti_op_call_NotJSFunction () from /lib64/libQtScript.so.4
#14 0x00007f68ce52f14a in ?? ()
#15 0x7fffffff0000000b in ?? ()
#16 0x00007f68cc1c6540 in ?? ()
#17 0x00007f6800000010 in ?? ()
#18 0x00007f6800000003 in ?? ()
#19 0x0000000000000011 in ?? ()
#20 0x00007f68cdc4dd20 in ?? ()
#21 0x00007f68cdc5ba50 in ?? ()
#22 0x00007f68cdc573c0 in ?? ()
#23 0x00007f68cdc02000 in ?? ()
#24 0x00007f68ce527a18 in ?? ()
#25 0x00007f68cdc5ba68 in ?? ()
#26 0x00007f68c73711b0 in ?? ()
#27 0x00007f68cdc3c688 in ?? ()
#28 0x0000003b17483dc8 in __bss_start () from /lib64/libQtScript.so.4
#29 0x00007f68cdc3b400 in ?? ()
#30 0x00007f68c7371000 in ?? ()
#31 0x00007f68cdc3b400 in ?? ()
#32 0x00007f68cdc91310 in ?? ()
#33 0x000000000286e888 in ?? ()
#34 0x00007f68c7371060 in ?? ()
#35 0x00007f68cdc5ba50 in ?? ()
#36 0x0000003b1708f396 in QTJSC::Interpreter::execute(QTJSC::FunctionExecutable*, QTJSC::ExecState*, QTJSC::JSFunction*, QTJSC::JSObject*, QTJSC::ArgList const&, QTJSC::ScopeChainNode*, QTJSC::JSValue*) () from /lib64/libQtScript.so.4
#37 0x0000003b17124386 in QTJSC::JSFunction::call(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::ArgList const&) () from /lib64/libQtScript.so.4
#38 0x0000003b170f827f in QTJSC::call(QTJSC::ExecState*, QTJSC::JSValue, QTJSC::CallType, QTJSC::CallData const&, QTJSC::JSValue, QTJSC::ArgList const&) () from /lib64/libQtScript.so.4
#39 0x0000003b171df83e in QScriptValue::call(QScriptValue const&, QList<QScriptValue> const&) () from /lib64/libQtScript.so.4
#40 0x00007f69500da1e9 in KateIndentScript::indent(KateView*, KTextEditor::Cursor const&, QChar, int) () from /lib64/libkatepartinterfaces.so.4
#41 0x00007f69501b6a90 in KateAutoIndent::scriptIndent(KateView*, KTextEditor::Cursor const&, QChar) () from /lib64/libkatepartinterfaces.so.4
#42 0x00007f69501b6be0 in KateAutoIndent::userTypedChar(KateView*, KTextEditor::Cursor const&, QChar) () from /lib64/libkatepartinterfaces.so.4
#43 0x00007f69500c8713 in KateDocument::typeChars(KateView*, QString const&) () from /lib64/libkatepartinterfaces.so.4
#44 0x00007f695014291a in KateViewInternal::keyPressEvent(QKeyEvent*) () from /lib64/libkatepartinterfaces.so.4
#45 0x00007f69501415e7 in KateViewInternal::eventFilter(QObject*, QEvent*) () from /lib64/libkatepartinterfaces.so.4
#46 0x0000003affb7a3d6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#47 0x0000003b03bc850c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#48 0x0000003b03bcfd41 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#49 0x0000003b0663fe9a in KApplication::notify(QObject*, QEvent*) () from /lib64/libkdeui.so.5
#50 0x0000003affb7a26d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#51 0x0000003b03c62449 in QKeyMapper::sendKeyEvent(QWidget*, bool, QEvent::Type, int, QFlags<Qt::KeyboardModifier>, QString const&, bool, int, unsigned int, unsigned int, unsigned int, bool*) () from /lib64/libQtGui.so.4
#52 0x0000003b03c627e9 in QKeyMapperPrivate::translateKeyEvent(QWidget*, _XEvent const*, bool) () from /lib64/libQtGui.so.4
#53 0x0000003b03c3e73f in QApplication::x11ProcessEvent(_XEvent*) () from /lib64/libQtGui.so.4
#54 0x0000003b03c64ea4 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQtGui.so.4
#55 0x0000003af8e47df6 in g_main_dispatch (context=0x1c7ceb0) at gmain.c:3054
#56 g_main_context_dispatch (context=context@entry=0x1c7ceb0) at gmain.c:3630
#57 0x0000003af8e48148 in g_main_context_iterate (context=context@entry=0x1c7ceb0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3701
#58 0x0000003af8e481ec in g_main_context_iteration (context=0x1c7ceb0, may_block=1) at gmain.c:3762
#59 0x0000003affba7166 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#60 0x0000003b03c65016 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtGui.so.4
#61 0x0000003affb78ecf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#62 0x0000003affb791c5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#63 0x0000003affb7e45b in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#64 0x0000003b07806d95 in kdemain () from /lib64/libkdeinit4_kate.so
#65 0x0000003af6a21b45 in __libc_start_main () from /lib64/libc.so.6
#66 0x0000000000400831 in _start ()
Comment 1 Jekyll Wu 2014-01-24 07:30:57 UTC

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