Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-9 scan-build results up to dbfec5cc09cedfe3a31fc958a80e111f50716929 #9881

Closed
gdevenyi opened this issue Jan 24, 2020 · 1 comment
Closed

Comments

@gdevenyi
Copy link
Contributor

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 18.04
Linux Kernel 5.4.14-xanmod1
Architecture x86_x64
ZFS Version master dbfec5c
SPL Version NA

Describe the problem you're observing

scan-build with clang-9 reports possible bugs with static analysis. I've taken note of #1721 that are likely many false-positives due to the way kernel code works. I tried to find more detail on the current state of scan-build on the kernel but my google-fu was unable to find any tweaks to suppress or otherwise improve the false-positive rate. The analysis may be incomplete as scan-build/clang crashes on some files during analysis.

Describe how to reproduce the problem

> git clone git@github.com:zfsonlinux/zfs.git
> sh autogen.sh
> scan-build-9 ./configure
> scan-build-9  -analyze-headers -maxloop 100 --keep-going  make -j$(nproc) 1> >(tee stdout.txt ) 2> >(tee stderr.txt >&2 )

Include any warning/errors/backtraces from the system logs

stderr.txt

@gdevenyi
Copy link
Contributor Author

The html is too large for github upload: https://we.tl/t-S0MIBm599a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant