Bug 446053 - Several times switch of user session type between wayland and x11 leads to crash of plasmashell
Summary: Several times switch of user session type between wayland and x11 leads to cr...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: 5.23.3
Platform: Manjaro Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2021-11-24 23:38 UTC by pveax
Modified: 2022-02-11 04:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pveax 2021-11-24 23:38:21 UTC
IMPORTANT NOTE

I select `plasmashell`'s closest (newest possible) version in the `*Version` list to what I have, but I was USING the newer (still absent in the list) version:
```
~/Desktop ❯ plasmashell -v       
plasmashell 5.23.80
```
`plasmashell` is owned by `plasma-workspace`.
The GIT COMMIT HASH of the `plasma-workspace` is `81bb5ae6a`.

SUMMARY

Sometimes plasmashell crashes while doing (x11 <-> wayland) switch.

STEPS TO REPRODUCE

I did several times switch between user session types of wayland and x11, than `plasmashell` crashed. I see such bug earlier at least for 3 months in a row. So it is not the brand new bug.
Please note, that I did about 5 full cycle (x11 <-> wayland) switches. All that switches I did within a single PC boot up, did not reboot PC between them. I saw no any visual problems: all switches works fine. But only by logs I saw:
```
~/Desktop ❯ journalctl -b -p3 | grep -iE "dumped|gpu|crash|hang"
Nov 25 01:13:27 pc systemd-coredump[10936]: Process 10927 (plasmashell) of user 1000 dumped core.
                                            Found module libKF5Crash.so.5 with build-id: 57a05e1c2e20581835cb791cd6852ce27b256c56
Nov 25 01:13:28 pc systemd-coredump[10947]: Process 10943 (xdg-desktop-por) of user 1000 dumped core.
                                            Found module libKF5Crash.so.5 with build-id: 57a05e1c2e20581835cb791cd6852ce27b256c56
Nov 25 01:13:29 pc systemd-coredump[10932]: Process 10392 (plasmashell) of user 1000 dumped core.
                                            Found module libdrm_amdgpu.so.1 with build-id: 587ec7f42cd8e6298ef2bf769df3a9417be90103
                                            Found module libKF5Crash.so.5 with build-id: 57a05e1c2e20581835cb791cd6852ce27b256c56
                                            #1  0x00007fa04e7b946c _ZN6KCrash19defaultCrashHandlerEi (libKF5Crash.so.5 + 0x546c)
~/Desktop ❯ 
```

Here I reported the first one crash of mentioned queue (from `Nov 25 01:13:27`).

LOGGED RESULT

`plasmashell` crash

EXPECTED RESULT

No any crash while switching user session type

SOFTWARE/OS VERSIONS

```
Operating System: Manjaro Linux
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Kernel Version: 5.15.4-2-MANJARO (64-bit)
Graphics Platform: Wayland

Processors: 4 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
```

`sddm` git hash commit is `6a7d25f`.

ADDITIONAL INFORMATION

Severity was chosen above crash, cause the process do not crash itself, but crash even other process.

