Bug 151965 - Opening session after closing session causes an about 1 minute freeze in konsole
Summary: Opening session after closing session causes an about 1 minute freeze in konsole
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.9.2
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Robert Knight
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-07 00:45 UTC by Thomas Georgiou
Modified: 2008-01-05 23:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Georgiou 2007-11-07 00:45:55 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.2 
OS:                Linux

Opening new sessions works fine, but if I have closed a session in any running konsole, opening a new sessions takes about 1 min and displays a QProcess error (Can't get the error now since I need some stuff I'm doing in konsole).  If I close all konsole sessions and restart konsole, it works fine until a I close a session

I think it has to do with something with the system as well since I've only seen it reproduced on Gentoo and Centos 4.4 currently.
Comment 1 Will Stephenson 2007-11-07 00:50:03 UTC
Reporter says the error I have is the same as his:
"QProcess: destroyed while process is still running" when starting a 2nd konsole out of an existing one.  The konsole doesn't become responsive again.
Comment 2 Will Stephenson 2007-11-07 00:52:10 UTC
openSUSE 10.3, konsole 1.9.2 (svn of today)  FWIW.
Comment 3 Thomas Georgiou 2007-11-07 00:53:03 UTC
Im using gentoo amd64
Comment 4 Robert Knight 2007-11-07 02:42:40 UTC
Will, Thomas:

Can you run Konsole in a debugger with a breakpoint on the Qt code which produces the warning (if you are using qt-copy, this is qprocess.cpp:752) and post a backtrace?



Comment 5 Thomas Georgiou 2007-11-07 03:07:42 UTC
Here is a backtrace for konsole while it is still frozen
http://pastebin.ca/raw/764277
Comment 6 Thomas Georgiou 2007-11-07 03:16:19 UTC
Here is the backtrace breaking from qWarning()
http://pastebin.ca/raw/764292
Comment 7 Robert Knight 2007-11-07 04:07:05 UTC
Thomas and I managed to narrow the problem down to utempter.  The only place where a QProcess is created is to run /usr/sbin/utempter in KPty::login() and KPty::logout().  I don't have utempter on my system - hence I didn't run into the problem.

I have temporarily disabled utempter support in Konsole (commit #733673) pending further investigation.
Comment 8 Robert Knight 2008-01-05 23:27:55 UTC
Marking as fixed.  Will look into reinstating utempter support in future if required.