<table><tr><td style="">jtamate updated this revision to Diff 47666.<br />jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-4fpzdfarzk24pvu/">(Show Details)</a><br />jtamate edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-ra6gxnzfifiwkfj/">(Show Details)</a><br />jtamate 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/D17619">View Revision</a></tr></table><br /><div><div><p>I think this time I got the problem right.<br />
One of the classics: I was modifying the list while it was being used.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Add a unit test that fails before applying the patch and doesn't after the patch (in skeleton only)<br />
<br />
Don't do anything to the Null KFileItems.<br />
<br />
Could someone that was able to reproduce the crash can test the patch to see if it really fixes the crash?</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Create a temporary list with the modified items. After the original list has been processed, the temporary list becomes the original list.<br />
i.e. Don't change the items in the list while it is being processed.</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Fail in the unit test before applying the patch<br />
Doesn't fail after applying</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Can't reproduce</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">patch</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">bug</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D17619?vs=47655&id=47666">https://phabricator.kde.org/D17619?vs=47655&id=47666</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17619">https://phabricator.kde.org/D17619</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/kcoredirlister.cpp</div></div></div><br /><div><strong>To: </strong>jtamate, dfaure, Frameworks<br /><strong>Cc: </strong>elvisangelaccio, kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>