c++-analyzer on llvm-clang svn r178133

Hi,

The results from running scan-build (r178133) on llvm-clang svn r178133:

http://lbalbalba.x90x.net/clang-analyzer/llvm-clang/r178133/

Regards,

John Smith.

For anyone watching these, the large spike in "Memory Leak" results is due to a newly-landed checker for new and delete by Anton Yartsev. He's already identified the major classes of false positives (one set fixed in r178244) and Anna and I are working with him to get them resolved.

(Thanks again for running these, John.)
Jordan

Im glad its useful to people. But wouldnt it be more future-proof if
we could somehow set up a dedicated build/scan system somewhere ? I
pretty much got the proces automated by a bash script, so all that
would really be required is some disk space and cpu cycles, and a
crontab entry. :wink:

Just a thought.

- John Smith

Please post a 'DONE' message here when they are resolved ?

Thanks,

- John Smith.

I think I can put 4 cores at that, but I don't have time now to write
a buildbot module for that. Also, I don't immediately see where and
how to upload all the resulting html files.

John, it would help if you shared the bash script. Maybe someone else
has time for that.

Dmitri

Hi,

Here's the script. It currently uses ftp (and .netrc), but im willing
to change that to ssh/scp if that is required. Also, a www place to
upload the reports to would be needed.

Anyway, here's my script.
(build-scan-build-llvm.sh, and build-scan-build-llvm.conf)

Regards,

John Smith.

build-scan-build-llvm.conf (239 Bytes)

build-scan-build-llvm.sh (1.92 KB)

Although I have now idea whatsoever what goes into creating a
'buildbot module', doing that sounds like a fun project (with some
help from my list friends, of course :wink: unless, of course, it would
require me to learn a new programming language, which might take me
too long. 'shell', is fine, though.

- John Smith.

It is in Python. Here's what it takes to build LLVM+Clang+everything else:

http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/buildbot/builders/ClangAndLLDBuilder.py?revision=176979&view=markup

Here's buildbot documentation:

http://buildbot.net/buildbot/docs/0.8.7p1/

Dmitri

Thanks for the links. Looks like I have a real reason to start to
learn python now. At least some of the stuff appears to execute
regular shell commands, so that's at least familiar. Though I doubt
anyone is willing to accept a line by line translation from my shell
script in python 'ShellCommand' stuff. :wink:

I guess Ill start by trying to set up a buildbot master/slave on my
machine, and see if I can get that running.

Something that might become an issue though: buildbot doesnt run as
'root', and you need root to install a new llvm/clang.Is running stuff
as root an issue ?

- John Smith

You can install clang to a different directory (that is writable by an
unprivileged user). You need to pass --prefix to configure or
-DCMAKE_INSTALL_PREFIX= to CMake.

Dmitri

In case anyone is still watching this thread, we decided to disable the leak-checking part of the new-delete checker for now (which is why John's next set of results don't have hundreds of false leak reports).

Thanks for the info.

- John Smith