Debian Bug report logs - #645694
bash-completion has errors

Package: git; Maintainer for git is Jonathan Nieder <jrnieder@gmail.com>; Source for git is src:git (PTS, buildd, popcon).

Reported by: Thomas Mueller <thomas.mueller@tmit.eu>

Date: Mon, 17 Oct 2011 20:51:02 UTC

Severity: important

Tags: moreinfo

Done: Jonathan Nieder <jrnieder@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#645693; Package bash-completion. (Mon, 17 Oct 2011 20:51:05 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Mueller <thomas.mueller@tmit.eu>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 17 Oct 2011 20:51:05 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Thomas Mueller <thomas.mueller@tmit.eu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion files of grub and git prevent xsession to start with gdm3
Date: Mon, 17 Oct 2011 22:21:50 +0200
[Message part 1 (text/plain, inline)]
Package: bash-completion
Version: 1:1.3-1
Severity: important

Dear Maintainer,

due to *possible* errors within /etc/bash_completion.d/git and /etc/bash_completion.d/grub, gdm3
cannot start the xsession.

After purging bash_completion logon works find.

The issue is could be within:
 - bash_completion, which maybe is not that fail safe on script execution
 - git and grub, because the scripts have errors
 - gdm3, because it isn't that fail safe as well
 - *any other suspect*

 
I have no idea what the root cause is, please try to find a solution.

Thanks alot,

Thomas


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash  4.1-3

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information
[bash_completion-error.txt (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#645693; Package bash-completion. (Mon, 17 Oct 2011 20:57:03 GMT) (full text, mbox, link).


Acknowledgement sent to dapal@debian.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 17 Oct 2011 20:57:03 GMT) (full text, mbox, link).


Message #10 received at 645693@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: Thomas Mueller <thomas.mueller@tmit.eu>
Cc: 645693@bugs.debian.org, grub-common@packages.debian.org, git@packages.debian.org
Subject: Re: Bug#645693: bash-completion files of grub and git prevent xsession to start with gdm3
Date: Mon, 17 Oct 2011 22:55:12 +0200
[Message part 1 (text/plain, inline)]
retitle 645693 bash-completion has errors
clone 645693 -1
reassign 645693 grub-common
reassign -1 git
thanks

Hello Thomas,

On Mon, 17 Oct 2011 22:21:50 +0200, Thomas Mueller wrote:

> Dear Maintainer,
> 
> due to *possible* errors within /etc/bash_completion.d/git
> and /etc/bash_completion.d/grub, gdm3 cannot start the xsession.

Those files are not provided by us. Next time, please report your bugs to the
correct packages ;)

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]

Changed Bug title to 'bash-completion has errors' from 'bash-completion files of grub and git prevent xsession to start with gdm3' Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Mon, 17 Oct 2011 20:57:05 GMT) (full text, mbox, link).


Bug 645693 cloned as bug 645694. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Mon, 17 Oct 2011 20:57:05 GMT) (full text, mbox, link).


Bug reassigned from package 'bash-completion' to 'git'. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Mon, 17 Oct 2011 20:57:08 GMT) (full text, mbox, link).


Bug No longer marked as found in versions bash-completion/1:1.3-1. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Mon, 17 Oct 2011 20:57:09 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#645694; Package git. (Mon, 17 Oct 2011 21:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org>. (Mon, 17 Oct 2011 21:51:03 GMT) (full text, mbox, link).


Message #23 received at 645694@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Thomas Mueller <thomas.mueller@tmit.eu>
Cc: 645694@bugs.debian.org
Subject: Re: bash-completion files of grub and git prevent xsession to start with gdm3
Date: Mon, 17 Oct 2011 16:47:09 -0500
tags 645694 + moreinfo
quit

Hi Thomas,

Thomas Mueller wrote:

