Bug 2135514 - [abrt] gnome-control-center: llvm::MachineRegisterInfo::addRegOperandToUseList(): gnome-control-center-print-renderer killed by SIGSEGV
Summary: [abrt] gnome-control-center: llvm::MachineRegisterInfo::addRegOperandToUseLis...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: GNOME SIG Unassigned
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:7f8d7681b7089a109198559bacb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-17 18:37 UTC by Matt Fagnani
Modified: 2023-10-20 19:24 UTC (History)
13 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-10-20 19:24:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (181.71 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: core_backtrace (39.27 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: cpuinfo (2.67 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: dso_list (290 bytes, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: environ (1.60 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: exploitable (82 bytes, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: limits (1.29 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: maps (3.93 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: mountinfo (2.86 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: open_fds (1.90 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details
File: proc_pid_status (1.40 KB, text/plain)
2022-10-17 18:37 UTC, Matt Fagnani
no flags Details

Description Matt Fagnani 2022-10-17 18:37:38 UTC
Description of problem:
I started GNOME 43.0 on Wayland in a Fedora 37 KDE Plasma spin. I right-clicked on the desktop background and selected Change background. gnome-control-center's Appearance screen started. A notification like "Oops! We're sorry, it looks like a problem occurred" was shown. An SELinux denial notification was shown after that.

gnome-control-center-print-renderer crashed in llvm::MachineRegisterInfo::addRegOperandToUseList according to coredumpctl gdb

Core was generated by `/usr/libexec/gnome-control-center-print-renderer'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  llvm::MachineRegisterInfo::addRegOperandToUseList (this=0x7fbd5828b680, MO=0x7fbd582ba3f0) at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/lib/CodeGen/MachineRegisterInfo.cpp:282
282       MachineOperand *Last = Head->Contents.Reg.Prev;
[Current thread is 1 (Thread 0x7fbd651ff6c0 (LWP 10218))]

The pointer Head at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/lib/CodeGen/MachineRegisterInfo.cpp:282 appeared to be invalid possibly due to memory corruption.

(gdb) p Head->Contents.Reg.Prev
Cannot access memory at address 0x2020202020202030
(gdb) p Head
$1 = (llvm::MachineOperand * const) 0x2020202020202020

Version-Release number of selected component:
gnome-control-center-43.0-1.fc37

Additional info:
reporter:       libreport-2.17.4
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-gnome\x2dbackground\x2dpanel-10162.scope
cmdline:        /usr/libexec/gnome-control-center-print-renderer
crash_function: llvm::MachineRegisterInfo::addRegOperandToUseList
executable:     /usr/libexec/gnome-control-center-print-renderer
journald_cursor: s=c7b0b628cc094c62bbdc7ebaab23b4a1;i=ec0e86;b=548937ef93884b32a3bff5ab6832da4d;m=24d435cb;t=5eb3e92b0d835;x=abccae9a8ba1535c
kernel:         6.0.2-301.fc37.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (7 frames)
 #0 llvm::MachineRegisterInfo::addRegOperandToUseList at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/lib/CodeGen/MachineRegisterInfo.cpp:282
 #1 llvm::MachineInstr::addRegOperandsToUseLists at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/lib/CodeGen/MachineInstr.cpp:158
 #2 llvm::ilist_traits<llvm::MachineInstr>::addNodeToList at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/lib/CodeGen/MachineBasicBlock.cpp:153
 #3 llvm::iplist_impl<llvm::simple_ilist<llvm::MachineInstr, llvm::ilist_sentinel_tracking<true> >, llvm::ilist_traits<llvm::MachineInstr> >::insert at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/include/llvm/ADT/ilist.h:230
 #4 llvm::MachineBasicBlock::insert at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/include/llvm/CodeGen/MachineBasicBlock.h:899
 #5 llvm::InstrEmitter::EmitMachineNode at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/lib/CodeGen/SelectionDAG/InstrEmitter.cpp:1069
 #6 llvm::InstrEmitter::EmitNode at /usr/src/debug/llvm-15.0.0-1.fc37.x86_64/lib/CodeGen/SelectionDAG/InstrEmitter.h:143

Comment 1 Matt Fagnani 2022-10-17 18:37:41 UTC
Created attachment 1918661 [details]
File: backtrace

Comment 2 Matt Fagnani 2022-10-17 18:37:42 UTC
Created attachment 1918662 [details]
File: core_backtrace

Comment 3 Matt Fagnani 2022-10-17 18:37:43 UTC
Created attachment 1918663 [details]
File: cpuinfo

Comment 4 Matt Fagnani 2022-10-17 18:37:44 UTC
Created attachment 1918664 [details]
File: dso_list

Comment 5 Matt Fagnani 2022-10-17 18:37:45 UTC
Created attachment 1918665 [details]
File: environ

Comment 6 Matt Fagnani 2022-10-17 18:37:46 UTC
Created attachment 1918666 [details]
File: exploitable

Comment 7 Matt Fagnani 2022-10-17 18:37:47 UTC
Created attachment 1918667 [details]
File: limits

Comment 8 Matt Fagnani 2022-10-17 18:37:48 UTC
Created attachment 1918668 [details]
File: maps

Comment 9 Matt Fagnani 2022-10-17 18:37:50 UTC
Created attachment 1918669 [details]
File: mountinfo

Comment 10 Matt Fagnani 2022-10-17 18:37:51 UTC
Created attachment 1918670 [details]
File: open_fds

Comment 11 Matt Fagnani 2022-10-17 18:37:52 UTC
Created attachment 1918671 [details]
File: proc_pid_status

Comment 12 Matt Fagnani 2022-10-17 19:45:53 UTC
I'm reassigning this report to llvm since the top 20 or so frames in the crashing thread are in llvm.

Comment 13 Tom Stellard 2023-10-14 03:34:17 UTC
Can you reproduce this in Fedora 38 ?

Comment 14 Matt Fagnani 2023-10-14 05:17:49 UTC
(In reply to Tom Stellard from comment #13)
> Can you reproduce this in Fedora 38 ?

This problem didn't happen in GNOME 45.0 in F39 when I right-clicked on the desktop and selected Change background a few times. I updated my installation to F39 a few weeks ago so it's easier for me to test it than F38 at this point. The ABRT Analytics page for this report only shows crashes for F37 https://retrace.fedoraproject.org/faf/reports/515598/

Comment 15 Matt Fagnani 2023-10-19 06:39:34 UTC
This problem didn't happen in GNOME 44.5 using the F38 Workstation live respin F38-WORK-x86_64-LIVE-20231016.iso from https://dl.fedoraproject.org/pub/alt/live-respins/ on bare metal on the same system when I right-clicked on the desktop and selected Change background a few times. When I ran /usr/libexec/gnome-control-center-print-renderer in Terminal, no crashes happened and the output was AMD Radeon R5 Graphics (carrizo, LLVM 16.0.6, DRM 3.54, 6.5.6-200.fc38.x86_64).

Comment 16 Tom Stellard 2023-10-20 19:24:51 UTC
I'm closing this bug since f37 will be retired soon and this is reported as working in f38 and f39,  Please re-open if you see the issue again on f38 or newer Fedora.


Note You need to log in before you can comment on or make changes to this bug.