Skip to content

Standalone kani on file without proof harnesses crashes #1910

Closed

Description

@tedinski
$ kani src/main.rs 
Error: No such file or directory (os error 2)

There are two fixes needed here:

  1. That error message should be improved. We're not reporting what file was missing.
  2. We should (in this situation) be reporting the same "No proof harnesses" result as cargo kani. I'm not sure why kani isn't producing the kani-metadata.json file that was expected (and that's what there's "no such file" for)

Activity

  1. added
    [C] Bug
    on Nov 16, 2022
  2. celinval commented on Nov 18, 2022

    @celinval
    Contributor

    We skip codegen if there is nothing to generate code for. We could generate an empty metadata file. But I think this might still fail in the link_goto_binary().

  3. self-assigned this
    on Nov 25, 2022
  4. added this to Kani 0.17 and removed this from Kani 0.16on Nov 28, 2022
  5. moved this to In Progress in Kani 0.17on Dec 7, 2022
  6. Repository owner moved this from In Progress to Done in Kani 0.17on Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[C] Bug[F] Crash

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions