After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701758 - permissive system bus config causes slow startup – "set slave bus name on parent: Timeout was reached"
permissive system bus config causes slow startup – "set slave bus name on par...
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: GDM maintainers
GDM maintainers
: 721089 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-06-06 19:44 UTC by Mantas Mikulėnas (grawity)
Modified: 2018-05-24 10:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix using an async ctor for the dbus proxy (2.86 KB, patch)
2014-01-05 11:54 UTC, Marc-Antoine Perennou
committed Details | Review

Description Mantas Mikulėnas (grawity) 2013-06-06 19:44:26 UTC
Posting a bug report just so it won't get forgotten...

When I start gdm, it hangs for ~30 seconds at text console before the login screen appears. Syslog has the following message:

Jun 06 22:02:04 rain gdm[1524316]: GdmDisplay: Setting slave bus name::1.8593 on display :0
Jun 06 22:02:29 rain gdm[1524316]: Failed to set slave bus name on parent: Timeout was reached

It seems that this only happens when the DBus system.conf is changed to be more permissive – I've changed mine to allow `dbus-monitor` to work, and apparently someone else has had the same problem too:

(halfline) i saw that on somone's machine yesterday for the first time
(halfline) it was because we modified his system.conf to be more lenient
(halfline) theory is gdm is doing some call on one side that the other
           side isn't set up for
(halfline) but it wasn't ever working before because of the security policy
(halfline) i didn't investigate it past seeing it though
(halfline) i can just confirm going back to a stock system.conf makes the
           problem go away
(grawity) halfline: dbus system.conf? yeah, I changed mine too since I
          needed `dbus-monitor --system` to work earlier...
(grawity) although I noticed in the same dbus-monitor that the parent
          apparently tries to call org.freedesktop.DBus.Properties.GetAll
	  ('org.gnome.DisplayManager.Slave') and never gets a reply to that...
(grawity) I kind of wonder if slave never replies because it's waiting for
          a reply from parent itself
(halfline) grawity: that's exactly the reason the other guy changed
           system.conf yesterday
(halfline) yea clearly a gdm bug of some sort, i just haven't spent time
           to figure out exactly what's going down

(I know very little about gdm architecture in general, but it does look like the slave calls SetSlaveBusName in the parent, gdm_dbus_slave_proxy_new_sync() in the parent calls Properties.GetAll in the slave, and the slave doesn't reply because it's waiting for a reply itself...)

3.8.1.1, also gdm-git 3.8.1.1+r22+g3f7ac6f
Comment 1 Lennart Poettering 2013-12-27 16:29:55 UTC
*** Bug 721089 has been marked as a duplicate of this bug. ***
Comment 2 Marc-Antoine Perennou 2014-01-05 11:54:42 UTC
Created attachment 265363 [details] [review]
Fix using an async ctor for the dbus proxy

This patch solves the problem for me.
Comment 3 Ray Strode [halfline] 2014-01-06 19:07:57 UTC
Comment on attachment 265363 [details] [review]
Fix using an async ctor for the dbus proxy

I've pushed this, but there's more to the story...We may be able to just drop the call entirely given it's blocked by security policy anyway.  Need to investigate more...
Comment 4 GNOME Infrastructure Team 2018-05-24 10:52:22 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gdm/issues/143.