https://bugs.kde.org/show_bug.cgi?id=452583

            Bug ID: 452583
           Summary: kwin_wayland crashed on Arch Linux while pacman was
                    updating pipewire
           Product: kwin
           Version: 5.24.4
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: bugsefor...@gmx.com
  Target Milestone: ---

SUMMARY
This was not the first kwin_wayland crash while pacman updates pipewire on my
system.


STEPS TO REPRODUCE
1. have pipewire installed on your system
2. use wayland session
3. update pipewire using your package manager

OBSERVED RESULT
kwin_wayland crashes while pipewire is updated.

EXPECTED RESULT
no crash

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Here are all packages updated when this kwin_wayland crash occurred:

[2022-04-13T13:40:07-0300] [ALPM] upgraded vivaldi-snapshot (5.3.2636.3-1 ->
5.3.2643.3-1)
[2022-04-13T13:40:06-0300] [ALPM] upgraded vhba-module-dkms (20211218-24 ->
20211218-27)
[2022-04-13T13:40:06-0300] [ALPM] upgraded swell-foop (41.0.1-1 -> 41.1-1)
[2022-04-13T13:40:05-0300] [ALPM] upgraded linux-headers (5.17.1.arch1-1 ->
5.17.2.arch3-1)
[2022-04-13T13:39:58-0300] [ALPM] upgraded linux (5.17.1.arch1-1 ->
5.17.2.arch3-1)
[2022-04-13T13:39:26-0300] [ALPM] upgraded libgit2 (1:1.4.2-1 -> 1:1.4.3-1)
[2022-04-13T13:39:26-0300] [ALPM] upgraded iproute2 (5.17.0-1 -> 5.17.0-2)
[2022-04-13T13:39:26-0300] [ALPM] upgraded help2man (1.49.1-1 -> 1.49.2-1)
[2022-04-13T13:39:26-0300] [ALPM] upgraded gst-plugin-pipewire (1:0.3.49-1 ->
1:0.3.50-1)
[2022-04-13T13:39:26-0300] [ALPM] upgraded pipewire (1:0.3.49-1 -> 1:0.3.50-1)
[2022-04-13T13:39:26-0300] [ALPM] upgraded git (2.35.1-1 -> 2.35.2-1)
[2022-04-13T13:39:25-0300] [ALPM] upgraded firefox-i18n-pt-br (99.0-1 ->
99.0.1-1)
[2022-04-13T13:39:25-0300] [ALPM] upgraded firefox (99.0-1 -> 99.0.1-1)
[2022-04-13T13:39:24-0300] [ALPM] upgraded vmaf (2.3.0-1 -> 2.3.1-1)
[2022-04-13T13:39:24-0300] [ALPM] upgraded alsa-card-profiles (1:0.3.49-1 ->
1:0.3.50-1)



Thread 8 (Thread 0x7f10356e9640 (LWP 640)):
#0  0x00007f1047ecf15a in __futex_abstimed_wait_common () at /usr/lib/libc.so.6
#1  0x00007f1047ed1960 in pthread_cond_wait@@GLIBC_2.3.2 () at
/usr/lib/libc.so.6
#2  0x00007f10409301fc in cnd_wait () at
../mesa-22.0.1/include/c11/threads_posix.h:155
#3  util_queue_thread_func() () at ../mesa-22.0.1/src/util/u_queue.c:294
#4  0x00007f104092988c in impl_thrd_routine() () at
../mesa-22.0.1/include/c11/threads_posix.h:87
#5  0x00007f1047ed25c2 in start_thread () at /usr/lib/libc.so.6
#6  0x00007f1047f57584 in clone () at /usr/lib/libc.so.6

