Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40366 - can't login from kdm if bash-completion is activated in /etc/profile
Summary: can't login from kdm if bash-completion is activated in /etc/profile
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-04 04:55 UTC by whirm
Modified: 2005-01-11 09:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whirm 2004-02-04 04:55:25 UTC
If 
[ -f /etc/profile.d/bash-completion  ] && source /etc/profile.d/bash-completion

is present in /etc/profile

when I login on kdm it inmediately returns to the kdm login screen.


Reproducible: Always
Steps to Reproduce:
1.add  -f /etc/profile.d/bash-completion  ] && source /etc/profile.d/bash-completion to /etc/profile
2. /etc/init.d/xdm restart
3. try to login!

Actual Results:  
cannot login with bash-completion activated 

Expected Results:  
uhm.... ^_^ 

~: 85 226Mb (>emerge info 
Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 
2.6.2-rc3) 
================================================================= 
System uname: 2.6.2-rc3 i686 AMD Athlon(tm) MP 2100+ 
Gentoo Base System version 1.4.3.12 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx 
-m3dnow " 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-mp -O3 -pipe -fomit-frame-pointer -ffast-math -mmmx 
-m3dnow " 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache userpriv usersandbox" 
GENTOO_MIRRORS="ftp://gentoo.noved.org/ ftp://gentoo.inode.at/source/ 
http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo" 
MAKEOPTS="-j4" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow 3ds S3TC X aalib aavm acpi acpi4linux alsa amd ardour-ksi arts 
artswrappersuid avi berkdb bots caps cdr clanVoice crypt cups dedicated dga 
distribution doc dvd encode esd ethereal etwin evms2 evo faad fam fbcon 
firebird flash fluidsynth foomaticdb freetds fusion gd gdbm ggi gif gphoto2 
gpm gtk gtk2 hostap-nopci imagemagick imap imlib innodb jack jack-caps 
jack-tmpfs java javascript jbig jikes joystick jpeg kde lcms ldap libg++ 
libwww mad maildir mdb mikmod mmx mng motif mozilla moznoirc moznomail mozsvg 
mozxmlterm mpeg mpi music mysql nas ncurses nls nocardbus nowin nptl nvidia 
odbc offensive oggvorbis openal opengl ospfapi oss pam parse-clocks pdflib 
perl pic png ppds prelude python qt quicktime readline sasl scanner sdl slang 
slp sox spell sse ssl stencil-buffer svga tcltk tcpd tetex tiff truetype type1 
usb videos vim-with-x wmf wolk-bootsplash wolk-supermount x86 xface xfs xine 
xml xml2 xmms xv xvid zlib"
Comment 1 whirm 2004-02-04 04:57:26 UTC
oooops!! forget to say package versions!

~: 85 226Mb (>emerge -s kdebase bash-completion
Searching...
[ Results for search key : kdebase ]
[ Applications found : 1 ]

*  kde-base/kdebase
      Latest version available: 3.2.0
      Latest version installed: 3.2.0
      Size of downloaded files: 16,996 kB
      Homepage:    http://www.kde.org/
      Description: KDE base packages: the desktop, panel, window manager, konqueror...
      License:     GPL-2


Searching...
[ Results for search key : bash-completion ]
[ Applications found : 1 ]

*  app-shells/bash-completion
      Latest version available: 20040101-r1
      Latest version installed: 20040101-r1
      Size of downloaded files: 75 kB
      Homepage:    http://www.caliban.org/bash/index.shtml#completion
      Description: Programmable Completion for bash (includes emerge and ebuild commands).
      License:     GPL-2


thanks!
Comment 2 Alex Winawer 2004-02-08 05:41:39 UTC
I also have this problem but hadn't worked out it was related to bash-completion so thankful for your report.

I was originally using it from ~/.bashrc which worked fine but recently moved it to /etc/profile and got the behaviour described. This happens when starting any session types.

This is all that was logged -
Feb  8 13:01:33 [kde(pam_unix)] session opened for user alex by (uid=0)
Feb  8 13:01:34 [kde(pam_unix)] session closed for user alex
Feb  8 13:01:34 [pam_console] getgrnam failed for cdwriter
Feb  8 13:01:35 [kernel] Debug: sleeping function called from invalid context at mm/slab.c:1856

No idea what the cdwriter thing is or if it's connected.

I'm using kde-base/kde-3.2.0, app-shells/bash-completion-20040101 and have tried with kernels 2.4.22-gentoo-r4, 2.6.1 and 2.6.2.
Comment 3 whirm 2004-02-08 07:34:59 UTC
It's nothingo to do with that, see ~/.xsession-errors
Comment 4 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-11 09:01:10 UTC
this should have been fixed time ago... reopen if not.