Prerequisites
We will start with a working OpenJDK build, i.e. a situation where running
bash configure
followed by
make images
produces a working build.
Install clang tools
Latest version available at the time of writing was 10:
sudo apt install clang-tools-10
Reconfigure
Run configure via scan-build
scan-build-10 bash configure
Optionally add --enable-debug
, it can reduce the number of false positives.
Scan
scan-build-10 -o scan make
Found problems are reported on console in text format and stored in a subdirectory of "scan" directory in HTML format.
Sample results
You can check example output of the scan here
No comments:
Post a Comment