Debian Bug report logs - #904125
systemd: system startup stops unless root logs in in text mode

version graph

Package: src:qtbase-opensource-src; Maintainer for src:qtbase-opensource-src is Debian Qt/KDE Maintainers <[email protected]>;

Reported by: Ara Keary <[email protected]>

Date: Fri, 20 Jul 2018 06:33:02 UTC

Severity: important

Tags: fixed-upstream, upstream, wontfix

Merged with 898021, 898092

Found in version qtbase-opensource-src/5.10.1+dfsg-7

Forwarded to https://bugreports.qt.io/browse/QTBUG-69555

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], Debian systemd Maintainers <[email protected]>:
Bug#904125; Package systemd. (Fri, 20 Jul 2018 06:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Ara Keary <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Debian systemd Maintainers <[email protected]>. (Fri, 20 Jul 2018 06:33:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Ara Keary <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: systemd: system startup stops unless root logs in in text mode
Date: Fri, 20 Jul 2018 08:31:09 +0200
[Message part 1 (text/plain, inline)]
Package: systemd
Version: 239-6
Severity: important

Dear maintainers,

since upgrading to systemd 239-6, my systems stops during startup, at a text
mode login prompt. Switching to other consoles with alt+ctrl+F1-8 gives no
graphical manager.

As soon as i log in as root, the system continues starting up and goes to the
graphical login manager (of kde).

In the syslog entry below, i log in as root at 07:51:58 ; before that nothing
happens (apart from timesyncd noise). I tried this several times and it is
reproducible: root login in text mode is mandatory for systemd to finish
startup.

(Note that the text login is not an "emergency" login after a crash).

Best,

Ara
________________________


excerpt of /var/log/syslog :

Jul 20 07:51:21 hp-zb-psm systemd[1]: Reloaded OpenBSD Secure Shell server.
Jul 20 07:51:22 hp-zb-psm avahi-daemon[1150]: Server startup complete. Host
name is hp-zb-psm.local. Local service cookie is 3715862264.
Jul 20 07:51:35 hp-zb-psm systemd-timesyncd[605]: Timed out waiting for reply
from 94.23.0.110:123 (2.debian.pool.ntp.org).
Jul 20 07:51:46 hp-zb-psm systemd-timesyncd[605]: Timed out waiting for reply
from 94.23.254.175:123 (2.debian.pool.ntp.org).
Jul 20 07:51:56 hp-zb-psm systemd-timesyncd[605]: Timed out waiting for reply
from 149.202.97.123:123 (2.debian.pool.ntp.org).
Jul 20 07:51:58 hp-zb-psm systemd[1]: Created slice User Slice of UID 0.
Jul 20 07:51:58 hp-zb-psm systemd[1]: Created slice system-
user\x2druntime\x2ddir.slice.
Jul 20 07:51:58 hp-zb-psm systemd[1]: Started /run/user/0 mount wrapper.
Jul 20 07:51:58 hp-zb-psm systemd[1]: Starting User Manager for UID 0...
Jul 20 07:51:58 hp-zb-psm systemd[1]: Started Session 1 of user root.
Jul 20 07:51:58 hp-zb-psm systemd[1205]:
/usr/lib/environment.d/99-environment.conf:2: invalid variable name "export
GTK_IM_MODULE", ignoring.
Jul 20 07:51:58 hp-zb-psm systemd[1205]:
/usr/lib/environment.d/99-environment.conf:3: invalid variable name "export
QT_IM_MODULE", ignoring.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Listening on GnuPG cryptographic agent
(ssh-agent emulation).
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Reached target Paths.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Reached target Timers.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Listening on GnuPG network certificate
management daemon.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Listening on GnuPG cryptographic agent
and passphrase cache (restricted).
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Listening on GnuPG cryptographic agent
and passphrase cache (access for web browsers).
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Listening on GnuPG cryptographic agent
and passphrase cache.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Starting D-Bus User Message Bus
Socket.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Listening on D-Bus User Message Bus
Socket.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Reached target Sockets.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Reached target Basic System.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Reached target Default.
Jul 20 07:51:58 hp-zb-psm systemd[1205]: Startup finished in 349ms.
Jul 20 07:51:58 hp-zb-psm systemd[1]: Started User Manager for UID 0.



-- Package-specific info:

-- System Information:
Debian Release: buster/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'),
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser          3.117
ii  libacl1          2.2.52-3+b1
ii  libapparmor1     2.12-5
ii  libaudit1        1:2.8.3-1+b1
ii  libblkid1        2.32-0.1
ii  libc6            2.27-5
ii  libcap2          1:2.25-1.2
ii  libcryptsetup12  2:2.0.3-6
ii  libgcrypt20      1.8.3-1
ii  libgnutls30      3.5.19-1
ii  libgpg-error0    1.32-1
ii  libidn11         1.33-2.2
ii  libip4tc0        1.6.2-1
ii  libkmod2         25-1
ii  liblz4-1         1.8.2-1
ii  liblzma5         5.2.2-1.3
ii  libmount1        2.32-0.1
ii  libpam0g         1.1.8-3.7
ii  libseccomp2      2.3.3-3
ii  libselinux1      2.8-1+b1
ii  libsystemd0      239-6
ii  mount            2.32-0.1
ii  procps           2:3.3.15-2
ii  util-linux       2.32-0.1

Versions of packages systemd recommends:
ii  dbus            1.12.8-3
ii  libpam-systemd  239-6

Versions of packages systemd suggests:
ii  policykit-1        0.105-21
pn  systemd-container  <none>

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.131
ii  udev             239-6
[systemd-delta.txt (text/plain, attachment)]
[systemd-analyze-dump.txt (text/plain, attachment)]
[dsh-enabled.txt (text/plain, attachment)]
[fstab (text/plain, attachment)]

Information forwarded to [email protected], Debian systemd Maintainers <[email protected]>:
Bug#904125; Package systemd. (Fri, 20 Jul 2018 07:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Biebl <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian systemd Maintainers <[email protected]>. (Fri, 20 Jul 2018 07:03:02 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Michael Biebl <[email protected]>
To: Ara Keary <[email protected]>, [email protected]
Subject: Re: Bug#904125: systemd: system startup stops unless root logs in in text mode
Date: Fri, 20 Jul 2018 08:59:25 +0200
[Message part 1 (text/plain, inline)]
Am 20.07.2018 um 08:31 schrieb Ara Keary:
> Package: systemd
> Version: 239-6
> Severity: important
> 
> Dear maintainers,
> 
> since upgrading to systemd 239-6, my systems stops during startup, at a text
> mode login prompt. Switching to other consoles with alt+ctrl+F1-8 gives no
> graphical manager.
> 
> As soon as i log in as root, the system continues starting up and goes to the
> graphical login manager (of kde).

Is is sufficient if you simply wiggle the mouse or type random
characters for a while?

You might have a problem of not having enough entropy. There was a
recent kernel change in that regard.
https://lists.debian.org/debian-user/2018/05/msg00599.html
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898092

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to [email protected], Debian systemd Maintainers <[email protected]>:
Bug#904125; Package systemd. (Fri, 20 Jul 2018 08:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ara Keary <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian systemd Maintainers <[email protected]>. (Fri, 20 Jul 2018 08:33:03 GMT) (full text, mbox, link).


Message #15 received at [email protected] (full text, mbox, reply):

From: Ara Keary <[email protected]>
To: Michael Biebl <[email protected]>
Cc: [email protected]
Subject: Re: Bug#904125: systemd: system startup stops unless root logs in in text mode
Date: Fri, 20 Jul 2018 10:29:04 +0200
Hi,

>
> You might have a problem of not having enough entropy. There was a
> recent kernel change in that regard.
> https://lists.debian.org/debian-user/2018/05/msg00599.html
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898092
>

Indeed, typing random characters did the job: the system startup
continues after enough entropy is created,
thanks,

best,

Ara



