Bug 209623 - crash with unlimited history [QVector<Konsole::Character>::detach, QVector<Konsole::Character>::data, Konsole::Screen::copyLineToStream]
Summary: crash with unlimited history [QVector<Konsole::Character>::detach, QVector<Ko...
Status: RESOLVED DUPLICATE of bug 275907
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-06 13:25 UTC by simon
Modified: 2011-09-19 15:55 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 simon 2009-10-06 13:25:17 UTC
Application: konsole (2.4)
KDE Version: 4.3.70 (KDE 4.3.70 (KDE 4.4 >= 20091002)) (Compiled from sources)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-rc6-git3 x86_64
Distribution (Platform): Gentoo Packages

What I was doing when the application crashed:

hi,

i run amarok -d from konsole and had history set to unlimited. searching for a String in the output got ridiculous slow and finally (with 1,6GM Mem and 100% CPU) konsole decided to crash.



 -- Backtrace:
Application: Konsole (kdeinit4), signal: Segmentation fault
[KCrash Handler]
#5  0x00007f93eee8bc04 in QVector<Konsole::Character>::detach (this=0xf65df8) at /usr/include/qt4/QtCore/qvector.h:129
#6  0x00007f93eeea9a49 in QVector<Konsole::Character>::data (this=0xf65df8) at /usr/include/qt4/QtCore/qvector.h:133
#7  0x00007f93eeea72f6 in Konsole::Screen::copyLineToStream (this=0x817890, line=<value optimized out>, start=0, count=181, decoder=0x7fff7f21f8c0, appendNewLine=true, preserveLineBreaks=true)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/Screen.cpp:1229
#8  0x00007f93eeea7871 in Konsole::Screen::writeToStream (this=0x817890, decoder=0x7fff7f21f8c0, startIndex=<value optimized out>, endIndex=<value optimized out>, 
    preserveLineBreaks=<value optimized out>) at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/Screen.cpp:1156
#9  0x00007f93eeeb1bb1 in Konsole::SearchHistoryTask::executeOnScreenWindow (this=0xb6d860, session=<value optimized out>, window=...)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:1496
#10 0x00007f93eeeb1e51 in Konsole::SearchHistoryTask::execute (this=0xb6d860) at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:1411
#11 0x00007f93eeeb3eee in Konsole::SessionController::beginSearch (this=0x8b1650, text=..., direction=0)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:909
#12 0x00007f93eeeb4061 in Konsole::SessionController::findNextInHistory (this=0x8b1650) at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:933
#13 0x00007f93eeeb7e1d in Konsole::SessionController::qt_metacall (this=0x8b1650, _c=InvokeMetaMethod, _id=14, _a=0x7fff7f21fb60)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999_build/konsole/src/SessionController.moc:158
#14 0x00007f93fc62c06c in QMetaObject::activate (sender=0x812dd0, from_signal_index=28, to_signal_index=28, argv=0x0) at kernel/qobject.cpp:3109
#15 0x00007f93fc62c4d9 in QMetaObject::activate (sender=0x812dd0, m=0x7f93ef12a260, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3186
#16 0x00007f93eee8d413 in Konsole::IncrementalSearchBar::qt_metacall (this=0x812dd0, _c=InvokeMetaMethod, _id=1, _a=0x7fff7f21fd80)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999_build/konsole/src/IncrementalSearchBar.moc:83
#17 0x00007f93fc62c06c in QMetaObject::activate (sender=0x8696d0, from_signal_index=29, to_signal_index=30, argv=0x7fff7f21fd80) at kernel/qobject.cpp:3109
#18 0x00007f93fc62c290 in QMetaObject::activate (sender=0x8696d0, m=0x7f93fa398b80, from_local_signal_index=2, to_local_signal_index=3, argv=0x7fff7f21fd80) at kernel/qobject.cpp:3206
#19 0x00007f93f9f4f667 in QAbstractButton::clicked (this=0x8696d0, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:200
#20 0x00007f93f9ca1a97 in QAbstractButtonPrivate::emitClicked (this=0x86bab0) at widgets/qabstractbutton.cpp:543
#21 0x00007f93f9ca2d4d in QAbstractButtonPrivate::click (this=0x86bab0) at widgets/qabstractbutton.cpp:536
#22 0x00007f93f9ca2fb0 in QAbstractButton::mouseReleaseEvent (this=0x8696d0, e=0x7fff7f220930) at widgets/qabstractbutton.cpp:1115
#23 0x00007f93f9d8080c in QToolButton::mouseReleaseEvent (this=0x8696d0, e=0x7fff7f220930) at widgets/qtoolbutton.cpp:709
#24 0x00007f93f994bdd0 in QWidget::event (this=0x8696d0, event=0x7fff7f220930) at kernel/qwidget.cpp:7549
#25 0x00007f93f9ca1a41 in QAbstractButton::event (this=0x8696d0, e=0x7fff7f220930) at widgets/qabstractbutton.cpp:1077
#26 0x00007f93f9d819d6 in QToolButton::event (this=0x8696d0, event=0x7fff7f220930) at widgets/qtoolbutton.cpp:1151
#27 0x00007f93f98eed49 in QApplicationPrivate::notify_helper (this=0x69bb80, receiver=0x8696d0, e=0x7fff7f220930) at kernel/qapplication.cpp:4056
#28 0x00007f93f98efb0a in QApplication::notify (this=0x7fff7f225930, receiver=0x8696d0, e=0x7fff7f220930) at kernel/qapplication.cpp:3758
#29 0x00007f93faa8d4d1 in KApplication::notify (this=0x7fff7f225930, receiver=0x8696d0, event=0x7fff7f220930)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#30 0x00007f93fc6169dc in QCoreApplication::notifyInternal (this=0x7fff7f225930, receiver=0x8696d0, event=0x7fff7f220930) at kernel/qcoreapplication.cpp:606
#31 0x00007f93f98fae1b in QCoreApplication::sendSpontaneousEvent (receiver=0x8696d0, event=0x7fff7f220930) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#32 0x00007f93f98f5d2b in QApplicationPrivate::sendMouseEvent (receiver=0x8696d0, event=0x7fff7f220930, alienWidget=0x8696d0, nativeWidget=0x68ae80, buttonDown=0x7f93fa3aa388, lastMouseReceiver=...)
    at kernel/qapplication.cpp:2924
#33 0x00007f93f9969209 in QETWidget::translateMouseEvent (this=0x68ae80, event=0x7fff7f222520) at kernel/qapplication_x11.cpp:4409
#34 0x00007f93f9966c04 in QApplication::x11ProcessEvent (this=0x7fff7f225930, event=0x7fff7f222520) at kernel/qapplication_x11.cpp:3428
#35 0x00007f93f9997207 in x11EventSourceDispatch (s=0x6b97c0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#36 0x00007f93f83934b2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#37 0x00007f93f8396795 in ?? () from /usr/lib/libglib-2.0.so.0
#38 0x00007f93f8396c9b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#39 0x00007f93fc64498e in QEventDispatcherGlib::processEvents (this=0x613ff0, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#40 0x00007f93f9996a57 in QGuiEventDispatcherGlib::processEvents (this=0x613ff0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#41 0x00007f93fc617459 in QCoreApplication::processEvents (flags=...) at kernel/qcoreapplication.cpp:803
#42 0x00007f93eeeb1b3d in Konsole::SearchHistoryTask::executeOnScreenWindow (this=0xae44d0, session=<value optimized out>, window=...)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:1463
#43 0x00007f93eeeb1e51 in Konsole::SearchHistoryTask::execute (this=0xae44d0) at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:1411
#44 0x00007f93eeeb3eee in Konsole::SessionController::beginSearch (this=0x8b1650, text=..., direction=0)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:909
#45 0x00007f93eeeb4061 in Konsole::SessionController::findNextInHistory (this=0x8b1650) at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/SessionController.cpp:933
#46 0x00007f93eeeb7e1d in Konsole::SessionController::qt_metacall (this=0x8b1650, _c=InvokeMetaMethod, _id=14, _a=0x7fff7f222b20)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999_build/konsole/src/SessionController.moc:158
#47 0x00007f93fc62c06c in QMetaObject::activate (sender=0x812dd0, from_signal_index=28, to_signal_index=28, argv=0x0) at kernel/qobject.cpp:3109
#48 0x00007f93fc62c4d9 in QMetaObject::activate (sender=0x812dd0, m=0x7f93ef12a260, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3186
#49 0x00007f93eee8d413 in Konsole::IncrementalSearchBar::qt_metacall (this=0x812dd0, _c=InvokeMetaMethod, _id=1, _a=0x7fff7f222d40)
    at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999_build/konsole/src/IncrementalSearchBar.moc:83
