| Summary: | segfault at startup with a particular /etc/hosts file | ||
|---|---|---|---|
| Product: | xorg | Reporter: | Panard <panard> |
| Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | high | CC: | erik.andren, matthieu.herrb, roland.mainz |
| Version: | 6.8.0 | Keywords: | want-backtrace |
| Hardware: | x86 (IA32) | ||
| OS: | Linux (All) | ||
| URL: | http://bugs.gentoo.org/show_bug.cgi?id=65273 | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
starting with the 6.8.99.14 snapshot, on linux systems, the X server can print its own backtrace when it crashes. please confirm that these bugs are still valid with 6.8.99.14 or later, and if they are please attach a the server log from the crash. I'm closing this bug as the reporter has failed to post a log or equivalent for the last 8 months. Please reopen if you still suffer from this bug. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Very strange bug : $ cat /etc/hosts 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 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 then all is ok! My system is ipv6 enabled. Shortcut : 1. add to /etc/hosts following lines ( change with your host ip and name ) 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 I'm using gentoo, xorg-x11-6.8.0-r1 ebuild, compiled with gcc 3.4.2 and CFLAGS="-O2 -march=i686 -pipe" I can provide more debug ( like a longer strace ) if you ask to me.