Information forwarded to [email protected], Debian systemd Maintainers <[email protected]>:
Bug#904125; Package systemd. (Fri, 20 Jul 2018 08:36:02 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Biebl <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian systemd Maintainers <[email protected]>. (Fri, 20 Jul 2018 08:36:02 GMT) (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: Michael Biebl <[email protected]>
To: Ara Keary <[email protected]>
Cc: [email protected]
Subject: Re: Bug#904125: systemd: system startup stops unless root logs in in text mode
Date: Fri, 20 Jul 2018 10:33:26 +0200
[Message part 1 (text/plain, inline)]
Am 20.07.2018 um 10:29 schrieb Ara Keary:
> Hi,
> 
>>
>> You might have a problem of not having enough entropy. There was a
>> recent kernel change in that regard.
>> https://lists.debian.org/debian-user/2018/05/msg00599.html
>> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898092
>>
> 
> Indeed, typing random characters did the job: the system startup
> continues after enough entropy is created,
> thanks,

Ok, thanks for confirming. Are you using kdm or sddm?
Is this a virtual machine?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to [email protected], Debian systemd Maintainers <[email protected]>:
Bug#904125; Package systemd. (Fri, 20 Jul 2018 08:48:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ara Keary <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian systemd Maintainers <[email protected]>. (Fri, 20 Jul 2018 08:48:03 GMT) (full text, mbox, link).


Message #25 received at [email protected] (full text, mbox, reply):

From: Ara Keary <[email protected]>
To: Michael Biebl <[email protected]>
Cc: [email protected]
Subject: Re: Bug#904125: systemd: system startup stops unless root logs in in text mode
Date: Fri, 20 Jul 2018 10:44:13 +0200
>> Indeed, typing random characters did the job: the system startup
>> continues after enough entropy is created,
>> thanks,
>
> Ok, thanks for confirming. Are you using kdm or sddm?
> Is this a virtual machine?
>
I'm using sddm, and booting the system normally (not on a virtual machine).

Best,
Ara



Information forwarded to [email protected], Debian systemd Maintainers <[email protected]>:
Bug#904125; Package systemd. (Fri, 20 Jul 2018 08:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Biebl <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian systemd Maintainers <[email protected]>. (Fri, 20 Jul 2018 08:54:03 GMT) (full text, mbox, link).


Message #30 received at [email protected] (full text, mbox, reply):

From: Michael Biebl <[email protected]>
To: Ara Keary <[email protected]>
Cc: [email protected]
Subject: Re: Bug#904125: systemd: system startup stops unless root logs in in text mode
Date: Fri, 20 Jul 2018 10:51:31 +0200
[Message part 1 (text/plain, inline)]
Control: reassign -1 sddm
Control: forcemerge 898092 -1

Am 20.07.2018 um 10:44 schrieb Ara Keary:
>>> Indeed, typing random characters did the job: the system startup
>>> continues after enough entropy is created,
>>> thanks,
>>
>> Ok, thanks for confirming. Are you using kdm or sddm?
>> Is this a virtual machine?
>>
> I'm using sddm, and booting the system normally (not on a virtual machine).

I'm going to reassign this issue to sddm and merge it with the existing
bug report.

VMs are typically more prone to have low entropy during bootup and there
are some mitigations for that (like installing something like haveged or
using virtio rng).

Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

[signature.asc (application/pgp-signature, attachment)]

Bug reassigned from package 'systemd' to 'sddm'. Request was from Michael Biebl <[email protected]> to [email protected]. (Fri, 20 Jul 2018 08:54:03 GMT) (full text, mbox, link).


No longer marked as found in versions systemd/239-6. Request was from Michael Biebl <[email protected]> to [email protected]. (Fri, 20 Jul 2018 08:54:04 GMT) (full text, mbox, link).


Added blocking bug(s) of 904125: 898021 Request was from Michael Biebl <[email protected]> to [email protected]. (Fri, 20 Jul 2018 08:54:05 GMT) (full text, mbox, link).


Marked as found in versions sddm/0.17.0-1. Request was from Michael Biebl <[email protected]> to [email protected]. (Fri, 20 Jul 2018 08:54:06 GMT) (full text, mbox, link).


Merged 898092 904125 Request was from Michael Biebl <[email protected]> to [email protected]. (Fri, 20 Jul 2018 08:54:08 GMT) (full text, mbox, link).


Bug reassigned from package 'sddm' to 'src:qtbase-opensource-src'. Request was from Ben Hutchings <[email protected]> to [email protected]. (Fri, 20 Jul 2018 10:57:04 GMT) (full text, mbox, link).


No longer marked as found in versions sddm/0.17.0-1. Request was from Ben Hutchings <[email protected]> to [email protected]. (Fri, 20 Jul 2018 10:57:06 GMT) (full text, mbox, link).


Marked as found in versions qtbase-opensource-src/5.10.1+dfsg-7. Request was from Ben Hutchings <[email protected]> to [email protected]. (Fri, 20 Jul 2018 10:57:07 GMT) (full text, mbox, link).


Removed blocking bug(s) of 904125: 898021 Request was from Ben Hutchings <[email protected]> to [email protected]. (Fri, 20 Jul 2018 10:57:12 GMT) (full text, mbox, link).


Merged 898021 898092 904125 Request was from Ben Hutchings <[email protected]> to [email protected]. (Fri, 20 Jul 2018 10:57:14 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://bugreports.qt.io/browse/QTBUG-69555'. Request was from Lisandro Damián Nicanor Pérez Meyer <[email protected]> to [email protected]. (Fri, 20 Jul 2018 13:21:04 GMT) (full text, mbox, link).


Added tag(s) upstream. Request was from Lisandro Damián Nicanor Pérez Meyer <[email protected]> to [email protected]. (Fri, 20 Jul 2018 13:27:05 GMT) (full text, mbox, link).


Message sent on to Ara Keary <[email protected]>:
Bug#904125. (Fri, 20 Jul 2018 13:39:07 GMT) (full text, mbox, link).


Message #57 received at [email protected] (full text, mbox, reply):

From: Lisandro Damián Nicanor Pérez Meyer <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Possible workaround
Date: Fri, 20 Jul 2018 10:36:18 -0300
[Message part 1 (text/plain, inline)]
Maxy (KDE/sddm maintainer) just suggested me to use haveged to workaround the 
issue.

From the Qt/sddm code this would certainly not affect security, as the problem 
lies in a hash structure used in the code. I can not vouch for other stuff in 
the machine.

I have not seen this bug so far, but if any of you can still reproduce it you 
might want to give this a try.

Cheers, Lisandro.

-- 
If little green men land in your back yard, hide any little green women
you've got in the house.
  Mike Harding, "The Armchair Anarchist's Almanac"

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian Qt/KDE Maintainers <[email protected]>:
Bug#904125; Package src:qtbase-opensource-src. (Fri, 20 Jul 2018 15:33:07 GMT) (full text, mbox, link).


Acknowledgement sent to Ara Keary <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <[email protected]>. (Fri, 20 Jul 2018 15:33:07 GMT) (full text, mbox, link).


Message #62 received at [email protected] (full text, mbox, reply):

From: Ara Keary <[email protected]>
To: Michael Biebl <[email protected]>, [email protected]
Cc: [email protected]
Subject: Re: Bug#904125: systemd: system startup stops unless root logs in in text mode
Date: Fri, 20 Jul 2018 17:29:47 +0200
> VMs are typically more prone to have low entropy during bootup and there
> are some mitigations for that (like installing something like haveged or
> using virtio rng).
>
Hi,
i confirm that installing haveged solves the issue (no need anymore to
produce hand-made entropy at startup)
best,
Ara



Added tag(s) wontfix. Request was from Lisandro Damián Nicanor Pérez Meyer <[email protected]> to [email protected]. (Fri, 20 Jul 2018 16:27:04 GMT) (full text, mbox, link).


Information forwarded to [email protected], Debian Qt/KDE Maintainers <[email protected]>:
Bug#904125; Package src:qtbase-opensource-src. (Mon, 23 Jul 2018 13:33:12 GMT) (full text, mbox, link).


Acknowledgement sent to Lisandro Damián Nicanor Pérez Meyer <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <[email protected]>. (Mon, 23 Jul 2018 13:33:12 GMT) (full text, mbox, link).


Message #69 received at [email protected] (full text, mbox, reply):

From: Lisandro Damián Nicanor Pérez Meyer <[email protected]>
To: [email protected], [email protected], [email protected], [email protected]
Subject: Status of this bug
Date: Mon, 23 Jul 2018 10:30:06 -0300
[Message part 1 (text/plain, inline)]
This has happened so far:

From the Debian side maxy added haveged as a sddm recommendation and as a 
workaround.

From the Qt side Thiago from upstream is trying to determine what changed in 
the kernel side, as this clearly started to happen with 4.16 and got worse 
with 4.17.

Ben, linux maintainers: if you could give us a hand to determine what changed 
from the kernel side it would be much much appreciated. If we find that there 
are valid changes then we might have an opportunity to make Qt upstreams 
reconsider the issue.

Cheers, Lisandro.

-- 
Sobre Argentina: "sé que es uno de los países mas hospitalarios del mundo"
 Albert Einstein

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian Qt/KDE Maintainers <[email protected]>:
Bug#904125; Package src:qtbase-opensource-src. (Mon, 23 Jul 2018 15:51:12 GMT) (full text, mbox, link).


Acknowledgement sent to Ben Hutchings <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <[email protected]>. (Mon, 23 Jul 2018 15:51:12 GMT) (full text, mbox, link).


Message #74 received at [email protected] (full text, mbox, reply):

From: Ben Hutchings <[email protected]>
To: Lisandro Damián Nicanor Pérez Meyer <[email protected]>, [email protected], [email protected], [email protected], [email protected]
Subject: Re: Status of this bug
Date: Mon, 23 Jul 2018 16:48:56 +0100
[Message part 1 (text/plain, inline)]
On Mon, 2018-07-23 at 10:30 -0300, Lisandro Damián Nicanor Pérez Meyer wrote:
> This has happened so far:
> 
> From the Debian side maxy added haveged as a sddm recommendation and as a 
> workaround.
> 
> From the Qt side Thiago from upstream is trying to determine what changed in 
> the kernel side, as this clearly started to happen with 4.16 and got worse 
> with 4.17.
> 
> Ben, linux maintainers: if you could give us a hand to determine what changed 
> from the kernel side it would be much much appreciated. If we find that there 
> are valid changes then we might have an opportunity to make Qt upstreams 
> reconsider the issue.

CVE-2018-1108 was fixed in the kernel.

Ben.

-- 
Ben Hutchings
Anthony's Law of Force: Don't force it, get a larger hammer.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to [email protected], Debian Qt/KDE Maintainers <[email protected]>:
Bug#904125; Package src:qtbase-opensource-src. (Mon, 23 Jul 2018 15:54:05 GMT) (full text, mbox, link).


Acknowledgement sent to Lisandro Damián Nicanor Pérez Meyer <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <[email protected]>. (Mon, 23 Jul 2018 15:54:05 GMT) (full text, mbox, link).


Message #79 received at [email protected] (full text, mbox, reply):

From: Lisandro Damián Nicanor Pérez Meyer <[email protected]>
To: Ben Hutchings <[email protected]>
Cc: [email protected], [email protected], [email protected], [email protected]
Subject: Re: Status of this bug
Date: Mon, 23 Jul 2018 12:51:09 -0300
On Mon, 23 Jul 2018 at 12:49, Ben Hutchings <[email protected]> wrote:
> CVE-2018-1108 was fixed in the kernel.

Thanks Ben!!!!


-- 
Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/



Added tag(s) fixed-upstream. Request was from [email protected] to [email protected]. (Thu, 26 Jul 2018 17:24:24 GMT) (full text, mbox, link).


Removed tag(s) fixed-upstream. Request was from [email protected] to [email protected]. (Mon, 05 Apr 2021 17:21:10 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from [email protected] to [email protected]. (Mon, 24 May 2021 17:21:10 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 15:28:50 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.