Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577002 - sys-apps/systemd Transient Hostname causes GNOME crashes and other havoc
Summary: sys-apps/systemd Transient Hostname causes GNOME crashes and other havoc
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo systemd Team
Depends on:
Reported: 2016-03-10 21:45 UTC by Rok Kralj
Modified: 2016-03-12 14:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Rok Kralj 2016-03-10 21:45:50 UTC
Q: When does it occur?

A: When I connect to specific Wi-Fi. Apparently the transient hostname gets set to "unknown" + some random string.

~/w/a git:(master) ✗ hostnamectl
   Static hostname: rok-laptop
Transient hostname: unknownc417fe03cb97
         Icon name: computer-laptop
           Chassis: laptop

Q: What does it cause?

1. GNOME does sometimes crash. No logs anywhere, the graphical environment just crashes, dropping you to the virtual terminal. I am positive this is the cause of this, because this has happened over 100 times, everytime with that Wi-Fi.

2. Java starts reporting UnknownHostException. unknownc417fe03cb97: unknownc417fe03cb97: unknown error

Q: Does anybody have any idea?
Comment 1 Mike Gilbert gentoo-dev 2016-03-11 01:54:21 UTC
Yeah, changing the hostname is known to cause issues with X11.

You can set UseHostname=false in your networkd config to prevent that from happening.
Comment 2 Rok Kralj 2016-03-11 08:38:55 UTC
Sadly, I have done that months ago, the sitiation is exactly the same:

# cat /etc/systemd/network/ 

Even if it worked, it should be by default set to false.
Comment 3 Rok Kralj 2016-03-11 09:12:03 UTC
I have finally realised that match should be wl* not en*. Thanks. But anyways, I think this should be off by default, given the harsh consequences, therefore I will just leave this open.

Thanks again.
Comment 4 Mike Gilbert gentoo-dev 2016-03-12 04:37:15 UTC
That's a battle to be fought with systemd upstream.
Comment 5 Rok Kralj 2016-03-12 07:21:04 UTC
Gentoo can provide more sensible default config files. X11 crashes are not OK.
Comment 6 Mike Gilbert gentoo-dev 2016-03-12 14:06:03 UTC
As far as I can tell, the only way to configure networkd is via *.network files in /etc/systemd/network. Gentoo does not ship any network files by default, and it would be inappropriate to do so.

Anyway, I suspect your crashes are occurring due to entries in ~/.Xauthority which are tied to your hostname. I have not found any reasonable solution we could implement as a Linux distro.