Review Request 125249: Fix crash when KDirWatch is used in Q_GLOBAL_STATIC.

David Faure faure at kde.org
Tue Sep 15 23:09:03 UTC 2015



> On Sept. 15, 2015, 10:42 p.m., Albert Astals Cid wrote:
> > +1 makes sense and can confirm modified tests crash without the patch
> > 
> > Will let mpyne give the final ship it (or you can if he takes some time to answer)

Pushed to make CI green again (this impacts other modules as well, so it's pretty bad). Still open to comments on the fix of course ;-)


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125249/#review85470
-----------------------------------------------------------


On Sept. 15, 2015, 11:08 p.m., David Faure wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125249/
> -----------------------------------------------------------
> 
> (Updated Sept. 15, 2015, 11:08 p.m.)
> 
> 
> Review request for KDE Frameworks, Albert Astals Cid and Michael Pyne.
> 
> 
> Repository: kcoreaddons
> 
> 
> Description
> -------
> 
> Now that the main thread singleton is deleted by a qApp post routine,
> the KDirWatch destructor can run afterwards and hit a dangling pointer.
> So we test whether the threadstorage still has data for this thread,
> and skip code if not.
> 
> 
> Diffs
> -----
> 
>   autotests/kdirwatch_unittest.cpp dc532a0e42e2fd604525d16c25916b572720b484 
>   src/lib/io/kdirwatch.cpp eceb9616fb740c542ce116594a57ba4c0a732c1f 
> 
> Diff: https://git.reviewboard.kde.org/r/125249/diff/
> 
> 
> Testing
> -------
> 
> This was making two kio unittests crash, but I now extended the kdirwatch unittest to hit the crash there, so that similar issues get detected earlier next time.
> 
> 
> Thanks,
> 
> David Faure
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150915/eabef179/attachment.html>


More information about the Kde-frameworks-devel mailing list