Thread 7 (Thread 0x7f102cdec640 (LWP 645)):
#0  0x00007f1047f4b2af in poll () at /usr/lib/libc.so.6
#1  0x00007f10467fa976 in g_main_context_poll (priority=<optimized out>,
n_fds=1, fds=0x7f10140029e0, timeout=<optimized out>, context=0x7f1014000c30)
at ../glib/glib/gmain.c:4516
#2  g_main_context_iterate.constprop.0 (context=context@entry=0x7f1014000c30,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../glib/glib/gmain.c:4206
#3  0x00007f10467a16c5 in g_main_context_iteration (context=0x7f1014000c30,
may_block=1) at ../glib/glib/gmain.c:4276
#4  0x00007f104884257a in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x7f1014000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007f10487ee88b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f102cdeba60,
flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x00007f1048651a56 in QThread::exec() (this=this@entry=0x55893575aae0) at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f1049d6fd00 in QQmlThreadPrivate::run() (this=0x55893575aae0) at
/usr/src/debug/qtdeclarative/src/qml/qml/ftw/qqmlthread.cpp:155
#8  0x00007f104864e8cc in QThreadPrivate::start(void*) (arg=0x55893575aae0) at
thread/qthread_unix.cpp:331
#9  0x00007f1047ed25c2 in start_thread () at /usr/lib/libc.so.6
#10 0x00007f1047f57584 in clone () at /usr/lib/libc.so.6

