From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: Problem logging in using GDM Date: Sat, 19 Oct 2019 23:24:54 +0200 Message-ID: <20191019212454.kbi7x3jcb4zw7kdv@pelzflorian.localdomain> References: <20191018163132.nixtlppamekqoqvy@rafflesia> <87pnisjvu7.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gnfpanrgi77lkfn2" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55320) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLwDb-00022f-1u for help-guix@gnu.org; Sat, 19 Oct 2019 17:25:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLwDZ-0007oO-Ex for help-guix@gnu.org; Sat, 19 Oct 2019 17:24:58 -0400 Received: from pelzflorian.de ([5.45.111.108]:54416 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLwDY-0007n6-Q8 for help-guix@gnu.org; Sat, 19 Oct 2019 17:24:57 -0400 Content-Disposition: inline In-Reply-To: <87pnisjvu7.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: help-guix@gnu.org --gnfpanrgi77lkfn2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 19, 2019 at 10:58:56PM +0200, Ricardo Wurmus wrote: > Other problems may include a failure to start some user services via > dbus. >=20 > This is tricky and frustrating. I hope someone here will come up with > an idea to make this more robust. >=20 When I was trying to debug a different GDM error , I patched gdm for debugging (see attachment): I had to add more g_debug calls to many places in the code so I could see where it went wrong. It was really ugly, but I do not know of a better way to debug GDM. Let=E2=80=99s hope it won=E2= =80=99t be necessary here and TTY1 output and /var/log/gdm/greeter.log and the like are enough. Regards, Florian --gnfpanrgi77lkfn2 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-testing-only-gdmtest.patch" >From 310c31c7a8a31159985bc5ffb696286c3d9c15db Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Sat, 19 Oct 2019 23:23:48 +0200 Subject: [PATCH] [testing only] gdmtest --- gnu/packages/gnome.scm | 1 + gnu/packages/patches/gdmtest.patch | 72 ++++++++++++++++++++++++++++++ gnu/services/xorg.scm | 5 ++- 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/gdmtest.patch diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index f17bd941cd..4ec668b3cf 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -5754,6 +5754,7 @@ libxml2.") (uri (string-append "mirror://gnome/sources/" name "/" (version-major+minor version) "/" name "-" version ".tar.xz")) + (patches (search-patches "gdmtest.patch" "gdm-CVE-2018-14424.patch")) (sha256 (base32 "15f7lz7z75krgbq8vb800afj96h8mw2fpy1s28za2911x5vgq0ak")))) diff --git a/gnu/packages/patches/gdmtest.patch b/gnu/packages/patches/gdmtest.patch new file mode 100644 index 0000000000..041a3b311d --- /dev/null +++ b/gnu/packages/patches/gdmtest.patch @@ -0,0 +1,72 @@ +--- old/daemon/gdm-local-display-factory.c 2019-06-17 19:12:51.080000000 +0200 ++++ daemon/gdm-local-display-factory.c 2019-06-20 20:30:10.677217240 +0200 +@@ -280,6 +280,7 @@ + } + gdm_display_store_remove (store, display); + ++ g_debug ("DDDDDDDDDISPLAY FinishED"); + /* if this is a local display, do a full resync. Only + * seats without displays will get created anyway. This + * ensures we get a new login screen when the user logs out, +@@ -297,6 +298,8 @@ + so that it doesn't get reused */ + gdm_display_store_remove (store, display); + ++ g_debug ("DDDDDDDDDISPLAY FAILED"); ++ + /* Create a new equivalent display if it was static */ + if (is_local) { + +@@ -573,6 +576,41 @@ + + g_return_val_if_fail (GDM_IS_LOCAL_DISPLAY_FACTORY (factory), FALSE); + ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ g_debug ("x/x/x/x/x/x/x/x/x/x"); ++ ++ ++ + store = gdm_display_factory_get_display_store (GDM_DISPLAY_FACTORY (factory)); + + g_signal_connect_object (G_OBJECT (store), +--- old/common/gdm-log.c 2019-06-17 19:12:50.916000000 +0200 ++++ common/gdm-log.c 2019-06-20 16:47:52.852000000 +0200 +@@ -130,7 +130,7 @@ + + initialized = TRUE; + +- g_log_set_default_handler (gdm_log_default_handler, NULL); ++ // g_log_set_default_handler (gdm_log_default_handler, NULL); + } + + void diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index 1d55e388a1..3932e7a47c 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -866,7 +866,7 @@ the GNOME desktop environment.") "WaylandEnable=false\n" "\n" "[debug]\n" - "#Enable=true\n" + "Enable=true\n" "\n" "[security]\n" "#DisallowTCP=true\n" @@ -904,8 +904,11 @@ the GNOME desktop environment.") (fork+exec-command (list #$(file-append (gdm-configuration-gdm config) "/bin/gdm")) + #:log-file "/var/log/gdm-debug" #:environment-variables (list (string-append + "G_MESSAGES_DEBUG=all") + (string-append "GDM_CUSTOM_CONF=" #$(gdm-configuration-file config)) (string-append -- 2.23.0 --gnfpanrgi77lkfn2--