Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61096 - entrance-0.9.0.20040807 always refuses to pass arguments to /etc/X11/xdm/Xsession
Summary: entrance-0.9.0.20040807 always refuses to pass arguments to /etc/X11/xdm/Xses...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-20 19:04 UTC by Dan Hirsch
Modified: 2005-08-19 20:37 UTC (History)
0 users

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


Attachments
This is an archive that, when extracted to the root directory, gives my versions of all files involved (entrance-bug.tar.bz2,7.49 KB, application/octet-stream)
2004-08-20 19:06 UTC, Dan Hirsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Hirsch 2004-08-20 19:04:10 UTC
I'm not sure what causes this bug, but when I login using any of the three default themes (Nebulous.eet, default.eet, or taillights.eet), entrance goes through the authentication phase correctly, but it always runs /etc/X11/xdm/Xsession with no arguments. The problem seems to be that the test in entrance/src/client/entrance_session.c, line 353 always returns false.

All files involved are availiable at http://members.cox.net/dan.hirsch/entrance-bug.tar.bz2

NOTE: This archive extracts to the current directory, not a subdirectory ad most source does.

Reproducible: Always
Steps to Reproduce:
1. Add a fluxbox seesion to /etc/X11/Sessions/fluxbox
2. Add the following keys to entrance_config.tar.bz2:
    /entrance/session/2/icon    - fluxbox.png
    /entrance/session/2/session - /etx/X11/Sessions/fluxbox
    /entrance/session/2/title   - fluxbox
    /entrance/session/count     - 3
3. Startup 'Xvnc -geometry 800x600 -depth 16 :1' (TightVNC version)
4. Run entrance with no arguments

Actual Results:  
This data is printed on the terminal:
Debug: ipc_title = /var/lib/entrance_ipc_0
entrance_ipc_init: connect to daemon failed.
entrance: main: XAUTHORITY = (null)
Failed on: dan(/usr/share/entrance/themes/default.eet)
entrance_ipc_shutdown: Success
--------------------------------------------------
Entrance runs /etc/X11/xdm/Xsession with no arguments

Expected Results:  
It should have run "/etc/X11/Xsession fluxbox", which, with my patch on
Xsession, will run /etc/X11/Sessions/fluxbox

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://127.0.0.1/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acpi aim alsa apache2 apm arts audiofile avi bcmath berkdb
bzlib crypt cscope cups curl curlwrappers dga dio doc emacs encode esd evo exif
fftw foomaticdb ftp gb gdbm gif ginac gmp gnome gnutils gpm gps gtk gtk2 gtkhtml
imagemagick imlib java jpeg junit lcms ldap leim lesstif libg++ libwww lwww mad
mbox mikmod mime mmap motif mozilla mpeg mpi mule ncurses nis nls nocardbus nocd
offensive oggvorbis opengl oss pam pdflib perl plotutils png posix python
quicktime readline sdl session shared sharedmem slang sockets spell sse ssl svg
svga sysvipc tcltk tcpd tetex tidy tiff truetype videos wmf wxwindows x86 xml2
xmms xpm xv zlib"
Comment 1 Dan Hirsch 2004-08-20 19:06:55 UTC
Created attachment 37837 [details]
This is an archive that, when extracted to the root directory, gives my versions of all files involved

This includes the following files:
/etc/entrance_config.db
/etc/X11/dm/Sessions/fluxbox
/etc/X11/dm/Sessions/fluxbox.desktop
/etc/X11/xdm/Xsession
/usr/share/entrance/images/sessions/fluxbox.png
Comment 2 Dan Hirsch 2004-08-20 19:09:07 UTC
Oh... I'm running Gentoo in VMware workstation 4.5.2
Comment 3 SpanKY gentoo-dev 2004-08-20 21:00:32 UTC
works fine for me

you should be setting the session key to 'fluxbox' not to '/etx/X11/Sessions/fluxbox' ...
Comment 4 Dan Hirsch 2004-08-20 21:52:10 UTC
I tried changing the session key to fluxbox; nothing changed.
Comment 5 Dan Hirsch 2004-08-21 14:14:37 UTC
2 more things...
1) With the old setting, it should have run /etc/X11/Sessions/fluxbox, not /etc/X11/xdm/Xsession

2) I know that it's executing Xsession with no arguments because that's what shows up in the log from the call in entrance/src/client/entrance_session.c:371 . The log messages that are put out are:

Aug 20 16:29:24 [entrance(pam_unix)] session opened for user root by root(uid=0)
Aug 20 16:47:25 [entrance] PAM: Success.
Aug 20 16:47:27 [entrance] Executing /etc/X11/xdm/Xsession
Aug 20 16:47:27 [entrance] Starting session for user "root".
Comment 6 SpanKY gentoo-dev 2005-08-19 20:37:46 UTC
best to deal with upstream since this is a cvs-only app