Bug 267977 - Kate Crashes on Opening .txt file
Summary: Kate Crashes on Opening .txt file
Status: RESOLVED DUPLICATE of bug 323276
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: 2011-03-08 16:33 UTC by aretae
Modified: 2013-08-08 07:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aretae 2011-03-08 16:33:33 UTC
Application: kate (3.5.1)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-25-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed: Trying to open a *.txt file, tried this with two separate files with the same result.  Not specific to the extension but seems to happen with different text files, but not all.  The files that crash always seem to crash.

The crash can be reproduced every time.

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

Thread 2 (Thread 0x7fcd66638700 (LWP 3490)):
#0  0x00007fcd7a961203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fcd77ad1009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007fcd77ad145c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#3  0x00007fcd788751e6 in QEventDispatcherGlib::processEvents (this=0x1b201e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:417
#4  0x00007fcd78847a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fcd78847dec in QEventLoop::exec (this=0x7fcd66637db0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fcd787522fd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007fcd788275f8 in QInotifyFileSystemWatcherEngine::run (this=0x1a469e0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fcd7875527e in QThreadPrivate::start (arg=0x1a469e0) at thread/qthread_unix.cpp:266
#9  0x00007fcd77f8f971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#10 0x00007fcd7a96d92d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fcd7afea760 (LWP 3487)):
[KCrash Handler]
#6  size (key=...) at ../../include/QtCore/../../src/corelib/tools/qstring.h:115
#7  qHash (key=...) at tools/qhash.cpp:95
#8  0x00007fcd693e2591 in QHash<QString, KateHighlighting::HighlightPropertyBag*>::findNode (this=0x16fffc0, akey=..., ahp=0x7fff6f02c0a8) at /usr/include/qt4/QtCore/qhash.h:879
#9  0x00007fcd693d8ff4 in operator[] (this=0x16ffec0, prevLine=<value optimized out>, textLine=0x2347530, foldingList=<value optimized out>, ctxChanged=<value optimized out>) at /usr/include/qt4/QtCore/qhash.h:740
#10 KateHighlighting::doHighlight (this=0x16ffec0, prevLine=<value optimized out>, textLine=0x2347530, foldingList=<value optimized out>, ctxChanged=<value optimized out>) at ../../kate/syntax/katehighlight.cpp:325
#11 0x00007fcd6937e9e9 in KateBuffer::doHighlight (this=0x20de540, startLine=<value optimized out>, endLine=<value optimized out>, invalidate=<value optimized out>) at ../../kate/document/katebuffer.cpp:482
#12 0x00007fcd6938035f in KateBuffer::ensureHighlighted (this=0x20de540, line=<value optimized out>) at ../../kate/document/katebuffer.cpp:246
#13 0x00007fcd6935669a in KateDocument::kateTextLine (this=0x238a240, i=1862451368) at ../../kate/document/katedocument.cpp:4920
#14 0x00007fcd693ac42f in KateLineLayout::textLine (this=0x2476430, reloadForce=<value optimized out>) at ../../kate/render/katelinelayout.cpp:67
#15 0x00007fcd693a265d in KateRenderer::layoutLine (this=0x212a4e0, lineLayout=<value optimized out>, maxwidth=1862451368, cacheLayout=15) at ../../kate/render/katerenderer.cpp:893
#16 0x00007fcd693a92bf in KateLayoutCache::line (this=0x1ecd110, realLine=0, virtualLine=-1) at ../../kate/render/katelayoutcache.cpp:305
#17 0x00007fcd693a9d05 in KateLayoutCache::textLayout (this=0x10, realLine=1862451368, _viewLine=0) at ../../kate/render/katelayoutcache.cpp:338
#18 0x00007fcd6940b780 in KateViewInternal::viewLineOffset (this=0x23cc870, virtualCursor=..., offset=0, keepX=<value optimized out>) at ../../kate/view/kateviewinternal.cpp:1366
#19 0x00007fcd6940fb29 in KateViewInternal::dynWrapChanged (this=0x23cc870) at ../../kate/view/kateviewinternal.cpp:303
#20 0x00007fcd693f8272 in KateView::updateConfig (this=0x20e0610) at ../../kate/view/kateview.cpp:1431
#21 0x00007fcd694062f5 in KateView::KateView (this=0x20e0610, doc=<value optimized out>, parent=<value optimized out>) at ../../kate/view/kateview.cpp:248
#22 0x00007fcd693552e4 in KateDocument::createView (this=0x238a240, parent=0x1827630) at ../../kate/document/katedocument.cpp:333
#23 0x00007fcd7948de7a in ?? () from /usr/lib/libkateinterfaces.so.4
#24 0x00007fcd7948e558 in ?? () from /usr/lib/libkateinterfaces.so.4
#25 0x00007fcd7948eb55 in ?? () from /usr/lib/libkateinterfaces.so.4
#26 0x00007fcd7948ee74 in ?? () from /usr/lib/libkateinterfaces.so.4
#27 0x00007fcd78860b27 in QMetaObject::activate (sender=0x183f930, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xf) at kernel/qobject.cpp:3280
#28 0x00007fcd79d4f852 in QAction::triggered (this=0x10, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#29 0x00007fcd79d50f5b in QAction::activate (this=0x183f930, event=<value optimized out>) at kernel/qaction.cpp:1256
#30 0x00007fcd7a1b7dc1 in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=..., action=0x183f930, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#31 0x00007fcd7a1bd782 in QMenuPrivate::activateAction (this=0x19352b0, action=0x183f930, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#32 0x00007fcd790f9cee in KMenu::mouseReleaseEvent (this=0x19400a0, e=0x10) at ../../kdeui/widgets/kmenu.cpp:471
#33 0x00007fcd79dad04e in QWidget::event (this=0x19400a0, event=0x7fff6f02d820) at kernel/qwidget.cpp:8187
#34 0x00007fcd7a1bf90b in QMenu::event (this=0x19400a0, e=0x7fff6f02d820) at widgets/qmenu.cpp:2410
#35 0x00007fcd79d56fdc in QApplicationPrivate::notify_helper (this=0x14d61e0, receiver=0x19400a0, e=0x7fff6f02d820) at kernel/qapplication.cpp:4396
#36 0x00007fcd79d5d30e in QApplication::notify (this=0x7fff6f02e5b0, receiver=0x19400a0, e=0x7fff6f02d820) at kernel/qapplication.cpp:3959
#37 0x00007fcd79019156 in KApplication::notify (this=0x7fff6f02e5b0, receiver=0x19400a0, event=0x7fff6f02d820) at ../../kdeui/kernel/kapplication.cpp:310
#38 0x00007fcd78848cdc in QCoreApplication::notifyInternal (this=0x7fff6f02e5b0, receiver=0x19400a0, event=0x7fff6f02d820) at kernel/qcoreapplication.cpp:732
#39 0x00007fcd79d5bdbe in sendEvent (receiver=0x19400a0, event=0x7fff6f02d820, alienWidget=0x0, nativeWidget=0x19400a0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#40 QApplicationPrivate::sendMouseEvent (receiver=0x19400a0, event=0x7fff6f02d820, alienWidget=0x0, nativeWidget=0x19400a0, buttonDown=<value optimized out>, lastMouseReceiver=<value optimized out>, spontaneous=true) at kernel/qapplication.cpp:3058
#41 0x00007fcd79ddf7bd in QETWidget::translateMouseEvent (this=0x19400a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4337
#42 0x00007fcd79dddc5c in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff6f02e140) at kernel/qapplication_x11.cpp:3536
#43 0x00007fcd79e0a0e2 in x11EventSourceDispatch (s=0x14dd220, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#44 0x00007fcd77acd342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#45 0x00007fcd77ad12a8 in ?? () from /lib/libglib-2.0.so.0
#46 0x00007fcd77ad145c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#47 0x00007fcd78875193 in QEventDispatcherGlib::processEvents (this=0x14b1e60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#48 0x00007fcd79e09a4e in QGuiEventDispatcherGlib::processEvents (this=0x10, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#49 0x00007fcd78847a02 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#50 0x00007fcd78847dec in QEventLoop::exec (this=0x7fff6f02e470, flags=) at kernel/qeventloop.cpp:201
#51 0x00007fcd7884bebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#52 0x00007fcd7ac0fd26 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kate.so
#53 0x00007fcd7a8a5d8e in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7fff6f02fb48) at libc-start.c:226
#54 0x0000000000400659 in _start ()

Reported using DrKonqi
Comment 1 Christoph Cullmann 2011-06-05 17:35:29 UTC
Can't reproduct, can you retry this with KDE 4.6 from Ubuntu 11.04?
Comment 2 Dominik Haumann 2013-08-08 07:04:20 UTC
Missing checks in context nums, it seems. See bug #323276.

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