infer icon indicating copy to clipboard operation
infer copied to clipboard

Different infer report between two runs with same code

Open dongsushang opened this issue 1 year ago • 1 comments

Please make sure your issue is not addressed in the FAQ.

Please include the following information:

  • [1.1.0 ] The version of infer from infer --version.
  • [ debian-11] Your operating system and version, for example "Debian 9", "MacOS High Sierra", whether you are using Docker, etc.
  • [ infer --keep-going --no-default-checkers --biabduction --starvation -j 4 --changed-files-index xxx -parameters xxx ] Which command you ran, for example infer -- make.
  • [no need] The full output in a paste, for instance a gist.

I hava a java file name Example.java, there is a normal NULL_DEREFERENCE issue in Example.java. But the strange thing is that if you run the same code multiple times and run the infer check, there is only a small probability that this problem can be scanned.

dongsushang avatar Jun 19 '24 13:06 dongsushang

we found if one thread is used to run infer,it works all right. But it happens, when more than one thread are used.

dongsushang avatar Jul 04 '24 03:07 dongsushang

Infer is not entirely deterministic, though efforts are being made to make it more so.

ngorogiannis avatar Feb 13 '25 07:02 ngorogiannis