Bug 373030 - KConsole will get frozen if the CWD of one of its opened tab gets deleted
Summary: KConsole will get frozen if the CWD of one of its opened tab gets deleted
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 16.08.2
Platform: openSUSE Linux
: NOR critical
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2016-11-28 14:46 UTC by Eloi Gaudry
Modified: 2018-10-30 22:41 UTC (History)
4 users (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 Eloi Gaudry 2016-11-28 14:46:48 UTC
When KConsole is managing several tabs simultaneously, a critical bug can occur when the current working directory of one of the opened tab gets deleted.

KConsole will enlessly loop until it is forced closed/killed.
Comment 1 Egmont Koblinger 2016-11-29 11:08:51 UTC
I can confirm this. (rmdir the working directory of a given tab, and then press Ctrl+Alt+T to open a new tab in this no longer existing directory.)
Comment 2 Egmont Koblinger 2016-11-29 11:10:55 UTC
I guess it's time to consider konsole using OSC 7 for tracking the working directory (as Terminal.app and gnome-terminal do), rather than digging into /proc. I vaguely recall having filed a bug about it, but cannot find it right now, maybe I just wanted to do this but never actually ended up filing it.
Comment 3 Kurt Hindenburg 2017-01-28 18:11:49 UTC
I thought this had been fixed in 16.08.x - OSC7 was put in June 2016

Are you still having this issue?
Comment 4 Eloi Gaudry 2017-01-30 10:16:44 UTC
Hi Kurt, 
yes, this bug seems corrected or I wasn't able to reproduce it.
Thanks,
Comment 5 Eloi Gaudry 2017-02-01 10:41:21 UTC
Sorry to say so, but I have been able to reproduce it now and up-to-date Leap-42.2 OS.
Comment 6 Kurt Hindenburg 2017-02-01 13:47:50 UTC
What version is that?  and I need more info about steps to reproduce or even a gif/video
Comment 7 Eloi Gaudry 2017-02-01 13:51:45 UTC
Version 16.08.2

I haven't been able to reproduce it again. I'm missing something in the initial conditions for this bug to happen. Have you checked what Edmont said ( (rmdir the working directory of a given tab, and then press Ctrl+Alt+T to open a new tab in this no longer existing directory.) )?
Comment 8 Kurt Hindenburg 2017-02-01 13:54:02 UTC
yes I've tried a lot of things - nothing crashes here - not sure if it shell I'm using or OS or distro....
Comment 9 Eloi Gaudry 2017-02-01 13:58:19 UTC
I could reproduce the issue using what Edgmont said.
Just create a new terminal then `mkdir test && cd test`, create a second tab then `cd test && rmdir test`, navigate back to first tab then create a new tab using keyboard shortcut : freeze.
Comment 10 Christoph Feck 2017-02-01 22:27:16 UTC
Comment #9 is bug 370437.
Comment 11 Sebastian 2018-10-30 22:40:53 UTC
Note: I am no maintainer but from the bugsquad.

As mentioned this bug seems to be fixed.

I will close this issue as the last report was a false positive, I cannot reproduce this bug and a fix was released.

Please feel free to change the status if you encounter this problem again!