> /etc/gdm3/Xsession: Beginning session setup...
> /etc/bash_completion.d/git: line 128: syntax error near unexpected token `<'
> /etc/bash_completion.d/git: line 128: `	done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')'
> /etc/bash_completion.d/grub: line 417: `_grub_mkpasswd-pbkdf2': not a valid identifier

Thanks for reporting it.  The bash completion script uses bash syntax,
but it seems that in your configuration a different shell is trying to
parse it.  Could you send your shell initialization files (~/.xsession,
~/.profile, ~/.bashrc, and so on)?  Actually, it might be simplest to
try

	grep bash_completion ~/.* /etc/*

Sorry for the trouble,
Jonathan




Added tag(s) moreinfo. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Mon, 17 Oct 2011 21:51:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Gerrit Pape <pape@smarden.org>:
Bug#645694; Package git. (Tue, 18 Oct 2011 21:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Thomas Müller <thomas.mueller@tmit.eu>:
Extra info received and forwarded to list. Copy sent to Gerrit Pape <pape@smarden.org>. (Tue, 18 Oct 2011 21:51:03 GMT) (full text, mbox, link).


Message #30 received at 645694@bugs.debian.org (full text, mbox, reply):

From: Thomas Müller <thomas.mueller@tmit.eu>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: "645694@bugs.debian.org" <645694@bugs.debian.org>
Subject: Re: bash-completion files of grub and git prevent xsession to start with gdm3
Date: Tue, 18 Oct 2011 22:51:02 +0200
[Message part 1 (text/plain, inline)]
Hi Jonathan,

thanks for having a look at this issue. Here's the requested info:
thomas@debian:~$ sudo grep bash_completion ~/.* /etc/*
[sudo] password for thomas: 
/home/thomas/.bash_history:gedit /etc/bash_completion.d/git 
/home/thomas/.bash_history:reportbug bash_completion
/home/thomas/.bash_history:more bash_completion-error.txt 
/home/thomas/.bash_history:more bash_completion-error.txt 
/home/thomas/.bashrc:	#if [ -f /etc/bash_completion ]; then
/home/thomas/.bashrc:	#    . /etc/bash_completion
/home/thomas/.bashrc~:#if [ -f /etc/bash_completion ]; then
/home/thomas/.bashrc~:#    . /etc/bash_completion
/home/thomas/.bashrc.orig:#if [ -f /etc/bash_completion ]; then
/home/thomas/.bashrc.orig:#    . /etc/bash_completion
grep: /home/thomas/.gvfs: Keine Berechtigung
/home/thomas/.xsession-errors.old:/etc/bash_completion.d/grub.save: line 478: `_grub_script-check': not a valid identifier
/etc/bash.bashrc:if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
/etc/bash.bashrc:    . /etc/bash_completion
/etc/bash.bashrc.dpkg-old:if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
/etc/bash.bashrc.dpkg-old:    . /etc/bash_completion
/etc/bash_completion:#   bash_completion - programmable completion functions for bash 3.2+
/etc/bash_completion:[ -n "$BASH_COMPLETION" ] || BASH_COMPLETION=/etc/bash_completion
/etc/bash_completion:[ -n "$BASH_COMPLETION_DIR" ] || BASH_COMPLETION_DIR=/etc/bash_completion.d
/etc/bash_completion:[ -n "$BASH_COMPLETION_COMPAT_DIR" ] || BASH_COMPLETION_COMPAT_DIR=/etc/bash_completion.d
/etc/bash_completion:[[ $BASH_COMPLETION != ~/.bash_completion && -r ~/.bash_completion ]] \
/etc/bash_completion:    && . ~/.bash_completion
/etc/bash_completion.ucf-old:#   bash_completion - programmable completion functions for bash 3.x
/etc/bash_completion.ucf-old:#   $Id: bash_completion,v 1.872 2006/03/01 16:20:18 ianmacd Exp $
/etc/bash_completion.ucf-old:  BASH_COMPLETION="${BASH_COMPLETION:-/etc/bash_completion}"
/etc/bash_completion.ucf-old:  BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}"
/etc/bash_completion.ucf-old:[ $BASH_COMPLETION != ~/.bash_completion -a -r ~/.bash_completion ] \
/etc/bash_completion.ucf-old:	&& . ~/.bash_completion
/etc/profile:if [ -f /etc/bash_completion ]; then
/etc/profile:    . /etc/bash_completion

My bashrc is attached.

Thanks alot,

Thomas

Am Montag, den 17.10.2011 um 23:47 schrieb Jonathan Nieder:
> tags 645694 + moreinfo
> quit
> 
> Hi Thomas,
> 
> Thomas Mueller wrote:
> 
> > /etc/gdm3/Xsession: Beginning session setup...
> > /etc/bash_completion.d/git: line 128: syntax error near unexpected token `<'
> > /etc/bash_completion.d/git: line 128: `	done < <(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')'
> > /etc/bash_completion.d/grub: line 417: `_grub_mkpasswd-pbkdf2': not a valid identifier
> 
> Thanks for reporting it.  The bash completion script uses bash syntax,
> but it seems that in your configuration a different shell is trying to
> parse it.  Could you send your shell initialization files (~/.xsession,
> ~/.profile, ~/.bashrc, and so on)?  Actually, it might be simplest to
> try
> 
> 	grep bash_completion ~/.* /etc/*
> 
> Sorry for the trouble,
> Jonathan
[dot_bashrc (application/octet-stream, attachment)]

Reply sent to Jonathan Nieder <jrnieder@gmail.com>:
You have taken responsibility. (Tue, 18 Oct 2011 21:51:14 GMT) (full text, mbox, link).


Notification sent to Thomas Mueller <thomas.mueller@tmit.eu>:
Bug acknowledged by developer. (Tue, 18 Oct 2011 21:51:14 GMT) (full text, mbox, link).


Message #35 received at 645694-done@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Thomas Müller <thomas.mueller@tmit.eu>
Cc: 645694-done@bugs.debian.org, 645693-done@bugs.debian.org
Subject: Re: bash-completion files of grub and git prevent xsession to start with gdm3
Date: Tue, 18 Oct 2011 16:48:03 -0500
Hi Thomas,

Thanks for the quick response.

Thomas Müller wrote:

> /etc/bash.bashrc:if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
> /etc/bash.bashrc:    . /etc/bash_completion

This part looks sane.

[...]
> /etc/profile:if [ -f /etc/bash_completion ]; then
> /etc/profile:    . /etc/bash_completion

This looks broken.  You can see the default /etc/profile in
/usr/share/base-files/profile.  It relies on bash.bashrc to source the
bash completion scripts, doing so only when the "$BASH" envvar is nonempty
(so it does not get run by other shells).

It would be possible for /etc/bash_completion to give a more specific
error message when it is being run by something other than bash, but
that would have the downside of hindering development of bash-style
completion scripts meant to be run by other shells that handle most of
bash's features (like zsh).

Hence closing.  Where did those lines in /etc/profile come from?

Hope that helps,
Jonathan




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 16 Nov 2011 07:39:20 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:48:48 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.