Bug 344120 - krunner segfaults on KF5 startup
Summary: krunner segfaults on KF5 startup
Status: RESOLVED DUPLICATE of bug 344550
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.2.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Vishesh Handa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-13 15:01 UTC by Vit Pelcak
Modified: 2015-07-08 06:04 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crashdump file (6.14 KB, text/plain)
2015-07-08 06:04 UTC, David Lowes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Pelcak 2015-02-13 15:01:07 UTC
Whenever I start KF5, I end up with message of crashing krunner.

DrKonqui even reports, that it cannot file bug automatically since krunner doesn't provide bugreporting address.

Here is the backtrace I always get:

Application: krunner (krunner), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fed315be7c0 (LWP 1507))]

Thread 3 (Thread 0x7fed1c637700 (LWP 1508)):
#0  0x00007fed2d2f244d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fed2cabf322 in poll (__timeout=-1, __nfds=1, __fds=0x7fed1c636d00) at /usr/include/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x170bdb0, cond=cond@entry=0x170bdf0, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:459
#3  0x00007fed2cac0def in xcb_wait_for_event (c=0x170bdb0) at xcb_in.c:623
#4  0x00007fed1e9b3c39 in QXcbEventReader::run (this=0x1715e20) at qxcbconnection.cpp:1099
#5  0x00007fed2d96291f in QThreadPrivate::start (arg=0x1715e20) at thread/qthread_unix.cpp:337
#6  0x00007fed29faf3a4 in start_thread (arg=0x7fed1c637700) at pthread_create.c:310
#7  0x00007fed2d2fa9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7fed10820700 (LWP 1695)):
#0  0x00007fed2d2ee51d in read () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fed29484750 in read (__nbytes=16, __buf=0x7fed1081fbf0, __fd=<optimized out>) at /usr/include/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x7fed140015b0) at gwakeup.c:210
#3  0x00007fed29443714 in g_main_context_check (context=context@entry=0x7fed0c000990, max_priority=2147483647, fds=fds@entry=0x7fed0c003070, n_fds=n_fds@entry=1) at gmain.c:3579
#4  0x00007fed29443b7b in g_main_context_iterate (context=context@entry=0x7fed0c000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3778
#5  0x00007fed29443cec in g_main_context_iteration (context=0x7fed0c000990, may_block=1) at gmain.c:3842
#6  0x00007fed2db9411b in QEventDispatcherGlib::processEvents (this=0x7fed0c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#7  0x00007fed2db3ad1b in QEventLoop::exec (this=this@entry=0x7fed1081fdf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#8  0x00007fed2d95dcea in QThread::exec (this=this@entry=0x216f5b0) at thread/qthread.cpp:503
#9  0x00007fed2ffbdcc8 in QQmlThreadPrivate::run (this=0x216f5b0) at /usr/src/debug/qtdeclarative-opensource-src-5.4.0/src/qml/qml/ftw/qqmlthread.cpp:141
#10 0x00007fed2d96291f in QThreadPrivate::start (arg=0x216f5b0) at thread/qthread_unix.cpp:337
#11 0x00007fed29faf3a4 in start_thread (arg=0x7fed10820700) at pthread_create.c:310
#12 0x00007fed2d2fa9ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7fed315be7c0 (LWP 1507)):
[KCrash Handler]
#6  0x00007fed1e9ac5dc in QXcbClipboard::requestor (this=this@entry=0x172b2c0) at qxcbclipboard.cpp:481
#7  0x00007fed1e9ad1f3 in QXcbClipboard::getSelection (this=0x172b2c0, selection=348, target=350, property=355, time=time@entry=0) at qxcbclipboard.cpp:1003
#8  0x00007fed1e9aea88 in getDataInFormat (fmtAtom=<optimized out>, modeAtom=<optimized out>, this=<optimized out>) at qxcbclipboard.cpp:997
#9  QXcbClipboardMime::formats_sys (this=0x1ff5f30) at qxcbclipboard.cpp:97
#10 0x00007fed2e07e8ef in QInternalMimeData::formats (this=<optimized out>) at kernel/qdnd.cpp:207
#11 0x00007fed1e9ae6d5 in QXcbClipboardMime::hasFormat_sys (this=<optimized out>, format=...) at qxcbclipboard.cpp:119
#12 0x00007fed2e07e6ba in QInternalMimeData::hasFormat (this=this@entry=0x1ff5f30, mimeType=...) at kernel/qdnd.cpp:194
#13 0x00007fed2db666b6 in QMimeData::hasText (this=0x1ff5f30) at kernel/qmimedata.cpp:405
#14 0x00007fed304fc188 in QQuickTextInput::q_canPasteChanged (this=0x20273a0) at /usr/src/debug/qtdeclarative-opensource-src-5.4.0/src/quick/items/qquicktextinput.cpp:2746
#15 0x00007fed305d813f in QQuickTextInput::qt_static_metacall (_o=0x20273a0, _c=<optimized out>, _id=<optimized out>, _a=0x7fff5e2f1f30) at .moc/moc_qquicktextinput_p.cpp:698
#16 0x00007fed2db6c641 in QMetaObject::activate (sender=0x1fcbaa0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3716
#17 0x00007fed2db6cc67 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7fed2e68a2a0 <QClipboard::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3582
#18 0x00007fed2e3c19a3 in QClipboard::dataChanged (this=<optimized out>) at .moc/moc_qclipboard.cpp:175
#19 0x00007fed2e07bc61 in QClipboard::emitChanged (this=0x1fcbaa0, mode=mode@entry=QClipboard::Clipboard) at kernel/qclipboard.cpp:573
#20 0x00007fed2e06703d in QPlatformClipboard::emitChanged (this=this@entry=0x172b2c0, mode=mode@entry=QClipboard::Clipboard) at kernel/qplatformclipboard.cpp:119
#21 0x00007fed1e9ad424 in QXcbClipboard::handleXFixesSelectionRequest (this=0x172b2c0, event=event@entry=0x7fed140060d0) at qxcbclipboard.cpp:746
#22 0x00007fed1e9b2f10 in QXcbConnection::handleXcbEvent (this=this@entry=0x170a600, event=event@entry=0x7fed140060d0) at qxcbconnection.cpp:951
#23 0x00007fed1e9b406b in QXcbConnection::processXcbEvents (this=0x170a600) at qxcbconnection.cpp:1297
#24 0x00007fed2db6d446 in QObject::event (this=0x170a600, e=<optimized out>) at kernel/qobject.cpp:1245
#25 0x00007fed2ea7c1dc in QApplicationPrivate::notify_helper (this=this@entry=0x16fc1e0, receiver=receiver@entry=0x170a600, e=e@entry=0x7fed14006690) at kernel/qapplication.cpp:3722
#26 0x00007fed2ea811f0 in QApplication::notify (this=0x7fff5e2f2860, receiver=0x170a600, e=0x7fed14006690) at kernel/qapplication.cpp:3505
#27 0x00007fed2db3cdc5 in QCoreApplication::notifyInternal (this=0x7fff5e2f2860, receiver=0x170a600, event=event@entry=0x7fed14006690) at kernel/qcoreapplication.cpp:932
#28 0x00007fed2db3ec5f in sendEvent (event=0x7fed14006690, receiver=<optimized out>) at kernel/qcoreapplication.h:228
#29 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x16f9570) at kernel/qcoreapplication.cpp:1536
#30 0x00007fed2db3f298 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1394
#31 0x00007fed2db94c83 in postEventSourceDispatch (s=0x1733170) at kernel/qeventdispatcher_glib.cpp:271
#32 0x00007fed29443a04 in g_main_dispatch (context=0x7fed140016f0) at gmain.c:3111
#33 g_main_context_dispatch (context=context@entry=0x7fed140016f0) at gmain.c:3710
#34 0x00007fed29443c48 in g_main_context_iterate (context=context@entry=0x7fed140016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3781
#35 0x00007fed29443cec in g_main_context_iteration (context=0x7fed140016f0, may_block=1) at gmain.c:3842
#36 0x00007fed2db940fc in QEventDispatcherGlib::processEvents (this=0x173fab0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#37 0x00007fed2db3ad1b in QEventLoop::exec (this=this@entry=0x7fff5e2f27e0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#38 0x00007fed2db423a6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1185
#39 0x00007fed2e06afac in QGuiApplication::exec () at kernel/qguiapplication.cpp:1532
#40 0x00007fed2ea789e5 in QApplication::exec () at kernel/qapplication.cpp:2956
#41 0x0000000000407bd7 in main (argc=1, argv=<optimized out>) at /usr/src/debug/plasma-workspace-5.2.0/krunner/main.cpp:71


