Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1938274 - autostart destop file cannot be autostarted
Summary: autostart destop file cannot be autostarted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lxsession
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedFreezeException
Depends On:
Blocks: F34BetaFreezeException
TreeView+ depends on / blocked
 
Reported: 2021-03-12 16:45 UTC by Mamoru TASAKA
Modified: 2021-03-18 20:38 UTC (History)
4 users (show)

Fixed In Version: lxsession-0.5.5-6.D20210130git8543c00a.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-18 20:38:46 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mamoru TASAKA 2021-03-12 16:45:07 UTC
Description of problem:
With Fedora 34 LXDE, programs which are expected to be launched automatically specified by autostart desktop files
(such as /usr/share/gnome/autostart/libcanberra-login-sound.desktop) won't launch after LXDE session starts.

Further investigation shows that "lxsession-xdg-autostart" program (in lxsession), which is expected to parse desktop files and launch programs accordingly, is segfaulting.


Version-Release number of selected component (if applicable):

lxsession-0.5.5-6.D20210130git8543c00a.fc35.x86_64
glib2-2.67.5-1.fc34.x86_64


How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:
$ gdb ./lxsession-xdg-autostart 
GNU gdb (GDB) Fedora 10.1-7.fc34
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./lxsession-xdg-autostart...
(gdb) r
Starting program: /home/tasaka1/rpmbuild/fedora-specific/LXDE/lxsession/rawhide/lxsession-0.5.5/lxsession/xdg-autostart/lxsession-xdg-autostart 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
g_key_file_locale_is_interesting (locale=0x555555569940 "ja_JP", key_file=0x555555568800) at ../glib/gkeyfile.c:1241
1241	  for (i = 0; key_file->locales[i] != NULL; i++)
Missing separate debuginfos, use: dnf debuginfo-install libffi-3.1-28.fc34.x86_64 pcre-8.44-3.fc34.1.x86_64
(gdb) bt
#0  g_key_file_locale_is_interesting (locale=0x555555569940 "ja_JP", key_file=0x555555568800) at ../glib/gkeyfile.c:1241
#1  g_key_file_parse_key_value_pair (error=0x7fffffffcc40, length=<optimized out>, line=<optimized out>, key_file=0x555555568800)
    at ../glib/gkeyfile.c:1427
#2  g_key_file_parse_line (error=0x7fffffffcc38, length=<optimized out>, line=<optimized out>, key_file=0x555555568800)
    at ../glib/gkeyfile.c:1273
#3  g_key_file_flush_parse_buffer (key_file=key_file@entry=0x555555568800, error=error@entry=0x7fffffffcca0) at ../glib/gkeyfile.c:1542
#4  0x00007ffff7ebdd3c in g_key_file_parse_data
    (key_file=0x555555568800, data=0x7fffffffcda0 "\n[Desktop Entry]\nType=Application\nName=GNOME Login Sound\nExec=/usr/bin/canberra-gtk-play --id=\"desktop-login\" --description=\"GNOME Login\"\nOnlyShowIn=GNOME;\nAutostartCondition=GNOME /desktop/gnome/soun"..., length=384, error=0x7fffffffcd08) at ../glib/gkeyfile.c:1496
#5  0x00007ffff7ebdfb9 in g_key_file_load_from_fd
    (key_file=key_file@entry=0x555555568800, fd=fd@entry=3, flags=flags@entry=G_KEY_FILE_NONE, error=error@entry=0x7fffffffddf0)
    at ../glib/gkeyfile.c:857
#6  0x00007ffff7ebe0b4 in g_key_file_load_from_file
    (key_file=key_file@entry=0x555555568800, file=<optimized out>, flags=flags@entry=G_KEY_FILE_NONE, error=error@entry=0x0)
    at ../glib/gkeyfile.c:924
#7  0x00005555555567d1 in launch_autostart_file (desktop_id=<optimized out>, desktop_file=<optimized out>, kf=0x555555568800)
    at xdg-autostart/xdg-autostart.c:180
#8  0x00007ffff7ea94f8 in g_hash_table_foreach
    (hash_table=0x55555555b1e0 = {...}, func=0x5555555567a0 <launch_autostart_file>, user_data=0x555555568800) at ../glib/ghash.c:2065
#9  0x0000555555556af6 in xdg_autostart (de_name_arg=<optimized out>) at xdg-autostart/xdg-autostart.c:317
#10 0x0000555555556677 in lxsession_main_main (args_length1=<optimized out>, args=<optimized out>) at xdg-autostart/main.c:129
#11 main (argc=<optimized out>, argv=<optimized out>) at xdg-autostart/main.c:145
(gdb) p *key_file
$1 = {groups = 0x555555566b60 = {0x555555566b80, 0x555555566e20}, group_hash = 0x55555555b8c0 = {[0x555555569c20 "Desktop Entry"] = 0x555555566b80}, start_group = 0x555555566b80, 
  current_group = 0x555555566b80, parse_buffer = 0x555555566ba0, list_separator = 59 ';', flags = G_KEY_FILE_NONE, checked_locales = 1, locales = 0x0, ref_count = 1}


Expected results:
autostart programs should be launched properly


Additional info:
https://github.com/lxde/lxsession/pull/27

Comment 1 Fedora Update System 2021-03-12 16:47:08 UTC
FEDORA-2021-cced8e2033 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-cced8e2033

Comment 2 Fedora Blocker Bugs Application 2021-03-12 16:53:11 UTC
Proposed as a Freeze Exception for 34-beta by Fedora user mtasaka using the blocker tracking app because:

 Autostart programs are supposed to run properly on destop, Not working affects user usability seriously.

Comment 3 Fedora Update System 2021-03-12 18:57:20 UTC
FEDORA-2021-cced8e2033 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-cced8e2033`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-cced8e2033

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Adam Williamson 2021-03-13 03:01:56 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/306 , marking accepted.

Comment 5 Adam Williamson 2021-03-15 18:51:52 UTC
Can folks please test the LXDE from Beta RC2:

https://dl.fedoraproject.org/pub/alt/stage/34_Beta-1.2/Spins/x86_64/iso/Fedora-LXDE-Live-x86_64-34_Beta-1.2.iso

and confirm the fix, and add karma on the update if everything is OK? Thanks!

Comment 6 Fedora Update System 2021-03-18 20:38:46 UTC
FEDORA-2021-cced8e2033 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


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