Bug 2189261

Summary: [abrt] kwin-wayland: KWin::DrmGammaRamp::DrmGammaRamp(): kwin_wayland killed by SIGSEGV
Product: [Fedora] Fedora Reporter: kevinleroy
Component: kwinAssignee: Rex Dieter <rdieter>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: craig.crawford, jgrulich, kde-sig, kevinleroy, rdieter, than, xjakub
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e327171388be2e69611793ff05df1e1b85107d2
Whiteboard: abrt_hash:6f369c822eee561b6afbb311e0ccb8f595ec2114;VARIANT_ID=kde;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: proc_pid_status
none
File: var_log_messages
none
File: maps
none
File: exploitable
none
File: mountinfo
none
File: backtrace
none
File: limits
none
File: dso_list
none
File: open_fds
none
File: environ
none
File: core_backtrace
none
File: os_info
none
File: cpuinfo none

Description kevinleroy 2023-04-24 15:06:12 UTC
Version-Release number of selected component:
kwin-wayland-5.27.4.1-1.fc38

Additional info:
reporter:       libreport-2.17.9
cmdline:        /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xwayland-display :0 --xwayland-xauthority /run/user/1333/xauth_jJLOmb --xwayland
executable:     /usr/bin/kwin_wayland
runlevel:       N 5
reason:         kwin_wayland killed by SIGSEGV
package:        kwin-wayland-5.27.4.1-1.fc38
kernel:         6.2.11-300.fc38.x86_64
backtrace_rating: 4
uid:            1333
type:           CCpp
rootdir:        /
journald_cursor: s=3eaf5c0ea56c46bd84b2e24c2ddb5222;i=47cad;b=74aa021fdbcf4901af4801b4f8776c0f;m=1008be5d09;t=5fa162f9b390f;x=dca0483d9dcfdfb2
cgroup:         0::/user.slice/user-1333.slice/user/session.slice/plasma-kwin_wayland.service
crash_function: KWin::DrmGammaRamp::DrmGammaRamp

Truncated backtrace:
Thread no. 1 (41 frames)
 #0 KWin::DrmGammaRamp::DrmGammaRamp at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_pipeline.cpp:594
 #1 std::_Construct<KWin::DrmGammaRamp, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> at /usr/include/c++/13/bits/stl_construct.h:109
 #2 std::allocator_traits<std::allocator<void> >::construct<KWin::DrmGammaRamp, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> at /usr/include/c++/13/bits/alloc_traits.h:660
 #3 std::_Sp_counted_ptr_inplace<KWin::DrmGammaRamp, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> at /usr/include/c++/13/bits/shared_ptr_base.h:604
 #4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<KWin::DrmGammaRamp, std::allocator<void>, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> at /usr/include/c++/13/bits/shared_ptr_base.h:971
 #5 std::__shared_ptr<KWin::DrmGammaRamp, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> at /usr/include/c++/13/bits/shared_ptr_base.h:1712
 #6 std::shared_ptr<KWin::DrmGammaRamp>::shared_ptr<std::allocator<void>, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> at /usr/include/c++/13/bits/shared_ptr.h:464
 #7 std::make_shared<KWin::DrmGammaRamp, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> at /usr/include/c++/13/bits/shared_ptr.h:1010
 #8 KWin::DrmPipeline::setGammaRamp at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_pipeline.cpp:782
 #9 KWin::DrmOutput::setGammaRamp at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_output.cpp:472
 #10 KWin::ColorDevice::update at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/colors/colordevice.cpp:321
 #11 QtPrivate::QSlotObjectBase::call at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
 #12 doActivate<false> at kernel/qobject.cpp:3923
 #13 KWin::Output::setState at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/core/output.cpp:292
 #14 KWin::DrmOutput::updateDpmsMode at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_output.cpp:353
 #15 KWin::DrmOutput::setDrmDpmsMode at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_output.cpp:276
 #16 KWin::DrmOutput::setDpmsMode at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_output.cpp:255
 #17 KWin::DrmBackend::turnOutputsOn at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:114
 #18 KWin::DrmOutput::applyQueuedChanges at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_output.cpp:453
 #20 KWin::DrmBackend::applyOutputChanges at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:496
 #21 KWin::Workspace::updateOutputConfiguration at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/workspace.cpp:557
 #22 KWin::Workspace::slotOutputBackendOutputsQueried at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/workspace.cpp:1323
 #23 QtPrivate::QSlotObjectBase::call at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
 #24 doActivate<false> at kernel/qobject.cpp:3923
 #25 KWin::DrmBackend::updateOutputs at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:329
 #26 KWin::DrmBackend::handleUdevEvent at /usr/src/debug/kwin-5.27.4.1-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:265
 #27 QtPrivate::QSlotObjectBase::call at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
 #28 doActivate<false> at kernel/qobject.cpp:3923
 #29 QMetaObject::activate at kernel/qobject.cpp:3983
 #30 QSocketNotifier::activated at .moc/moc_qsocketnotifier.cpp:178
 #31 QSocketNotifier::event at kernel/qsocketnotifier.cpp:302
 #32 QApplicationPrivate::notify_helper at kernel/qapplication.cpp:3640
 #33 QCoreApplication::notifyInternal2 at kernel/qcoreapplication.cpp:1064
 #34 QCoreApplication::sendEvent at kernel/qcoreapplication.cpp:1462
 #35 QEventDispatcherUNIXPrivate::activateSocketNotifiers at kernel/qeventdispatcher_unix.cpp:304
 #36 QEventDispatcherUNIX::processEvents at kernel/qeventdispatcher_unix.cpp:511
 #37 QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
 #38 QEventLoop::exec at ../../include/QtCore/../../src/corelib/global/qflags.h:69
 #39 QCoreApplication::exec at ../../include/QtCore/../../src/corelib/global/qflags.h:121
 #40 QGuiApplication::exec at kernel/qguiapplication.cpp:1863
 #41 QApplication::exec at kernel/qapplication.cpp:2832

Comment 1 kevinleroy 2023-04-24 15:06:16 UTC
Created attachment 1959553 [details]
File: proc_pid_status

Comment 2 kevinleroy 2023-04-24 15:06:17 UTC
Created attachment 1959554 [details]
File: var_log_messages

Comment 3 kevinleroy 2023-04-24 15:06:18 UTC
Created attachment 1959555 [details]
File: maps

Comment 4 kevinleroy 2023-04-24 15:06:20 UTC
Created attachment 1959556 [details]
File: exploitable

Comment 5 kevinleroy 2023-04-24 15:06:21 UTC
Created attachment 1959557 [details]
File: mountinfo

Comment 6 kevinleroy 2023-04-24 15:06:23 UTC
Created attachment 1959558 [details]
File: backtrace

Comment 7 kevinleroy 2023-04-24 15:06:24 UTC
Created attachment 1959559 [details]
File: limits

Comment 8 kevinleroy 2023-04-24 15:06:26 UTC
Created attachment 1959560 [details]
File: dso_list

Comment 9 kevinleroy 2023-04-24 15:06:28 UTC
Created attachment 1959561 [details]
File: open_fds

Comment 10 kevinleroy 2023-04-24 15:06:29 UTC
Created attachment 1959562 [details]
File: environ

Comment 11 kevinleroy 2023-04-24 15:06:31 UTC
Created attachment 1959563 [details]
File: core_backtrace

Comment 12 kevinleroy 2023-04-24 15:06:33 UTC
Created attachment 1959564 [details]
File: os_info

Comment 13 kevinleroy 2023-04-24 15:06:35 UTC
Created attachment 1959565 [details]
File: cpuinfo

Comment 14 Craig Crawford 2023-07-25 15:51:53 UTC
Same issue for me and this has been happening for many months.

Core was generated by `/usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayl'.
Program terminated with signal SIGSEGV, Segmentation fault.

warning: Section `.reg-xstate/2021' in core file too small.
#0  0x00007f775e9b5643 in KWin::DrmGammaRamp::DrmGammaRamp (this=<optimized out>, crtc=<optimized out>, transformation=..., this=<optimized out>, crtc=<optimized out>, transformation=...) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_pipeline.cpp:594
Downloading source file /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_pipeline.cpp
594         : m_gpu(crtc->gpu())                                                                                                                                                                                                                                                                    
[Current thread is 1 (Thread 0x7f775791c980 (LWP 2021))]
(gdb) info stack
#0  0x00007f775e9b5643 in KWin::DrmGammaRamp::DrmGammaRamp (this=<optimized out>, crtc=<optimized out>, transformation=..., this=<optimized out>, crtc=<optimized out>, transformation=...) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_pipeline.cpp:594
#1  0x00007f775e9b5d28 in std::_Construct<KWin::DrmGammaRamp, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation>&> (__p=0x556f45901270) at /usr/include/c++/12/bits/stl_construct.h:119
#2  std::allocator_traits<std::allocator<void> >::construct<KWin::DrmGammaRamp, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation>&> (__p=0x556f45901270) at /usr/include/c++/12/bits/alloc_traits.h:635
#3  std::_Sp_counted_ptr_inplace<KWin::DrmGammaRamp, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation>&> (__a=..., this=0x556f45901260) at /usr/include/c++/12/bits/shared_ptr_base.h:604
#4  std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<KWin::DrmGammaRamp, std::allocator<void>, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation>&> (__a=..., __p=<optimized out>, this=<optimized out>) at /usr/include/c++/12/bits/shared_ptr_base.h:971
#5  std::__shared_ptr<KWin::DrmGammaRamp, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<void>, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation>&> (__tag=..., this=<optimized out>) at /usr/include/c++/12/bits/shared_ptr_base.h:1712
#6  std::shared_ptr<KWin::DrmGammaRamp>::shared_ptr<std::allocator<void>, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation>&> (__tag=..., this=<optimized out>) at /usr/include/c++/12/bits/shared_ptr.h:464
#7  std::make_shared<KWin::DrmGammaRamp, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&> () at /usr/include/c++/12/bits/shared_ptr.h:1010
#8  KWin::DrmPipeline::setGammaRamp (transformation=std::shared_ptr<KWin::ColorTransformation> (use count 2, weak count 0) = {...}, this=0x556f456ec240) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_pipeline.cpp:782
#9  KWin::DrmOutput::setGammaRamp (this=0x556f4581aee0, transformation=std::shared_ptr<KWin::ColorTransformation> (use count 2, weak count 0) = {...}) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_output.cpp:472
#10 0x00007f775e7eea0a in KWin::ColorDevice::update (this=0x556f466a2a00) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/colors/colordevice.cpp:321
#11 0x00007f775ccd0fc6 in QtPrivate::QSlotObjectBase::call (a=0x7ffc00c7ad40, r=<optimized out>, this=0x556f46475320) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#12 doActivate<false> (sender=0x556f4581aee0, signal_index=14, argv=0x7ffc00c7ad40) at kernel/qobject.cpp:3923
#13 0x00007f775e7f9731 in KWin::Output::setState (this=0x556f4581aee0, state=...) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/core/output.cpp:292
#14 0x00007f775e9aac39 in KWin::DrmOutput::updateDpmsMode (this=this@entry=0x556f4581aee0, dpmsMode=dpmsMode@entry=KWin::Output::DpmsMode::On) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_output.cpp:353
#15 0x00007f775e9abd2d in KWin::DrmOutput::setDrmDpmsMode (this=this@entry=0x556f4581aee0, mode=mode@entry=KWin::Output::DpmsMode::On) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_output.cpp:276
#16 0x00007f775e9abf56 in KWin::DrmOutput::setDpmsMode (this=0x556f4581aee0, mode=KWin::Output::DpmsMode::On) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_output.cpp:255
#17 0x00007f775e98573b in KWin::DrmBackend::turnOutputsOn (this=<optimized out>) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_backend.cpp:114
#18 0x00007f775e9b4a40 in KWin::DrmOutput::applyQueuedChanges (config=..., this=0x556f46554340) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_output.cpp:453
#19 KWin::DrmOutput::applyQueuedChanges (this=0x556f46554340, config=...) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_output.cpp:421
#20 0x00007f775e98dccf in KWin::DrmBackend::applyOutputChanges (this=<optimized out>, config=...) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_backend.cpp:496
#21 0x00007f775e93aa6f in KWin::Workspace::updateOutputConfiguration (this=this@entry=0x556f4541e670) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/workspace.cpp:557
#22 0x00007f775e93b43c in KWin::Workspace::slotOutputBackendOutputsQueried (this=0x556f4541e670) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/workspace.cpp:1323
#23 0x00007f775ccd0fc6 in QtPrivate::QSlotObjectBase::call (a=0x7ffc00c7b2b0, r=<optimized out>, this=0x556f45acc600) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#24 doActivate<false> (sender=0x556f4542e640, signal_index=3, argv=0x7ffc00c7b2b0) at kernel/qobject.cpp:3923
#25 0x00007f775e990d2e in KWin::DrmBackend::updateOutputs (this=<optimized out>) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_backend.cpp:329
#26 0x00007f775e98b85e in KWin::DrmBackend::handleUdevEvent (this=0x556f4542e640) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/backends/drm/drm_backend.cpp:265
#27 0x00007f775ccd0fc6 in QtPrivate::QSlotObjectBase::call (a=0x7ffc00c7ba10, r=<optimized out>, this=0x556f45438650) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#28 doActivate<false> (sender=0x556f4556f3e0, signal_index=3, argv=0x7ffc00c7ba10) at kernel/qobject.cpp:3923
#29 0x00007f775cccbf57 in QMetaObject::activate (sender=sender@entry=0x556f4556f3e0, m=m@entry=0x7f775cf5e440 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc00c7ba10) at kernel/qobject.cpp:3983
#30 0x00007f775ccd3833 in QSocketNotifier::activated (this=this@entry=0x556f4556f3e0, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#31 0x00007f775ccd4055 in QSocketNotifier::event (this=0x556f4556f3e0, e=<optimized out>) at kernel/qsocketnotifier.cpp:302
#32 0x00007f775c3aed72 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x556f4556f3e0, e=0x7ffc00c7bb10) at kernel/qapplication.cpp:3640
#33 0x00007f775cc9d618 in QCoreApplication::notifyInternal2 (receiver=0x556f4556f3e0, event=0x7ffc00c7bb10) at kernel/qcoreapplication.cpp:1064
#34 0x00007f775cc9d802 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#35 0x00007f775ccebbbe in QEventDispatcherUNIXPrivate::activateSocketNotifiers (this=this@entry=0x556f453eee20) at kernel/qeventdispatcher_unix.cpp:304
#36 0x00007f775ccebffd in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:511
#37 0x0000556f43ed9701 in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#38 0x00007f775cc9c06a in QEventLoop::exec (this=this@entry=0x7ffc00c7bc80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#39 0x00007f775cca4132 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#40 0x00007f775d15fb50 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1863
#41 0x00007f775c3aece9 in QApplication::exec () at kernel/qapplication.cpp:2832
#42 0x0000556f43df9d21 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kwin-5.27.4.1-1.fc37.x86_64/src/main_wayland.cpp:628

Comment 15 Craig Crawford 2023-07-25 15:52:25 UTC
TIME                            PID  UID  GID SIG     COREFILE EXE                              SIZE
Wed 2023-06-07 15:17:20 BST    1952 1001 1001 SIGSEGV missing  /usr/bin/kwin_wayland             n/a
Thu 2023-06-08 15:44:23 BST 1066969 1001 1001 SIGSEGV missing  /usr/bin/kwin_wayland             n/a
Thu 2023-06-08 18:58:08 BST 1432276 1001 1001 SIGSEGV missing  /usr/bin/kwin_wayland             n/a
Wed 2023-06-14 15:41:27 BST    2208 1001 1001 SIGSEGV missing  /usr/bin/kwin_wayland             n/a
Fri 2023-06-23 13:40:57 BST    1930 1001 1001 SIGSEGV missing  /usr/bin/kwin_wayland             n/a
Tue 2023-07-25 16:37:28 BST    2021 1001 1001 SIGSEGV present  /usr/bin/kwin_wayland           12.0M

Comment 16 Milos Jakubicek 2023-08-01 14:21:56 UTC
Happens randomly after disconnecting an external display.


reporter:       libreport-2.17.11
crash_function: KWin::DrmGammaRamp::DrmGammaRamp
comment:        Happens randomly after disconnecting an external display.
reason:         kwin_wayland killed by SIGSEGV
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/plasma-kwin_wayland.service
runlevel:       N 5
cmdline:        /usr/bin/kwin_wayland --wayland-fd 7 --socket wayland-0 --xwayland-fd 8 --xwayland-fd 9 --xwayland-display :0 --xwayland-xauthority /run/user/1000/xauth_ugTPCS --xwayland
package:        kwin-wayland-5.27.6-1.fc38
journald_cursor: s=4a8e18c7bf564e2eba0bf491014d266f;i=294d8d;b=d47f840082a348d09447d4fdaf166da3;m=1a80a0f9f5;t=6010ed3521678;x=1177bcb6f436a0e7
kernel:         6.3.12-200.fc38.x86_64
type:           CCpp
backtrace_rating: 4
executable:     /usr/bin/kwin_wayland
rootdir:        /
uid:            1000
dso_list:       /usr/bin/kwin_wayland kwin-wayland-5.27.6-1.fc38.x86_64 (Fedora Project) 1689106215