Bug 279133

Summary: Konsole freeze if one of NFS share is unreadable
Product: [Applications] konsole Reporter: Dmitry Nezhevenko <dion>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: adaptee
Priority: NOR    
Version: 2.6.4   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dmitry Nezhevenko 2011-08-02 08:09:52 UTC
Version:           2.6.4 (using KDE 4.6.5) 
OS:                Linux

I've NFS shared mounted to some mount point in /mnt. I'm pretty sure that there are no files on it that may be required by konsole or any other apps. 

Once NFS goes down (like network downtime, etc), konsole freezes for a long time with followed call stack:

#0  0x00007f37d423e437 in access () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f37d2db85c2 in QFSFileEnginePrivate::getPermissions (this=0x1bc80d0, type=...) at io/qfsfileengine_unix.cpp:790
#2  0x00007f37d2db8670 in QFSFileEngine::fileFlags (this=0x1b60ab0, type=...) at io/qfsfileengine_unix.cpp:825
#3  0x00007f37d2d76ab6 in QFileInfoPrivate::getFileFlags (this=0x1bc5a10, request=...) at io/qfileinfo.cpp:126
#4  0x00007f37d2d7825e in QFileInfo::isReadable (this=<value optimized out>) at io/qfileinfo.cpp:821
#5  0x00007f37d3efa7fe in ?? () from /usr/lib/libkonsoleprivate.so
#6  0x00007f37d3ef7a96 in ?? () from /usr/lib/libkonsoleprivate.so
#7  0x00007f37d3f09fea in Konsole::Session::updateForegroundProcessInfo() () from /usr/lib/libkonsoleprivate.so
#8  0x00007f37d3f0a8d9 in Konsole::Session::isForegroundProcessActive() () from /usr/lib/libkonsoleprivate.so
#9  0x00007f37d3f0ae29 in Konsole::Session::getProcessInfo() () from /usr/lib/libkonsoleprivate.so
#10 0x00007f37d3f0af76 in Konsole::Session::updateWorkingDirectory() () from /usr/lib/libkonsoleprivate.so
#11 0x00007f37d3f0afdb in Konsole::Session::getDynamicTitle() () from /usr/lib/libkonsoleprivate.so
#12 0x00007f37d3f13f65 in Konsole::SessionController::snapshot() () from /usr/lib/libkonsoleprivate.so
#13 0x00007f37d3f18110 in Konsole::SessionController::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkonsoleprivate.so
#14 0x00007f37d2defb1a in QMetaObject::activate (sender=0x1731e80, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#15 0x00007f37d2df33f9 in QObject::event (this=0x1731e80, e=<value optimized out>) at kernel/qobject.cpp:1181

This looks like some fancy UI stuff. Is it possible to make it non-blocking? Or at least move to different thread to make sure that app UI is not blocked


Reproducible: Always

Steps to Reproduce:
1. Mount NFS share to /mnt/srv
2. Open konsole, walk through directory tree using "cd" command, visit /mnt/srv.
3. ban NFS host via iptables, unplug network cable/turn off wifi.


Actual Results:  
konsole freezes

Expected Results:  
konsole UI should work
Comment 1 Jekyll Wu 2011-08-12 08:27:03 UTC
I think this is actually the same problem as #251351, although that one is caused by broken SSH connection.

Since this report contains useful backtrace, leave it as it is instead of marking as duplication.
Comment 2 Jekyll Wu 2012-04-29 05:55:04 UTC

*** This bug has been marked as a duplicate of bug 251351 ***