Backtrace with no debugging symbols :(

```
~/Desktop ❯ gdb /usr/bin/plasmashell core.plasmashell.1000.61425207cf014933b79d1b466f03bab9.10927.1637792007000000
GNU gdb (GDB) 11.1
Copyright (C) 2021 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-pc-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 /usr/bin/plasmashell...
(No debugging symbols found in /usr/bin/plasmashell)
[New LWP 10927]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/bin/plasmashell'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f7c72447d22 in raise () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007f7c72447d22 in raise () from /usr/lib/libc.so.6
#1  0x00007f7c72431862 in abort () from /usr/lib/libc.so.6
#2  0x00007f7c7287d910 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
#3  0x00007f7c72e78155 in QGuiApplicationPrivate::createPlatformIntegration() () from /usr/lib/libQt5Gui.so.5
#4  0x00007f7c72e78661 in QGuiApplicationPrivate::createEventDispatcher() () from /usr/lib/libQt5Gui.so.5
#5  0x00007f7c72aad137 in QCoreApplicationPrivate::init() () from /usr/lib/libQt5Core.so.5
#6  0x00007f7c72e7b673 in QGuiApplicationPrivate::init() () from /usr/lib/libQt5Gui.so.5
#7  0x00007f7c737ad3ca in QApplicationPrivate::init() () from /usr/lib/libQt5Widgets.so.5
#8  0x000055f378ecbf0f in ?? ()
#9  0x00007f7c72432b25 in __libc_start_main () from /usr/lib/libc.so.6
#10 0x000055f378eccf4e in ?? ()
(gdb) 
```

Now for the `sddm` (which was not crashed) in the same core dump:

```
~/Desktop ❯ gdb /usr/bin/sddm core.plasmashell.1000.61425207cf014933b79d1b466f03bab9.10927.1637792007000000
GNU gdb (GDB) 11.1
Copyright (C) 2021 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-pc-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 /usr/bin/sddm...
(No debugging symbols found in /usr/bin/sddm)

warning: core file may not match specified executable file.
[New LWP 10927]
Core was generated by `/usr/bin/plasmashell'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f7c72447d22 in ?? ()
(gdb) bt
#0  0x00007f7c72447d22 in ?? ()
#1  0x0000000000000400 in ?? ()
#2  0x00007f7c724969e8 in ?? ()
#3  0x00007f7c72b8e05f in ?? ()
#4  0x00007f7c733082cb in ?? ()
#5  0x00007fffa2bf8950 in ?? ()
#6  0x0000000000000060 in ?? ()
#7  0x0000000000000060 in ?? ()
#8  0x00007f7c71555033 in ?? ()
#9  0x00000000000003a0 in ?? ()
#10 0x000055f37a5620a0 in ?? ()
#11 0x0000003000000030 in ?? ()
#12 0x00007fffa2bf8928 in ?? ()
#13 0x00007fffa2bf8820 in ?? ()
#14 0xdb25486ad6148400 in ?? ()
#15 0x0000003e0000003a in ?? ()
#16 0x000055f37a561bd8 in ?? ()
#17 0xfffffffe7fffffff in ?? ()
#18 0xffffffffffffffff in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0xffffffffffffffff in ?? ()
#21 0xffffffffffffffff in ?? ()
#22 0xffffffffffffffff in ?? ()
#23 0xffffffffffffffff in ?? ()
#24 0xffffffffffffffff in ?? ()
#25 0xffffffffffffffff in ?? ()
#26 0xffffffffffffffff in ?? ()
#27 0xffffffffffffffff in ?? ()
#28 0xffffffffffffffff in ?? ()
#29 0xffffffffffffffff in ?? ()
#30 0xffffffffffffffff in ?? ()
#31 0xffffffffffffffff in ?? ()
#32 0xffffffffffffffff in ?? ()
#33 0x000000000000037b in ?? ()
#34 0xdb25486ad6148400 in ?? ()
#35 0x00007fffa2bf8950 in ?? ()
#36 0x00007f7c72431862 in ?? ()
#37 0x0000000000000020 in ?? ()
#38 0x00007f7c72b8e05f in ?? ()
#39 0x00007f7c733082cb in ?? ()
#40 0x00007fffa2bf8950 in ?? ()
#41 0x0000000000000001 in ?? ()
#42 0x00007f7c724969e8 in ?? ()
--Type <RET> for more, q to quit, c to continue without paging--
#43 0x00007f7c72b8e0ab in ?? ()
#44 0x00007f7c72b8e05f in ?? ()
#45 0x00007f7c72b8e09c in ?? ()
#46 0x0000000000000001 in ?? ()
#47 0x0000000000000000 in ?? ()
(gdb) 
```

Now for the `sddm-greeter` (which was not crashed) in the same core dump:

```
~/Desktop ❯ gdb /usr/bin/sddm-greeter core.plasmashell.1000.61425207cf014933b79d1b466f03bab9.10927.1637792007000000
GNU gdb (GDB) 11.1
Copyright (C) 2021 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-pc-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 /usr/bin/sddm-greeter...
(No debugging symbols found in /usr/bin/sddm-greeter)

warning: core file may not match specified executable file.
[New LWP 10927]
Core was generated by `/usr/bin/plasmashell'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f7c72447d22 in ?? ()
(gdb) bt
#0  0x00007f7c72447d22 in ?? ()
#1  0x0000000000000400 in ?? ()
#2  0x00007f7c724969e8 in ?? ()
#3  0x00007f7c72b8e05f in ?? ()
#4  0x00007f7c733082cb in ?? ()
#5  0x00007fffa2bf8950 in ?? ()
#6  0x0000000000000060 in ?? ()
#7  0x0000000000000060 in ?? ()
#8  0x00007f7c71555033 in ?? ()
#9  0x00000000000003a0 in ?? ()
#10 0x000055f37a5620a0 in ?? ()
#11 0x0000003000000030 in ?? ()
#12 0x00007fffa2bf8928 in ?? ()
#13 0x00007fffa2bf8820 in ?? ()
#14 0xdb25486ad6148400 in ?? ()
#15 0x0000003e0000003a in ?? ()
#16 0x000055f37a561bd8 in ?? ()
#17 0xfffffffe7fffffff in ?? ()
#18 0xffffffffffffffff in ?? ()
#19 0xffffffffffffffff in ?? ()
#20 0xffffffffffffffff in ?? ()
#21 0xffffffffffffffff in ?? ()
#22 0xffffffffffffffff in ?? ()
#23 0xffffffffffffffff in ?? ()
#24 0xffffffffffffffff in ?? ()
#25 0xffffffffffffffff in ?? ()
#26 0xffffffffffffffff in ?? ()
#27 0xffffffffffffffff in ?? ()
#28 0xffffffffffffffff in ?? ()
#29 0xffffffffffffffff in ?? ()
#30 0xffffffffffffffff in ?? ()
#31 0xffffffffffffffff in ?? ()
#32 0xffffffffffffffff in ?? ()
#33 0x000000000000037b in ?? ()
#34 0xdb25486ad6148400 in ?? ()
#35 0x00007fffa2bf8950 in ?? ()
#36 0x00007f7c72431862 in ?? ()
#37 0x0000000000000020 in ?? ()
#38 0x00007f7c72b8e05f in ?? ()
#39 0x00007f7c733082cb in ?? ()
#40 0x00007fffa2bf8950 in ?? ()
#41 0x0000000000000001 in ?? ()
#42 0x00007f7c724969e8 in ?? ()
--Type <RET> for more, q to quit, c to continue without paging--
#43 0x00007f7c72b8e0ab in ?? ()
#44 0x00007f7c72b8e05f in ?? ()
#45 0x00007f7c72b8e09c in ?? ()
#46 0x0000000000000001 in ?? ()
#47 0x0000000000000000 in ?? ()
(gdb) 
```

SYSTEM DETAILS

I have no any discrete GPU device (board, chip), only iGPU on CPU die (`i5-8250U`)
```
~/Desktop ❯ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
```
```
~/Desktop ❯ hwinfo --gfxcard
17: PCI 02.0: 0300 VGA compatible controller (VGA)              
  [Created at pci.386]
  Unique ID: _Znp.Dn+GRd09B9B
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Device Name: "Onboard IGD"
  Model: "Intel UHD Graphics 620"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x5917 "UHD Graphics 620"
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x2112 
  Revision: 0x07
  Driver: "i915"
  Driver Modules: "i915"
  Memory Range: 0x2ffe000000-0x2ffeffffff (rw,non-prefetchable)
  Memory Range: 0x2f80000000-0x2fbfffffff (ro,non-prefetchable)
  I/O Ports: 0xf000-0xf03f (rw)
  Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
  IRQ: 131 (923410 events)
  Module Alias: "pci:v00008086d00005917sv00008086sd00002112bc03sc00i00"
  Driver Info #0:
    Driver Status: i915 is active
    Driver Activation Cmd: "modprobe i915"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

Primary display adapter: #17
~/Desktop ❯
```

---

Again that `??`. But I can't compile packages on my low power PC for many hours in order to get debug symbols of all packages involved.

Nate, other KDE teammates, can you confirm, please: does my (or any other) crash reports are useless without debugging symbols?
This could save your and my time: to do not to: collect info, post report and read such possible garbage.

Thank you!
Comment 1 Nate Graham 2022-01-12 17:52:20 UTC
(In reply to pveax from comment #0)
> Again that `??`. But I can't compile packages on my low power PC for many
> hours in order to get debug symbols of all packages involved.
> 
> Nate, other KDE teammates, can you confirm, please: does my (or any other)
> crash reports are useless without debugging symbols?
> This could save your and my time: to do not to: collect info, post report
> and read such possible garbage.
> 
> Thank you!
I'm afraid the backtraces are useless without debug symbols, yeah.

Since you compile plasma from source, you have to do that part yourself. Please feel free to do so and then mark this as REPORTED again once you do so. Thanks!
Comment 2 Bug Janitor Service 2022-01-27 04:37:55 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 3 Bug Janitor Service 2022-02-11 04:37:32 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!