LWN.net Logo

Why Linux Is a Model Citizen of Quality Code (Linux.com)

Why Linux Is a Model Citizen of Quality Code (Linux.com)

Posted Feb 25, 2012 7:26 UTC (Sat) by k8to (subscriber, #15413)
In reply to: Why Linux Is a Model Citizen of Quality Code (Linux.com) by robert_s
Parent article: Why Linux Is a Model Citizen of Quality Code (Linux.com)

Coverity helps almost not at all for concurrency problems.

It can help identify cases where you don't lock when you should (by showing that all the other users of a thing acquire a lock). It can show you when you seem to be holding a lock when others release it. It can't do much for any more complex concurrency errors at all. It really doesn't even try.

You can *write* checkers for coverity that try to do things that are more sophisticated, but typically they have to be somewhat heuristic for your own local set of problems. And the going is rough, because the documentation is rather thin on the ground. Really, having the source would probably be more helpful than the documentation which currently exists.


(Log in to post comments)

Why Linux Is a Model Citizen of Quality Code (Linux.com)

Posted Feb 25, 2012 12:03 UTC (Sat) by robert_s (subscriber, #42402) [Link]

I wasn't specifically talking about concurrency - it was just a great example which showed php developers not quite getting the point.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds