Bug 395707

Summary: Seg fault on SeatInterface::pointerPosChanged
Product: [Frameworks and Libraries] kwayland Reporter: Roman Gilg <subdiff>
Component: serverAssignee: Martin Flöser <mgraesslin>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Roman Gilg 2018-06-21 21:59:31 UTC
Sudden and taking down the whole session.

Coredump:

#0  0x00007fb7e19663a5 in QtSharedPointer::ExternalRefCountData::getAndRef(QObject const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#1  0x00007fb7e2f7af18 in QWeakPointer<QObject>::QWeakPointer<KWayland::Server::SurfaceInterface> (this=0x7ffe4737ecf0, ptr=0x35c8e40) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qsharedpointer_impl.h:685
#2  0x00007fb7e2f7abb8 in QPointer<KWayland::Server::SurfaceInterface>::QPointer (this=0x7ffe4737ecf0, p=0x35c8e40) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qpointer.h:71
#3  0x00007fb7e2f9854a in KWayland::Server::PointerInterface::PointerInterface(KWayland::Server::SeatInterface*, wl_resource*)::{lambda()#1}::operator()() const () at /home/roman/dev/kde/src/frameworks/kwayland/src/server/pointer_interface.cpp:251
#4  0x00007fb7e2f99e2d in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KWayland::Server::PointerInterface::PointerInterface(KWayland::Server::SeatInterface*, wl_resource*)::<lambda()> >::call(KWayland::Server::PointerInterface::<lambda()> &, void **) (f=..., arg=0x7ffe4737ef50) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:128
#5  0x00007fb7e2f99ccd in QtPrivate::Functor<KWayland::Server::PointerInterface::PointerInterface(KWayland::Server::SeatInterface*, wl_resource*)::<lambda()>, 0>::call<QtPrivate::List<>, void>(KWayland::Server::PointerInterface::<lambda()> &, void *, void **) (f=..., arg=0x7ffe4737ef50) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:238
#6  0x00007fb7e2f99b97 in QtPrivate::QFunctorSlotObject<KWayland::Server::PointerInterface::PointerInterface(KWayland::Server::SeatInterface*, wl_resource*)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x2401bf0, r=0x222caf0, a=0x7ffe4737ef50, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:421
#7  0x00007fb7e1ae2eb6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fb7e300fdb6 in KWayland::Server::SeatInterface::pointerPosChanged (this=0x212aeb0, _t1=...) at /home/roman/dev/kde/build/frameworks/kwayland/src/server/moc_seat_interface.cpp:418
#9  0x00007fb7e2fb3d06 in KWayland::Server::SeatInterface::setPointerPos (this=0x212aeb0, pos=...) at /home/roman/dev/kde/src/frameworks/kwayland/src/server/seat_interface.cpp:621
#10 0x00007fb7e3fce655 in KWin::PointerInputRedirection::update (this=0x214c280) at /home/roman/dev/kde/src/kde/workspace/kwin/pointer_input.cpp:525
#11 0x00007fb7e3fae6ff in KWin::ForwardInputFilter::pointerEvent (this=0x24759e0, event=0x7ffe4737f600, nativeButton=0) at /home/roman/dev/kde/src/kde/workspace/kwin/input.cpp:1342
#12 0x00007fb7e3fe2808 in std::_Mem_fn_base<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int), true>::operator()<KWin::MouseEvent*&, int&, void> (this=0x7ffe4737f2e0, __object=0x24759e0) at /usr/include/c++/5/functional:600
#13 0x00007fb7e3fe21bf in std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)>::__call<bool, KWin::InputEventFilter* const&, 0ul, 1ul, 2ul>(std::tuple<KWin::InputEventFilter* const&>&&, std::_Index_tuple<0ul, 1ul, 2ul>) (this=0x7ffe4737f2e0, __args=<unknown type in /usr/lib/x86_64-linux-gnu/libkwin.so.5, CU 0x58c101, DIE 0x600849>) at /usr/include/c++/5/functional:1074
#14 0x00007fb7e3fe1d9e in std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)>::operator()<KWin::InputEventFilter* const&, bool>(KWin::InputEventFilter* const&) (this=0x7ffe4737f2e0) at /usr/include/c++/5/functional:1133
#15 0x00007fb7e3fe1c26 in __gnu_cxx::__ops::_Iter_pred<std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> >::operator()<QTypedArrayData<KWin::InputEventFilter*>::const_iterator>(QTypedArrayData<KWin::InputEventFilter*>::const_iterator) (this=0x7ffe4737f2e0, __it=...) at /usr/include/c++/5/bits/predefined_ops.h:234
#16 0x00007fb7e3fe07a4 in std::__find_if<QTypedArrayData<KWin::InputEventFilter*>::const_iterator, __gnu_cxx::__ops::_Iter_pred<std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> > >(QTypedArrayData<KWin::InputEventFilter*>::const_iterator, QTypedArrayData<KWin::InputEventFilter*>::const_iterator, __gnu_cxx::__ops::_Iter_pred<std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> >, std::random_access_iterator_tag) (__first=..., __last=..., __pred=...) at /usr/include/c++/5/bits/stl_algo.h:132
#17 0x00007fb7e3fdf972 in std::__find_if<QTypedArrayData<KWin::InputEventFilter*>::const_iterator, __gnu_cxx::__ops::_Iter_pred<std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> > >(QTypedArrayData<KWin::InputEventFilter*>::const_iterator, QTypedArrayData<KWin::InputEventFilter*>::const_iterator, __gnu_cxx::__ops::_Iter_pred<std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> >) (__first=..., __last=..., __pred=...) at /usr/include/c++/5/bits/stl_algo.h:162
#18 0x00007fb7e3fde4eb in std::find_if<QTypedArrayData<KWin::InputEventFilter*>::const_iterator, std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> >(QTypedArrayData<KWin::InputEventFilter*>::const_iterator, QTypedArrayData<KWin::InputEventFilter*>::const_iterator, std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)>) (__first=..., __last=..., __pred=...) at /usr/include/c++/5/bits/stl_algo.h:3816
#19 0x00007fb7e3fdcb15 in std::none_of<QTypedArrayData<KWin::InputEventFilter*>::const_iterator, std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> >(QTypedArrayData<KWin::InputEventFilter*>::const_iterator, QTypedArrayData<KWin::InputEventFilter*>::const_iterator, std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)>) (__first=..., __last=..., __pred=...) at /usr/include/c++/5/bits/stl_algo.h:526
#20 0x00007fb7e3fd9e71 in std::any_of<QTypedArrayData<KWin::InputEventFilter*>::const_iterator, std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> >(QTypedArrayData<KWin::InputEventFilter*>::const_iterator, QTypedArrayData<KWin::InputEventFilter*>::const_iterator, std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)>) (__first=..., __last=..., __pred=...) at /usr/include/c++/5/bits/stl_algo.h:544
#21 0x00007fb7e3fd5a1b in KWin::InputRedirection::processFilters<std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)> >(std::_Bind<std::_Mem_fn<bool (KWin::InputEventFilter::*)(QMouseEvent*, unsigned int)> (std::_Placeholder<1>, KWin::MouseEvent*, int)>) (this=0x214b2c0, function=...) at /home/roman/dev/kde/src/kde/workspace/kwin/input.h:189
#22 0x00007fb7e3fcd0fd in KWin::PointerInputRedirection::processMotion (this=0x214c280, pos=..., delta=..., deltaNonAccelerated=..., time=50195864, timeUsec=50195864606, device=0x222ae50) at /home/roman/dev/kde/src/kde/workspace/kwin/pointer_input.cpp:305
#23 0x00007fb7e3fa1d01 in KWin::InputRedirection::<lambda(const QSizeF&, const QSizeF&, uint32_t, quint64, KWin::LibInput::Device*)>::operator()(const QSizeF &, const QSizeF &, uint32_t, quint64, KWin::LibInput::Device *) const (__closure=0x224db20, delta=..., deltaNonAccel=..., time=50195864, timeMicroseconds=50195864606, device=0x222ae50) at /home/roman/dev/kde/src/kde/workspace/kwin/input.cpp:1807
#24 0x00007fb7e3fa8545 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1, 2, 3, 4>, QtPrivate::List<const QSizeF&, const QSizeF&, unsigned int, long long unsigned int, KWin::LibInput::Device*>, void, KWin::InputRedirection::setupLibInput()::<lambda(const QSizeF&, const QSizeF&, uint32_t, quint64, KWin::LibInput::Device*)> >::call(KWin::InputRedirection::<lambda(const QSizeF&, const QSizeF&, uint32_t, quint64, KWin::LibInput::Device*)> &, void **) (f=..., 
    arg=0x7ffe4737f970) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:128
