Bug 372058 - Konsole crashes when attempting to save output to a file
Summary: Konsole crashes when attempting to save output to a file
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwidgetsaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-11-04 08:11 UTC by A. Wilcox (awilfox)
Modified: 2018-05-08 13:23 UTC (History)
3 users (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 A. Wilcox (awilfox) 2016-11-04 08:11:54 UTC
Application: konsole (16.08.1)
 (Compiled from sources)
Qt Version: 5.6.1
Frameworks Version: 5.26.0
Operating System: Linux 4.8.0-rc5-ciall x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed:

I was attempting to save the output of a terminal to a file.  I accidentally typed into the "file type" box instead of the "file name" box.  I backspaced and then went to the file name box.  I started to type a file name and when I did, it crashed.

-- Backtrace:
Application: Konsole (konsole), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff87935f7c0 (LWP 18833))]

Thread 5 (Thread 0x7ff84f551700 (LWP 31695)):
#0  0x00007ff878e287fd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ff86ee62f01 in poll_func (ufds=0x7ff8480141a0, nfds=3, timeout=-1, userdata=0x641b980) at /var/tmp/portage/media-sound/pulseaudio-9.0/work/pulseaudio-9.0/src/pulse/thread-mainloop.c:69
#2  0x00007ff86ee5474d in pa_mainloop_poll (m=0x641b860) at /var/tmp/portage/media-sound/pulseaudio-9.0/work/pulseaudio-9.0/src/pulse/mainloop.c:844
#3  0x00007ff86ee54d3a in pa_mainloop_iterate (m=0x641b860, block=<optimized out>, retval=0x0) at /var/tmp/portage/media-sound/pulseaudio-9.0/work/pulseaudio-9.0/src/pulse/mainloop.c:926
#4  0x00007ff86ee54de0 in pa_mainloop_run (m=0x641b860, retval=0x0) at /var/tmp/portage/media-sound/pulseaudio-9.0/work/pulseaudio-9.0/src/pulse/mainloop.c:944
#5  0x00007ff86ee632cc in thread (userdata=0x15c41d30) at /var/tmp/portage/media-sound/pulseaudio-9.0/work/pulseaudio-9.0/src/pulse/thread-mainloop.c:100
#6  0x00007ff86a3c9854 in internal_thread_func (userdata=0x641bb00) at /var/tmp/portage/media-sound/pulseaudio-9.0/work/pulseaudio-9.0/src/pulsecore/thread-posix.c:81
#7  0x00007ff8724f6434 in start_thread (arg=0x7ff84f551700) at pthread_create.c:333
#8  0x00007ff878e318fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7ff851f3d700 (LWP 18836)):
#0  pthread_cond_wait () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ff85dc82eed in cnd_wait (cond=0x241c2b8, mtx=0x241c290) at /var/tmp/portage/media-libs/mesa-12.0.3/work/mesa-12.0.3/include/c11/threads_posix.h:159
#2  0x00007ff85dc82e9a in pipe_semaphore_wait (sema=0x241c290) at /var/tmp/portage/media-libs/mesa-12.0.3/work/mesa-12.0.3/src/gallium/auxiliary/os/os_thread.h:259
#3  0x00007ff85dc82756 in radeon_drm_cs_emit_ioctl (param=0x241be40) at /var/tmp/portage/media-libs/mesa-12.0.3/work/mesa-12.0.3/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c:710
#4  0x00007ff85dc82e52 in impl_thrd_routine (p=0x241c4b0) at /var/tmp/portage/media-libs/mesa-12.0.3/work/mesa-12.0.3/include/c11/threads_posix.h:87
#5  0x00007ff8724f6434 in start_thread (arg=0x7ff851f3d700) at pthread_create.c:333
#6  0x00007ff878e318fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7ff85f980700 (LWP 18835)):
#0  0x00007ff878e247dd in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ff870a80e7f in g_wakeup_acknowledge (wakeup=0x22ac7b0) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gwakeup.c:210
#2  0x00007ff870a3d9e6 in g_main_context_check (context=0x7ff858000990, max_priority=2147483647, fds=0x7ff8580013c0, n_fds=1) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3632
#3  0x00007ff870a3e0ea in g_main_context_iterate (context=<optimized out>, block=<optimized out>, dispatch=<optimized out>, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3837
#4  0x00007ff870a3e17e in g_main_context_iteration (context=<optimized out>, may_block=1) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901
#5  0x00007ff875b0a11c in QEventDispatcherGlib::processEvents (this=0x7ff8580008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419
#6  0x00007ff875ab9001 in QEventLoop::processEvents (flags=..., this=<optimized out>) at kernel/qeventloop.cpp:128
#7  QEventLoop::exec (this=0x7ff85f97fe00, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007ff87590e5e9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:500
#9  0x00007ff87942f430 in QDBusConnectionManager::run (this=0x7ff879491260 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:189
#10 0x00007ff875911d24 in QThreadPrivate::start (arg=0x7ff879491260 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:341
#11 0x00007ff8724f6434 in start_thread (arg=0x7ff85f980700) at pthread_create.c:333
#12 0x00007ff878e318fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7ff86645d700 (LWP 18834)):
#0  0x00007ff878e287fd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ff87291a382 in _xcb_conn_wait (c=<optimized out>, cond=<optimized out>, vector=<optimized out>, count=<optimized out>) at /var/tmp/portage/x11-libs/libxcb-1.12-r1/work/libxcb-1.12/src/xcb_conn.c:482
#2  0x00007ff87291bba9 in xcb_wait_for_event (c=<optimized out>) at /var/tmp/portage/x11-libs/libxcb-1.12-r1/work/libxcb-1.12/src/xcb_in.c:692
#3  0x00007ff868395935 in QXcbEventReader::run (this=0x2251d60) at qxcbconnection.cpp:1325
#4  0x00007ff875911d24 in QThreadPrivate::start (arg=0x2251d60) at thread/qthread_unix.cpp:341
#5  0x00007ff8724f6434 in start_thread (arg=0x7ff86645d700) at pthread_create.c:333
#6  0x00007ff878e318fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7ff87935f7c0 (LWP 18833)):
[KCrash Handler]
#6  0x00007ff875ac2907 in QMetaObject::cast (this=0x7ff876a886d0 <QWidget::staticMetaObject>, obj=0x153ade01) at kernel/qmetaobject.cpp:331
#7  0x00007ff875ae4f17 in qt_qFindChildren_helper (parent=<optimized out>, name=..., mo=..., list=0x7ffc28e9ebc8, options=...) at kernel/qobject.cpp:1860
#8  0x00007ff875ae4fe3 in qt_qFindChildren_helper (parent=<optimized out>, name=..., mo=..., list=0x7ffc28e9ebc8, options=...) at kernel/qobject.cpp:1865
#9  0x00007ff875ae4fe3 in qt_qFindChildren_helper (parent=<optimized out>, name=..., mo=..., list=0x7ffc28e9ebc8, options=...) at kernel/qobject.cpp:1865
#10 0x00007ff875ae4fe3 in qt_qFindChildren_helper (parent=<optimized out>, name=..., mo=..., list=0x7ffc28e9ebc8, options=...) at kernel/qobject.cpp:1865
#11 0x00007ff8771e1ca7 in QObject::findChildren<QWidget*> (this=0x2f3b940, aName=..., options=...) at /usr/include/qt5/QtCore/qobject.h:161
#12 KAcceleratorManagerPrivate::traverseChildren (widget=0x2f3b940, item=0x15967a10) at /var/tmp/portage/kde-frameworks/kwidgetsaddons-5.26.0/work/kwidgetsaddons-5.26.0/src/kacceleratormanager.cpp:192
#13 0x00007ff8771e0ebc in KAcceleratorManagerPrivate::manageWidget (w=0x2f3b940, item=0x15967a10) at /var/tmp/portage/kde-frameworks/kwidgetsaddons-5.26.0/work/kwidgetsaddons-5.26.0/src/kacceleratormanager.cpp:331
#14 0x00007ff8771e0674 in KAcceleratorManagerPrivate::manage (widget=0x2f3b940) at /var/tmp/portage/kde-frameworks/kwidgetsaddons-5.26.0/work/kwidgetsaddons-5.26.0/src/kacceleratormanager.cpp:110
#15 0x00007ff8783bf55d in KCheckAccelerators::checkAccelerators (this=0x229a5a0, automatic=true) at /var/tmp/portage/kde-frameworks/kxmlgui-5.26.0/work/kxmlgui-5.26.0/src/kcheckaccelerators.cpp:266
#16 0x00007ff8783bfe46 in KCheckAccelerators::autoCheckSlot (this=0x229a5a0) at /var/tmp/portage/kde-frameworks/kxmlgui-5.26.0/work/kxmlgui-5.26.0/src/kcheckaccelerators.cpp:216
#17 0x00007ff875aeae50 in QMetaObject::activate (sender=0x229a5c0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3730
#18 0x00007ff875ae4305 in QObject::event (this=0x229a5c0, e=0x153ade01) at kernel/qobject.cpp:1237
#19 0x00007ff8765de792 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x229a5c0, e=0x7ffc28e9f3e8) at kernel/qapplication.cpp:3804
#20 0x00007ff8765e05c2 in QApplication::notify (this=<optimized out>, receiver=0x229a5c0, e=0x7ffc28e9f3e8) at kernel/qapplication.cpp:3163
#21 0x00007ff875abc73b in QCoreApplication::notifyInternal2 (receiver=0x229a5c0, event=0x7ffc28e9f3e8) at kernel/qcoreapplication.cpp:1015
#22 0x00007ff875b095a9 in QCoreApplication::sendEvent (receiver=0x153ade01, event=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#23 QTimerInfoList::activateTimers (this=0x2296510) at kernel/qtimerinfo_unix.cpp:637
#24 0x00007ff875b0a81a in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:176
#25 0x00007ff870a3ddcd in g_main_dispatch (context=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3154
#26 g_main_context_dispatch (context=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3769
#27 0x00007ff870a3e0f9 in g_main_context_iterate (context=<optimized out>, block=<optimized out>, dispatch=<optimized out>, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3840
#28 0x00007ff870a3e17e in g_main_context_iteration (context=<optimized out>, may_block=1) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901
#29 0x00007ff875b0a0fc in QEventDispatcherGlib::processEvents (this=0x22a9350, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#30 0x00007ff875ab9001 in QEventLoop::processEvents (flags=..., this=<optimized out>) at kernel/qeventloop.cpp:128
#31 QEventLoop::exec (this=0x7ffc28e9f5f8, flags=...) at kernel/qeventloop.cpp:204
#32 0x00007ff8767bd400 in QDialog::exec (this=0x2f3b940) at dialogs/qdialog.cpp:541
#33 0x00007ff8767bd368 in QDialog::exec (this=0x1590ed40) at dialogs/qdialog.cpp:537
#34 0x00007ff878ad1301 in Konsole::SaveHistoryTask::execute (this=0x2ae5af0) at /var/tmp/portage/kde-apps/konsole-16.08.1/work/konsole-16.08.1/src/SessionController.cpp:1678
#35 0x00007ff875aeae50 in QMetaObject::activate (sender=0x9eddba0, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3730
#36 0x00007ff8765d55aa in QAction::triggered (this=<optimized out>, _t1=<error reading variable: Cannot access memory at address 0x10000000001192d1>) at .moc/moc_qaction.cpp:369
#37 QAction::activate (this=<optimized out>, event=<optimized out>) at kernel/qaction.cpp:1157
#38 0x00007ff8765d5493 in QAction::event (this=0x153ade01, e=<optimized out>) at kernel/qaction.cpp:1091
#39 0x00007ff8765de792 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x9eddba0, e=0x7ffc28e9fd40) at kernel/qapplication.cpp:3804
#40 0x00007ff8765e05c2 in QApplication::notify (this=<optimized out>, receiver=0x9eddba0, e=0x7ffc28e9fd40) at kernel/qapplication.cpp:3163
#41 0x00007ff875abc73b in QCoreApplication::notifyInternal2 (receiver=0x9eddba0, event=0x7ffc28e9fd40) at kernel/qcoreapplication.cpp:1015
#42 0x00007ff8760ac844 in QCoreApplication::sendEvent (receiver=0x153ade01, event=0x7ffc28e9fd40) at /usr/include/qt5/QtCore/qcoreapplication.h:225
#43 QShortcutMap::dispatchEvent (this=<optimized out>, e=<optimized out>) at kernel/qshortcutmap.cpp:668
#44 0x00007ff8760ac5b0 in QShortcutMap::tryShortcut (this=0x22470a8, e=0x7ffc28e9fdf8) at kernel/qshortcutmap.cpp:344
#45 0x00007ff87606aac4 in QWindowSystemInterface::handleShortcutEvent (window=<optimized out>, timestamp=<optimized out>, keyCode=83, modifiers=..., nativeScanCode=<optimized out>, nativeVirtualKey=<optimized out>, nativeModifiers=<optimized out>, text=..., autorepeat=false, count=<optimized out>) at kernel/qwindowsysteminterface.cpp:228
#46 0x00007ff8760826e9 in QGuiApplicationPrivate::processKeyEvent (e=0x123318c0) at kernel/qguiapplication.cpp:1975
#47 0x00007ff87606cb8c in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:648
#48 0x00007ff8683c2e9d in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:70
#49 0x00007ff870a3ddcd in g_main_dispatch (context=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3154
#50 g_main_context_dispatch (context=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3769
#51 0x00007ff870a3e0f9 in g_main_context_iterate (context=<optimized out>, block=<optimized out>, dispatch=<optimized out>, self=<optimized out>) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3840
#52 0x00007ff870a3e17e in g_main_context_iteration (context=<optimized out>, may_block=1) at /var/tmp/portage/dev-libs/glib-2.48.2/work/glib-2.48.2/glib/gmain.c:3901
#53 0x00007ff875b0a0fc in QEventDispatcherGlib::processEvents (this=0x22a9350, flags=...) at kernel/qeventdispatcher_glib.cpp:417
#54 0x00007ff875ab9001 in QEventLoop::processEvents (flags=..., this=<optimized out>) at kernel/qeventloop.cpp:128
#55 QEventLoop::exec (this=0x7ffc28ea0120, flags=...) at kernel/qeventloop.cpp:204
#56 0x00007ff875abcd63 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#57 0x00007ff879103c0c in kdemain (argc=<optimized out>, argv=<optimized out>) at /var/tmp/portage/kde-apps/konsole-16.08.1/work/konsole-16.08.1/src/main.cpp:176
#58 0x00007ff878d6a790 in __libc_start_main (main=0x400850 <main(int, char**)>, argc=1, argv=0x7ffc28ea03f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc28ea03e8) at ../csu/libc-start.c:289
#59 0x0000000000400769 in _start ()

Reported using DrKonqi
Comment 1 Martin Sandsmark 2016-11-06 00:38:40 UTC
Re-assigning to KWidgetsAddons, which the crash is in. Potentially it is in the KDE platform plugin file dialog code.

It's very unlikely that it is a Konsole bug, however. The only unusual thing Konsole does is re-use the QDialog instance.
Comment 2 Nate Graham 2018-05-08 13:23:43 UTC
Bug no longer possible, since the file type box is now a clickable menu button rather than a combobox that allow text entry.