Bug 2136390 - XcursorLibraryLoadCursor() goes into infinite loop
Summary: XcursorLibraryLoadCursor() goes into infinite loop
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: libXcursor
Version: 36
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Benjamin Tissoires
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-10-20 06:56 UTC by Teodor Potancok
Modified: 2023-05-25 15:41 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-05-25 15:41:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Teodor Potancok 2022-10-20 06:56:35 UTC
Description of problem:
Calling the function XcursorLibraryLoadCursor() in libXcursor.so.1 causes it to go into an infinite loop constantly calling XcursorScanTheme() and segfault. This affects Steam, KWrite, Konsole (or any other app that embeds it), the Cursors section of KDE system settings and some text fields in Dolphin.

Version-Release number of selected component (if applicable):
1.2.0-7.fc36

How reproducible:
Always on my system

Steps to Reproduce:
1. Open an affected app
2. Click the text field and press any key (Konsole, KWrite) or wait (Steam, KDE settings)
3. Observe

Actual results:
Konsole, KWrite: text field freezes (can't write anything), the rest is usable but crashes after a few seconds
Steam: doesn't launch
All: gdb and drkonqi show thousands of XcursorScanTheme() calls in the backtrace.

Expected results:
Steam launches, text fields are usable and don't crash the app

Additional info:

Comment 1 Teodor Potancok 2022-10-20 16:04:15 UTC
Figured out what might be the cause of this. There's a cyclical dependency between the icon themes `breeze` and `Papirus`. The fallback theme `default` inherits from `Adwaita` which in turn inherits from `Papirus`. This means any apps that use the default theme (or any other mentioned) will make XcursorScanTheme() go into infinite recursion and segfault.

Comment 2 Nicolas Fella 2022-10-20 18:14:49 UTC
Breeze doesn't explicitly inherit any theme, see https://invent.kde.org/plasma/breeze/-/blob/master/cursors/Breeze/Breeze/index.theme

Adwaita supposedly inheriting Papirus sounds very wrong, and isn't the case for the Adwaita on my disk, which only inherits hicolor

Comment 3 Ben Cotton 2023-04-25 18:06:22 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Ludek Smid 2023-05-25 15:41:32 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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