Reproducible: Always
Comment 1 Krzysztof Nowicki 2015-02-20 06:50:03 UTC
I'm also experiencing this crash. Not 100% of the time.

My OS is Gentoo, Qt 5.4, KF 5.6, Plasma 5.2

Thread 1 (Thread 0x7fb020ce1840 (LWP 8467)):
[KCrash Handler]
#5  0x00007fb0209ebca1 in QXcbClipboard::requestor (this=this@entry=0x7fb02e5ed750) at qxcbclipboard.cpp:481
#6  0x00007fb0209ebd63 in QXcbClipboard::getSelection (this=0x7fb02e5ed750, selection=346, target=348, property=353, time=time@entry=0) at qxcbclipboard.cpp:1002
#7  0x00007fb0209ec2d3 in getDataInFormat (fmtAtom=<optimized out>, modeAtom=<optimized out>, this=<optimized out>) at qxcbclipboard.cpp:996
#8  QXcbClipboardMime::formats_sys (this=0x7fb02eb4a9f0) at qxcbclipboard.cpp:97
#9  0x00007fb02b6d23db in QInternalMimeData::formats() const (this=<optimized out>) at kernel/qdnd.cpp:206
#10 0x00007fb0209eb66c in QXcbClipboardMime::hasFormat_sys (this=<optimized out>, format=...) at qxcbclipboard.cpp:119
#11 0x00007fb02b6d22d9 in QInternalMimeData::hasFormat(QString const&) const (this=this@entry=0x7fb02eb4a9f0, mimeType=...) at kernel/qdnd.cpp:193
#12 0x00007fb02b36b047 in QMimeData::hasText() const (this=0x7fb02eb4a9f0) at kernel/qmimedata.cpp:405
#13 0x00007fb02c344728 in QQuickTextInput::q_canPasteChanged() () from /usr/lib64/libQt5Quick.so.5
#14 0x00007fb02c303b9c in ?? () from /usr/lib64/libQt5Quick.so.5
#15 0x00007fb02b380c9d in QMetaObject::activate(QObject*, int, int, void**) (sender=0x7fb02eadd960, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3716
#16 0x00007fb02b381455 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=<optimized out>, m=m@entry=0x7fb02baa0380 <QClipboard::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3582
#17 0x00007fb02b9bb409 in QClipboard::dataChanged() (this=<optimized out>) at .moc/moc_qclipboard.cpp:175
#18 0x00007fb02b6c2975 in QClipboard::emitChanged(QClipboard::Mode) (this=0x7fb02eadd960, mode=Clipboard, mode@entry=520786055) at kernel/qclipboard.cpp:573
#19 0x00007fb02b6a4deb in QPlatformClipboard::emitChanged(QClipboard::Mode) (this=this@entry=0x7fb02e5ed750, mode=520786055, mode@entry=Clipboard) at kernel/qplatformclipboard.cpp:119
#20 0x00007fb020a00267 in handleXFixesSelectionRequest (event=<optimized out>, this=0x7fb02e5ed750) at qxcbclipboard.cpp:744
#21 QXcbConnection::handleXcbEvent(xcb_generic_event_t*) (this=this@entry=0x7fb02e5bd420, event=event@entry=0x7fb018007040) at qxcbconnection.cpp:951
#22 0x00007fb020a1fb13 in processXcbEvents (this=0x7fb02e5bd420) at qxcbconnection.cpp:1297
#23 QXcbConnection::qt_static_metacall (_o=0x7fb02e5bd420, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qxcbconnection.cpp:185
#24 0x00007fb02b368737 in QObject::event(QEvent*) (this=0x7fb02e5bd420, e=<optimized out>) at kernel/qobject.cpp:1245
#25 0x00007fb02c90580c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#26 0x00007fb02c906172 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#27 0x00007fb02b3cf42d in QCoreApplication::notifyInternal(QObject*, QEvent*) (this=0x7ffff97fa5a0, receiver=0x7fb02e5bd420, event=event@entry=0x7fb0180056d0) at kernel/qcoreapplication.cpp:932
#28 0x00007fb02b3cf656 in sendEvent (event=0x7fb0180056d0, receiver=<optimized out>) at kernel/qcoreapplication.h:228
#29 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x7fb02e5b2a10) at kernel/qcoreapplication.cpp:1536
#30 0x00007fb02b3cfcbe in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1394
#31 0x00007fb02b3de9c9 in postEventSourceDispatch (s=0x7fb02e5f88d0) at kernel/qeventdispatcher_glib.cpp:271
#32 0x00007fb0285f32bc in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#33 0x00007fb0285f35c8 in ?? () from /usr/lib64/libglib-2.0.so.0
#34 0x00007fb0285f36d1 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#35 0x00007fb02b3d59ed in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fb02e602bb0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#36 0x00007fb02b3cca4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffff97fa520, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#37 0x00007fb02b3d16e8 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1185
#38 0x00007fb02cd6dde6 in main (argc=1, argv=<optimized out>) at /var/tmp/portage/kde-plasma/plasma-workspace-5.2.0-r1/work/plasma-workspace-5.2.0/krunner/main.cpp:71

