<table><tr><td style="">romangg added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23591">View Revision</a></tr></table><br /><div><div><p>gdb output:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Thread 1 "kwin_wayland" received signal SIGSEGV, Segmentation fault.
0x00007fccfdb20258 in QMetaObject::disconnect(QObject const*, int, QObject const*, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
(gdb) bt
#0  0x00007fccfdb20258 in QMetaObject::disconnect(QObject const*, int, QObject const*, int) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007fccfed865bd in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#2  0x00007fccfed86be3 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#3  0x00007fccfed8700f in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#4  0x00007fccfdb1b3e2 in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fccfe0fc65c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007fccfe103b90 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x00007fccfdaead18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fccfdaed8d7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fccfdb44fd4 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fcce7e6eaad in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/KWinQpaPlugin.so
#11 0x00007fccfdae903a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007fccfdaf2170 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x000055dc49b91658 in main(int, char**) (argc=4, argv=0x7fff9709ff28) at /home/roman/dev/kde/src/kde/workspace/kwin/main_wayland.cpp:677</pre></div>

<p>Relevant valgrind output:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">==31253== Invalid read of size 8
==31253==    at 0x7CD3108: ??? (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x7CD4287: QMetaObject::disconnect(QObject const*, int, QObject const*, int) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x6A375BC: ??? (in /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.12.3)
==31253==    by 0x6A37BE2: ??? (in /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.12.3)
==31253==    by 0x6A3800E: ??? (in /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.12.3)
==31253==    by 0x7CCF3E1: QObject::event(QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x731A65B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.12.3)
==31253==    by 0x7321B8F: QApplication::notify(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.12.3)
==31253==    by 0x7C9ED17: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x7CA18D6: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x7CF8FD3: QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x1DD9EAAC: QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/KWinQpaPlugin.so)
==31253==  Address 0x24aeac70 is 64 bytes inside a block of size 128 free'd
==31253==    at 0x4C3123B: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31253==    by 0x7CD6042: QObject::~QObject() (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x51E9CDF: OrientationSensorAdaptor::~OrientationSensorAdaptor() (orientationsensoradaptor.cpp:31)
==31253==    by 0x51E9CFB: OrientationSensorAdaptor::~OrientationSensorAdaptor() (orientationsensoradaptor.cpp:34)
==31253==    by 0x51A97E3: KWin::OrientationSensor::setEnabled(bool) (orientation_sensor.cpp:140)
==31253==    by 0x5045CD7: KWin::Screens::Screens(QObject*)::{lambda()#1}::operator()() const (screens.cpp:70)
==31253==    by 0x5046CAD: QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KWin::Screens::Screens(QObject*)::{lambda()#1}>::call({lambda()#1}&, void**) (qobjectdefs_impl.h:146)
==31253==    by 0x5046C7F: void QtPrivate::Functor<KWin::Screens::Screens(QObject*)::{lambda()#1}, 0>::call<QtPrivate::List<>, void>({lambda()#1}&, void*, {lambda()#1}&*) (qobjectdefs_impl.h:256)
==31253==    by 0x5046C4D: QtPrivate::QFunctorSlotObject<KWin::Screens::Screens(QObject*)::{lambda()#1}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (qobjectdefs_impl.h:439)
==31253==    by 0x7CCE98E: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x5205CFC: KWin::Screens::changed() (moc_screens.cpp:276)
==31253==    by 0x21639BD2: QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KWin::Screens::*)()>::call(void (KWin::Screens::*)(), KWin::Screens*, void**) (qobjectdefs_impl.h:152)
==31253==  Block was alloc'd at
==31253==    at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==31253==    by 0x6A37E83: QDBusAbstractAdaptor::QDBusAbstractAdaptor(QObject*) (in /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5.12.3)
==31253==    by 0x51E9C96: OrientationSensorAdaptor::OrientationSensorAdaptor(KWin::OrientationSensor*) (orientationsensoradaptor.cpp:25)
==31253==    by 0x51A9775: KWin::OrientationSensor::setEnabled(bool) (orientation_sensor.cpp:136)
==31253==    by 0x5045CD7: KWin::Screens::Screens(QObject*)::{lambda()#1}::operator()() const (screens.cpp:70)
==31253==    by 0x5046CAD: QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KWin::Screens::Screens(QObject*)::{lambda()#1}>::call({lambda()#1}&, void**) (qobjectdefs_impl.h:146)
==31253==    by 0x5046C7F: void QtPrivate::Functor<KWin::Screens::Screens(QObject*)::{lambda()#1}, 0>::call<QtPrivate::List<>, void>({lambda()#1}&, void*, {lambda()#1}&*) (qobjectdefs_impl.h:256)
==31253==    by 0x5046C4D: QtPrivate::QFunctorSlotObject<KWin::Screens::Screens(QObject*)::{lambda()#1}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (qobjectdefs_impl.h:439)
==31253==    by 0x7CCE98E: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.3)
==31253==    by 0x5205CFC: KWin::Screens::changed() (moc_screens.cpp:276)
==31253==    by 0x50472C0: KWin::OutputScreens::init() (outputscreens.cpp:39)
==31253==    by 0x5045C18: KWin::Screens::create(QObject*) (screens.cpp:48)</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23591">https://phabricator.kde.org/D23591</a></div></div><br /><div><strong>To: </strong>romangg, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, mart<br /></div>