Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 146293 - Segmentation fault when starting X (Xorg 7.0)
Summary: Segmentation fault when starting X (Xorg 7.0)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High critical
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-04 11:09 UTC by Sebastien Dejean
Modified: 2006-09-24 10:36 UTC (History)
0 users

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


Attachments
/etc/X11/xorg.conf (xorg.conf,2.56 KB, text/plain)
2006-09-04 11:10 UTC, Sebastien Dejean
Details
/var/log/Xorg.0.log (Xorg.0.log,43.86 KB, text/plain)
2006-09-04 11:11 UTC, Sebastien Dejean
Details
/var/log/Xorg.0.log (Xorg 7.1.1) (Xorg.0.log,24.03 KB, text/x-log)
2006-09-04 17:19 UTC, Sebastien Dejean
Details
/var/log/Xorg.0.log(2006-09-12) (Xorg.0.log,24.03 KB, text/x-log)
2006-09-12 15:35 UTC, Sebastien Dejean
Details
strace -f of 'startx' (startx_trace_2006-09-12.log.bz2,36.63 KB, application/octet-stream)
2006-09-12 15:42 UTC, Sebastien Dejean
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Dejean 2006-09-04 11:09:29 UTC
Everytime my X server is started, X causes a segfault.  KDM continues to run, but the X server crashes every time.  I am not sure what caused this to start, whether it was a specific package upgrade/install or not.  I restarted my computer because I had to change electrical outlets and next thing I know I have no X session starting.  I have tried both the prorietary nvidia drivers and the open source nv drivers and I receive the same result.  This is easily reproducible for me, all I have to do is try to start X and I get this error. I am including the relevant output of dmesg, /var/log/messages, /var/log/Xorg.0.log and emerge --info as well as the contents of my /etc/X11/xorg.conf.  Let my know if there is any more information I can provide.
Comment 1 Sebastien Dejean 2006-09-04 11:10:35 UTC
Created attachment 95985 [details]
/etc/X11/xorg.conf
Comment 2 Sebastien Dejean 2006-09-04 11:11:59 UTC
Created attachment 95988 [details]
/var/log/Xorg.0.log
Comment 3 Sebastien Dejean 2006-09-04 11:12:30 UTC
emerge --info:
Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa apache2 apm arts asf avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt cups dlloader doc dri dvd dvdr dvdread eds emboss emul-linux-x86 encode ffmpeg flac foomaticdb fortran gif gpm gstreamer gtk2 hal ieee1394 imlib ipv6 isdnlog jack java jpeg kde ldap lzw lzw-tiff mp3 mpeg ncurses nls nptl nptlonly nsplugin offensive ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection samba sdl session smp spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts type1-fontss unicode usb vorbis wmf xcomposite xinerama xml xmms xorg xpm xv xvid zeroconf zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Sebastien Dejean 2006-09-04 11:12:50 UTC
tail of /var/log/messages:
Sep  4 10:40:51 scylla kdm: :0[3055]: IO Error in XOpenDisplay
Sep  4 10:40:51 scylla kdm[3021]: X server for display :0 terminated unexpectedly
Sep  4 10:40:51 scylla kdm[3021]: Display :0 cannot be opened
Sep  4 10:40:51 scylla kdm[3021]: Unable to fire up local display :0; disabling.

tail of dmesg:
X[26444]: segfault at 00002b530fdb1dc4 rip 00002b530f911745 rsp 00007fff9d837fb0 error 4
Comment 5 Sebastien Dejean 2006-09-04 15:14:45 UTC
I also get this output when I try to use startx:

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.17-gentoo-r7 x86_64
Current Operating System: Linux scylla 2.6.17-gentoo-r7 #1 SMP Sun Sep 3 22:05:44 PDT 2006 x86_64
Build Date: 04 September 2006
        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: Mon Sep  4 15:13:24 2006
(==) Using config file: "/etc/X11/xorg.conf"

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

Backtrace:
0: X(xf86SigHandler+0x82) [0x477152]
1: /lib/libc.so.6 [0x2afda179a5d0]
2: X(NumMotionEvents+0x12) [0x440672]
3: X(CreateConnectionBlock+0x53) [0x432453]
4: X(main+0x65d) [0x432fad]
5: /lib/libc.so.6(__libc_start_main+0xf4) [0x2afda1788134]
6: X(FontFileCompleteXLFD+0xa1) [0x432089]

