Bug 360146 - Konsole crash while searching history
Summary: Konsole crash while searching history
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 15.12.2
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-03-06 00:01 UTC by Matthew Dawson
Modified: 2018-12-02 03:45 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 Matthew Dawson 2016-03-06 00:01:00 UTC
Application: konsole (15.12.2)
 (Compiled from sources)
Qt Version: 5.5.1
Operating System: Linux 4.3.3-gentoo x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
While searching through my history for "..", konsole crashed.  Just before I had tried searching for ".." and it had landed me in a different part of my history I didn't care about, so I scrolled back and tried again.  That time konsole crashed.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f93f860a880 (LWP 9630))]

Thread 2 (Thread 0x7f93e7572700 (LWP 9633)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f93efa1152b in cnd_wait (mtx=0xcf6c80, cond=0xcf6ca8) at /usr/src/debug/media-libs/mesa-11.1.2/mesa-11.1.2/include/c11/threads_posix.h:159
#2  pipe_semaphore_wait (sema=0xcf6c80) at /usr/src/debug/media-libs/mesa-11.1.2/mesa-11.1.2/src/gallium/auxiliary/os/os_thread.h:259
#3  radeon_drm_cs_emit_ioctl (param=param@entry=0xcf6930) at /usr/src/debug/media-libs/mesa-11.1.2/mesa-11.1.2/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c:653
#4  0x00007f93efa110f8 in impl_thrd_routine (p=<optimized out>) at /usr/src/debug/media-libs/mesa-11.1.2/mesa-11.1.2/include/c11/threads_posix.h:87
#5  0x00007f94040a5552 in start_thread (arg=0x7f93e7572700) at pthread_create.c:333
#6  0x00007f940bda796d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f93f860a880 (LWP 9630)):
[KCrash Handler]
#6  0x00007f940b9e3b5c in Konsole::HistoryFile::get (loc=-2628, size=2628, buffer=<optimized out>, this=0xfa1f50) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/History.cpp:163
#7  Konsole::HistoryScrollFile::getCells (this=0xfa1f10, lineno=<optimized out>, colno=<optimized out>, count=<optimized out>, res=<optimized out>) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/History.cpp:262
#8  0x00007f940ba15465 in Konsole::Screen::copyLineToStream (this=this@entry=0xbe3b30, line=line@entry=-6399987, start=<optimized out>, count=219, count@entry=-1, decoder=decoder@entry=0x7ffe90b74920, appendNewLine=appendNewLine@entry=true, preserveLineBreaks=true, trimTrailingSpaces=false) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/Screen.cpp:1239
#9  0x00007f940ba15608 in Konsole::Screen::writeToStream (this=0xbe3b30, decoder=0x7ffe90b74920, startIndex=<optimized out>, endIndex=<optimized out>, preserveLineBreaks=true, trimTrailingSpaces=false) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/Screen.cpp:1184
#10 0x00007f940ba31f2a in Konsole::SearchHistoryTask::executeOnScreenWindow (this=this@entry=0x11c1930, session=..., window=...) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1882
#11 0x00007f940ba323f1 in Konsole::SearchHistoryTask::execute (this=0x11c1930) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1802
#12 0x00007f940ba2fa0f in Konsole::SessionController::beginSearch (this=0x1084580, text=..., direction=1) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1274
#13 0x00007f940875436b in QtPrivate::QSlotObjectBase::call (a=0x7ffe90b74bb0, r=0x1084580, this=<optimized out>) at ../../src/corelib/kernel/qobject_impl.h:124
#14 QMetaObject::activate (sender=sender@entry=0xdceb90, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=32766, argv=argv@entry=0xb218b0) at kernel/qobject.cpp:3698
#15 0x00007f9408754e12 in QMetaObject::activate (sender=sender@entry=0xdceb90, m=m@entry=0x7f940bcb0e40 <Konsole::IncrementalSearchBar::staticMetaObject>, local_signal_index=32766, local_signal_index@entry=0, argv=0xb218b0, argv@entry=0x7ffe90b74bb0) at kernel/qobject.cpp:3578
#16 0x00007f940ba6d515 in Konsole::IncrementalSearchBar::searchChanged (this=this@entry=0xdceb90, _t1=...) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2_build/src/moc_IncrementalSearchBar.cpp:251
#17 0x00007f940b9e8718 in Konsole::IncrementalSearchBar::notifySearchChanged (this=0xdceb90) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/IncrementalSearchBar.cpp:150
#18 0x00007f940875436b in QtPrivate::QSlotObjectBase::call (a=0x7ffe90b74cc0, r=0xdceb90, this=<optimized out>) at ../../src/corelib/kernel/qobject_impl.h:124
#19 QMetaObject::activate (sender=sender@entry=0x1021630, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=32766, argv=argv@entry=0xb218b0) at kernel/qobject.cpp:3698
#20 0x00007f9408754e12 in QMetaObject::activate (sender=sender@entry=0x1021630, m=m@entry=0x7f9408964a00 <QTimer::staticMetaObject>, local_signal_index=32766, local_signal_index@entry=0, argv=0xb218b0, argv@entry=0x0) at kernel/qobject.cpp:3578
#21 0x00007f94087d9c15 in QTimer::timeout (this=this@entry=0x1021630) at .moc/moc_qtimer.cpp:197
#22 0x00007f94087616d0 in QTimer::timerEvent (this=0x1021630, e=<optimized out>) at kernel/qtimer.cpp:247
#23 0x00007f94087554c3 in QObject::event (this=0x1021630, e=<optimized out>) at kernel/qobject.cpp:1261
#24 0x00007f940905ddec in QApplicationPrivate::notify_helper (this=this@entry=0xb218b0, receiver=receiver@entry=0x1021630, e=e@entry=0x7ffe90b75020) at kernel/qapplication.cpp:3716
#25 0x00007f94090662b1 in QApplication::notify (this=0x7ffe90b76a70, receiver=0x1021630, e=0x7ffe90b75020) at kernel/qapplication.cpp:3499
#26 0x00007f94087233fb in QCoreApplication::notifyInternal (this=0x7ffe90b76a70, receiver=0x1021630, event=event@entry=0x7ffe90b75020) at kernel/qcoreapplication.cpp:965
#27 0x00007f940877bc8c in QCoreApplication::sendEvent (event=0x7ffe90b75020, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:224
#28 QTimerInfoList::activateTimers (this=0xb81730) at kernel/qtimerinfo_unix.cpp:637
#29 0x00007f940877c201 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:177
#30 0x00007f940392a0d1 in g_main_dispatch (context=0x7f93f00016f0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3154
#31 g_main_context_dispatch (context=context@entry=0x7f93f00016f0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3769
#32 0x00007f940392a365 in g_main_context_iterate (context=context@entry=0x7f93f00016f0, block=block@entry=0, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3840
#33 0x00007f940392a433 in g_main_context_iteration (context=0x7f93f00016f0, may_block=may_block@entry=0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3901
#34 0x00007f940877cfe1 in QEventDispatcherGlib::processEvents (this=0xb7c150, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#35 0x00007f940ba31ed5 in Konsole::SearchHistoryTask::executeOnScreenWindow (this=this@entry=0x11cb290, session=..., window=...) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1854
#36 0x00007f940ba323f1 in Konsole::SearchHistoryTask::execute (this=0x11cb290) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1802
#37 0x00007f940ba2fa0f in Konsole::SessionController::beginSearch (this=this@entry=0x1084580, text=..., direction=direction@entry=1) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1274
#38 0x00007f940ba2fd6c in Konsole::SessionController::findNextInHistory (this=0x1084580) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1314
#39 0x00007f940875436b in QtPrivate::QSlotObjectBase::call (a=0x7ffe90b75510, r=0x1084580, this=<optimized out>) at ../../src/corelib/kernel/qobject_impl.h:124
#40 QMetaObject::activate (sender=0xdceb90, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3698
#41 0x00007f940875436b in QtPrivate::QSlotObjectBase::call (a=0x7ffe90b75670, r=0xdceb90, this=<optimized out>) at ../../src/corelib/kernel/qobject_impl.h:124
#42 QMetaObject::activate (sender=sender@entry=0xfdc330, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0xfdc330) at kernel/qobject.cpp:3698
#43 0x00007f9408754e12 in QMetaObject::activate (sender=sender@entry=0xfdc330, m=m@entry=0x7f940963d860 <QAbstractButton::staticMetaObject>, local_signal_index=0, local_signal_index@entry=2, argv=0xfdc330, argv@entry=0x7ffe90b75670) at kernel/qobject.cpp:3578
#44 0x00007f94094c3c60 in QAbstractButton::clicked (this=this@entry=0xfdc330, _t1=false) at .moc/moc_qabstractbutton.cpp:303
#45 0x00007f940918521d in QAbstractButtonPrivate::emitClicked (this=this@entry=0xfe71a0) at widgets/qabstractbutton.cpp:534
#46 0x00007f9409186c01 in QAbstractButton::click (this=0xfdc330) at widgets/qabstractbutton.cpp:992
#47 0x00007f940b9ea842 in Konsole::IncrementalSearchBar::eventFilter (this=0xdceb90, watched=0xdcfb80, aEvent=0x7ffe90b75c70) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/IncrementalSearchBar.cpp:192
#48 0x00007f94087231fc in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0xb218b0, receiver=receiver@entry=0xdcfb80, event=event@entry=0x7ffe90b75c70) at kernel/qcoreapplication.cpp:1072
#49 0x00007f940905ddcb in QApplicationPrivate::notify_helper (this=this@entry=0xb218b0, receiver=receiver@entry=0xdcfb80, e=e@entry=0x7ffe90b75c70) at kernel/qapplication.cpp:3712
#50 0x00007f940906817e in QApplication::notify (this=0x7ffe90b76a70, receiver=0xdcfb80, e=0x7ffe90b75c70) at kernel/qapplication.cpp:3179
#51 0x00007f94087233fb in QCoreApplication::notifyInternal (this=0x7ffe90b76a70, receiver=0xdcfb80, event=0x7ffe90b75c70) at kernel/qcoreapplication.cpp:965
#52 0x00007f94090d0dbb in QWidgetWindow::event (this=0xc6f3f0, event=0x7ffe90b75c70) at kernel/qwidgetwindow.cpp:203
#53 0x00007f940905ddec in QApplicationPrivate::notify_helper (this=this@entry=0xb218b0, receiver=receiver@entry=0xc6f3f0, e=e@entry=0x7ffe90b75c70) at kernel/qapplication.cpp:3716
#54 0x00007f94090662b1 in QApplication::notify (this=0x7ffe90b76a70, receiver=0xc6f3f0, e=0x7ffe90b75c70) at kernel/qapplication.cpp:3499
#55 0x00007f94087233fb in QCoreApplication::notifyInternal (this=0x7ffe90b76a70, receiver=receiver@entry=0xc6f3f0, event=event@entry=0x7ffe90b75c70) at kernel/qcoreapplication.cpp:965
#56 0x00007f9408a592da in QCoreApplication::sendSpontaneousEvent (event=0x7ffe90b75c70, receiver=0xc6f3f0) at ../../src/corelib/kernel/qcoreapplication.h:227
#57 QGuiApplicationPrivate::processKeyEvent (e=0xfbd540) at kernel/qguiapplication.cpp:1904
#58 0x00007f9408a5e535 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0xfbd540) at kernel/qguiapplication.cpp:1587
#59 0x00007f9408a408f0 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:625
#60 0x00007f93f801bcf0 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:70
#61 0x00007f940392a0d1 in g_main_dispatch (context=0x7f93f00016f0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3154
#62 g_main_context_dispatch (context=context@entry=0x7f93f00016f0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3769
#63 0x00007f940392a365 in g_main_context_iterate (context=context@entry=0x7f93f00016f0, block=block@entry=0, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3840
#64 0x00007f940392a433 in g_main_context_iteration (context=0x7f93f00016f0, may_block=may_block@entry=0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3901
#65 0x00007f940877cfe1 in QEventDispatcherGlib::processEvents (this=0xb7c150, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#66 0x00007f940ba31ed5 in Konsole::SearchHistoryTask::executeOnScreenWindow (this=this@entry=0x13e1d60, session=..., window=...) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1854
#67 0x00007f940ba323f1 in Konsole::SearchHistoryTask::execute (this=0x13e1d60) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1802
#68 0x00007f940ba2fa0f in Konsole::SessionController::beginSearch (this=0x1084580, text=..., direction=1) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/SessionController.cpp:1274
#69 0x00007f940875436b in QtPrivate::QSlotObjectBase::call (a=0x7ffe90b76240, r=0x1084580, this=<optimized out>) at ../../src/corelib/kernel/qobject_impl.h:124
#70 QMetaObject::activate (sender=sender@entry=0xdceb90, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=32766, argv=argv@entry=0xb218b0) at kernel/qobject.cpp:3698
#71 0x00007f9408754e12 in QMetaObject::activate (sender=sender@entry=0xdceb90, m=m@entry=0x7f940bcb0e40 <Konsole::IncrementalSearchBar::staticMetaObject>, local_signal_index=32766, local_signal_index@entry=0, argv=0xb218b0, argv@entry=0x7ffe90b76240) at kernel/qobject.cpp:3578
#72 0x00007f940ba6d515 in Konsole::IncrementalSearchBar::searchChanged (this=this@entry=0xdceb90, _t1=...) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2_build/src/moc_IncrementalSearchBar.cpp:251
#73 0x00007f940b9e8718 in Konsole::IncrementalSearchBar::notifySearchChanged (this=0xdceb90) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/IncrementalSearchBar.cpp:150
#74 0x00007f940875436b in QtPrivate::QSlotObjectBase::call (a=0x7ffe90b76350, r=0xdceb90, this=<optimized out>) at ../../src/corelib/kernel/qobject_impl.h:124
#75 QMetaObject::activate (sender=sender@entry=0x1021630, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=32766, argv=argv@entry=0xb218b0) at kernel/qobject.cpp:3698
#76 0x00007f9408754e12 in QMetaObject::activate (sender=sender@entry=0x1021630, m=m@entry=0x7f9408964a00 <QTimer::staticMetaObject>, local_signal_index=32766, local_signal_index@entry=0, argv=0xb218b0, argv@entry=0x0) at kernel/qobject.cpp:3578
#77 0x00007f94087d9c15 in QTimer::timeout (this=this@entry=0x1021630) at .moc/moc_qtimer.cpp:197
#78 0x00007f94087616d0 in QTimer::timerEvent (this=0x1021630, e=<optimized out>) at kernel/qtimer.cpp:247
#79 0x00007f94087554c3 in QObject::event (this=0x1021630, e=<optimized out>) at kernel/qobject.cpp:1261
#80 0x00007f940905ddec in QApplicationPrivate::notify_helper (this=this@entry=0xb218b0, receiver=receiver@entry=0x1021630, e=e@entry=0x7ffe90b766b0) at kernel/qapplication.cpp:3716
#81 0x00007f94090662b1 in QApplication::notify (this=0x7ffe90b76a70, receiver=0x1021630, e=0x7ffe90b766b0) at kernel/qapplication.cpp:3499
#82 0x00007f94087233fb in QCoreApplication::notifyInternal (this=0x7ffe90b76a70, receiver=0x1021630, event=event@entry=0x7ffe90b766b0) at kernel/qcoreapplication.cpp:965
#83 0x00007f940877bc8c in QCoreApplication::sendEvent (event=0x7ffe90b766b0, receiver=<optimized out>) at ../../src/corelib/kernel/qcoreapplication.h:224
#84 QTimerInfoList::activateTimers (this=0xb81730) at kernel/qtimerinfo_unix.cpp:637
#85 0x00007f940877c201 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:177
#86 0x00007f940392a0d1 in g_main_dispatch (context=0x7f93f00016f0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3154
#87 g_main_context_dispatch (context=context@entry=0x7f93f00016f0) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3769
#88 0x00007f940392a365 in g_main_context_iterate (context=context@entry=0x7f93f00016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3840
#89 0x00007f940392a433 in g_main_context_iteration (context=0x7f93f00016f0, may_block=may_block@entry=1) at /usr/src/debug/dev-libs/glib-2.46.2-r1/glib-2.46.2/glib/gmain.c:3901
#90 0x00007f940877cfe1 in QEventDispatcherGlib::processEvents (this=0xb7c150, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#91 0x00007f9408720973 in QEventLoop::exec (this=this@entry=0x7ffe90b76920, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#92 0x00007f94087290f7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#93 0x00007f9408a539d9 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1527
#94 0x00007f940905dd4a in QApplication::exec () at kernel/qapplication.cpp:2976
#95 0x00007f940c0845c8 in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kde-apps/konsole-15.12.2/konsole-15.12.2/src/main.cpp:125
#96 0x00007f940bcd97a8 in __libc_start_main (main=0x4007e0 <main(int, char**)>, argc=1, argv=0x7ffe90b76bc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe90b76bb8) at libc-start.c:289
#97 0x0000000000400819 in _start ()

Reported using DrKonqi
Comment 1 Matthew Dawson 2016-03-06 00:03:29 UTC
Oh, I forgot to mention it crashed at:
buffer[i] = _fileMap[loc + i];   with i == 0
Since loc was < 0, I assumed the crash had a clear cause.  The assert to catch it a few files up was missed as I'm compiled with QT_NO_DEBUG set.
Comment 2 Andrew Crouthamel 2018-11-01 13:55:29 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2018-11-16 11:39:37 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-12-02 03:45:58 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!