Bug 434261

Summary: Updates released on 10.03.2021 terminate session
Product: [KDE Neon] neon Reporter: Riccardo Robecchi <sephiroth_pk>
Component: Packages User EditionAssignee: Neon Bugs <neon-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: jr, neon-bugs-null, sitter, watisthispoo
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: term.log from apt full-upgrade today user edition
dpkg.log from full-upgrade upgrade today
Logs
syslog excerpt

Description Riccardo Robecchi 2021-03-10 23:12:32 UTC
SUMMARY
I found a round of updates to Neon available today. I installed them through Discover. Much to my surprise, the session was terminated near the end of the update process. The same happened when I updated another computer and a tablet, so this does not seem like an incident specific to a single machine. I suspect this has to do with SDDM, which was part of the round of updates.

STEPS TO REPRODUCE
1. Update packages

OBSERVED RESULT
The session is terminated with no warning.

EXPECTED RESULT
The session continues normally.

SOFTWARE/OS VERSIONS
Linux: KDE Neon
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
This problem seems to affect both X.org and Wayland.
Comment 1 Harald Sitter 2021-03-12 10:29:46 UTC
I've failed to reproduce this on a number of different user edition installation.

Upload /var/log/dpkg.log and /var/log/apt/term.log I guess, perhaps they contain a lead.
Comment 2 Jonathan Riddell 2021-03-12 10:39:01 UTC
Created attachment 136605 [details]
term.log from apt full-upgrade today user edition

term.log from apt full-upgrade today
Comment 3 Jonathan Riddell 2021-03-12 10:39:20 UTC
Created attachment 136606 [details]
dpkg.log from full-upgrade upgrade today
Comment 4 Jonathan Riddell 2021-03-12 10:39:37 UTC
I did an apt full-upgrade today on user edition and it did log me out and restart Plasma.
Comment 5 Riccardo Robecchi 2021-03-12 10:47:31 UTC
Created attachment 136609 [details]
Logs

Here are the two files as requested (compressed for convenience). Please note the files come from my tablet, on which I installed KDE Neon User Edition on the very same day as the bug showing up. The only change to configuration I made was to set up my WiFi network, I haven't even installed additional software yet so the system can be considered as close to vanilla as possible.
Comment 6 nttkde 2021-03-12 14:29:24 UTC
Created attachment 136610 [details]
syslog excerpt

I noticed the session termination too. I'm using KDE Neon User edition.

I attached a syslog excerpt (a few irrelevant lines of personal info removed).
It starts from packagekitd preparing sddm, then somewhere after it's making settings for sddm, x11 dies and systemd stops sddm. packagekitd finishes installing sddm and sddm is started again.
Comment 7 Jonathan Riddell 2021-03-12 15:36:53 UTC
Seems debhelper wanted to restart SDDM for no good reason.  We jigged the postinst script and today's update of SDDM can be installed without problem.  Sorry for the breakage, thanks for the report.