From 47e4d194dc36adfcfd2577fa4630c9fcded005d3 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sun, 27 Oct 2013 19:15:06 +0100 Subject: IRC. --- open_issues/code_analysis/discussion.mdwn | 56 ++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) (limited to 'open_issues/code_analysis/discussion.mdwn') diff --git a/open_issues/code_analysis/discussion.mdwn b/open_issues/code_analysis/discussion.mdwn index 7ac3beb1..4cb03293 100644 --- a/open_issues/code_analysis/discussion.mdwn +++ b/open_issues/code_analysis/discussion.mdwn @@ -1,4 +1,5 @@ -[[!meta copyright="Copyright © 2011, 2012 Free Software Foundation, Inc."]] +[[!meta copyright="Copyright © 2011, 2012, 2013 Free Software Foundation, +Inc."]] [[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable id="license" text="Permission is granted to copy, distribute and/or modify this @@ -42,6 +43,8 @@ License|/fdl]]."]]"""]] i tried duma, and it crashes, probably because of cthreads :) +# Static Analysis + ## IRC, freenode, #hurd, 2012-09-08 hello. What static analyzer would you suggest (probably you have @@ -49,3 +52,54 @@ License|/fdl]]."]]"""]] mcsim: if you find some good free static analyzer, let me know :) a simple one is cppcheck braunr: I'm choosing now between splint and adlint + + +## IRC, freenode, #hurd, 2013-10-17 + + whoa, llvm kinda works, enough to make scan-build work :) + teythoon: what is scan-build ? + braunr: clangs static analyzer + ok + I'm doing a full build of the hurd using it, I will post the + report once it is finished + this will help spot many problems + well, here are the scan-build reports I got so far: + https://teythoon.cryptobitch.de/qa/2013-10-17/scan-build/ + I noticed it finds problems in mig generated code, so there are + probably lot's of duplictaes for those kind of problems + what's a... better one to look at? + it's also good at spotting error handling errors, and can spot + leaks sometimes + hm + + https://teythoon.cryptobitch.de/qa/2013-10-17/scan-build/report-yVBHO1.html + that's minor, the device always exist + but that's still ugly + + https://teythoon.cryptobitch.de/qa/2013-10-17/scan-build/report-MtgWSa.html + + https://teythoon.cryptobitch.de/qa/2013-10-17/scan-build/report-QdsZIm.html + this could be important: + https://teythoon.cryptobitch.de/qa/2013-10-17/scan-build/report-PDMEbk.html + this is the issue it finds in mig generated server stubs: + https://teythoon.cryptobitch.de/qa/2013-10-17/scan-build/report-iU3soc.html + this one is #if TypeCheck1 + the libports one looks weird indeed + but TypeCheck is 1 (the tooltip shows macro expansion) + it is defined in line 23 + oh + hmmm... clang does not support nested functions, that will limit + its usefulness for us :/ + yes + one more reason not to use them + + +### IRC, freenode, #hurd, 2013-10-18 + + more complete, now with index: + https://teythoon.cryptobitch.de/qa/2013-10-17/scan-build-2/ + + +# Leak Detection + +See *Leak Detection* on [[boehm_gc]]. -- cgit v1.2.3