D10989: Check for nullptr in indexForNode

David Faure noreply at phabricator.kde.org
Tue Mar 6 09:56:35 UTC 2018


dfaure added a comment.


  helgrind and drd are for multithreading data races, but KDirModel can't be used in a multithreading context, so I'm not sure why you're mentioning those tools.
  
  If you do want to detect data races, please note that helgrind and drd have lots of false positives (if you really want to use helgrind, read https://www.kdab.com/~dfaure/helgrind.html), and a much better tool is clang's thread-sanitizer. Downside: you need to build your own Qt first, with `-platform linux-clang-libc++ -sanitize thread`. Upside: the apps run much faster than with helgrind, and the reports are much more useful.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D10989

To: jtamate, #frameworks, dfaure
Cc: mpyne, michaelh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180306/bc7d9886/attachment.html>


More information about the Kde-frameworks-devel mailing list