You are not logged in.

#1 2013-11-28 05:11:17

aurelieng
Member
Registered: 2010-02-02
Posts: 104

[SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

Dear all,

Since a few days, when I type exit or Crtl+D in a KDE konsole to close the bash session, konsole often does not close itself anymore automatically. I tried to close it manually using the GUI (File>Close tab), but then I have the following message:

The program '/usr/bin/bash' is in this session would not die.  Are you sure you want to kill it by force?

It seems bash is the culprit since ps reveals many [bash] <defunct> lines, probably one for each frozen konsole:

XXXXXX  2002  0.0  0.0      0     0 ?        Zs   Nov26   0:00 [bash] <defunct>
XXXXXX  2220  0.0  0.0      0     0 ?        Zs   Nov26   0:00 [bash] <defunct>
XXXXXX  2841  0.0  0.0      0     0 ?        Zs   Nov26   0:00 [bash] <defunct>
XXXXXX  2874  0.0  0.0      0     0 ?        Zs   Nov26   0:00 [bash] <defunct>
XXXXXX  3525  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>
XXXXXX  3704  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>
XXXXXX  3719  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>
XXXXXX  3827  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>
XXXXXX  4365  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>
XXXXXX  4462  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>
XXXXXX  4475  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>
XXXXXX  4559  0.0  0.0      0     0 ?        Zs   Nov27   0:00 [bash] <defunct>

Any idea of what could be causing this problem?

Thanks a lot!

Aurel.

Last edited by aurelieng (2013-11-29 08:11:06)

Offline

#2 2013-11-28 05:32:49

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

Did you make any changes to your bash configs (or konsole settings) recently?

Offline

#3 2013-11-28 05:37:56

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

No, nothing I'm aware of, neither for bash nor for konsole.

I can investigate further though because it's quite annoying now. Is there something I should be looking for in the config files?

Offline

#4 2013-11-28 05:42:13

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

You can post your .bashrc (and .bash_profile if present), so that we can take a look. Otherwise, it is like shooting in the dark.

Offline

#5 2013-11-28 05:56:53

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

my .bashrc:

#!/usr/bin/bash

export LANG=en_US.UTF-8

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

if [ -f /etc/bash.bashrc ]; then
        . /etc/bash.bashrc
fi

# Environment variables
if [ -f  ${HOME}/.environment ];
then
        source ${HOME}/.environment
fi


# Path
if [ -f  ${HOME}/.path ];
then
        unset TMPPATH;
        for i in `grep -v "^#" ${HOME}/.path `;
        do
                TMPPATH=$TMPPATH:$i;
        done
        export PATH=$TMPPATH:$PATH
fi

# Alias
if [ -f  ${HOME}/.alias ];
then
        source ${HOME}/.alias
fi

ulimit -s unlimited

# Turn off system bell                                                                                                                                                                 
setterm -blength 0                                                                                                                                                                     
#xset -b         

You can notice i use 3 external files: one containing the paths I want to add to $PATH, one for aliases, and a third one for environment variables. The bash session is initialized as expected, hence I don't think it's worth posting them. Moreover, the fact the bash can't be killed and remains a zombie make me think it might not be related to config files.

My .bash_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
  
########################
  
  
# Lines added by tex4moz on: Mon May 12 14:12:58 CEST 2003
  
########################
  
  
PATH=$PATH:/home/XXXXXXXX/temp/tex4ht.dir ; export PATH
  
########################
  
  
TEXINPUTS=$TEXINPUTS:/home/XXXXXXXX/temp/tex4ht.dir ; export TEXINPUTS
  
########################

Last edited by aurelieng (2013-11-28 06:16:27)

Offline

#6 2013-11-28 06:07:41

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

Hmm.. the only odd thing I can notice is the ulimit setting. Try disabling it.

Also, please change the quote tags to code.

Offline

#7 2013-11-28 06:22:14

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

The ulimit thing has been here for ages, and I removing it does not solves the  problems.

Tags changed.

Offline

#8 2013-11-28 06:25:09

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

Ah, I just remembered a recent thread mentioning a similar problem. Do you by any chance use an nvidia graphics card?

Take a look here:

https://bbs.archlinux.org/viewtopic.php?pid=1350474

Offline

#9 2013-11-28 09:45:50

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

Yes I have a nvidia card. This really looks similar to my problem. I'll come back on this thread if I manage to find a solution.

Thanks a lot ! :-)

Offline

#10 2013-11-29 08:10:20

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

Problem solved: I downgraded to nvidia 325.15 which I recompiled against kernel 3.12.1-3 with abs, see here.

Offline

#11 2013-12-02 10:48:16

imp
Member
Registered: 2012-02-26
Posts: 3

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

I think marking this thread as SOLVED gives wrong impression.

Offline

#12 2013-12-02 10:49:33

aurelieng
Member
Registered: 2010-02-02
Posts: 104

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

True. It's more of a workaround. What do you suggest? Just removing the "SOLVED" tag ?

Offline

#13 2013-12-13 09:21:40

eigengrau
Member
Registered: 2013-09-19
Posts: 43

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

For reference, I have the same issue with guake in https://bbs.archlinux.org/viewtopic.php?pid=1359736

Offline

#14 2013-12-13 09:25:45

eigengrau
Member
Registered: 2013-09-19
Posts: 43

Re: [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

Another reference to the general issue: https://bbs.archlinux.org/viewtopic.php?id=173024

Offline

Board footer

Powered by FluxBB