Skip to content

The print macros result in verification failure #824

Closed

Description

@zhassan-aws

I tried this code:

fn main() {
    println!("Hello World!");
}

using the following command line invocation:

kani print.rs

with Kani version: b8932b06b04

I expected to see this happen: Verification successful

Instead, this happened: Verification failed:

$ kani print.rs 

<snip>

** Results:
[assertion.1] Code generation sanity check: Correct CBMC vtable size for StructTag("tag-_4317141983261250885") (MIR type Closure(DefId(2:9147 ~ std[2f3c]::rt::lang_start::{closure#0}), [(), i8, extern "rust-call" fn(()) -> i32, (fn(),)])). Please report failures:
https://github.com/model-checking/kani/issues/new?template=bug_report.md: SUCCESS
[pointer_primitives.1] dead object in OBJECT_SIZE(&temp_0): SUCCESS
function _ZN3std2io5stdio6_print17hbd655a505d65b63eE
[_ZN3std2io5stdio6_print17hbd655a505d65b63eE.assertion.1] assertion false: FAILURE

/rustc/9ad5d82f822b3cb67637f11be2e65c5662b66ec0/library/core/src/fmt/mod.rs function std::fmt::Arguments::<'a>::new_v1
[std::fmt::Arguments::<'a>::new_v1.assertion.1] line 363 This is a placeholder message; Kani doesn't support message formatted at runtime: SUCCESS
[std::fmt::Arguments::<'a>::new_v1.pointer_arithmetic.1] line 365 pointer arithmetic: dead object in (unsigned char *)&var_24 + 0: SUCCESS
[std::fmt::Arguments::<'a>::new_v1.pointer_dereference.1] line 365 dereference failure: dead object in *((unsigned char **)((unsigned char *)&var_24 + 0)): SUCCESS

** 1 of 6 failed (2 iterations)
VERIFICATION FAILED

Activity

  1. added
    [C] Bug
    on Feb 11, 2022
  2. self-assigned this
    on Feb 11, 2022
  3. zhassan-aws commented on Feb 16, 2022

    @zhassan-aws
    ContributorAuthor

    Closed via #825.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

[C] Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions