Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164667 - bad interaction between net-misc/networkmanager-0.6.4_pre20061028-r1 and Xorg
Summary: bad interaction between net-misc/networkmanager-0.6.4_pre20061028-r1 and Xorg
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-31 08:11 UTC by Adrian Frith
Modified: 2007-03-07 14:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Frith 2007-01-31 08:11:42 UTC
One of the patches introduced between networkmanager-0.6.4_pre20061028 and networkmanager-0.6.4_pre20061028-r1 (I guess it would be networkmanager-updatedbackend.patch) seems to cause NetworkManager to change the hostname when a network interface gets connected.

Problem is, if X originally started with one hostname (like localhost.localdomain) and the hostname suddenly changes to something else, the X server starts to refuse any new connections and the user can't open any new windows. Which is not good.

The only workaround, currently, seems to be to switch to console, run "hostname originalhostname" and switch back.

Reproducible: Always

Steps to Reproduce:
1. Start X with no network interfaces connected, with a hostname of "localhost".
2. Use NM to connect to an interface where the IP has a hostname not "localhost".
3. Attempt to open any new X window.
Actual Results:  
Nothing opens; X refuses connection because of mismatched hostnames.

Expected Results:  
Window should open.

Portage 2.1.2-r5 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 30 Jan 2007 21:30:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.leg.uct.ac.za/pub/linux/gentoo http://ftp.rucus.ru.ac.za http://ftp.heanet.ie/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_ZA.UTF-8"
LINGUAS="en_ZA en_GB en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://ftp.leg.uct.ac.za/gentoo-portage"
USE="X a52 aac acpi alsa apache2 avahi bash-completion beagle berkdb bitmap-fonts bluetooth bonobo branding bzip2 cairo calendar cddb cdparanoia cdr cli cracklib crypt cscope ctype cups dbus dga djvu dlloader doc dri dts dv dvd dvdread dvi eds encode esd evo exif fam ffmpeg firefox flac foomaticdb fortran ftp gb gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl iconv imap ipod ipv6 isdnlog jabber java javascript joystick jpeg junit ldap libg++ libgda libnotify maildir mbox midi mime mmap mmx mng mono mp3 mpeg ncurses nls nntp nptl nptlonly nsplugin offensive ogg opengl pam pcmcia pcntl pcre pda pdf perl plotutils png posix postgres ppds pppd python quicktime rdesktop readline recode reflection ruby samba sdl session slp snmp soap sockets speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg symlink sysvipc tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode usb videos vim vim-syntax vorbis wifi win32codecs wmf x264 x86 xine xinerama xml xmlrpc xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_ZA en_GB en" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2007-01-31 14:13:36 UTC
steev@sigma ~ % cat /etc/dhcp/dhclient.conf
send host-name "sigma";
supersede host-name "sigma";


works for me to keep it.  This will happen on any dhcp server that sends you a hostname.  you should replace sigma in the above to whatever your hostname is.
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2007-03-04 20:39:15 UTC
Did that help Adrian?  
Comment 3 Adrian Frith 2007-03-07 14:11:06 UTC
(In reply to comment #2)
> Did that help Adrian?  

I'm afraid I'm currently running Ubuntu and not Gentoo; but as far as I can recall that did in fact fix my problem when I was still on Gentoo. Thanks!