Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260444 - >=x11-base/xorg-server-1.5.3-r2: X are launched in tty8 instead of tty7 since xorg update
Summary: >=x11-base/xorg-server-1.5.3-r2: X are launched in tty8 instead of tty7 since...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 263306 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-26 21:15 UTC by Pacho Ramos
Modified: 2017-01-26 05:21 UTC (History)
3 users (show)

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


Attachments
xorg.conf (xorg.conf,9.62 KB, text/plain)
2009-02-26 21:15 UTC, Pacho Ramos
Details
Xorg.0.log (Xorg.0.log,19.15 KB, text/plain)
2009-02-26 21:16 UTC, Pacho Ramos
Details
gdb session: X segfaults on SIGTERM (Xorg-gdb.log,13.02 KB, text/plain)
2011-06-18 15:02 UTC, Raffaello D. Di Napoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2009-02-26 21:15:25 UTC
Just after updating to latest xorg following bug 251832 I get X started at tty8 instead of tty7. I get this when launching X with "startx" and with "gdm"

I attach my xorg.conf (I simply modified it for dropping InputDevices section) and Xorg.0.log files

Thanks

Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.28-tuxonice-r3 x86_64)
=================================================================
System uname: Linux-2.6.28-tuxonice-r3-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Thu, 26 Feb 2009 09:05:01 +0000
distcc 3.0 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -msse3"
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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe -msse3"
DISTDIR="/usr/distfiles"
FEATURES="autoaddcvs ccache collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org"
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/zen-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 amr asf audiofile avahi bash-completion beagle berkdb bzip2 bzlib cairo caps cdb cdda cddb cdinstall cdparanoia cdr cli consolekit cpdflib cracklib cross crypt css cups curl daap dbus dga dirac divx4linux djvu dlloader dri dts dv dvb dvd dvdr dvdread dvi eds emboss encode epiphany erandom escreen evo evolution exif fam fame fbcon ffmpeg flac foomaticdb fortran ftp fuse galago gb gcj gd ggi gif gimp gimpprint git glib glitz glut glx gnome gnome-keyring gnome-print gphoto2 gpm gsm gstreamer gtk gtk2 hal iconv idn imagemagick imlib inotify isdnlog ithreads jabber java java6 jfs jpeg jpeg2k kdeenablefinal kdehiddenvisibility kpathsea lame latex lcms libnotify lm_sensors logrotate lzma mad madwifi midi mikmod mime mjpeg mmx mmxext mng mono moonlight motif mp3 mpeg mpi mplayer mudflap multilib musepack musicbrainz nas nautilus ncurses nethack network networkmanager nls nocardbus nptl nptlonly ntp nvidia ogg oggvorbis openal opengl openmp pam pango pch pcre pdf perl plotutils png posix postscript ppds pppd python qt3 qt3support qt4 quicktime readline reflection remote rtc scanner schroedinger scrobbler sdl session slang slp sockets speex spell spl sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs sysvipc t1lib tcpd theora threads thunderbird tiff timidity totem trayicon truetype unicode usb v4l2 vcd videos vim vorbis wma wmf x264 xattr xcb xcomposite xfs xft xine xml xml2 xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2009-02-26 21:15:46 UTC
Created attachment 183299 [details]
xorg.conf
Comment 2 Pacho Ramos gentoo-dev 2009-02-26 21:16:01 UTC
Created attachment 183301 [details]
Xorg.0.log
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-03-03 09:28:30 UTC
Yeah, I've had this bug too. Except I really have no idea who's at fault here : xorg, openrc, gdm, xinit?

If anyone has clues to figure this out, I'm all ears.

