Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65273

Summary: xorg-x11-6.8.0-r1 segfault with a particular /etc/hosts
Product: Gentoo Linux Reporter: Panard <panard>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Panard 2004-09-24 19:03:03 UTC
Very strange bug :
$ cat /etc/hosts
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#

127.0.0.1       localhost
192.168.1.18            sylvebarbe.work sylvebarbe
fec0:0:0:0cef::18       sylvebarbe.work sylvebarbe

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

$ X

X Window System Version 6.8.0
Release Date: 8 September 2004
X Protocol Version 11, Revision 0, Release 6.8
Build Operating System: Linux 2.6.8-gentoo-r4 i686 [ELF]
Current Operating System: Linux sylvebarbe 2.6.8-gentoo-r4 #1 SMP Wed Sep 15 15:19:53 CEST 2004 i686
Build Date: 25 September 2004
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 25 03:56:33 2004
(==) Using config file: "/etc/X11/xorg.conf"
Using vt 8
(WW) RADEON(0): Failed to set up write-combining range (0xe0000000,0x2000000)
Warning: font renderer for ".pcf" already registered at priority 0
Warning: font renderer for ".pcf.Z" already registered at priority 0
Warning: font renderer for ".pcf.gz" already registered at priority 0
Warning: font renderer for ".snf" already registered at priority 0
Warning: font renderer for ".snf.Z" already registered at priority 0
Warning: font renderer for ".snf.gz" already registered at priority 0
Warning: font renderer for ".bdf" already registered at priority 0
Warning: font renderer for ".bdf.Z" already registered at priority 0
Warning: font renderer for ".bdf.gz" already registered at priority 0
Warning: font renderer for ".pmf" already registered at priority 0

   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.

Fatal server error:
Caught signal 11.  Server aborting


Please consult the The X.Org Foundation support
         at http://wiki.X.Org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Erreur de segmentation

