Bug 426889 - Crash in XWayland when running with ASAN
Summary: Crash in XWayland when running with ASAN
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 02:26 UTC by Aleix Pol
Modified: 2024-02-21 13:51 UTC (History)
1 user (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 Aleix Pol 2020-09-23 02:26:00 UTC
#0 0x563dca05a35b in KWin::Xwl::Transfer::resetTimeout() /home/apol/devel/frameworks/kwin/xwl/transfer.h:80                                                                                                                                                                                                                                                          
    #1 0x563dca059101 in KWin::Xwl::TransferXtoWl::dataSourceWrite() /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:579                                                                                                                                                                                                                                               
    #2 0x563dca0577ad in KWin::Xwl::TransferXtoWl::startTransfer() /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:381                                                                                                                                                                                                                                                 
    #3 0x563dca0572e9 in KWin::Xwl::TransferXtoWl::handleSelectionNotify(xcb_selection_notify_event_t*) /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:351                                                                                                                                                                                                            
    #4 0x563dca0433ab in KWin::Xwl::Selection::handleSelectionNotify(xcb_selection_notify_event_t*) /home/apol/devel/frameworks/kwin/xwl/selection.cpp:255                                                                                                                                                                                                               
    #5 0x563dca041ed7 in KWin::Xwl::Selection::filterEvent(xcb_generic_event_t*) /home/apol/devel/frameworks/kwin/xwl/selection.cpp:120                                                                                                                                                                                                                                  
    #6 0x563dca018339 in KWin::Xwl::DataBridge::nativeEventFilter(QByteArray const&, void*, long*) /home/apol/devel/frameworks/kwin/xwl/databridge.cpp:91                                                                                                                                                                                                                
    #7 0x7ff015be1a76 in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qabstracteventdispatcher.cpp:495                                                                                                                                                                         
    #8 0x563dca05fd2c in KWin::Xwl::Xwayland::dispatchEvents() /home/apol/devel/frameworks/kwin/xwl/xwayland.cpp:198                                                                                                                                                                                                                                                     
    #9 0x563dca06731a in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KWin::Xwl::Xwayland::*)()>::call(void (KWin::Xwl::Xwayland::*)(), KWin::Xwl::Xwayland*, void**) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:152                                                                                                     
    #10 0x563dca06694e in void QtPrivate::FunctionPointer<void (KWin::Xwl::Xwayland::*)()>::call<QtPrivate::List<>, void>(void (KWin::Xwl::Xwayland::*)(), KWin::Xwl::Xwayland*, void**) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:185                                                                                                                     
    #11 0x563dca065677 in QtPrivate::QSlotObject<void (KWin::Xwl::Xwayland::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:418                                                                                                                                  
Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!                                                                                                                                                                                                                                                                               
    #12 0x7ff015c1ab05 in QtPrivate::QSlotObjectBase::call(QObject*, void**) ../../include/QtCore/../../../../../devel/frameworks/qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398                                                                                                                                                                                   
    #13 0x7ff015c1ab05 in void doActivate<false>(QObject*, int, void**) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qobject.cpp:3886                                                                                                                                                                                                                       
    #14 0x7ff015c1df3e in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) .moc/moc_qsocketnotifier.cpp:178                                                                                                                                                                                                         
    #15 0x7ff015c1e73a in QSocketNotifier::event(QEvent*) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qsocketnotifier.cpp:302                                                                                                                                                                                                                              
Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!                                                                                                                                                                                                                                                                               
    #16 0x7ff0166f214e in QApplicationPrivate::notify_helper(QObject*, QEvent*) /home/apol/devel/frameworks/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3630                                                                                                                                                                                                          
    #17 0x7ff015be4529 in QCoreApplication::notifyInternal2(QObject*, QEvent*) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063                                                                                                                                                                                                       
    #18 0x7ff015c38dea in QEventDispatcherUNIXPrivate::activateSocketNotifiers() /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qeventdispatcher_unix.cpp:304                                                                                                                                                                                                 
    #19 0x7ff015c3924a in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qeventdispatcher_unix.cpp:511                                                                                                                                                                             
    #20 0x7ff00de3284c in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /home/apol/devel/frameworks/qt5/qtbase/src/platformsupport/eventdispatchers/qunixeventdispatcher.cpp:63                                                                                                                                                          
    #21 0x7ff015be2eea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qeventloop.cpp:232                                                                                                                                                                                                           
    #22 0x7ff015beb15f in QCoreApplication::exec() /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1371                                                                                                                                                                                                                                   
    #23 0x563dca0027d0 in main /home/apol/devel/frameworks/kwin/main_wayland.cpp:702                                                                                                                                                                                                                                                                                     
    #24 0x7ff0152fc151 in __libc_start_main (/usr/lib/libc.so.6+0x28151)                                                                                                                                                                                                                                                                                                 
    #25 0x563dc9febe4d in _start (/home/apol/devel/kde5/bin/kwin_wayland+0x71e4d)                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                         
0x606000beefa9 is located 41 bytes inside of 56-byte region [0x606000beef80,0x606000beefb8)                                                                                                                                                                                                                                                                              
freed by thread T0 here:                                                                                                                                                                                                                                                                                                                                                 
    #0 0x7ff01a781009 in operator delete(void*, unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:172                                                                                                                                                                                                                                              
    #1 0x563dca056a1a in KWin::Xwl::TransferXtoWl::~TransferXtoWl() /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:306                                                                                                                                                                                                                                                
    #2 0x563dca043689 in operator() /home/apol/devel/frameworks/kwin/xwl/selection.cpp:285                                                                                                                                                                                                                                                                               
    #3 0x563dca044e84 in call /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:146                                                                                                                                                                                                                                                                                
    #4 0x563dca044db4 in call<QtPrivate::List<>, void> /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:256                                                                                                                                                                                                                                                       
    #5 0x563dca044cf9 in impl /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:443                                                                                                                                                                                                                                                                                
    #6 0x7ff015c1ab05 in QtPrivate::QSlotObjectBase::call(QObject*, void**) ../../include/QtCore/../../../../../devel/frameworks/qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398                                                                                                                                                                                    
    #7 0x7ff015c1ab05 in void doActivate<false>(QObject*, int, void**) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qobject.cpp:3886                                                                                                                                                                                                                        
Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!                                                                                                                                                                                                                                                                               
    #8 0x563dc9ff1194 in KWin::Xwl::Transfer::finished() kwin_wayland_autogen/DC6ZQWILS5/moc_transfer.cpp:131                                                                                                                                                                                                                                                            
    #9 0x563dca054b23 in KWin::Xwl::Transfer::endTransfer() /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:76                                                                                                                                                                                                                                                         
    #10 0x563dca059016 in KWin::Xwl::TransferXtoWl::dataSourceWrite() /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:566                                                                                                                                                                                                                                              
    #11 0x563dca0577ad in KWin::Xwl::TransferXtoWl::startTransfer() /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:381                                                                                                                                                                                                                                                
    #12 0x563dca0572e9 in KWin::Xwl::TransferXtoWl::handleSelectionNotify(xcb_selection_notify_event_t*) /home/apol/devel/frameworks/kwin/xwl/transfer.cpp:351                                                                                                                                                                                                           
    #13 0x563dca0433ab in KWin::Xwl::Selection::handleSelectionNotify(xcb_selection_notify_event_t*) /home/apol/devel/frameworks/kwin/xwl/selection.cpp:255                                                                                                                                                                                                              
    #14 0x563dca041ed7 in KWin::Xwl::Selection::filterEvent(xcb_generic_event_t*) /home/apol/devel/frameworks/kwin/xwl/selection.cpp:120                                                                                                                                                                                                                                 
    #15 0x563dca018339 in KWin::Xwl::DataBridge::nativeEventFilter(QByteArray const&, void*, long*) /home/apol/devel/frameworks/kwin/xwl/databridge.cpp:91                                                                                                                                                                                                               
    #16 0x7ff015be1a76 in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qabstracteventdispatcher.cpp:495                                                                                                                                                                        
    #17 0x7ff016c510da in KXMessagesPrivate::nativeEventFilter(QByteArray const&, void*, long*) /home/apol/devel/frameworks/kwindowsystem/src/platforms/xcb/kxmessages.cpp:124                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                                                                                         
previously allocated by thread T0 here:                                                                                                                                                                                                                                                                                                                                  
    #0 0x7ff01a77ff41 in operator new(unsigned long) /build/gcc/src/gcc/libsanitizer/asan/asan_new_delete.cpp:99                                                                                                                                                                                                                                                         
    #1 0x563dca0437fb in KWin::Xwl::Selection::startTransferToWayland(unsigned int, int) /home/apol/devel/frameworks/kwin/xwl/selection.cpp:280                                                                                                                                                                                                                          
    #2 0x563dca04b7fd in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<unsigned int, int>, void, void (KWin::Xwl::Selection::*)(unsigned int, int)>::call(void (KWin::Xwl::Selection::*)(unsigned int, int), KWin::Xwl::Selection*, void**) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:152
    #3 0x563dca04a8a4 in void QtPrivate::FunctionPointer<void (KWin::Xwl::Selection::*)(unsigned int, int)>::call<QtPrivate::List<unsigned int, int>, void>(void (KWin::Xwl::Selection::*)(unsigned int, int), KWin::Xwl::Selection*, void**) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:185
    #4 0x563dca048d23 in QtPrivate::QSlotObject<void (KWin::Xwl::Selection::*)(unsigned int, int), QtPrivate::List<unsigned int, int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:418
    #5 0x7ff015c1ab05 in QtPrivate::QSlotObjectBase::call(QObject*, void**) ../../include/QtCore/../../../../../devel/frameworks/qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398
    #6 0x7ff015c1ab05 in void doActivate<false>(QObject*, int, void**) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qobject.cpp:3886
    #7 0x563dc9ff0d8b in KWin::Xwl::X11Source::transferReady(unsigned int, int) kwin_wayland_autogen/DC6ZQWILS5/moc_selection_source.cpp:340
    #8 0x563dca04ee6e in KWin::Xwl::X11Source::startTransfer(QString const&, int) /home/apol/devel/frameworks/kwin/xwl/selection_source.cpp:306
    #9 0x563dca0544d0 in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<QString const&, int>, void, void (KWin::Xwl::X11Source::*)(QString const&, int)>::call(void (KWin::Xwl::X11Source::*)(QString const&, int), KWin::Xwl::X11Source*, void**) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:152
    #10 0x563dca053cae in void QtPrivate::FunctionPointer<void (KWin::Xwl::X11Source::*)(QString const&, int)>::call<QtPrivate::List<QString const&, int>, void>(void (KWin::Xwl::X11Source::*)(QString const&, int), KWin::Xwl::X11Source*, void**) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:185
    #11 0x563dca0534f3 in QtPrivate::QSlotObject<void (KWin::Xwl::X11Source::*)(QString const&, int), QtPrivate::List<QString const&, int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) /home/apol/devel/kde5/include/QtCore/qobjectdefs_impl.h:418
    #12 0x7ff015c1ab05 in QtPrivate::QSlotObjectBase::call(QObject*, void**) ../../include/QtCore/../../../../../devel/frameworks/qt5/qtbase/src/corelib/kernel/qobjectdefs_impl.h:398
    #13 0x7ff015c1ab05 in void doActivate<false>(QObject*, int, void**) /home/apol/devel/frameworks/qt5/qtbase/src/corelib/kernel/qobject.cpp:3886
    #14 0x7ff017257175 in KWayland::Client::DataSource::sendDataRequested(QString const&, int) src/client/KF5WaylandClient_autogen/EWIEGA46WW/moc_datasource.cpp:198
    #15 0x7ff017280820 in KWayland::Client::DataSource::Private::sendCallback(void*, wl_data_source*, char const*, int) /home/apol/devel/frameworks/kwayland/src/client/datasource.cpp:66
    #16 0x7ff0146d5a8c  (/usr/lib/libffi.so.7+0x6a8c)
Comment 1 David Edmundson 2024-02-21 13:51:18 UTC
A quite old crash. If it still happens someone can reopen this