Comments (5)
Thanks for reporting this. Cast operations are not all translated yet. This output corresponds to missing cases in: https://github.com/facebook/infer/blob/master/infer/src/clang/cTrans_utils.ml#L365.
Do you know how we could reproduce these issues ?
from infer.
I was compiling net/ipv4/tcp_ipv4.c in the LLVM Linux kernel source tree.
Actually I couldn't get infer -- make
to work properly, so I manually executed clang to get the AST tree, and then executed InferClang.
from infer.
Detail steps:
git clone git://git.linuxfoundation.org/llvmlinux/kernel.git llvmlinux
cd llvmlinux/
make defconfig
make prepare
~/infer-linux64-v0.1.0/infer/infer/lib/clang/clang_wrapper -Xclang -load -Xclang ~/infer-linux64-v0.1.0/infer/infer/lib/clang/../../../../facebook-clang-plugin/libtooling/build/FacebookClangPlugin.dylib -Xclang -add-plugin -Xclang YojsonASTExporter -I./arch/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -fno-strict-aliasing -fno-common -std=gnu89 -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -O2 --param=allow-store-data-races=0 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-overflow -c -o net/ipv4/tcp_ipv4.o net/ipv4/tcp_ipv4.c >ast.json
InferClang -debug -headers -c net/ipv4/tcp_ipv4.c -results_dir infer-out -project_root . -x c <ast.json
InferAnalyze -results_dir infer-out -html
from infer.
Thanks for reporting this. Yes, the clang frontend is still in development and a few constructs are not translated yet. In general, this doesn't represent a problem to an accurate analysis, because we skip the functions that contain untranslated constructs to avoid inconsistencies in the analysis.
We will continue working on the frontend and also encourage contributions :)
from infer.
These messages do not show up anymore except when debugging infer. They are harmless as the translation skips over these constructs which is the right thing to do.
from infer.
Related Issues (20)
- C Simple memory leak cannot be detected HOT 1
- [java] DEADLOCK: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- [java] STARVATION: False Negative in Infer analysis results after converting anonymous classes to lambda expressions HOT 1
- False positive of Infer/Pulse when `std::unique_ptr` is used with no throw `new` HOT 2
- how to use --custom-symbols?
- How to check custom malloc and free functions for memory leak?
- can infer find out all suspecious bugs? HOT 2
- java: Infer injects outdated, buggy maven-compiler-plugin version 3.8.0
- False positive memory leak on loop HOT 4
- Dockerfile: US-ASCII locale causes crash on UTF-8 input
- How to add extra nullability condition to NULL_DEREFERENCE checking
- Is Adding a C++ Infer Port to the VSCode Plugin on the Roadmap? HOT 3
- [java] A false negative about the rule NULL_DEREFERENCE
- [java] A false positive about the rule THREAD_SAFETY_VIOLATION
- `--biabduction-unsafe-malloc` doesn't assume that `calloc()` and `realloc()` never return null HOT 1
- Error building the `Resource Leak analysis` lab in docker
- False positive Uninitialized Value in C code
- Need help when using infer run or capture during maven compilation HOT 1
- Query on --changed-files-index option HOT 3
- Meta leak HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infer.