$ strace X
open("/etc/hosts", O_RDONLY)            = 11
fcntl64(11, F_GETFD)                    = 0
fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
fstat64(11, {st_mode=S_IFREG|0644, st_size=764, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x42d23000
read(11, "# /etc/hosts:  This file describ"..., 4096) = 764
close(11)                               = 0
munmap(0x42d23000, 4096)                = 0
open("/etc/hosts", O_RDONLY)            = 11
fcntl64(11, F_GETFD)                    = 0
fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
fstat64(11, {st_mode=S_IFREG|0644, st_size=764, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x42d23000
read(11, "# /etc/hosts:  This file describ"..., 4096) = 764
close(11)                               = 0
munmap(0x42d23000, 4096)                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 11
connect(11, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(11)                               = 0
open("/etc/host.conf", O_RDONLY)        = -1 ENOENT (No such file or directory)
open("/etc/hosts", O_RDONLY)            = 11
fcntl64(11, F_GETFD)                    = 0
fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
fstat64(11, {st_mode=S_IFREG|0644, st_size=764, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x42d23000
read(11, "# /etc/hosts:  This file describ"..., 4096) = 764
close(11)                               = 0
munmap(0x42d23000, 4096)                = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "fec0:0:0:cef::18", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
getsockname(11, {sa_family=AF_INET6, sin6_port=htons(32776), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
close(11)                               = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "fec0:0:0:cef::18", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
getsockname(11, {sa_family=AF_INET6, sin6_port=htons(32776), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
close(11)                               = 0
socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET6, sin6_port=htons(0), inet_pton(AF_INET6, "fec0:0:0:cef::18", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = 0
getsockname(11, {sa_family=AF_INET6, sin6_port=htons(32776), inet_pton(AF_INET6, "::1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, [28]) = 0
close(11)                               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.1.18")}, 16) = 0
getsockname(11, {sa_family=AF_INET, sin_port=htons(32776), sin_addr=inet_addr("192.168.1.18")}, [16]) = 0
close(11)                               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.1.18")}, 16) = 0
getsockname(11, {sa_family=AF_INET, sin_port=htons(32776), sin_addr=inet_addr("192.168.1.18")}, [16]) = 0
close(11)                               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
connect(11, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("192.168.1.18")}, 16) = 0
getsockname(11, {sa_family=AF_INET, sin_port=htons(32776), sin_addr=inet_addr("192.168.1.18")}, [16]) = 0
close(11)                               = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_IGN}, {0x8087200, [SEGV], SA_RESTART}, 8) = 0
write(2, "\n   *** If unresolved symbols we"..., 112
   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.
) = 112
write(0, "\n   *** If unresolved symbols we"..., 112) = 112
write(2, "\nFatal server error:\n", 21
Fatal server error:
) = 21
write(0, "\nFatal server error:\n", 21) = 21
write(2, "Caught signal 11.  Server aborti"..., 35Caught signal 11.  Server aborting
) = 35
write(0, "Caught signal 11.  Server aborti"..., 35) = 35
write(2, "\n", 1
)                       = 1
write(0, "\n", 1)                       = 1
write(2, "\nPlease consult the The X.Org Fo"..., 85
Please consult the The X.Org Foundation support
         at http://wiki.X.Org
 for help.
) = 85
write(0, "\nPlease consult the The X.Org Fo"..., 85) = 85
write(2, "Please also check the log file a"..., 84Please also check the log file at "/var/log/Xorg.0.log" for additional information.
) = 84
write(0, "Please also check the log file a"..., 84) = 84
write(2, "\n", 1
)                       = 1
write(0, "\n", 1)                       = 1
unlink("/tmp/.X0-lock")                 = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

If I change my /etc/hosts to :
$ cat /etc/hosts
# /etc/hosts:  This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.8 2003/08/04 20:12:25 azarah Exp $
#

127.0.0.1       localhost
192.168.1.18            sylvebarbe.work
fec0:0:0:0cef::18       sylvebarbe.work sylvebarbe

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

all is ok!

My system is ipv6 enabled.


Reproducible: Always
Steps to Reproduce:
1. add to /etc/hosts to lines like ( machine adress )
192.168.1.18            sylvebarbe.work sylvebarbe
fec0:0:0:0cef::18       sylvebarbe.work sylvebarbe
2. X -> segfault
3. change /etc/hosts to 
192.168.1.18            sylvebarbe.work
fec0:0:0:0cef::18       sylvebarbe.work sylvebarbe
4. X -> ok




Portage 2.0.51_rc1 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.2, 
glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686) 
================================================================= 
System uname: 2.6.8-gentoo-r4 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 
1.80GHz 
Gentoo Base System version 1.5.3 
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r4 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 
Headers:  sys-kernel/linux26-headers-2.6.8.1 
Libtools: sys-devel/libtool-1.5.2-r5 
ACCEPT_KEYWORDS="x86 ~x86" 
ACCEPT_LICENSE="" 
ALSA_CARDS="intel8x0" 
ANT_HOME="/usr/share/ant-core" 
ARCH="x86" 
AUTOCLEAN="yes" 
AUTO_SYMLINK="yes" 
BASH_ENV="/etc/spork/is/not/valid/profile.env" 
CC="gcc" 
CCACHE_SIZE="2G" 
CFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -pipe -fstack-protector" 
CHOST="i686-pc-linux-gnu" 
CLASSPATH="." 
CLEAN_DELAY="5" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /usr/kde/3/share/config/usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/X11/Sessions/ /etc/gconf /etc/terminfo /usr/X11R6/lib/X11/xkb/xkbcomp /etc/env.d" 
CVSROOT="/usr/local/cvsroot" 
CVS_RSH="ssh" 
CXX="g++" 
CXXFLAGS="-march=pentium4 -mfpmath=sse -msse2 -mmmx -O3 -pipe 
-fstack-protector" 
DCCC_PATH="/usr/lib/distcc/bin" 
DISTCC_DIR="/var/tmp/distccd" 
DISTCC_LOG="" 
DISTCC_VERBOSE="0" 
DISTDIR="/exports/usr/portage/distfiles" 
EDITOR="/usr/bin/vim" 
FEATURES="autoaddcvs ccache noinfo sandbox sfperms strict userpriv" 
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" 
GDK_USE_XFT="1" 
GENTOO_MIRRORS="ftp://ftp.gentoo.skynet.be/pub/gentoo/" 
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl 
ncurses" 
GUILE_LOAD_PATH="/usr/share/guile/1.6" 
G_BROKEN_FILENAMES="1" 
HOME="/root" 
HOSTNAME="sylvebarbe" 
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info" 
JAVAC="/opt/sun-jdk-1.5.0_rc1/bin/javac" 
JAVA_HOME="/opt/sun-jdk-1.5.0_rc1" 
JDK_HOME="/opt/sun-jdk-1.5.0_rc1" 
KBUILD_OUTPUT_PREFIX="" 
KDEDIR="/usr/kde/3.3" 
KDEDIRS="/usr" 
KDE_MALLOC="1" 
LADSPA_PATH="/usr/lib/ladspa" 
LANG="fr_FR@euro" 
LESS="-R" 
LESSOPEN="|lesspipe.sh %s" 
LINGUAS="fr" 
LINUX_PORTAGE_WRITABLE="no" 
LOGNAME="root" 
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:" 
MAIL="/var/mail/root" 
MAKEOPTS="-j2" 
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man:/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man::/opt/sun-jdk-1.5.0_rc1/man:/usr/qt/3/man:/usr/qt/3/doc/man:/opt/vmware/man:/opt/sun-jdk-1.5.0_rc1/man:/usr/qt/3/man:/usr/qt/3/doc/man:/opt/vmware/man" 
MOZILLA_FIVE_HOME="/usr/lib/mozilla" 
NOCOLOR="false" 
OMNIORB_CONFIG="/etc/omniorb/omniORB.cfg" 
PAGER="/usr/bin/less" 
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4:/opt/Acrobat5:/usr/X11R6/bin:/opt/sun-jdk-1.5.0_rc1/bin:/opt/sun-jdk-1.5.0_rc1/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/opt/vmware/bin:~/sbin" 
PKGDIR="/exports/usr/portage/packages" 
PORTAGE_ARCHLIST="alpha amd64 arm hppa ia64 macos mips ppc ppc64 ppc-macos 
s390 sparc x86 x86-obsd x86-fbsd" 
PORTAGE_BINHOST_CHUNKSIZE="3000" 
PORTAGE_CALLER="emerge" 
PORTAGE_GID="250" 
PORTAGE_MASTER_PID="17279" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/exports/usr/portage" 
PORTDIR_OVERLAY="/exports/usr/local/portage" 
PRELINK_PATH="" 
PRELINK_PATH_MASK="/usr/lib/wine:/usr/lib/valgrind:/opt" 
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\w \$ \[\033[00m\]" 
PWD="/root" 
QMAKESPEC="linux-g++" 
QTDIR="/usr/qt/3" 
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" 
RPMDIR="/usr/portage/rpm" 
RSYNC_RETRIES="3" 
RSYNC_TIMEOUT="180" 
SANE_CONFIG_DIR="/etc/sane.d" 
SGML_CATALOG_FILES="/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-lite.cat" 
SHELL="/bin/bash" 
SHLVL="1" 
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage" 
TERM="xterm" 
USE="X Xaw3d aalib acpi acpi4linux alsa amd apache2 apm arts artswrappersuid 
avi berkdb bitmap-fonts bonobo cdr clanJavaScript clanVoice crypt cups curl 
directfb dvd encode ethereal fbcon fbdev flac flash foomaticdb gd gdbm gif 
gimpprint gphoto2 gpm gtk gtk2 gtkhtml guile idl imagemagick imlib innodb ipv6 
ipv6arpa jit joystick jpeg kde kerberos ldap libg++ libwww mad mbox mikmod mng 
motif mozilla moznocompose moznoirc moznomail mpeg mysql nas ncurses nls odbc 
oggvorbis opengl oss pam pcmcia pdflib perl pg-hier pg-intdatetime 
pg-vacuumdelay png pnp postgres ppds python qt quicktime radeon readline ruby 
samba sasl scannersdk sdl slang spell ssl svga tcltk tcpd tetex tiff truetype 
unicode usb v4l videos wmf x86 xchattext xine xml xml2 xmms xprint xv xvid 
zlib video_cards_radeon linguas_fr" 
USER="root" 
USERLAND="GNU" 
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS" 
VIDEO_CARDS="radeon" 
XARGS="xargs -r" 
XINITRC="/etc/X11/xinit/xinitrc" 
XLIB_SKIP_ARGB_VISUALS="1" 
_="/usr/bin/emerge"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-09-25 17:41:17 UTC
Could you file a bug at bugs.freedesktop.org on this?
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-05 17:55:26 UTC
Please reopen when something's committed upstream to fix it. Thanks.