Fatal server error:
Caught signal 11.  Server aborting

XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 0 requests (0 known processed) with 0 events remaining.
Couldnt get a file descriptor referring to the console

Comment 6 Sebastien Dejean 2006-09-04 15:17:11 UTC
the "Couldnt get a file descriptor referring to the console" line is a result of me doing this over ssh so I can paste it in the bugzilla.  I get the same output from a virtual terminal running either as root or as a regular user.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-04 15:36:57 UTC
Please add to your package.keywords xorg-x11, xorg-server, all your drivers, mesa and mesa-progs, so you can test 7.1.
Comment 8 Sebastien Dejean 2006-09-04 15:58:07 UTC
(In reply to comment #7)
> Please add to your package.keywords xorg-x11, xorg-server, all your drivers,
> mesa and mesa-progs, so you can test 7.1.
> 

Will moving to 7.1 fix/resolve the issue?
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-04 16:03:56 UTC
(In reply to comment #8)
> Will moving to 7.1 fix/resolve the issue?

We won't know till you try it. =)
Comment 10 Sebastien Dejean 2006-09-04 17:19:12 UTC
Created attachment 96020 [details]
/var/log/Xorg.0.log (Xorg 7.1.1)

It didn't seem to work, this is the error I receive in dmesg:
X[26444]: segfault at 00002b530fdb1dc4 rip 00002b530f911745 rsp 00007fff9d837fb0 error 4

and in /var/log/messages:
Sep  4 17:12:56 scylla kdm: :0[26285]: IO Error in XOpenDisplay
Sep  4 17:12:56 scylla kdm[26281]: X server for display :0 terminated unexpectedly
Sep  4 17:12:56 scylla kdm[26281]: Display :0 cannot be opened
Sep  4 17:12:56 scylla kdm[26281]: Unable to fire up local display :0; disabling.
Comment 11 Joshua Baergen (RETIRED) gentoo-dev 2006-09-05 08:05:43 UTC
Since you have a decently fast system, I'd also recommend you run 'emerge -e xorg-x11', which will rebuild X and its requirements.

Are you running a framebuffer at all?
Comment 12 Sebastien Dejean 2006-09-05 10:21:54 UTC
No, i'm not running any framebuffer currently.  I will try the emerge -e xorg-x11 and see what happens
Comment 13 Sebastien Dejean 2006-09-12 15:35:55 UTC
Created attachment 96839 [details]
/var/log/Xorg.0.log(2006-09-12)

Sorry I took so long but it would seem that rebuild the entire dependency tree for xorg-x11 did not work.  I am posting my Xorg.0.log so you can see it, but i still get these errors: 

Backtrace:
0: /usr/bin/X(xf86SigHandler+0x71) [0x48bea1]
1: /lib/libc.so.6 [0x2b45ae9595d0]
2: /usr/lib64/xorg/modules/input/evdev_drv.so(EvdevAxesNew+0x6e2) [0x2b45af63a0e2]
3: /usr/lib64/xorg/modules/input/evdev_drv.so [0x2b45af638457]
4: /usr/lib64/xorg/modules/input/evdev_drv.so [0x2b45af639343]
5: /usr/lib64/xorg/modules/input/evdev_drv.so(evdevNewDriver+0x39) [0x2b45af639469]
6: /usr/lib64/xorg/modules/input/evdev_drv.so [0x2b45af638248]
7: /usr/bin/X(InitInput+0x17a) [0x45eafa]
8: /usr/bin/X(main+0x337) [0x430f27]
9: /lib/libc.so.6(__libc_start_main+0xf4) [0x2b45ae947134]
10: /usr/bin/X(FontFileCompleteXLFD+0xa1) [0x430339]

Fatal server error:
Caught signal 11.  Server aborting
Comment 14 Sebastien Dejean 2006-09-12 15:42:15 UTC
Created attachment 96840 [details]
strace -f of 'startx'

Also, I don't know if this helps at all, but I posted the output of strace -f startx
Comment 15 Joshua Baergen (RETIRED) gentoo-dev 2006-09-24 10:36:04 UTC
Give the new evdev revision (1.1.2-r1) a try.  It may fix your issue.

Re-open the bug when you've done so.