Thanks
Comment 4 Pacho Ramos gentoo-dev 2009-03-03 19:04:04 UTC
(In reply to comment #3)
> Yeah, I've had this bug too. Except I really have no idea who's at fault here :
> xorg, openrc, gdm, xinit?
> 

I still have stable baselayout and no openrc. I use gdm, but also tried with "startx" and I get the same result

Comment 5 Pacho Ramos gentoo-dev 2009-03-03 20:33:00 UTC
I have just tried to downgrade xinit to stable version and I get the same. Then, seems other xorg portion :-/
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-03-30 14:20:41 UTC
*** Bug 263306 has been marked as a duplicate of this bug. ***
Comment 7 Ylosar Goer 2009-04-06 09:47:47 UTC
I had the same problem since my upgrade from xorg-server 1.4.2 to 1.5.3, and it seems it has been resolved when i upgraded xorg-x11 from 7.3 to 7.4

For the latter upgrade to happen, i had to unmask those :
=x11-base/xorg-x11-7.4
=x11-apps/x11perf-1.5
=x11-apps/mkfontdir-1.0.4
=x11-apps/xprop-1.0.4
=media-fonts/font-xfree86-type1-1.0.1
=x11-apps/sessreg-1.0.4
=x11-apps/xset-1.0.4
=x11-apps/mkfontscale-1.0.5
=x11-apps/xdpyinfo-1.0.3
=x11-apps/xrdb-1.0.5
=x11-libs/libFS-1.0.1
=x11-apps/xwininfo-1.0.4
=x11-apps/luit-1.0.3
=x11-apps/xwd-1.0.2

Some other packages were installed too but were already stable in the tree.
Comment 8 Cedric Laczny 2009-04-07 08:28:21 UTC
Hi,

I experienced the same problem on my gentoo amd64. I did the following update.
From:
     Wed Dec 24 13:43:31 2008 >>> x11-base/xorg-server-1.3.0.0-r6
To:
     Mon Apr  6 17:43:37 2009 >>> x11-base/xorg-server-1.5.3-r5

Updating from stable:
     Sat Dec  8 22:15:23 2007 >>> x11-base/xorg-x11-7.2
to:
     Tue Apr  7 09:35:39 2009 >>> x11-base/xorg-x11-7.4
with all dependencies didn't change anything.

Interestingly I also experience the problem that I can't see a prompt when changing to any tty[1-6]. To get to the text console, the only way I discovered is to log-out of my KDE-session thus coming to the login manager (KDM). Using "Alt + N" there, gives me the usual login-prompt and I can switch to tty[1-6].
To get back to my Xsession, I need to wait a few seconds and it get's automatically back. I can't switch back by hand.
Comment 9 Cedric Laczny 2009-04-08 15:21:45 UTC
(In reply to comment #8)
> Hi,
> 
> I experienced the same problem on my gentoo amd64. I did the following update.
> From:
>      Wed Dec 24 13:43:31 2008 >>> x11-base/xorg-server-1.3.0.0-r6
> To:
>      Mon Apr  6 17:43:37 2009 >>> x11-base/xorg-server-1.5.3-r5
> 

> Updating from stable:
>      Sat Dec  8 22:15:23 2007 >>> x11-base/xorg-x11-7.2
> to:
>      Tue Apr  7 09:35:39 2009 >>> x11-base/xorg-x11-7.4
> with all dependencies didn't change anything.
> 
> Interestingly I also experience the problem that I can't see a prompt when
> changing to any tty[1-6]. To get to the text console, the only way I discovered
> is to log-out of my KDE-session thus coming to the login manager (KDM). Using
> "Alt + N" there, gives me the usual login-prompt and I can switch to tty[1-6].
> To get back to my Xsession, I need to wait a few seconds and it get's
> automatically back. I can't switch back by hand.
> 

Addition:
Good news! I made it work!
Interestingly all I had to do was to use a new xorg.conf (generated by nvidia-xorgconfig) and the basic features worked, inlcuding switching to TTY[1-6].
As I'm using 2 monitors, I needed to figure out how to make TwinView work.
The xorg.conf resulting from this:

#==============
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder62)  Tue Mar 24 06:15:32 PST 2009
# modified by Cedric

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"

EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "glx"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option  "TwinView"  "true"
    Option  "ConnectedMonitor"  "DFP-0, CRT-1"
    Option  "MetaModes"  "DFP-0: 1280x1024, CRT-1: 1280x1024"
    Option  "TwinViewOrientation"  "CRT-1 RightOf DFP-0"
    Option  "TwinViewXineramaInfoOrder"  "DFP-0, CRT-1"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "TEAC"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier     "Screen1"
    Device         "Device0"
    Monitor        "HSL"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Monitor"
        Identifier      "TEAC"
        VendorName      "TVT"
        ModelName       "DVI"
        HorizSync       30 - 80
        VertRefresh     50 - 75
        Option  "DPMS"
EndSection

Section "Monitor"
        Identifier      "HSL"
        VendorName      "HSL"
        ModelName       "H750"
        HorizSync       30-81
        VertRefresh     56-77
        Option  "DPMS"
EndSection
#==============
Comment 10 Fab 2009-09-19 16:02:43 UTC
I come from #263306. Same behavior here.
I found an explanation on french forums for my setup :
 - xorg-server-1.5.3-r6
 - gnome-light-2.26.3
 - gdm-2.20.9-r1
 - consolekit-0.3.0-r2

consolekit is installed but is NOT started by default :

# rc-update show | grep console
	consolefont | boot

The first time, gdm is launched on tty7.
When I login through gdm to my gnome session, something auto-magically
launch the console-kit-daemon :

$ ps aux | grep console
root      7804  0.0  0.1  16952  2396 ?        Ssl  17:36   0:00 /usr/sbin/console-kit-daemon

But when I logout, this process is not killed and grab on VT7.

rc-update add consolekit default solve this mistery.
Comment 11 Pacho Ramos gentoo-dev 2009-09-19 16:07:05 UTC
hald is the one that autolaunches consolekit when it's not already running 
Comment 12 Pacho Ramos gentoo-dev 2009-09-25 19:38:16 UTC
I cannot test it now but, if hald/consolekit is the problem, that can be solved simply upgrading to sys-apps/baselayout-1.12.12. Then, the test would be update to that version and try if still valid
Comment 13 Pacho Ramos gentoo-dev 2009-09-26 14:52:48 UTC
Still the same even with latest xorg-server and baselayout-1.12.12.

I am not sure if I should reports this to upstream as I don't know where exactly could be the problem :-/
Comment 14 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-10 12:56:24 UTC
So guys still an issue? Can't reproduce here :)
Comment 15 Pacho Ramos gentoo-dev 2011-03-10 20:26:21 UTC
I am still able to reproduce:
1. At boot time, gdm is launched and X are launched in tty7
2. Once I logout, X move to tty8 (even launching them simply running "X")
Comment 16 Raffaello D. Di Napoli 2011-06-18 15:02:13 UTC
Created attachment 277483 [details]
gdb session: X segfaults on SIGTERM

(In reply to comment #15)
> I am still able to reproduce:
> 1. At boot time, gdm is launched and X are launched in tty7
> 2. Once I logout, X move to tty8 (even launching them simply running "X")

I’ve been experiencing this for almost one year. Since I almost never logoff without restarting, I never considered it too much a bother, but a recent escalation in the number of problems I have with X.org, made me want to report this (as well as the 3/4 other much more serious issues I’m having).

I use gdm, but I remember reproducing this accidentally with plain X.

What I found out, at least in my case, is that X segfaults when it receives SIGTERM, leaving a busy vt7 (which in my case is actually vt4 as I set it up, but that’s irrelevant) with a glibc memory-related warning message “*** glibc detected ***”. This causes vt7 to be unavailable to any other programs.

What’s weird is that it only happens once: it’s not like the next-started X will crash on vt8 leaving that busy, forcing the next to take vt9 and so on; instead, any X started after the segfaulting first one will terminate properly. This is why we all experience X “moving” from vt7 to vt8, instead of vt7 to vt8 to vt9 and so on.

Last night I finally decided to remotely run gdb on the running X via ssh, after ensuring most loaded binaries had their symbols available; attached is the entire gdb session.



$ emerge --info
Portage 2.1.9.42 (default/linux/x86/10.0, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T8100_@_2.10GHz-with-gentoo-2.0.2
Timestamp of tree: Fri, 17 Jun 2011 23:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1::local overlay
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 PUEL skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5.2/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/depot/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync"
FFLAGS=""
GENTOO_MIRRORS="   ftp://mirrors.rit.edu/gentoo/   ftp://mirror.switch.ch/mirror/gentoo/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/depot/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync.exclude"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/lib/portage/tree"
PORTDIR_OVERLAY="/var/lib/portage/overlays/local"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi aio alsa bash-completion branding bzip2 cairo cdda cddb cdr cli consolekit crypt cups cxx dbus dga dri eds encode exif fat fbcon ffmpeg flac fontconfig ftp fuse gconf gd gif gimp gnome gnome-keyring gnutls gphoto2 gstreamer gtk hddtemp iconv ieee1394 ipv6 jpeg jpeg2k lcms libnotify lm_sensors lzma midi mmap mmx mng modules mp3 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ntfs offensive ogg opengl openmp pam pch pcre pdf png policykit posix pppd qt3support samba session smp sockets sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs syslog system-sqlite sysvipc tcpd theora threads thumbnail tiff truetype udev unicode v4l v4l2 vaapi vorbis wifi x86 xattr xorg xpm xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic authz_host autoindex cgi cgid dir env headers ident include log_config mime mime_magic negotiation rewrite version" APACHE2_MPMS="worker" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc x86_64" QEMU_USER_TARGETS="ppc x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 17 Matt Turner gentoo-dev 2017-01-26 05:21:52 UTC
A ton of stuff has changed since 2011. Do we still care? Reopen if we do...