Skip to content

Regressions fail with CBMC 5.72.2 #2020

Closed

Description

@zhassan-aws

I'm getting (at least) one regression failure on Ubuntu 20.04 with CBMC 5.72.2: tests/expected/trait-receiver.

In the check_box harness, one assertion is reported as UNREACHABLE with 5.72.2 that is reported as SUCCESS with 5.72.0.

5.72.2:

Check 11: check_box.assertion.2
	 - Status: UNREACHABLE
	 - Description: "assertion failed: boxed.box_id() == id"
	 - Location: receiver_types.rs:89:5 in function check_box

5.72.0:

Check 28: check_box.assertion.2
	 - Status: SUCCESS
	 - Description: "assertion failed: boxed.box_id() == id"
	 - Location: receiver_types.rs:89:5 in function check_box

Activity

  1. added
    [C] Bug
    on Dec 19, 2022
  2. aaronbembenek-aws commented on Dec 19, 2022

    @aaronbembenek-aws
    Contributor

    I’m guessing this is the same issue as #1993.

  3. zhassan-aws commented on Dec 19, 2022

    @zhassan-aws
    ContributorAuthor

    On a closer look, verification actually fails on this harness:

    $ kani receiver_types.rs --harness check_box
    # -- snip --
    Checking harness check_box...
    CBMC 5.72.2 (cbmc-5.72.2)
    CBMC version 5.72.2 (cbmc-5.72.2) 64-bit x86_64 linux
    Reading GOTO program from file /home/ubuntu/git/kani/tests/expected/trait-receiver/receiver_types.for-check_box.out
    # -- snip --
    SUMMARY:
     ** 1 of 330 failed (8 unreachable)
    Failed Checks: undefined function should be unreachable
     File: "<built-in-additions>", line 11, in __CPROVER_deallocate
    
    VERIFICATION:- FAILED
    Verification Time: 0.27662945s
    
  4. zhassan-aws commented on Dec 19, 2022

    @zhassan-aws
    ContributorAuthor

    The issue occurs with CBMC 5.72.1 as well (but not with CBMC 5.72.0), so the issue has been introduced via one of the commits in this list: diffblue/cbmc@cbmc-5.72.0...cbmc-5.72.1

  5. aaronbembenek-aws commented on Dec 19, 2022

    @aaronbembenek-aws
    Contributor

    I think I identified the commit in #1993.

  6. zhassan-aws commented on Dec 19, 2022

    @zhassan-aws
    ContributorAuthor

    Ah, thanks @aaronbembenek-aws!

  7. zhassan-aws commented on Dec 22, 2022

    @zhassan-aws
    ContributorAuthor

    Assigning it to @tautschnig who's currently looking into it.

  8. added
    T-CBMC
    on Dec 22, 2022
  9. tautschnig commented on Dec 22, 2022

    @tautschnig
    Member

    diffblue/cbmc#7453 fixes the bug on the CBMC side. Apologies for the regression.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-CBMC[C] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions