<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>430741</bug_id>
          
          <creation_ts>2020-12-23 10:59:40 +0000</creation_ts>
          <short_desc>kwalletd5 crashes on logout frrom Wayland session</short_desc>
          <delta_ts>2021-01-13 18:44:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>generic-crash</component>
          <version>master</version>
          <rep_platform>Neon</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>UPSTREAM</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=424408</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Patrick Silva">bugseforuns</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1987743</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Silva">bugseforuns</who>
    <bug_when>2020-12-23 10:59:40 +0000</bug_when>
    <thetext>SUMMARY
Sometimes my system generates coredump of kwalletd5 after logout from Wayland session.

STEPS TO REPRODUCE
1. start Wayland session
2. logout
3. 

EXPECTED RESULT
no coredump after logout


SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.20.80
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2


Thread 2 (Thread 0x7f927ab08700 (LWP 11814)):
#0  0x00007f9280008aff in __GI___poll (fds=0x7f9274005240, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f927f00f1ae in g_main_context_poll (priority=&lt;optimized out&gt;, n_fds=2, fds=0x7f9274005240, timeout=&lt;optimized out&gt;, context=0x7f9274000c20) at ../../../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x7f9274000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../../../glib/gmain.c:4042
#3  0x00007f927f00f2e3 in g_main_context_iteration (context=0x7f9274000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#4  0x00007f92805f0fa2 in QEventDispatcherGlib::processEvents (this=0x7f9274000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007f92805951ab in QEventLoop::exec (this=this@entry=0x7f927ab07cf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f92803afa12 in QThread::exec (this=this@entry=0x7f92808d4d80 &lt;(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder&gt;) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f9280850f4b in QDBusConnectionManager::run (this=0x7f92808d4d80 &lt;(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder&gt;) at qdbusconnection.cpp:179
#8  0x00007f92803b0bac in QThreadPrivate::start (arg=0x7f92808d4d80 &lt;(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder&gt;) at thread/qthread_unix.cpp:329
#9  0x00007f9281829609 in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:477
#10 0x00007f9280015293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f927ce77880 (LWP 11686)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007f927ff18859 in __GI_abort () at abort.c:79
#2  0x00007f9280375be7 in qt_message_fatal (context=..., message=&lt;synthetic pointer&gt;...) at global/qlogging.cpp:1914
#3  QMessageLogger::fatal (this=this@entry=0x7ffd4db48030, msg=msg@entry=0x7f927ef3c0b8 &quot;The Wayland connection broke. Did the Wayland compositor die?&quot;) at global/qlogging.cpp:893
#4  0x00007f927ee7fd65 in QtWaylandClient::QWaylandDisplay::checkError (this=&lt;optimized out&gt;) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlogging.h:90
#5  QtWaylandClient::QWaylandDisplay::checkError (this=&lt;optimized out&gt;) at qwaylanddisplay.cpp:204
#6  0x00007f927ee9116c in QtWaylandClient::QWaylandDisplay::flushRequests (this=0x5583f59baed0) at qwaylanddisplay.cpp:222
#7  0x00007f92805cd6f0 in doActivate&lt;false&gt; (sender=0x5583f59fb120, signal_index=4, argv=0x7ffd4db48140) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#8  0x00007f92805c6a87 in QMetaObject::activate (sender=sender@entry=0x5583f59fb120, m=m@entry=0x7f92808301e0 &lt;QAbstractEventDispatcher::staticMetaObject&gt;, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#9  0x00007f9280593247 in QAbstractEventDispatcher::awake (this=this@entry=0x5583f59fb120) at .moc/moc_qabstracteventdispatcher.cpp:149
#10 0x00007f92805f0fdc in QEventDispatcherGlib::processEvents (this=0x5583f59fb120, flags=...) at kernel/qeventdispatcher_glib.cpp:430
#11 0x00007f92805951ab in QEventLoop::exec (this=this@entry=0x7ffd4db48260, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#12 0x00007f928059d354 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#13 0x00005583f51201f6 in ?? ()
#14 0x00007f927ff1a0b3 in __libc_start_main (main=0x5583f511fa10, argc=4, argv=0x7ffd4db48588, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffd4db48578) at ../csu/libc-start.c:308
#15 0x00005583f512066e in ?? ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1987803</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2020-12-23 15:30:00 +0000</bug_when>
    <thetext>#3  QMessageLogger::fatal (this=this@entry=0x7ffd4db48030, msg=msg@entry=0x7f927ef3c0b8 &quot;The Wayland connection broke. Did the Wayland compositor die?&quot;) at global/qlogging.cpp:893</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993976</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-01-13 18:44:49 +0000</bug_when>
    <thetext>#6  QMessageLogger::fatal (this=this@entry=0x7fffd70c5ba0, msg=msg@entry=0x7ff994ac00b8 &quot;The Wayland connection broke. Did the Wayland compositor die?&quot;) at global/qlogging.cpp:893

This means that the compositor crashed. Due to a Qt issue, when this happens, the app using it will crash too. KDE developers submitted a fix, but sadly it was not merged. See https://codereview.qt-project.org/c/qt/qtwayland/+/308984.

Until we get better handling of this in Qt, the best we can do is debug why the compositor crashed in the first place. So can you please get a backtrace of the crash in kwin_wayland and then file a new bug report with it on kwin | wayland-generic? Thanks!

You may be able to use the `coredumpctl` utility to retrieve the backtrace. See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>