#25 0x00007fb7e3fa7e38 in QtPrivate::Functor<KWin::InputRedirection::setupLibInput()::<lambda(const QSizeF&, const QSizeF&, uint32_t, quint64, KWin::LibInput::Device*)>, 5>::call<QtPrivate::List<QSizeF const&, QSizeF const&, unsigned int, unsigned long long, KWin::LibInput::Device*>, void>(KWin::InputRedirection::<lambda(const QSizeF&, const QSizeF&, uint32_t, quint64, KWin::LibInput::Device*)> &, void *, void **) (f=..., arg=0x7ffe4737f970)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:238
#26 0x00007fb7e3fa7784 in QtPrivate::QFunctorSlotObject<KWin::InputRedirection::setupLibInput()::<lambda(const QSizeF&, const QSizeF&, uint32_t, quint64, KWin::LibInput::Device*)>, 5, QtPrivate::List<const QSizeF&, const QSizeF&, unsigned int, long long unsigned int, KWin::LibInput::Device*>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x224db10, r=0x214b2c0, a=0x7ffe4737f970, ret=0x0)
    at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:421
#27 0x00007fb7e1ae2eb6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fb7e41c0a33 in KWin::LibInput::Connection::pointerMotion (this=0x21e8390, _t1=..., _t2=..., _t3=50195864, _t4=50195864606, _t5=0x222ae50) at /home/roman/dev/kde/build/kde/workspace/kwin/moc_connection.cpp:549
#29 0x00007fb7e4177417 in KWin::LibInput::Connection::processEvents (this=0x21e8390) at /home/roman/dev/kde/src/kde/workspace/kwin/libinput/connection.cpp:398
#30 0x00007fb7e3fa1c25 in KWin::InputRedirection::<lambda()>::operator()(void) const (__closure=0x21db4a0) at /home/roman/dev/kde/src/kde/workspace/kwin/input.cpp:1790
#31 0x00007fb7e3fa84a8 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, KWin::InputRedirection::setupLibInput()::<lambda()> >::call(KWin::InputRedirection::<lambda()> &, void **) (f=..., arg=0x7fb7b4007c80) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:128
#32 0x00007fb7e3fa7e0e in QtPrivate::Functor<KWin::InputRedirection::setupLibInput()::<lambda()>, 0>::call<QtPrivate::List<>, void>(KWin::InputRedirection::<lambda()> &, void *, void **) (f=..., arg=0x7fb7b4007c80) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:238
#33 0x00007fb7e3fa76f8 in QtPrivate::QFunctorSlotObject<KWin::InputRedirection::setupLibInput()::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=1, this_=0x21db490, r=0x214b2c0, a=0x7fb7b4007c80, ret=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:421
#34 0x00007fb7e1ae3bc9 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007fb7e209829c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007fb7e209f917 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007fb7e1ab5e38 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007fb7e1ab8a3e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007fb7e1b09b07 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007fb7cb69dedd in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/KWinQpaPlugin.so
#41 0x00007fb7e1ab41ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007fb7e1abd2d4 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x000000000040f0e1 in main (argc=4, argv=0x7ffe473805f8) at /home/roman/dev/kde/src/kde/workspace/kwin/main_wayland.cpp:831
Comment 1 Roman Gilg 2018-07-21 12:19:15 UTC
Just happened again. Chrome was open, I was going back from a fullscreen video to browser window.
Comment 2 Justin Zobel 2022-11-29 05:06:28 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 3 Bug Janitor Service 2022-12-14 05:13:04 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 2022-12-29 05:24:45 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!