Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76829 - x11-base/xorg-x11-6.8.1.901: Unable to switch to VT's, stopping gdm hangs system
Summary: x11-base/xorg-x11-6.8.1.901: Unable to switch to VT's, stopping gdm hangs system
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-05 16:22 UTC by FieldySnuts
Modified: 2005-05-25 04:12 UTC (History)
0 users

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


Attachments
Xorg.0.log , while xorg is running (Xorg.0.log,27.21 KB, text/plain)
2005-01-06 14:06 UTC, FieldySnuts
Details
Xorg config (XF86Config-nvidia,5.52 KB, text/plain)
2005-01-06 14:08 UTC, FieldySnuts
Details
-r4 retry failing at a patch (6200_all_6.8.0-fix-glxquerycontextinfo-libgl-segfault.patch-25249.out,4.54 KB, text/plain)
2005-01-09 15:45 UTC, FieldySnuts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FieldySnuts 2005-01-05 16:22:02 UTC
I am using x11-base/xorg-x11-6.8.1.901, but I have run into two problems.

The first problem is that I am unable to switch to VT's. The closest thing people could point me at was the DontVTSwitch option in ServerFlags, however the default is off. I Added it anyway, as off, and xorg refuses to start with that option.

The second problem is that when stopping gdm (xdm), my system hangs. I remerged gdm, and that did not solve the problem.

These two issues combined means once I've started gdm (xdm), I have no way to get to VT's.

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.4.1, glibc-2.3.4.20041006-r0, 2.6.10-grsec i686)
=================================================================
System uname: 2.6.10-grsec i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13
Automake: sys-devel/automake-1.8.5-r2,sys-devel/automake-1.5,sys-devel/automake-1.4_p6,sys-devel/automake-1.6.3,sys-devel/automake-1.7.9,sys-devel/automake-1.9.3
Binutils: sys-devel/binutils-2.15.92.0.2-r2
Headers:  sys-kernel/linux-headers-2.4.22
Libtools: sys-devel/libtool-1.5.10-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fstack-protector -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -mfpmath=sse,387"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fstack-protector -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -mfpmath=sse,387"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks notitles sandbox sfperms"
GENTOO_MIRRORS="ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.blueyonder.co.uk ftp://mirror.iawnet.sandia.gov/pub/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl alsa apm avi berkdb bitmap-fonts cdr chroot crypt dv dvd dvdr encode fam flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib java jpeg kde ldap libwww mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png pwdb python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tiff truetype xml2 xmms xv zlib"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-05 21:26:58 UTC
Cool. Let's get some useful info up here, like /var/log/xorg.0.log and xorg.conf. Does this work fine with 6.8.0-r4? xdm.log might be handy too, as well as the output of dmesg.
Comment 2 FieldySnuts 2005-01-06 14:04:14 UTC
Sure, logs incoming. Not really sure how to get useful logs when my system hangs due to xdm/gdm however. Conf file also incoming. I wasn't aware -r4 was in portage, I will give it a shot and report later tonight.
Comment 3 FieldySnuts 2005-01-06 14:06:45 UTC
Created attachment 47786 [details]
Xorg.0.log , while xorg is running
Comment 4 FieldySnuts 2005-01-06 14:08:10 UTC
Created attachment 47787 [details]
Xorg config

I have a symlink, /etc/X11/XF86Config , pointing at this file. Left over from
when i was swapping video cards and configs (long ago).
Comment 5 FieldySnuts 2005-01-06 14:11:27 UTC
I looked for {xdm,gdm}.log and do not have said file. There were however a series of log files under /var/log/gdm/, the only errors in any of them are this about two times each:

