I recently emerged gnome2, and since then GDM will no longer start as a service. After several attempts at starting X, GDM reports: "Failed to start the display server several times in a short time period; disabling display :0" Starting X from a root prompt works, and starting GDM from a root prompt by hand (executing gdm) works. Starting GDM as a service at startup, using the init.d script, or using "telinit a" produces the above failure.
Here is the emerge log that led to this situation. Most of the system was built with "-gnome" in the USE variables. This was removed, and an "emerge gnome" was executed: 1042575253: *** emerge gnome 1042575254: >>> emerge (1 of 35) x11-libs/libzvt-2.0.1-r2 to / 1042575383: >>> AUTOCLEAN: x11-libs/libzvt 1042575383: --- AUTOCLEAN: Nothing unmerged. 1042575383: ::: completed emerge (1 of 35) x11-libs/libzvt-2.0.1-r2 to / 1042575383: >>> emerge (2 of 35) x11-libs/libwnck-0.18 to / 1042575554: >>> AUTOCLEAN: x11-libs/libwnck 1042575554: --- AUTOCLEAN: Nothing unmerged. 1042575554: ::: completed emerge (2 of 35) x11-libs/libwnck-0.18 to / 1042575554: >>> emerge (3 of 35) gnome-base/libgtop-2.0.0-r1 to / 1042575756: >>> AUTOCLEAN: gnome-base/libgtop 1042575756: --- AUTOCLEAN: Nothing unmerged. 1042575756: ::: completed emerge (3 of 35) gnome-base/libgtop-2.0.0-r1 to / 1042575756: >>> emerge (4 of 35) gnome-extra/gnome-system-monitor-2.0.3 to / 1042575852: >>> AUTOCLEAN: gnome-extra/gnome-system-monitor 1042575852: --- AUTOCLEAN: Nothing unmerged. 1042575852: ::: completed emerge (4 of 35) gnome-extra/gnome-system-monitor-2.0.3 to / 1042575852: >>> emerge (5 of 35) dev-libs/glib-2.2.0 to / 1042576178: >>> AUTOCLEAN: dev-libs/glib 1042576184: >>> unmerge success: dev-libs/glib-2.0.7 1042576184: ::: completed emerge (5 of 35) dev-libs/glib-2.2.0 to / 1042576184: >>> emerge (6 of 35) dev-libs/atk-1.2.0 to / 1042576271: >>> AUTOCLEAN: dev-libs/atk 1042576276: >>> unmerge success: dev-libs/atk-1.0.3-r1 1042576277: ::: completed emerge (6 of 35) dev-libs/atk-1.2.0 to / 1042576277: >>> emerge (7 of 35) x11-libs/gtk+-2.2.0 to / 1042577839: >>> AUTOCLEAN: x11-libs/gtk+ 1042577847: >>> unmerge success: x11-libs/gtk+-2.0.9 1042577847: ::: completed emerge (7 of 35) x11-libs/gtk+-2.2.0 to / 1042577847: >>> emerge (8 of 35) x11-libs/xft-2.0.1 to / 1042577883: >>> AUTOCLEAN: x11-libs/xft 1042577883: --- AUTOCLEAN: Nothing unmerged. 1042577883: ::: completed emerge (8 of 35) x11-libs/xft-2.0.1 to / 1042577883: >>> emerge (9 of 35) x11-libs/pango-1.2.0 to / 1042578174: >>> AUTOCLEAN: x11-libs/pango 1042578179: >>> unmerge success: x11-libs/pango-1.0.5 1042578179: ::: completed emerge (9 of 35) x11-libs/pango-1.2.0 to / 1042578179: >>> emerge (10 of 35) sys-apps/eject-2.0.10 to / 1042578188: >>> AUTOCLEAN: sys-apps/eject 1042578188: --- AUTOCLEAN: Nothing unmerged. 1042578188: ::: completed emerge (10 of 35) sys-apps/eject-2.0.10 to / 1042578188: >>> emerge (11 of 35) net-nds/portmap-5b-r6 to / 1042578193: >>> AUTOCLEAN: net-nds/portmap 1042578193: --- AUTOCLEAN: Nothing unmerged. 1042578193: ::: completed emerge (11 of 35) net-nds/portmap-5b-r6 to / 1042578193: >>> emerge (12 of 35) app-admin/fam-oss-2.6.9 to / 1042578299: >>> AUTOCLEAN: app-admin/fam-oss 1042578299: --- AUTOCLEAN: Nothing unmerged. 1042578299: ::: completed emerge (12 of 35) app-admin/fam-oss-2.6.9 to / 1042578299: >>> emerge (13 of 35) gnome-base/gail-0.17 to / 1042578661: >>> AUTOCLEAN: gnome-base/gail 1042578661: --- AUTOCLEAN: Nothing unmerged. 1042578661: ::: completed emerge (13 of 35) gnome-base/gail-0.17 to / 1042578661: >>> emerge (14 of 35) gnome-base/eel-2.0.8 to / 1042579005: >>> AUTOCLEAN: gnome-base/eel 1042579005: --- AUTOCLEAN: Nothing unmerged. 1042579005: ::: completed emerge (14 of 35) gnome-base/eel-2.0.8 to / 1042579005: >>> emerge (15 of 35) gnome-base/gnome-desktop-2.0.10 to / 1042579151: >>> AUTOCLEAN: gnome-base/gnome-desktop 1042579151: --- AUTOCLEAN: Nothing unmerged. 1042579151: ::: completed emerge (15 of 35) gnome-base/gnome-desktop-2.0.10 to / 1042579151: >>> emerge (16 of 35) gnome-base/nautilus-2.0.8 to / 1042580358: >>> AUTOCLEAN: gnome-base/nautilus 1042580358: --- AUTOCLEAN: Nothing unmerged. 1042580358: ::: completed emerge (16 of 35) gnome-base/nautilus-2.0.8 to / 1042580358: >>> emerge (17 of 35) x11-terms/gnome-terminal-2.0.2 to / 1042580522: >>> AUTOCLEAN: x11-terms/gnome-terminal 1042580522: --- AUTOCLEAN: Nothing unmerged. 1042580522: ::: completed emerge (17 of 35) x11-terms/gnome-terminal-2.0.2 to / 1042580522: >>> emerge (18 of 35) gnome-base/gnome-panel-2.0.11 to / 1042581109: >>> AUTOCLEAN: gnome-base/gnome-panel 1042581109: --- AUTOCLEAN: Nothing unmerged. 1042581109: ::: completed emerge (18 of 35) gnome-base/gnome-panel-2.0.11 to / 1042581109: >>> emerge (19 of 35) gnome-base/gnome-applets-2.0.4 to / 1042581891: >>> AUTOCLEAN: gnome-base/gnome-applets 1042581891: --- AUTOCLEAN: Nothing unmerged. 1042581891: ::: completed emerge (19 of 35) gnome-base/gnome-applets-2.0.4 to / 1042581891: >>> emerge (20 of 35) gnome-extra/gnome2-user-docs-2.0.1 to / 1042582034: >>> AUTOCLEAN: gnome-extra/gnome2-user-docs 1042582034: --- AUTOCLEAN: Nothing unmerged. 1042582034: ::: completed emerge (20 of 35) gnome-extra/gnome2-user-docs-2.0.1 to / 1042582034: >>> emerge (21 of 35) gnome-base/libgnomeprintui-1.116.0 to / 1042582148: >>> AUTOCLEAN: gnome-base/libgnomeprintui 1042582148: --- AUTOCLEAN: Nothing unmerged. 1042582148: ::: completed emerge (21 of 35) gnome-base/libgnomeprintui-1.116.0 to / 1042582148: >>> emerge (22 of 35) app-editors/gedit-2.0.6 to / 1042582541: >>> AUTOCLEAN: app-editors/gedit 1042582541: --- AUTOCLEAN: Nothing unmerged. 1042582541: ::: completed emerge (22 of 35) app-editors/gedit-2.0.6 to / 1042582541: >>> emerge (23 of 35) x11-wm/metacity-2.4.1 to / 1042582796: >>> AUTOCLEAN: x11-wm/metacity 1042582796: --- AUTOCLEAN: Nothing unmerged. 1042582796: ::: completed emerge (23 of 35) x11-wm/metacity-2.4.1 to / 1042582796: >>> emerge (24 of 35) gnome-extra/gconf-editor-0.4.0 to / 1042582848: >>> AUTOCLEAN: gnome-extra/gconf-editor 1042582848: --- AUTOCLEAN: Nothing unmerged. 1042582848: ::: completed emerge (24 of 35) gnome-extra/gconf-editor-0.4.0 to / 1042582848: >>> emerge (25 of 35) gnome-base/control-center-2.0.3-r1 to / 1042583349: >>> AUTOCLEAN: gnome-base/control-center 1042583349: --- AUTOCLEAN: Nothing unmerged. 1042583349: ::: completed emerge (25 of 35) gnome-base/control-center-2.0.3-r1 to / 1042583349: >>> emerge (26 of 35) gnome-extra/gnome-games-2.0.6 to / 1042584346: >>> AUTOCLEAN: gnome-extra/gnome-games 1042584346: --- AUTOCLEAN: Nothing unmerged. 1042584346: ::: completed emerge (26 of 35) gnome-extra/gnome-games-2.0.6 to / 1042584346: >>> emerge (27 of 35) gnome-base/gnome-session-2.0.9 to / 1042584563: >>> AUTOCLEAN: gnome-base/gnome-session 1042584563: --- AUTOCLEAN: Nothing unmerged. 1042584563: ::: completed emerge (27 of 35) gnome-base/gnome-session-2.0.9 to / 1042584563: >>> emerge (28 of 35) gnome-extra/libgtkhtml-2.0.2 to / 1042585397: >>> AUTOCLEAN: gnome-extra/libgtkhtml 1042585397: --- AUTOCLEAN: Nothing unmerged. 1042585397: ::: completed emerge (28 of 35) gnome-extra/libgtkhtml-2.0.2 to / 1042585397: >>> emerge (29 of 35) gnome-extra/yelp-1.0.7 to / 1042585530: >>> AUTOCLEAN: gnome-extra/yelp 1042585530: --- AUTOCLEAN: Nothing unmerged. 1042585530: ::: completed emerge (29 of 35) gnome-extra/yelp-1.0.7 to / 1042585530: >>> emerge (30 of 35) media-sound/sox-12.17.3-r3 to / 1042585647: >>> AUTOCLEAN: media-sound/sox 1042585647: --- AUTOCLEAN: Nothing unmerged. 1042585647: ::: completed emerge (30 of 35) media-sound/sox-12.17.3-r3 to / 1042585647: >>> emerge (31 of 35) gnome-extra/gnome-media-2.0.3 to / 1042586059: >>> AUTOCLEAN: gnome-extra/gnome-media 1042586059: --- AUTOCLEAN: Nothing unmerged. 1042586059: ::: completed emerge (31 of 35) gnome-extra/gnome-media-2.0.3 to / 1042586059: >>> emerge (32 of 35) sys-devel/gdb-5.3 to / 1042587009: >>> AUTOCLEAN: sys-devel/gdb 1042587009: --- AUTOCLEAN: Nothing unmerged. 1042587009: ::: completed emerge (32 of 35) sys-devel/gdb-5.3 to / 1042587009: >>> emerge (33 of 35) gnome-extra/bug-buddy-2.2.0 to / 1042587133: >>> AUTOCLEAN: gnome-extra/bug-buddy 1042587133: --- AUTOCLEAN: Nothing unmerged. 1042587133: ::: completed emerge (33 of 35) gnome-extra/bug-buddy-2.2.0 to / 1042587133: >>> emerge (34 of 35) gnome-extra/gnome-utils-2.0.6 to / 1042587545: >>> AUTOCLEAN: gnome-extra/gnome-utils 1042587545: --- AUTOCLEAN: Nothing unmerged. 1042587545: ::: completed emerge (34 of 35) gnome-extra/gnome-utils-2.0.6 to / 1042587545: >>> emerge (35 of 35) gnome-base/gnome-2.0.3-r1 to / 1042587546: >>> AUTOCLEAN: gnome-base/gnome 1042587546: --- AUTOCLEAN: Nothing unmerged. 1042587546: ::: completed emerge (35 of 35) gnome-base/gnome-2.0.3-r1 to / 1042587547: *** exiting successfully. After this, GDM no longer seems to be able to use X if run with the init scripts. A reinstall of gdm was attempted, but the results are the same.
Do you have fonts available for pango ? Does 'fc-list' come up with anything , if not try 'fc-list -v' if things still don't work past the ouput here .
Yes, fc-list returns a long list of fonts. GDM runs, and I can log in, but only if I start it manually from a root prompt by running "gdm." Starting GDM with the init.d script or by issuing 'telinit a' fails with GDM reporting "Failed to start the display server several times in a short time period; disabling display :0." I'm suspecting that this is a difference between the environment I have as root, and the environment init has, but I've not been able to track it down. And I have no idea why installing gnome would make this happen, but this behavior started immediately after emerging gnome2.
Same problem here. The problem is the "export GDK_USE_XFT=1" in /etc/X11/startDM.sh. Doing export GDK_USE_XFT=1 gdm& results in the same error. Apparently xft or pango has a problem. For instance doing: export GDK_USE_XFT=1 gedit Causes gedit to crash: ** (gedit:3522): WARNING **: Cannot open font file for font Luxi Sans 10 ** (gnome_segv:3523): WARNING **: Cannot open font file for font Luxi Sans 10 I don't know how to solve this. The font file is present and readable. I think this is the same problem gdm is having.
what xfree are you guys using ?
I can confirm that setting GDK_USE_XFT=1 can cause this to happen for me as well. * x11-base/xfree Latest version available: 4.2.1-r2 Latest version installed: 4.2.1-r2 Size of downloaded files: 62,366 kB Homepage: http://www.xfree.org Description: Xfree86: famous and free X server
XFree86 Version 4.2.1 (x11-base/xfree-4.2.1-r2) here.
can you gimme your 'emerge info' ?
here it is: (gcc is 3.2.1) Portage 2.0.46-r9 (default-x86-1.4, gcc-which: no gcc in (/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin) sh: line 1: -dumpversion: command not found, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19 i686 AMD Athlon(TM) XP 2000+ GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm crypt cups libg++ mikmod mpeg pdflib qtmt quicktime spell zlib tetex svga tcltk java guile mozilla cdr xv slang readline gpm berkdb mmx 3dnow gdbm tcpd pam libwww ssl nls mitshm lame perl python esd imlib sdl oggvorbis gnome gtk X qt motif opengl avi tiff gif alsa -kde -arts bonobo gtkhtml ncurses jpeg png truetype xml xml2 dvd xmms encode" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2) ================================================================= System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine) GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config:/usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="tcltk guile perl esd mozilla x86 oss 3dnow apm -arts -avi berkdb crypt -cups encode gdbm gif gpm gtk imlib java jpeg -kde gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt qtmt -quicktime readline sdl slang spell ssl svga tcpd truetype X xml2 xmms xv zlib" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium3 -mcpu=pentium3 -O3 -pipe" CXXFLAGS="-march=pentium3 -mcpu=pentium3 -O3 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
Can you get debug info from GDM when starting with GDK_USE_XFT=1 is set (from console/.gnomerc_errors/etc.) ? It must be some font interfering ...
I think it's gdmchooser that is crashing with GDK_USE_XFT=1. The same error occurs as with gedit (see previous comment): ** (gdmchooser:6401): WARNING **: Cannot open font file for font Luxi Sans Bold 11 partial backtrace: (I will add the complete bt as attachment) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 6401)] #0 0x40c6091b in XftCharIndex () from /usr/lib/libXft.so.2 #1 0x4087fa0c in pango_xft_font_get_glyph () from /usr/lib/libpangoxft-1.0.so.0 #2 0x40cb2d49 in basic_engine_shape () from /usr/lib/pango/1.2.0/modules/pango-basic-xft.so #3 0x408c6d48 in pango_shape () from /usr/lib/libpango-1.0.so.0 #4 0x408c245c in process_item () from /usr/lib/libpango-1.0.so.0 #5 0x408c1553 in process_line () from /usr/lib/libpango-1.0.so.0 #6 0x408beb13 in pango_layout_check_lines () from /usr/lib/libpango-1.0.so.0 #7 0x408c1154 in pango_layout_get_extents_internal () from /usr/lib/libpango-1.0.so.0 #8 0x408be529 in pango_layout_get_extents () from /usr/lib/libpango-1.0.so.0 #9 0x4055cced in gtk_label_size_request () from /usr/lib/libgtk-x11-2.0.so.0 #10 0x408f6a24 in g_cclosure_marshal_VOID__BOXED () from /usr/lib/libgobject-2.0.so.0 #11 0x408e4077 in g_type_class_meta_marshal () from /usr/lib/libgobject-2.0.so.0 ... The font file is readable, in gnome-font-properties it works. Changing the font to another (e.g. Verdana) gives the same error: ** (gdmchooser:6490): WARNING **: Cannot open font file for font Verdana Bold 11 Segmentation fault I tried "fc-cache -f" but that didn't help. fc-list gives a long list of fonts (see attachment). It seems only applications using pango crash. Doing xterm -fa "Luxi Mono" Gives a nice AA xterm, no problem (uses libXft but not pango). So I think it's pango. I will try to look into the source.
Created attachment 7811 [details] gdb backtrace This is the full backtrace.
Created attachment 7812 [details] fc-list output
can you upgrade to the latest pango (1.2.1) , it looked like it might have a fix for something similar.
Installing Pango 1.2.1 did not resolve the problem.
same here...
However, upgrading to gnome-2.2 solved the problem. Actually I should try downgrading to gnome-2.0 to see if the problems returns, but that would take a long time. And it looks so nice like this :)
Upgrading to gdm 2.4.1.3 appears to have fixed this for me.
hmmm well.. closing, since its not reproduced