Bug 328959 - freezes if home on NFSv4 with Kerberos
Summary: freezes if home on NFSv4 with Kerberos
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kio
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-18 09:58 UTC by Alexander Lüdtke
Modified: 2018-05-08 22:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
dbg ouput of Dolphin Threads (80.17 KB, text/plain)
2014-02-06 10:54 UTC, Alexander Lüdtke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Lüdtke 2013-12-18 09:58:37 UTC
KDE4 apps are freezing from time to time if the home is in NFSv4 with Kerberos.

Dolphin freezes if you try to Open an PDF.
Okular is freezing if you try to save an PDF.

Also a littel KDE Application (that only opens a file !) - just try to open a
2. files it freezes (3 -4 Min). 
source u can find here: 
http://techbase.kde.org/Development/Tutorials/Saving_and_loading

I tested it with 
Kubuntu 13.10
OpenSuSE 13.1
OpenSuSE 12.3



Reproducible: Sometimes

Steps to Reproduce:
Steps to Reproduce:
1. home in NFS (in my case with Kerberos)
rest see above
Actual Results:  
App is freezing
Actual Results:  
App freezes.

Expected Results:  
App should not freeze.
Comment 1 Frank Reininghaus 2013-12-18 10:03:21 UTC
Thanks for the bug report.

(In reply to comment #0)
> Okular is freezing if you try to save an PDF.

Then it's obviously not a Dolphin bug. You can help to identify the code which causes the freeze by following these steps:

http://community.kde.org/Dolphin/FAQ/Freeze

Thanks for your help!
Comment 2 Christoph Feck 2014-01-25 20:01:34 UTC
If you can provide the information requested in comment #1, please add it.
Comment 3 Alexander Lüdtke 2014-02-06 10:54:35 UTC
Created attachment 85022 [details]
dbg ouput of Dolphin Threads

I tryed as described on the freezing Page - found it Intressting that the Terminal with the GDB didnt react until the freez of the Dolphin stoped. - But here is the Backtrace:
Comment 4 Frank Reininghaus 2014-02-06 11:23:11 UTC
Thanks. It looks like it hangs in utime, which is called from KIO.

Thread 1 (Thread 0x7ffff7fa6780 (LWP 2563)):
#0  0x00007ffff7889a67 in utime () from /lib64/libc.so.6
#1  0x00007ffff59abbb0 in KRecentDocument::add(KUrl const&, QString const&) () from /usr/lib64/libkio.so.5
#2  0x00007ffff59050f6 in KRun::run(KService const&, KUrl::List const&, QWidget*, bool, QString const&, QByteArray const&) () from /usr/lib64/libkio.so.5
#3  0x00007ffff5908e2d in KRun::runUrl(KUrl const&, QString const&, QWidget*, bool, bool, QString const&, QByteArray const&) () from /usr/lib64/libkio.so.5
#4  0x00007ffff59094b7 in KRun::foundMimeType(QString const&) () from /usr/lib64/libkio.so.5
#5  0x00007ffff58fef92 in KRun::mimeTypeDetermined(QString const&) () from /usr/lib64/libkio.so.5
#6  0x00007ffff5907b26 in KRun::init() () from /usr/lib64/libkio.so.5
#7  0x00007ffff5900e10 in KRun::slotTimeout() () from /usr/lib64/libkio.so.5
#8  0x00007ffff4946f5f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#9  0x00007ffff4944edc in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#10 0x00007ffff3a6074c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#11 0x00007ffff3a64c7a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#12 0x00007ffff538c006 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#13 0x00007ffff493073e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
Comment 5 Alexander Lüdtke 2014-02-06 11:56:49 UTC
OK - so that means KIO is the problem, is there a possibility to report that bug to the KIO group ?
Comment 6 Frank Reininghaus 2014-02-06 15:15:34 UTC
(In reply to comment #5)
> OK - so that means KIO is the problem, is there a possibility to report that
> bug to the KIO group ?

It has been reassigned already - see the "Product" field.
Comment 7 Dawit Alemayehu 2014-05-13 11:30:31 UTC
This is literally why network mounted directories are so horrible. The code that causes it to freeze according to the backtrace you provided is utime. In this case that code is attempting to update the access and modification timestamps on the file you are trying to open. The only way that would block is if it cannot access the file and that happens because the mounted directory is not available for whatever reason, network issue or one of the many other problems with network mounts.
Comment 8 Jan Wiele 2015-05-04 21:02:35 UTC
I have had the same problem (Ubuntu Vivid (3.19.0-15-generic) as client, Trusty (3.13.0-46-generic) as server). 
I did some searching and found this post https://lkml.org/lkml/2012/8/15/13
With the supplied code, I was able to verify the problem. 

After some more searching I've found a more recent post on the linux-nfs mailinglist http://www.spinics.net/lists/linux-nfs/msg39040.html
Solution (http://www.spinics.net/lists/linux-nfs/msg39106.html): Use NFS 4.1 (mount with -o minorversion=1). This seems to fix all hangs in various KDE applications.
Comment 9 Nate Graham 2018-05-08 17:28:51 UTC
Is this still relevant or applicable with KDE Frameworks 5.45?
Comment 10 Jan Wiele 2018-05-08 22:18:26 UTC
As far as I can tell, the hang in utime() was never a bug in KDE software, but in the kernel/NFS.
Comment 11 Nate Graham 2018-05-08 22:25:44 UTC
Thanks!