bash completion prevents X login

Bug #408804 reported by Rolf Leggewie
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: ubuntu-dev-tools

Not sure if this is a bug in ubuntu-dev-tools, bash, bash-completion, elsewhere or even no bug at all.

Today I restarted my karmic computer after several days and failed to log in to X. ~/.xsession-errors pointed to an error in /etc/bash_completion.d/pbuilder-dist. Triage revealed that this only occurred for my main account but not for a secondary account. Bash completion is sourced for the main account in ~/.bashrc via

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

which I commented out and was then able to log in to X, without bash_completion, of course.

~/.xsession-errors is now overwritten, but if necessary, I can provide the exact error message. You should be able to reproduce the problem easily, though, I assume.

Tags: karmic
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Here is what is in .xsession-errors after such a failure

/etc/gdm/Xsession: Beginning session setup...
/etc/bash_completion.d/pbuilder-dist: line 32: `_pbuilder-dist': not a valid identifier

I tried reinstalling ubuntu-dev-tools a couple of times, but that didn't help. /etc/bash_completion.d/pbuilder-dist is what's shipped in karmic.

Revision history for this message
C de-Avillez (hggdh2) wrote :

marking confirmed, since there are now two with it.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
C de-Avillez (hggdh2) wrote :

Sigh. Sigh. SIGH. I cannot even see that *all* comments were from Rolf. Back to New. Sorry. I could not confirm the bug, even though I have ubuntu-dev-tools, bash-completion, and pbuilder installed.

Changed in ubuntu-dev-tools (Ubuntu):
status: Confirmed → New
Revision history for this message
Stefano Rivera (stefanor) wrote :

This bug is unreproducible, and I can't see anything that could ever have caused it. If it only occurred on your primary account and not the secondary one, then I'd guess that the problem is something to do with your bashrc in your primary account.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Benjamin Drung (bdrung) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem. Please reopen it if you can give us more information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in ubuntu-dev-tools (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Rolf Leggewie (r0lf) wrote :

another computer is starting to have the same problems now. That computer is also running lucid, but I haven't used it in a while. Setting back to New. Please let me know what information I can provide to troubleshoot this.

Changed in ubuntu-dev-tools (Ubuntu):
status: Invalid → New
Revision history for this message
Rolf Leggewie (r0lf) wrote :

looks very much like bug 588811 and bug 596149, although the last comment in the former ticket claims this was introduced only in the version of bash_completion following the one that I have installed for lucid.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.