Bug 355717 - kcm cursortheme crashes on circular inherits in themes
Summary: kcm cursortheme crashes on circular inherits in themes
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_mouse (show other bugs)
Version: 5.4.3
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-22 06:44 UTC by Markus
Modified: 2018-12-01 03:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2015-11-22 06:44:15 UTC
If you want Breeze to inherit missing icons from the Tango theme and the Tango theme to inherit missing Icons from the Breeze theme the cursortheme module from systemsettings will crash:

gdb --args kcmshell5 cursortheme
Program received signal SIGBUS, Bus error.
0x00007ffff3a3e7a4 in __GI__IO_setb () from /lib64/libc.so.6
(gdb) bt
#0  0x00007ffff3a3e7a4 in __GI__IO_setb () from /lib64/libc.so.6
#1  0x00007ffff3a30c96 in __GI__IO_file_doallocate () from /lib64/libc.so.6
#2  0x00007ffff3a3e845 in __GI__IO_doallocbuf () from /lib64/libc.so.6
#3  0x00007ffff3a3d9d4 in __GI__IO_file_underflow () from /lib64/libc.so.6
#4  0x00007ffff3a3e8ce in __GI__IO_default_uflow () from /lib64/libc.so.6
#5  0x00007ffff3a32704 in __GI__IO_getline_info () from /lib64/libc.so.6
#6  0x00007ffff3a3164f in fgets () from /lib64/libc.so.6
#7  0x00007fffe43853a8 in _XcursorThemeInherits () from /usr/lib64/libXcursor.so.1
#8  0x00007fffe438581b in XcursorScanTheme () from /usr/lib64/libXcursor.so.1
#9  0x00007fffe4385872 in XcursorScanTheme () from /usr/lib64/libXcursor.so.1
#10 0x00007fffe4385872 in XcursorScanTheme () from /usr/lib64/libXcursor.so.1
#11 0x00007fffe4385872 in XcursorScanTheme () from /usr/lib64/libXcursor.so.1
#12 0x00007fffe4385872 in XcursorScanTheme () from /usr/lib64/libXcursor.so.1

The bt from gdb will give you more then 60.000 lines of output (this is where is stopped bt). In normal use the systemsettings/cursortheme window will not be loaded completely and after a few seconds the systemsettings window will disappear.

Not sure if this is a KDE bug. At least you can not choose a cursortheme if you have themes that inherit each other.


Reproducible: Always

Steps to Reproduce:
1. Have four themes in /usr/share/themes: Adwaita, Tango, breeze, oxygen
2. Change inherits to:
Tango: breeze,gnome,hicolor
breeze: gnome,Tango,hicolor
oxygen: Adwaita,gnome,Tango,hicolor


Actual Results:  
Open systemsettings, go to workspace theme, select cursor theme. After a few seconds the systemsettings window will simply disappear.
If you remove breeze from the above example in the Tango theme "Inherits" field everything works fine.


Packagers that want to change the defaults should take care about circular inherits or the cursortheme module from systemsettings will crash.
Comment 1 Markus 2015-11-22 06:48:28 UTC
Small typo: It is /usr/share/icons ... not /usr/share/themes.
Comment 2 Andrew Crouthamel 2018-11-01 13:44:59 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2018-11-16 11:36:20 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2018-12-01 03:50:25 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!