(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap

Perhaps this has something to do with it? Not familiar with XKB myself.
Comment 6 FieldySnuts 2005-01-06 14:32:13 UTC
Hm. I won't be testing -r4, fails to build here. Sorry.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-06 23:57:05 UTC
What's the build error?
Comment 8 FieldySnuts 2005-01-09 09:20:03 UTC
Last bit is the following:

+ i686-pc-linux-gnu-gcc -o ./libXaw.so.6.1~ -shared -Wl,-soname,libXaw.so.6 Actions.o AllWidgets.o AsciiSink.o AsciiSrc.o AsciiText.o Box.o Command.o Converters.o Dialog.o DisplayList.o Form.o Grip.o Label.o List.o MenuButton.o MultiSrc.o MultiSink.o OS.o Paned.o Panner.o Pixmap.o Porthole.o Repeater.o Scrollbar.o Simple.o SimpleMenu.o Sme.o SmeBSB.o SmeLine.o StripChart.o Text.o TextSink.o TextSrc.o TextAction.o TextPop.o TextTr.o Toggle.o Tree.o Vendor.o Viewport.o XawIm.o XawI18n.o XawInit.o -L../../exports/lib -lXmu -lXt -lSM -lICE -lXext -lX11 -lXt -lSM -lICE -lXext -lX11 -lc
+ rm -f libXaw.so.6
+ ln -s libXaw.so.6.1 libXaw.so.6
+ rm -f ../../exports/lib/libXaw.so.6
+ cd ../../exports/lib
+ ln -s ../../lib/Xaw6/libXaw.so.6 .
rm -f libXaw.so.6.1
mv -f libXaw.so.6.1~ libXaw.so.6.1
rm -f ../../exports/lib/libXaw.so.6.1
cd ../../exports/lib && ln -s ../../lib/Xaw6/libXaw.so.6.1 .
make[4]: *** [libXaw.so.6.1] Segmentation fault
make[4]: *** Deleting file `libXaw.so.6.1'
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/lib/Xaw6'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
make: *** [World] Error 2

Let me know if you would like the full merge log.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-09 15:08:20 UTC
Is that reproduceable at the exact same place?
Comment 10 FieldySnuts 2005-01-09 15:45:22 UTC
Odd, it isn't. This time around I got:

 *   6200_all_6.8.0-fix-glxquerycontextinfo-libgl-segfault.patch ...

 * Failed Patch: 6200_all_6.8.0-fix-glxquerycontextinfo-libgl-segfault.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/xorg-x11-6.8.0-r4/temp/6200_all_6.8.0-fix-glxquerycontextinfo-libgl-segfault.patch-25249.out

Attaching that file.
Comment 11 FieldySnuts 2005-01-09 15:45:57 UTC
Created attachment 48064 [details]
-r4 retry failing at a patch
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-09 15:54:45 UTC
Your CFLAGS are wack. Tone 'em down, rebuild sys-devel/patch and xorg-x11.
Comment 13 FieldySnuts 2005-01-09 16:05:55 UTC
Okay, did CFLAGS="-O2" emerge patch =x11-base/xorg-x11-6.8.0-r4 , and how it's failed in a different part of xorg:

make[4]: Entering directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/doc/man/GLU'
rm -f gluBeginCurve.man
ln -s begincurve.3gl gluBeginCurve.man
rm -f gluBeginPolygon.man
ln -s beginpolygon.3gl gluBeginPolygon.man
rm -f gluBeginSurface.man
ln -s beginsurface.3gl gluBeginSurface.man
rm -f gluBeginTrim.man
ln -s begintrim.3gl gluBeginTrim.man
rm -f gluBuild1DMipmaps.man
ln -s build1dmipmaps.3gl gluBuild1DMipmaps.man
rm -f gluBuild2DMipmaps.man
ln -s build2dmipmaps.3gl gluBuild2DMipmaps.man
rm -f gluCylinder.man
ln -s cylinder.3gl gluCylinder.man
make[4]: *** [gluCylinder.man] Segmentation fault
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/doc/man/GLU'
make[3]: *** [includes] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/doc/man'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc/doc'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.0-r4/work/xc'
make: *** [World] Error 2

*sigh* what's going on here? Thanks for your help.
Comment 14 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-09 17:03:02 UTC
What's going on is one or both of:
(a) Your CFLAGS are over-optimizing some CFLAGS-sensitive package and breaking it;
(b) You have bad hardware.

You might have more luck if you recompiled "system" with sane CFLAGS, even if you feel the need to use your current combination for other things.

One example of "sane":
CFLAGS="-O2 -march=athlon-xp -fstack-protector -fomit-frame-pointer -pipe"
Comment 15 FieldySnuts 2005-01-11 04:04:48 UTC
Welp I left the agressive CFLAGS on, however dropped back to kernel 2.6.7-grsec from 2.6.10-grsec. I had a lot of other whacky compilation problems, and realized  none of them happened before that switch.

I was able to compile -r4 this way, I'll be testing later.
Comment 16 FieldySnuts 2005-01-11 16:15:52 UTC
Okay Donnie, I am able to switch VT's in -r4. I did not change my config.

I did howerver drop back from kernel 2.6.10-grsec-20050107 to 2.6.7-grsec , I'm not really sure if it could be something between kernel 2.6.7 / 2.6.10 and/or grsecurity.

I have too many problems with 2.6.10-grblahblah at this time for me to consider testing, however.
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-25 04:12:06 UTC
Please reopen if this comes up again.