(gdb) frame 5
#5  0x00007fb0209ebca1 in QXcbClipboard::requestor (this=this@entry=0x7fb02e5ed750) at qxcbclipboard.cpp:481
481                                          0));                             // value list
(gdb) p m_screen 
$1 = (QXcbScreen *) 0x7fb02e5cf990
(gdb) p *m_screen 
$2 = {<QXcbObject> = {m_connection = 0x4449}, <> = {_vptr.QPlatformScreen = 0x7fb02e5f7370, d_ptr = {d = 0x0}}, m_screen = 0x31, m_crtc = 780188896, m_outputName = {d = 0x7fb02eb4af60}, m_sizeMillimeters = {wd = 1.1857575500189917e-322,  ht = 2.2917907480392937e-312}, m_geometry = {x1 = 48, y1 = 0, x2 = 80, y2 = 0}, m_availableGeometry = {x1 = 1, y1 = 16, x2 = 18, y2 = 32688}, m_virtualSize = {wd = 24, ht = 0}, m_virtualSizeMillimeters = {wd = 1.6022093594399609e-306, ht = 1.3351156151783128e-306}, m_siblings = {<QListSpecialMethods> = {<No data fields>}, {p = {d = 0x750072006b002f}, d = 0x750072006b002f}}, m_orientation = (Qt::LandscapeOrientation | Qt::InvertedPortraitOrientation | Qt::InvertedLandscapeOrientation | unknown: 7209056), m_number = 7471205, m_windowManagerName = {d = 0x73007500000000}, m_syncRequestSupported = false, m_clientLeader = 29360130, m_visuals = {d = 0x51}, m_visualDepths = {d = 0x7fb02ea5d5f1}, m_cursor = 0x0, m_refreshRate = 0, m_forcedDpi = 0, m_devicePixelRatio = 785189408, m_hintStyle = 32688, m_subpixelType = 777885872, m_antialiasingEnabled = 32688, m_xSettings = 0x0}

Looks like the crash is happening upon dereferencing m_screen->m_screen, whose value is uninitialized (0x31).
Comment 2 Bhushan Shah 2015-02-26 15:02:28 UTC
Crash in Qt.

*** This bug has been marked as a duplicate of bug 344550 ***
Comment 3 David Lowes 2015-07-08 06:04:30 UTC
Created attachment 93518 [details]
Crashdump file

It happens to me on ubuntu. I've attached some debugging info.