#50 0x00007f93fc62c06c in QMetaObject::activate (sender=0x8696d0, from_signal_index=29, to_signal_index=30, argv=0x7fff7f222d40) at kernel/qobject.cpp:3109
#51 0x00007f93fc62c290 in QMetaObject::activate (sender=0x8696d0, m=0x7f93fa398b80, from_local_signal_index=2, to_local_signal_index=3, argv=0x7fff7f222d40) at kernel/qobject.cpp:3206
#52 0x00007f93f9f4f667 in QAbstractButton::clicked (this=0x8696d0, _t1=false) at .moc/debug-shared/moc_qabstractbutton.cpp:200
#53 0x00007f93f9ca1a97 in QAbstractButtonPrivate::emitClicked (this=0x86bab0) at widgets/qabstractbutton.cpp:543
#54 0x00007f93f9ca2d4d in QAbstractButtonPrivate::click (this=0x86bab0) at widgets/qabstractbutton.cpp:536
#55 0x00007f93f9ca2fb0 in QAbstractButton::mouseReleaseEvent (this=0x8696d0, e=0x7fff7f2238f0) at widgets/qabstractbutton.cpp:1115
#56 0x00007f93f9d8080c in QToolButton::mouseReleaseEvent (this=0x8696d0, e=0x7fff7f2238f0) at widgets/qtoolbutton.cpp:709
#57 0x00007f93f994bdd0 in QWidget::event (this=0x8696d0, event=0x7fff7f2238f0) at kernel/qwidget.cpp:7549
#58 0x00007f93f9ca1a41 in QAbstractButton::event (this=0x8696d0, e=0x7fff7f2238f0) at widgets/qabstractbutton.cpp:1077
#59 0x00007f93f9d819d6 in QToolButton::event (this=0x8696d0, event=0x7fff7f2238f0) at widgets/qtoolbutton.cpp:1151
#60 0x00007f93f98eed49 in QApplicationPrivate::notify_helper (this=0x69bb80, receiver=0x8696d0, e=0x7fff7f2238f0) at kernel/qapplication.cpp:4056
#61 0x00007f93f98efb0a in QApplication::notify (this=0x7fff7f225930, receiver=0x8696d0, e=0x7fff7f2238f0) at kernel/qapplication.cpp:3758
#62 0x00007f93faa8d4d1 in KApplication::notify (this=0x7fff7f225930, receiver=0x8696d0, event=0x7fff7f2238f0)
    at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kdeui/kernel/kapplication.cpp:302
#63 0x00007f93fc6169dc in QCoreApplication::notifyInternal (this=0x7fff7f225930, receiver=0x8696d0, event=0x7fff7f2238f0) at kernel/qcoreapplication.cpp:606
#64 0x00007f93f98fae1b in QCoreApplication::sendSpontaneousEvent (receiver=0x8696d0, event=0x7fff7f2238f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#65 0x00007f93f98f5d2b in QApplicationPrivate::sendMouseEvent (receiver=0x8696d0, event=0x7fff7f2238f0, alienWidget=0x8696d0, nativeWidget=0x68ae80, buttonDown=0x7f93fa3aa388, lastMouseReceiver=...)
    at kernel/qapplication.cpp:2924
#66 0x00007f93f9969209 in QETWidget::translateMouseEvent (this=0x68ae80, event=0x7fff7f2254e0) at kernel/qapplication_x11.cpp:4409
#67 0x00007f93f9966c04 in QApplication::x11ProcessEvent (this=0x7fff7f225930, event=0x7fff7f2254e0) at kernel/qapplication_x11.cpp:3428
#68 0x00007f93f9997207 in x11EventSourceDispatch (s=0x6b97c0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#69 0x00007f93f83934b2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#70 0x00007f93f8396795 in ?? () from /usr/lib/libglib-2.0.so.0
#71 0x00007f93f8396c9b in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#72 0x00007f93fc64498e in QEventDispatcherGlib::processEvents (this=0x613ff0, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#73 0x00007f93f9996a57 in QGuiEventDispatcherGlib::processEvents (this=0x613ff0, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#74 0x00007f93fc6139b0 in QEventLoop::processEvents (this=0x7fff7f225880, flags=...) at kernel/qeventloop.cpp:149
#75 0x00007f93fc613bd2 in QEventLoop::exec (this=0x7fff7f225880, flags=...) at kernel/qeventloop.cpp:197
#76 0x00007f93fc61724c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#77 0x00007f93f98eeaaa in QApplication::exec () at kernel/qapplication.cpp:3525
#78 0x00007f93ef147a7d in kdemain (argc=1, argv=0x657010) at /var/tmp/portage/kde-base/konsole-9999/work/konsole-9999/konsole/src/main.cpp:104
#79 0x00000000004077cd in launch (argc=1, _name=0x6574f8 "/usr/bin/konsole", args=0x657509 "\001", cwd=0x0, envc=1, envs=<value optimized out>, reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x657526 "d-partment;1254818075;709050;7013_TIME1735679") at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:705
#80 0x0000000000407c05 in handle_launcher_request (sock=8, who=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:1197
#81 0x0000000000408503 in handle_requests (waitForPid=0) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:1390
#82 0x00000000004089d9 in main (argc=4, argv=0x7fff7f2264d8, envp=0x7fff7f226500) at /var/tmp/portage/kde-base/kdelibs-9999/work/kdelibs-9999/kinit/kinit.cpp:1825

Reported using DrKonqi
Comment 1 Jekyll Wu 2011-09-19 15:55:42 UTC

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