<table><tr><td style="">meven added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28478">View Revision</a></tr></table><br /><div><div><p>The test is not stable (I reproduce locally)</p>
<p><a href="https://build.kde.org/job/Frameworks/job/kio/job/kf5-qt5%20SUSEQt5.14/34/testReport/junit/projectroot/autotests/kiocore_jobtest/" class="remarkup-link" target="_blank" rel="noreferrer">https://build.kde.org/job/Frameworks/job/kio/job/kf5-qt5%20SUSEQt5.14/34/testReport/junit/projectroot/autotests/kiocore_jobtest/</a></p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">==7022==ERROR: AddressSanitizer: heap-use-after-free on address 0x610000099be8 at pc 0x7f09559df9ed bp 0x7fff81ec0fe0 sp 0x7fff81ec0fd8
READ of size 8 at 0x610000099be8 thread T0
#0 0x7f09559df9ec in QSharedDataPointer<KIO::UDSEntryPrivate>::operator->() const /usr/include/qt5/QtCore/qshareddata.h:82
#1 0x7f09559d499a in KIO::UDSEntry::numberValue(unsigned int, long long) const /home/jenkins/workspace/Frameworks/kio/kf5-qt5 SUSEQt5.14/src/core/udsentry.cpp:368
#2 0x455940 in JobTest::statWithInode() /home/jenkins/workspace/Frameworks/kio/kf5-qt5 SUSEQt5.14/autotests/jobtest.cpp:1534</pre></div>
<p>Replacing line 1517</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">const KIO::UDSEntry &entry = job->statResult();</pre></div>
<p>by</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">const KIO::UDSEntry entry = job->statResult();</pre></div>
<p>Fixes the issue, but I don't exactly see why.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28478">https://phabricator.kde.org/D28478</a></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure, meven, bruns<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>