Skip to content

Autoharness crashes due to long filename #4367

@zhassan-aws

Description

@zhassan-aws

I tried these steps:

  1. git clone https://github.com/cedar-policy/cedar
  2. cd cedar
  3. git checkout cbbb8459a16d9d3725facfa46b214c88fab4484c
  4. cargo kani autoharness -Z autoharness

with Kani version: bfb22f1

Kani crashed:

$ cargo kani autoharness -Zautoharness
Kani Rust Verifier 0.65.0 (cargo plugin)
   Compiling cedar-language-server v0.0.1 (/home/ubuntu/git/tmp/cedar/cedar-language-server)
warning: unused variable: `expr`
   --> cedar-policy-core/src/evaluator.rs:329:13
    |
329 |             expr => unreachable!("internal invariant violation: BorrowedRestrictedExpr somehow contained this expr case: {expr:?}"),
    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_expr`
    |
    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default


thread '<unnamed>' (12343) panicked at kani-compiler/src/codegen_cprover_gotoc/compiler_interface.rs:642:44:
called `Result::unwrap()` on an `Err` value: Os { code: 36, kind: InvalidFilename, message: "File name too long" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Kani unexpectedly panicked during compilation.
Please file an issue here: https://github.com/model-checking/kani/issues/new?labels=bug&template=bug_report.md

[Kani] no current codegen item.
[Kani] no current codegen location.
error: internal compiler error: Kani unexpectedly panicked at panicked at kani-compiler/src/codegen_cprover_gotoc/compiler_interface.rs:642:44:
                                called `Result::unwrap()` on an `Err` value: Os { code: 36, kind: InvalidFilename, message: "File name too long" }.


thread '<unnamed>' (12345) panicked at kani-compiler/src/codegen_cprover_gotoc/compiler_interface.rs:642:44:
called `Result::unwrap()` on an `Err` value: Os { code: 36, kind: InvalidFilename, message: "File name too long" }

Kani unexpectedly panicked during compilation.
Please file an issue here: https://github.com/model-checking/kani/issues/new?labels=bug&template=bug_report.md

[Kani] no current codegen item.
[Kani] no current codegen location.

thread '<unnamed>' (12344) panicked at kani-compiler/src/codegen_cprover_gotoc/compiler_interface.rs:642:44:
called `Result::unwrap()` on an `Err` value: Os { code: 36, kind: InvalidFilename, message: "File name too long" }

Kani unexpectedly panicked during compilation.
Please file an issue here: https://github.com/model-checking/kani/issues/new?labels=bug&template=bug_report.md

[Kani] no current codegen item.
[Kani] no current codegen location.

thread '<unnamed>' (12346) panicked at kani-compiler/src/codegen_cprover_gotoc/compiler_interface.rs:642:44:
called `Result::unwrap()` on an `Err` value: Os { code: 36, kind: InvalidFilename, message: "File name too long" }

Kani unexpectedly panicked during compilation.
Please file an issue here: https://github.com/model-checking/kani/issues/new?labels=bug&template=bug_report.md

[Kani] no current codegen item.
[Kani] no current codegen location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [C] BugThis is a bug. Something isn't working.[F] CrashKani crashed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions