Bug 2222127

Summary: [abrt] kwin-wayland: KWin::DrmGammaRamp::DrmGammaRamp(KWin::DrmCrtc*, std::shared_ptr<KWin::ColorTransformation> const&)(): kwin_wayland killed by SIGSEGV
Product: [Fedora] Fedora Reporter: macrosv
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, macrosv, rdieter, than
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e327171388be2e69611793ff05df1e1b85107d2
Whiteboard: abrt_hash:d3639e03037a9ca7f48044232c84d9749c8df4e3;VARIANT_ID=kde;
Fixed In Version: Doc Type: ---
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: maps
none
File: limits
none
File: os_info
none
File: cpuinfo
none
File: core_backtrace
none
File: exploitable
none
File: dso_list
none
File: var_log_messages
none
File: backtrace
none
File: mountinfo
none
File: open_fds
none
File: environ none

Description macrosv 2023-07-11 22:15:47 UTC
Description of problem:
This crash happens every time I allow my system to lock after remaining inactive. It occurs after the screens go to sleep, which causes one of the attached displays (that likely has a hardware issue) to completely disable connection to the system. This, in turn, is detected by the system as though the display was disconnected and reconnected. Could something like this this be causing a race condition within kwin?

Version-Release number of selected component:
kwin-wayland-5.27.6-1.fc38

Additional info:
reporter:       libreport-2.17.11
type:           CCpp
reason:         kwin_wayland killed by SIGSEGV
journald_cursor: s=b19570e628384ff1b43a6a93e8de68ae;i=1f8134;b=02910b9999094217a5f90897768a2ae4;m=91824769f;t=5ff79393e3552;x=92bd49dc79f19dcc
executable:     /usr/bin/kwin_wayland
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/plasma-kwin_wayland.service
rootdir:        /
uid:            1000
kernel:         6.3.8-200.fc38.x86_64
package:        kwin-wayland-5.27.6-1.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: KWin::DrmGammaRamp::DrmGammaRamp(KWin::DrmCrtc*, std::shared_ptr<KWin::ColorTransformation> const&)
comment:        This crash happens every time I allow my system to lock after remaining inactive. It occurs after the screens go to sleep, which causes one of the attached displays (that likely has a hardware issue) to completely disable connection to the system. This, in turn, is detected by the system as though the display was disconnected and reconnected. Could something like this this be causing a race condition within kwin?
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_LAYTre --xwayland

Truncated backtrace:
Thread no. 1 (42 frames)
 #0 KWin::DrmGammaRamp::DrmGammaRamp(KWin::DrmCrtc*, std::shared_ptr<KWin::ColorTransformation> const&) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_pipeline.cpp:594
 #1 std::_Construct<KWin::DrmGammaRamp, KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&>(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&>(std::allocator<void>&, 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&>(std::allocator<void>, 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&>(KWin::DrmGammaRamp*&, std::_Sp_alloc_shared_tag<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&>(std::_Sp_alloc_shared_tag<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&>(std::_Sp_alloc_shared_tag<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&>(KWin::DrmCrtc*&, std::shared_ptr<KWin::ColorTransformation> const&) at /usr/include/c++/13/bits/shared_ptr.h:1010
 #8 KWin::DrmPipeline::setGammaRamp(std::shared_ptr<KWin::ColorTransformation> const&) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_pipeline.cpp:782
 #9 KWin::DrmOutput::setGammaRamp(std::shared_ptr<KWin::ColorTransformation> const&) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_output.cpp:472
 #10 KWin::ColorDevice::update() at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/colors/colordevice.cpp:321
 #11 QtPrivate::QSlotObjectBase::call(QObject*, void**) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
 #12 doActivate<false>(QObject*, int, void**) at kernel/qobject.cpp:3925
 #13 KWin::Output::setState(KWin::Output::State const&) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/core/output.cpp:292
 #14 KWin::DrmOutput::updateDpmsMode(KWin::Output::DpmsMode) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_output.cpp:353
 #15 KWin::DrmOutput::setDrmDpmsMode(KWin::Output::DpmsMode) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_output.cpp:276
 #16 KWin::DrmOutput::setDpmsMode(KWin::Output::DpmsMode) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_output.cpp:255
 #17 KWin::DrmBackend::turnOutputsOn() at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:114
 #18 KWin::DrmOutput::applyQueuedChanges(KWin::OutputConfiguration const&) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_output.cpp:453
 #20 KWin::DrmBackend::applyOutputChanges(KWin::OutputConfiguration const&) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:496
 #21 KWin::Workspace::updateOutputConfiguration() at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/workspace.cpp:557
 #22 KWin::Workspace::slotOutputBackendOutputsQueried() at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/workspace.cpp:1325
 #23 QtPrivate::QSlotObjectBase::call(QObject*, void**) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
 #24 doActivate<false>(QObject*, int, void**) at kernel/qobject.cpp:3925
 #25 KWin::DrmBackend::updateOutputs() at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:329
 #26 KWin::DrmBackend::handleUdevEvent() at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/backends/drm/drm_backend.cpp:265
 #27 QtPrivate::QSlotObjectBase::call(QObject*, void**) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
 #28 doActivate<false>(QObject*, int, void**) at kernel/qobject.cpp:3925
 #29 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) at kernel/qobject.cpp:3985
 #30 QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) at .moc/moc_qsocketnotifier.cpp:178
 #31 QSocketNotifier::event(QEvent*) at kernel/qsocketnotifier.cpp:302
 #32 QApplicationPrivate::notify_helper(QObject*, QEvent*) at kernel/qapplication.cpp:3640
 #33 QCoreApplication::notifyInternal2(QObject*, QEvent*) at kernel/qcoreapplication.cpp:1064
 #34 QCoreApplication::sendEvent(QObject*, QEvent*) at kernel/qcoreapplication.cpp:1462
 #35 QEventDispatcherUNIXPrivate::activateSocketNotifiers() at kernel/qeventdispatcher_unix.cpp:304
 #36 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) at kernel/qeventdispatcher_unix.cpp:511
 #37 QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
 #38 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) 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
 #42 main(int, char**) at /usr/src/debug/kwin-5.27.6-1.fc38.x86_64/src/main_wayland.cpp:628

Comment 1 macrosv 2023-07-11 22:15:51 UTC
Created attachment 1975229 [details]
File: proc_pid_status

Comment 2 macrosv 2023-07-11 22:15:53 UTC
Created attachment 1975230 [details]
File: maps

Comment 3 macrosv 2023-07-11 22:15:54 UTC
Created attachment 1975231 [details]
File: limits

Comment 4 macrosv 2023-07-11 22:15:56 UTC
Created attachment 1975232 [details]
File: os_info

Comment 5 macrosv 2023-07-11 22:15:57 UTC
Created attachment 1975233 [details]
File: cpuinfo

Comment 6 macrosv 2023-07-11 22:16:00 UTC
Created attachment 1975234 [details]
File: core_backtrace

Comment 7 macrosv 2023-07-11 22:16:01 UTC
Created attachment 1975235 [details]
File: exploitable

Comment 8 macrosv 2023-07-11 22:16:03 UTC
Created attachment 1975236 [details]
File: dso_list

Comment 9 macrosv 2023-07-11 22:16:05 UTC
Created attachment 1975237 [details]
File: var_log_messages

Comment 10 macrosv 2023-07-11 22:16:07 UTC
Created attachment 1975238 [details]
File: backtrace

Comment 11 macrosv 2023-07-11 22:16:09 UTC
Created attachment 1975239 [details]
File: mountinfo

Comment 12 macrosv 2023-07-11 22:16:10 UTC
Created attachment 1975240 [details]
File: open_fds

Comment 13 macrosv 2023-07-11 22:16:12 UTC
Created attachment 1975241 [details]
File: environ

Comment 14 Craig Crawford 2023-07-25 15:50:41 UTC
This looks like a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2189261