[Konsole-devel] [Bug 248155] New: konsole hangs trying to start /bin/bash on the 101 session
Bassem W Jamaleddine
jamaleddineb at aol.com
Tue Aug 17 14:17:41 UTC 2010
https://bugs.kde.org/show_bug.cgi?id=248155
Summary: konsole hangs trying to start /bin/bash on the 101
session
Product: konsole
Version: unspecified
Platform: Fedora RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: NOR
Component: general
AssignedTo: konsole-devel at kde.org
ReportedBy: jamaleddineb at aol.com
Version: unspecified (using KDE 4.4.1)
OS: Linux
problem was manifested in Fedora F10, with KDE 4.1. Problem still persistent in
Fedora F13, hence I am reporting it. Machine set to use 20 active desktops, and
opening extensively windows, each of the window with multiple konsoles.
Having up to 100 konsoles, that is 100 Sessions definition in
~/.kde/share/config/session/konsole_* all konsoles open fine. Upon logout and
login again, all 100 konsole (Sessions) reopen OK.
Adding 1 more konsole session to the 100's, that is having 1 or more konsoles
sessions above the 100, will open fine, but after Logout and Login again,
konsole will hand. Konsole hangs for few minutes, then open all 101 konsole
sessions, with the 101st session showing a message: Warning: Could not start
program '/bin/bash' with arguments '/bin/bash'.
Reproducible: Always
Steps to Reproduce:
Install Fedora F13 with default KDE package on Intel 64 bits.
The user root is used in all these steps.
Configure 20 virtual desktops.
Open a Konsole, and from Settings > Edit Current Profile > Tabs and select
"Show New Tab and Close Tab buttons in tab bar. Apply.
Open multiple Konsoles in few of the virtual desktops.
In each konsole open click on the New Tab to open multiple konsole sessions.
Have up to 100 konsole sessions open in the various Konsoles.
Logout, then Login again, and all konsoles and their sessions open normally.
Open 1 more konsole, then Logout. Login again. Konsole hangs for few minutes.
On the 101st konsole (that is the last one open) the warning in red: Warning:
Could not start program '/bin/bash' with arguments '/bin/bash'.
In addition the tab bar will not show the directory of the current shell, but
the name of the profile as defined in "Konsole > Settings > Current Profile >
General > Profile name"
The error is manifested or anything more than 100 konsole Sessions. For
instance, having 101st and 102nd konsole Sessions. The Warning will show on the
101st and 102nd konsole session after a hang of few minutes.
ALSO, have 101 sessions, wait until konsole hangs come back. In the 101st
konsole session, issue some commands such as ls, then try to 'exit' the 101st
konsole: the exit will 'defunct' and konsole hang once again with no come back.
See additional information on processes.
NOTE: session may not be constrained to Konsole session only. An additional
session can be a non konsole session. Exclude the mozilla from the session. I
did not test with other KDE session beside konsole.
08:40 mm01: ~ # ps -axjf | grep 6486
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
1 6486 6431 6431 ? -1 Rl 0 0:02 konsole -session
101d323a1ee137000128172415100000121570011_1282046584_825425
6486 6514 6514 6514 pts/0 6514 Ss+ 0 0:00 \_ /bin/bash
6486 6529 6529 6529 pts/1 6529 Ss+ 0 0:00 \_ /bin/bash
6486 6537 6537 6537 pts/3 6537 Ss+ 0 0:00 \_ /bin/bash
...
6486 8667 8667 8667 pts/100 8667 Ss+ 0 0:00 \_ /bin/bash
6486 8685 8685 8685 pts/101 8685 Ss+ 0 0:00 \_ /bin/bash
6486 8712 8712 8712 pts/102 10296 Ss 0 0:00 \_ /bin/bash
8712 10297 10296 8712 pts/102 10296 S+ 0 0:00 \_ grep 6486
08:41 mm01: ~ # ps -axjf | grep 6486 | wc
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
105 1157 7522
^
|
+------ 105 processes, minus 2 = 103 KONSOLE SESSIONS
SESSIONS SHOULD BE: 105 minus 2 = 103
TAKE AWAY 2 FOR THE grep PROCESS AND FOR THE PARENT konsole -session
08:47 mm01: ~/.kde/share/config/session # grep "\[Session[0-9]"
konsole_101d323a1ee137000128172415100000121570011_1282046584_825425 | wc
103 103 1231
^
|
+------ 103 SESSIONS
THE LAST SESSION IN konsole_*
[Session103]
Encoding=UTF-8
LocalTab=%d : %n (%D)
RemoteTab=%h : %u
WorkingDir[$e]=$HOME
UPON 'exit' KONSOLE HANG WITH PROCESS defunct:
----------------------------------------------
Try to exit from konsole session:
# exit
exit
6486 8639 8639 8639 pts/99 8639 Ss+ 0 0:00 \_ /bin/bash
6486 8667 8667 8667 pts/100 8667 Ss+ 0 0:00 \_ /bin/bash
6486 8685 8685 8685 ? -1 Zs 0 0:00 \_ [bash] <defunct>
<---------------- 1st exit
6486 8712 8712 8712 ? -1 Zs 0 0:00 \_ [bash] <defunct>
<---------------- another exit
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
100 Konsole Sessions, PROBLEM IS NOT MANIFESTED
-----------------------------------------------------------------------------------------------------
08:54 mm01: ~ # ps -axjf | grep 19627
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
1 19627 19546 19546 ? -1 Rl 0 0:01 konsole -session
101d323a1ee137000128172415100000121570011_1282049586_89418
19627 19639 19639 19639 pts/0 19639 Ss+ 0 0:00 \_ /bin/bash
19627 19656 19656 19656 pts/1 19656 Ss+ 0 0:00 \_ /bin/bash
19627 19659 19659 19659 pts/3 19659 Ss+ 0 0:00 \_ /bin/bash
19627 19663 19663 19663 pts/4 19663 Ss+ 0 0:00 \_ /bin/bash
...
19627 21677 21677 21677 pts/97 21769 Ss 0 0:00 \_ /bin/bash
19627 21722 21722 21722 pts/98 21722 Ss+ 0 0:00 \_ /bin/bash
19627 21726 21726 21726 pts/99 21771 Ss 0 0:00 \_ /bin/bash
21726 21772 21771 21726 pts/99 21771 S+ 0 0:00 \_ grep 19627
08:54 mm01: ~ # ps -axjf | grep 19627 | wc
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
102 1124 7309
^
|
+------ 102 processes, minus 2 = 100 KONSOLE SESSIONS
08:55 mm01: ~/.kde/share/config/session # grep "\[Session[0-9]"
konsole_101d323a1ee137000128172415100000121570011_1282049586_89418 |wc
100 100 1192
^
|
+------ 100 SESSIONS
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the konsole-devel
mailing list