Skip to content

Infer version v1.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Oct 14:26

This is a binary release of Infer for Linux and MacOS. To use it follow these instructions.

The Linux binary is built for Ubuntu 18 and may require adjustments to run on other configurations.

The Mac binary is built for the Catalina version. MacOS users may get an error "developer cannot be verified" and need to allow the app to run manually following these instructions, or alternatively get infer from Homebrew when it is released there.

The sha256 checksums of the tarballs are:

$ shasum -a 256 infer-*-v1.0.0.tar.xz              
510eeccc7e6bcc2678ac92a88f8e1cb9c07c3e14d272dcc06834e93845bb120f  infer-linux64-v1.0.0.tar.xz
4f188959f7c61e2ef3b935c8a9e5e66632d7fcb90c5362336fb8305d4f74d6b7  infer-osx-v1.0.0.tar.xz

Changelog

Checkers

AL is now deprecated and may be removed in future versions.

Annotation Reachability

  • reporting format improvements (the trace is no longer included in the report text, only as metadata)

Biabduction

  • disable some less-used bug types

Eradicate

  • remove "Field not mutable" check

RacerD

  • Now defaults to "angelic" ownership: an unknown function is assumed to return owned objects.
  • No more reports on races on paths rooted on temporary or local variables, as these are unreliably modelled.

Litho Required Properties: new Java checker to check that all non-optional @props have been specified when constructing Litho components.
Self in Block: new Objective-C checker to detect when an Objective-C block incorrectly captures self
Starvation

  • New experimental "global" analysis mode. Enable with --starvation-whole-program

Miscellaneous improvements to most checkers, in particular Annotation Reachability, Cost Analysis, Eradicate, Inefficient Keyset Iterator, InferBO, Pulse, RacerD, Starvation, and Uninitialized Value.

Build System Integrations

  • The Gradle integration now captures Java files in parallel
  • New Buck integration for Java, enable with --buck-java-flavor
  • Clang upgraded to version 9.0

Command Line Interface

  • New subcommand infer help to display information about checkers and issue types.
  • New subcommand infer debug that replaces the uses of infer explore not related to reported issues.
  • --debug no longer disables filtering, you have to pass -g -F to get the previous behaviour back.
  • All disk artefacts (except the Java type environment) are now stored in the SQLite database in infer-out/results.db. The contents of the database can be explored with infer debug.
  • Changed how to select the Buck integration. The old command line interface is still supported but is now deprecated.
    • clang via "flavors", activated with --flavors, now with --buck-clang
    • clang via "compilation DB", activated with --buck-compilation-database, unchanged
    • Java via "genrule", activated with --genrule-master-mode, now with --buck-java
    • Java "without genrules", used to be activated by not specifying any other Buck mode, deleted
    • In addition, there is a new Java integration, activated with --buck-java-flavor
  • The textual version of the report infer-out/bugs.txt has moved to infer-out/report.txt. The bugs.txt file is still created with dummy contents to allow for a smooth transition.
  • Removed the --report-hook option.
  • Properly terminate on Control-C instead of sometimes leaving around zombie processes.
  • Spec files (summaries) are now stored in the database. Explore with infer debug --procedures --procedures-summary.

Documentation

Internal Changes

  • Folded the facebook-clang-plugins sub-repo inside the infer repository; there is no more git submodule for it.
  • Improve internal documentation of OCaml source code.
  • Build with OCaml 4.11.1 and dune 2.7.1
  • Migrated our Python 2 code to OCaml
  • Split the infer OCaml source code into individual dune libraries.
  • Better defaults for SQLite, and a write daemon to reduce contention.
  • New analysis schedulers that speed up the analysis phase. Enable with --scheduler callgraph or --scheduler restart.
  • Infer no longer builds by default in "opt" mode (optimised, using OCaml’s flambda pass). The default is now "dev", which does not include as many optimisations (hence builds faster) and turns warnings into errors.
  • The starvation checker is now based on SIL instead of HIL.