Make GDM *not* restart 504 times on failure

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • pelzflorian (Florian Pelz)
Owner
unassigned
Submitted by
pelzflorian (Florian Pelz)
Severity
normal

Debbugs page

pelzflorian (Florian Pelz) wrote 6 years ago
(address . bug-guix@gnu.org)
20190615061837.htgtcuvlav7chczc@pelzflorian.localdomain
If GDM does not start for whatever reason, it attempts to restart 504
more times which all fail and overwrite all five old logs. It
probably should not attempt to restart at all.

Regards,
Florian
Ludovic Courtès wrote 6 years ago
(name . pelzflorian (Florian Pelz))(address . pelzflorian@pelzflorian.de)(address . 36221@debbugs.gnu.org)
87pnnc1s7i.fsf@gnu.org
Hi,

"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:

Toggle quote (4 lines)
> If GDM does not start for whatever reason, it attempts to restart 504
> more times which all fail and overwrite all five old logs. It
> probably should not attempt to restart at all.

I think the auto-restart code that’s triggered is in GDM itself, no?

Ludo’.
pelzflorian (Florian Pelz) wrote 6 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 36221@debbugs.gnu.org)
20190620201401.htd7aht5gng4iwyh@pelzflorian.localdomain
On Mon, Jun 17, 2019 at 11:22:57AM +0200, Ludovic Courtès wrote:
Toggle quote (4 lines)
> "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:
> I think the auto-restart code that’s triggered is in GDM itself, no?
>

Yes, you are right, I did not expect that. GDM gets stuck in a
not-quite-endless loop of recreating its seat after Xorg failures, in
gdm-3.28.2/daemon/gdm-local-display-factory.c in “case
GDM_DISPLAY_FINISHED”, until after some 505 repetitions recreation
fails due to “WARNING **: 20:41:01.908: Could not start command
'/gnu/store/2sh9nh36fdh2k6l65q24154c2czq1v57-gdm-3.28.2/libexec/gdm-session-worker':
Too many open files”. I will investigate further if this happens on
newer GNOME and other distros as well.

Regards,
Florian
pelzflorian (Florian Pelz) wrote 6 years ago
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 36221-done@debbugs.gnu.org)
20190623172351.tvlvk5demgw7aba5@pelzflorian.localdomain
This is not a Guix bug. Closing.

Very many GDM restarts is what happens on Debian Stretch and Arch
(GNOME 3.32) as well after renaming /usr/share/xorg/modules, just like
it does on Guix. On Guix’ wip-gnome3.30 GDM fails in a different way;
maybe I will investigate further and then file a bug at GDM.

Regards,
Florian
Closed
Ludovic Courtès wrote 6 years ago
(name . pelzflorian (Florian Pelz))(address . pelzflorian@pelzflorian.de)(address . 36221-done@debbugs.gnu.org)
87blyne66z.fsf@gnu.org
"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:

Toggle quote (7 lines)
> This is not a Guix bug. Closing.
>
> Very many GDM restarts is what happens on Debian Stretch and Arch
> (GNOME 3.32) as well after renaming /usr/share/xorg/modules, just like
> it does on Guix. On Guix’ wip-gnome3.30 GDM fails in a different way;
> maybe I will investigate further and then file a bug at GDM.

Thanks for checking!

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 36221@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 36221
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help