Thread 6 (Thread 0x7f102edee640 (LWP 643)):
#0  0x00007f1047ecf15a in __futex_abstimed_wait_common () at /usr/lib/libc.so.6
#1  0x00007f1047ed1960 in pthread_cond_wait@@GLIBC_2.3.2 () at
/usr/lib/libc.so.6
#2  0x00007f10409301fc in cnd_wait () at
../mesa-22.0.1/include/c11/threads_posix.h:155
#3  util_queue_thread_func() () at ../mesa-22.0.1/src/util/u_queue.c:294
#4  0x00007f104092988c in impl_thrd_routine() () at
../mesa-22.0.1/include/c11/threads_posix.h:87
#5  0x00007f1047ed25c2 in start_thread () at /usr/lib/libc.so.6
#6  0x00007f1047f57584 in clone () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f102f5ef640 (LWP 642)):
#0  0x00007f1047ecf15a in __futex_abstimed_wait_common () at /usr/lib/libc.so.6
#1  0x00007f1047ed1960 in pthread_cond_wait@@GLIBC_2.3.2 () at
/usr/lib/libc.so.6
#2  0x00007f10409301fc in cnd_wait () at
../mesa-22.0.1/include/c11/threads_posix.h:155
#3  util_queue_thread_func() () at ../mesa-22.0.1/src/util/u_queue.c:294
#4  0x00007f104092988c in impl_thrd_routine() () at
../mesa-22.0.1/include/c11/threads_posix.h:87
#5  0x00007f1047ed25c2 in start_thread () at /usr/lib/libc.so.6
#6  0x00007f1047f57584 in clone () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f10433f9a80 (LWP 633)):
#0  0x00007f1047f4ce6f in ioctl () at /usr/lib/libc.so.6
#1  0x00007f10419d8f6b in intel_ioctl () at
../mesa-22.0.1/src/intel/common/intel_gem.h:74
#2  alloc_fresh_bo () at
../mesa-22.0.1/src/gallium/drivers/crocus/crocus_bufmgr.c:380
#3  bo_alloc_internal.isra.0 () at
../mesa-22.0.1/src/gallium/drivers/crocus/crocus_bufmgr.c:417
#4  0x00007f1041845116 in crocus_bo_alloc_tiled () at
../mesa-22.0.1/src/gallium/drivers/crocus/crocus_bufmgr.c:470
#5  crocus_resource_create_with_modifiers() () at
../mesa-22.0.1/src/gallium/drivers/crocus/crocus_resource.c:729
#6  0x00007f10409ee720 in st_texture_create () at
../mesa-22.0.1/src/mesa/state_tracker/st_texture.c:103
#7  guess_and_alloc_texture() () at
../mesa-22.0.1/src/mesa/state_tracker/st_cb_texture.c:899
#8  0x00007f10409ee98e in st_AllocTextureImageBuffer() () at
../mesa-22.0.1/src/mesa/state_tracker/st_cb_texture.c:959
#9  0x00007f10409f9dad in st_TexImage () at
../mesa-22.0.1/src/mesa/state_tracker/st_cb_texture.c:2169
#10 st_TexImage() () at
../mesa-22.0.1/src/mesa/state_tracker/st_cb_texture.c:2156
#11 0x00007f10409b67ba in teximage () at
../mesa-22.0.1/src/mesa/main/teximage.c:3164
#12 teximage_err() () at ../mesa-22.0.1/src/mesa/main/teximage.c:3191
#13 0x00007f10409b6862 in _mesa_TexImage2D() () at
../mesa-22.0.1/src/mesa/main/teximage.c:3262
#14 0x00007f104a444e7e in KWin::GLTexture::GLTexture(unsigned int, int, int,
int, bool) (this=0x5589361c4110, internalFormat=32856, width=1571, height=761,
levels=1, needsMutability=<optimized out>, this=<optimized out>,
internalFormat=<optimized out>, width=<optimized out>, height=<optimized out>,
levels=<optimized out>, needsMutability=<optimized out>) at
/usr/src/debug/kwin-5.24.4/src/libkwineffects/kwingltexture.cpp:208
#15 0x00007f104a44db97 in KWin::EGLImageTexture::EGLImageTexture(void*, void*,
int, QSize const&) (this=0x5589361c4110, display=0x55893533e2d0,
image=0x5589361c40e0, internalFormat=<optimized out>, size=<optimized out>,
this=<optimized out>, display=<optimized out>, image=<optimized out>,
internalFormat=<optimized out>, size=<optimized out>) at
/usr/src/debug/kwin-5.24.4/src/libkwineffects/kwineglimagetexture.cpp:21
#16 0x00007f10423d91b6 in KWin::GbmDmaBuf::createBuffer(QSize const&,
gbm_device*) (device=<optimized out>, size=...) at
/usr/src/debug/kwin-5.24.4/src/backends/drm/gbm_dmabuf.cpp:80
#17 KWin::DrmBackend::createDmaBufTexture(QSize const&) (this=<optimized out>,
size=...) at /usr/src/debug/kwin-5.24.4/src/backends/drm/drm_backend.cpp:610
#18 0x000055893466f8f4 in operator() (__closure=<optimized out>,
__closure=<synthetic pointer>) at
/usr/src/debug/kwin-5.24.4/src/plugins/screencast/screencaststream.cpp:282
#19 KWin::ScreenCastStream::createStream() (this=0x55893619bf60) at
/usr/src/debug/kwin-5.24.4/src/plugins/screencast/screencaststream.cpp:286
#20 0x00005589346fffdb in KWin::ScreenCastStream::init() (this=0x55893619bf60)
at /usr/src/debug/kwin-5.24.4/src/plugins/screencast/screencaststream.cpp:239
#21
KWin::ScreencastManager::integrateStreams(KWaylandServer::ScreencastStreamV1Interface*,
KWin::ScreenCastStream*) [clone .constprop.0] (waylandStream=0x55893651c7e0,
stream=0x55893619bf60, this=<optimized out>) at
/usr/src/debug/kwin-5.24.4/src/plugins/screencast/screencastmanager.cpp:160
#22 0x00007f1048827463 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffcece76470, r=<optimized out>, this=0x558935337910, this=<optimized
out>, r=<optimized out>, a=<optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false>(QObject*, int, void**) (sender=0x558935501480,
signal_index=5, argv=0x7ffcece76470) at kernel/qobject.cpp:3886
#24 0x00007f104a51e35a in
KWaylandServer::ScreencastV1Interface::windowScreencastRequested(KWaylandServer::ScreencastStreamV1Interface*,
QString const&, KWaylandServer::ScreencastV1Interface::CursorMode)
(this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=<optimized
out>) at
/usr/src/debug/build/src/server/KWaylandServer_autogen/EWIEGA46WW/moc_screencast_v1_interface.cpp:329
#25 0x00007f104a5bb296 in
QtWaylandServer::zkde_screencast_unstable_v1::handle_stream_window(wl_client*,
wl_resource*, unsigned int, char const*, unsigned int) (client=<optimized out>,
resource=<optimized out>, stream=237, window_uuid=0x558935531100
"{50e065c3-96f3-44f5-9564-cf27a861fbfa}", pointer=1) at
/usr/src/debug/build/src/server/qwayland-server-zkde-screencast-unstable-v1.cpp:257
#26 0x00007f1046583536 in ffi_call_unix64 () at ../src/x86/unix64.S:105
#27 0x00007f1046580037 in ffi_call_int (cif=<optimized out>, fn=<optimized
out>, rvalue=<optimized out>, avalue=<optimized out>, closure=<optimized out>)
at ../src/x86/ffi64.c:672
#28 0x00007f10477aaaf2 in wl_closure_invoke
(closure=closure@entry=0x558935531020, target=<optimized out>,
target@entry=0x5589366d9b70, opcode=opcode@entry=1, data=<optimized out>,
data@entry=0x55893627cc90, flags=<optimized out>) at
../wayland-1.20.0/src/connection.c:1025
#29 0x00007f10477aee14 in wl_client_connection_data (fd=<optimized out>,
mask=<optimized out>, data=0x55893627cc90) at
../wayland-1.20.0/src/wayland-server.c:437
#30 0x00007f10477ad84a in wl_event_loop_dispatch (loop=0x558935339080,
timeout=<optimized out>) at ../wayland-1.20.0/src/event-loop.c:1027
#31 0x00007f104a534b7b in KWaylandServer::Display::dispatchEvents()
(this=<optimized out>) at
/usr/src/debug/kwayland-server-5.24.4/src/server/display.cpp:114
#32 0x00007f1048827463 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7ffcece76d40, r=<optimized out>, this=0x558935714af0, this=<optimized
out>, r=<optimized out>, a=<optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#33 doActivate<false>(QObject*, int, void**) (sender=0x558935754700,
signal_index=3, argv=0x7ffcece76d40) at kernel/qobject.cpp:3886
#34 0x00007f10488294e4 in QSocketNotifier::activated(QSocketDescriptor,
QSocketNotifier::Type, QSocketNotifier::QPrivateSignal)
(this=this@entry=0x558935754700, _t1=..., _t2=<optimized out>, _t3=...) at
.moc/moc_qsocketnotifier.cpp:178
#35 0x00007f1048829faf in QSocketNotifier::event(QEvent*) (this=0x558935754700,
e=<optimized out>) at kernel/qsocketnotifier.cpp:302
#36 0x00007f10492b41c6 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=<optimized out>, receiver=0x558935754700, e=0x7ffcece76e80) at
kernel/qapplication.cpp:3637
#37 0x00007f10487f65aa in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x558935754700, event=0x7ffcece76e80) at
kernel/qcoreapplication.cpp:1064
#38 0x00007f1048841214 in
QEventDispatcherUNIXPrivate::activateSocketNotifiers() (this=0x5589353268e0) at
kernel/qeventdispatcher_unix.cpp:304
#39 0x00007f1048842185 in
QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:511
#40 0x00005589347337e2 in
QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
()
#41 0x00007f10487ee88b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7ffcece77010,
flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#42 0x00007f10487f9fd7 in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#43 0x00007f1048bc6432 in QGuiApplication::exec() () at
kernel/qguiapplication.cpp:1867
#44 0x00007f10492b254a in QApplication::exec() () at
kernel/qapplication.cpp:2829
#45 0x000055893464232a in main(int, char**) (argc=<optimized out>,
argv=<optimized out>) at /usr/src/debug/kwin-5.24.4/src/main_wayland.cpp:727

Thread 3 (Thread 0x7f1034ee8640 (LWP 641)):
#0  0x00007f1047f4b2af in poll () at /usr/lib/libc.so.6
#1  0x00007f10467fa976 in g_main_context_poll (priority=<optimized out>,
n_fds=2, fds=0x7f10280029e0, timeout=<optimized out>, context=0x7f1028000c30)
at ../glib/glib/gmain.c:4516
#2  g_main_context_iterate.constprop.0 (context=context@entry=0x7f1028000c30,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../glib/glib/gmain.c:4206
#3  0x00007f10467a16c5 in g_main_context_iteration (context=0x7f1028000c30,
may_block=1) at ../glib/glib/gmain.c:4276
#4  0x00007f104884257a in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x7f1028000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007f10487ee88b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f1034ee7a80,
flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x00007f1048651a56 in QThread::exec() (this=<optimized out>) at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f104864e8cc in QThreadPrivate::start(void*) (arg=0x558935387860) at
thread/qthread_unix.cpp:331
#8  0x00007f1047ed25c2 in start_thread () at /usr/lib/libc.so.6
#9  0x00007f1047f57584 in clone () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f1042c17640 (LWP 639)):
#0  0x00007f1047f4b2af in poll () at /usr/lib/libc.so.6
#1  0x00007f10467fa976 in g_main_context_poll (priority=<optimized out>,
n_fds=3, fds=0x7f103c0053e0, timeout=<optimized out>, context=0x7f103c001cf0)
at ../glib/glib/gmain.c:4516
#2  g_main_context_iterate.constprop.0 (context=context@entry=0x7f103c001cf0,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../glib/glib/gmain.c:4206
#3  0x00007f10467a16c5 in g_main_context_iteration (context=0x7f103c001cf0,
may_block=1) at ../glib/glib/gmain.c:4276
#4  0x00007f104884257a in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x7f103c000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007f10487ee88b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f1042c16a50,
flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#6  0x00007f1048651a56 in QThread::exec() (this=this@entry=0x7f104ab84640
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f104ab283a9 in QDBusConnectionManager::run() (this=0x7f104ab84640
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
/usr/src/debug/qtbase/src/dbus/qdbusconnection.cpp:179
#8  0x00007f104864e8cc in QThreadPrivate::start(void*) (arg=0x7f104ab84640
<(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at
thread/qthread_unix.cpp:331
#9  0x00007f1047ed25c2 in start_thread () at /usr/lib/libc.so.6
#10 0x00007f1047f57584 in clone () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f102d5ed640 (LWP 2715)):
#0  0x00007f1047ed434c in __pthread_kill_implementation () at
/usr/lib/libc.so.6
#1  0x00007f1047e874b8 in raise () at /usr/lib/libc.so.6
#2  0x00007f1047e715c6 in abort () at /usr/lib/libc.so.6
#3  0x00007f102c112d14 in loop_update_io (object=<optimized out>,
source=<optimized out>, mask=<optimized out>) at
../pipewire/spa/plugins/support/loop.c:484
#4  0x00007f1018097478 in on_remote_data (data=0x558936810c50, fd=128,
mask=<optimized out>) at ../pipewire/src/modules/module-protocol-native.c:907
#5  0x00007f102c115e3d in loop_iterate (object=<optimized out>,
timeout=<optimized out>) at ../pipewire/spa/plugins/support/loop.c:409
#6  0x00007f104839c5c7 in do_loop (user_data=0x279) at
../pipewire/src/pipewire/data-loop.c:75
#7  0x00007f1047ed25c2 in start_thread () at /usr/lib/libc.so.6
#8  0x00007f1047f57584 in clone () at /usr/lib/libc.so.6

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to