Bug 18791 - SDDM segfaults - error 4 in libQt5Core.so.5.6.0 [was: Sorry but the graphical server failed to start (or words to that effect) then it starts after another 4 seconds]
Summary: SDDM segfaults - error 4 in libQt5Core.so.5.6.0 [was: Sorry but the graphical...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: release_blocker normal
Target Milestone: ---
Assignee: KDE maintainers
QA Contact: Samuel Verschelde
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-25 01:23 CEST by Barry Jackson
Modified: 2016-12-02 14:14 CET (History)
5 users (show)

See Also:
Source RPM: sddm, qt5
CVE:
Status comment:


Attachments
journal.txt (265.99 KB, text/plain)
2016-06-25 14:12 CEST, Barry Jackson
Details
journal.txt #2 (230.03 KB, text/plain)
2016-07-23 21:33 CEST, Frédéric "LpSolit" Buclin
Details
journal output 24-7-2016 (245.42 KB, text/plain)
2016-07-24 02:06 CEST, Barry Jackson
Details

Description Barry Jackson 2016-06-25 01:23:18 CEST
Description of problem:
In a clean cauldron net install the "Sorry but graphical server could not be started...." message that ends in "Good Luck :) " appears and then after a short delay (~4 secs) the sddm login screen appears and nothing is wrong.

This is disconcerting and needs to be fixed.

Not sure how to get the required logs from journalctl magic :\

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Marja Van Waes 2016-06-25 13:45:11 CEST
(In reply to Barry Jackson from comment #0)

> 
> Not sure how to get the required logs from journalctl magic :\
> 

just do, as root, after having logged in with sddm:

  journalctl -ab > journal.txt

and attach journal.txt to this bug report.

Keywords: (none) => NEEDINFO
CC: (none) => marja11

Comment 2 Barry Jackson 2016-06-25 14:12:34 CEST
Created attachment 8070 [details]
journal.txt
Comment 3 Marja Van Waes 2016-06-25 17:32:59 CEST
Display server stopped 4 times:

Jun 25 09:43:21 localhost sddm[1490]: Display server stopped.

Jun 25 09:43:23 localhost sddm[1490]: Display server stopped.

Jun 25 09:43:28 localhost sddm[3329]: Display server stopped.

Jun 25 09:43:32 localhost sddm[3571]: Display server stopped.




And there are sddm segfaults:

Jun 25 09:43:30 localhost kernel: sddm[3329]: segfault at 0 ip 00007f0f71847e73 sp 00007ffc32c1ef10 error 4 in libQt5Core.so.5.6.0[7f0f715a9000+4a9000]

and

Jun 25 09:43:33 localhost kernel: sddm[3571]: segfault at 0 ip 00007f68dd085e73 sp 00007ffda679ab20 error 4 in libQt5Core.so.5.6.0[7f68dcde7000+4a9000]


Assigning to sddm & its maintainer

Keywords: NEEDINFO => (none)
Assignee: bugsquad => mageia
Source RPM: (none) => sddm

Comment 4 Marja Van Waes 2016-06-25 17:36:51 CEST
although it's a qt5 library that segfaults :-/ ...

Source RPM: sddm => sddm, qt5

Comment 5 Rémi Verschelde 2016-06-28 11:09:33 CEST
I got similar issues on my old cauldron before I reinstalled it a few days ago. It happened only with kernel 4.6.x, but not with kernel 4.6.0 RC6 that I had been mistakenly using for a while.

Now I can no longer reproduce it in a freshly installed cauldron, but I'll keep my eyes open :)
Comment 6 Barry Jackson 2016-06-28 17:37:49 CEST
I just made a clean net-install of plasma to test for this (and other bugs) and this is still there.
Comment 7 Frédéric "LpSolit" Buclin 2016-07-23 21:27:38 CEST
duplicate of bug 17653 (or vice versa)?
Comment 8 Frédéric "LpSolit" Buclin 2016-07-23 21:33:11 CEST
Created attachment 8241 [details]
journal.txt #2

FYI, I see exactly the same errors as in comment 3 on real hardware, with Mga6-sta1 and newer. Maybe is the GUI trying to start before another service is initialized, which would explain why the GUI finally appears after a few seconds?
Frédéric "LpSolit" Buclin 2016-07-23 21:33:17 CEST

CC: (none) => LpSolit

Comment 9 Thomas Backlund 2016-07-23 21:50:27 CEST
Please check you have a fully updated system, so theese packages are installed:

initscripts-9.55-21.mga6
plymouth-0.9.2-5.mga6
sddm-0.13.0-6.mga6
xinitrc-2.4.21-17.mga6

CC: (none) => tmb

Comment 10 Frédéric "LpSolit" Buclin 2016-07-23 22:30:28 CEST
(In reply to Thomas Backlund from comment #9)
> Please check you have a fully updated system, so theese packages are
> installed:
> 
> initscripts-9.55-21.mga6
> plymouth-0.9.2-5.mga6
> sddm-0.13.0-6.mga6
> xinitrc-2.4.21-17.mga6

Yes, fully updated, and that's the versions I have.
Comment 11 Barry Jackson 2016-07-24 01:54:48 CEST
Yes still same here:
[baz@jackodesktop ~]$ rpm -q initscripts plymouth sddm xinitrc
initscripts-9.55-21.mga6
plymouth-0.9.2-5.mga6
sddm-0.13.0-6.mga6
xinitrc-2.4.21-17.mga6
Comment 12 Barry Jackson 2016-07-24 02:06:24 CEST
Created attachment 8243 [details]
journal output 24-7-2016

journal output 24/7/2016 fully updated.
Comment 13 Marja Van Waes 2016-07-28 08:09:37 CEST
(In reply to Barry Jackson from comment #12)
> Created attachment 8243 [details]
> journal output 24-7-2016
> 
> journal output 24/7/2016 fully updated.

Jul 24 00:44:23 jackodesktop kernel: sddm[3596]: segfault at 80000004 ip 0000000080000004 sp 00007fff3aed17b8 error 14
Jul 24 00:44:16 jackodesktop kernel: sddm[1603]: segfault at 0 ip 00007fddd0c3ec43 sp 00007ffe2ef8e330 error 4 in libQt5Core.so.5.6.1[7fddd099e000+4ab000]

Maybe I was wrong to think that the "error 14 in sddm" segfaults are a different bug than the "error 4 in libQt5Core.so.5.6.1" ones, so that this would be a dup of bug 17653, after all?

Summary: Sorry but the graphical server failed to start (or words to that effect) then it starts after another 4 seconds => SDDM segfaults - error 4 in libQt5Core.so.5.6.0 [was: Sorry but the graphical server failed to start (or words to that effect) then it starts after another 4 seconds]

Comment 14 Frédéric "LpSolit" Buclin 2016-07-28 14:43:19 CEST
I wonder if this bug has already been fixed in Qt 5.7 as such problems have already been reported in Qt 5.6, see e.g. https://bugs.kde.org/show_bug.cgi?id=348194#c20.
Comment 15 Frédéric "LpSolit" Buclin 2016-08-09 17:43:40 CEST
As said in bug 18822 comment 60, switching to LXDM or LightDM (using drakdm) and then switching back to SDDM fixes this issue. Barry, can you confirm?
Comment 16 Barry Jackson 2016-08-09 21:26:37 CEST
Yes, I confirm that installing the lxdm package (it was not installed), switching to it in MCC and using it once fixes this.

Removing the lxdm package (and theme) then makes no difference, SDDM continues to work without the segfaults.

My installation was a net-install later than the isos and I have another with this issue that was installed much later than the last isos.
Comment 17 Barry Jackson 2016-08-09 22:50:18 CEST
I did a clean net-install of plasma, installed lxdm but did not yet use it.
I then made a copy of /etc as /etc_bak.
I then set LXDM in MCC as DM and used it once.
I then set DM back to SDDM and rebooted.
I then took a diff of /etc against the original bakup.

[baz@localhost ~]$ su
Password: 
[root@localhost baz]# diff -ur /etc /etc_bak
Only in /etc: .pwd.lock
Only in /etc/sysconfig: desktop
Binary files /etc/sysconfig/harddrake2/previous_hw and /etc_bak/sysconfig/harddrake2/previous_hw differ
Only in /etc: .updated

[root@localhost baz]# cd /etc

[root@localhost etc]# cat .updated
This file was created by systemd-update-done. Its only 
purpose is to hold a timestamp of the time this directory
was updated. See systemd-update-done.service(8).

[root@localhost etc]# cat /etc/sysconfig/desktop
DISPLAYMANAGER=SDDM
[root@localhost etc]#

/etc/sysconfig/desktop had DISPLAYMANAGER=LXDM after changing to LXDM and =SDDM after changing back, but /etc/sysconfig/desktop did not exist from fresh install.

I will try removing /etc/sysconfig/desktop to see if issue re-appears.
Comment 18 Barry Jackson 2016-08-09 22:57:19 CEST
Bingo! \o/

Yes removing /etc/sysconfig/desktop restores the issue.

So the problem seems to be that a clean install of plasma with SDDM does not create /etc/sysconfig/desktop with DISPLAYMANAGER=SDDM
Comment 19 Rémi Verschelde 2016-08-10 10:19:24 CEST
You rock Barry :D
It's crazy that a missing line like that lets SDDM work nevertheless but with segfaults...

Assigning to Thierry, as I guess the installer needs to be fixed to write /etc/sysconfig/desktop.

CC: (none) => mageia
Assignee: mageia => thierry.vignaud

Rémi Verschelde 2016-08-10 10:19:34 CEST

Priority: Normal => release_blocker

Comment 20 Thierry Vignaud 2016-08-10 10:53:57 CEST
Are you kidding?
The segfault must be fixed!
As for autologin configuration, we current do not support sddm yet (which is covered by bug #17913 -- work in progress) so we rely on the generic autologin package for now.

Status: NEW => ASSIGNED
Assignee: thierry.vignaud => mageia

Comment 21 Rémi Verschelde 2016-08-10 10:58:26 CEST
I am obviously not kidding, but sorry if I offended you by my proposal to fix the issue as drakdm fixes it already. If we could fix the segfault instead (or more likely do both), that would of course be very welcome.
Comment 22 Nicolas Lécureuil 2016-08-10 11:20:28 CEST
i confirm that i had the "ooops" error and adding the desktop file fixed it for me too.
Comment 23 Barry Jackson 2016-08-15 21:10:00 CEST
So should this be split into two bugs?

1. SDDM segfaults when /etc/sysconfig/desktop is missing

2. Plasma default installation is missing /etc/sysconfig/desktop
Samuel Verschelde 2016-08-25 16:22:45 CEST

Assignee: mageia => kde

Comment 24 Barry Jackson 2016-09-07 18:26:35 CEST
Still happens in nonfree net-install today.
Samuel Verschelde 2016-09-10 12:51:30 CEST

QA Contact: (none) => stormi

Comment 25 Rémi Verschelde 2016-10-18 10:21:38 CEST
@ Nicolas, any clue how to debug this sddm segfault now that we know how to reproduce it?

@ Thierry: Would the part about the missing /etc/sysconfig/desktop on SDDM installs be fixed already, or should it be split into a new bug report?

CC: (none) => thierry.vignaud

Comment 26 Thierry Vignaud 2016-10-19 17:45:47 CEST
/etc/sysconfig/desktop is a prefdm file generated by drakedm
It may or may not exist.
This shouldn't affect sddm.
If sddm segfaults when it doesn't exist, that's an sddm issue.
Comment 27 Nicolas Lécureuil 2016-11-06 15:45:08 CET
I think we should get rid of prefdm, this can fix this issue too.


Where is prefdm configurer in the installer ?
Comment 28 Thierry Vignaud 2016-11-06 17:17:52 CET
prefdm relies on /etc/sysconfig/desktop
Comment 29 Nicolas Lécureuil 2016-11-06 20:53:59 CET
yes but we need to get rid of prefdm ( it had been removed from systemd 230. We are one of the latest distribution to use it :/
Comment 30 Samuel Verschelde 2016-12-02 14:14:48 CET
Is fixed since latest systemd-unit update that made prefdm not conflict with plymouth. Please reopen if I was wrong.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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