Comment 9 for bug 596149

Revision history for this message
Christian Holtje (docwhat) wrote : Re: gdm can't login to any session

Hello!

I'll happily answer any questions about this.

I can reproduce the problem on my box.

Just to re-iterate how to reproduce:
 * sudo ln -sf bash /bin/sh
 * Make sure you have bash script or two in "Startup Applications"
 * Have your .bash_profile stupidly source /etc/bash_completion (in my case by sourcing ~/.bashrc).
 * Log out.
 * Try to log back in.

It just kicks you right out and the following lines appear in the ~/.xsession-errors file:
/etc/gdm/Xsession: Beginning session setup...
/etc/bash_completion.d/apport_completion: line 128: `_apport-bug': not a valid identifier

This is a some-what pathological setup, because of the .bash_profile sourcing .bashrc, but a lot of people thrash around wrt to which file does what in bash.

A fix for this is to wrap all of bash_completion in an if [[ ! shopt -oq posix ]]; then .. fi block.