Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert(!thread_local_options.assume_assertions || is_bottom()) hit when fuzzing with assume_assertions on #643

Open
Alan-Jowett opened this issue May 22, 2024 · 3 comments

Comments

@Alan-Jowett
Copy link
Contributor

assert(!thread_local_options.assume_assertions || is_bottom());

timeout-dfb7ccfe8977abf66ca5c27e6629a0c50d99601c.zip

0000000000000000 <read_write_packet_start>:
       0:       b7 00 00 00 01 00 00 00 r0 = 1
       1:       61 12 04 00 00 00 00 00 r2 = *(u32 *)(r1 + 4)
       2:       61 11 00 00 00 00 00 00 r1 = *(u32 *)(r1 + 0)
       3:       bf 13 00 00 00 00 00 00 r3 = r1
       4:       07 03 00 00 04 00 00 00 r3 += 4
       5:       2d 23 04 00 00 00 00 00 if r3 > r2 goto +4 <LBB0_2>
       6:       61 12 00 00 00 00 00 00 r2 = *(u32 *)(r1 + 0)
       7:       07 02 00 00 01 00 00 00 r2 += 1
       8:       63 21 00 00 00 00 00 00 *(u32 *)(r1 + 0) = r2
       9:       b7 00 00 00 00 00 00 00 r0 = 0

0000000000000050 <LBB0_2>:
      10:       95 00 00 00 00 00 00 00 exit

Assertion occurs on branch from 5 -> 10.

@elazarg
Copy link
Collaborator

elazarg commented May 22, 2024

I think the entire else branch there (the assertion and the set-to-top action) can be simply removed.

@elazarg
Copy link
Collaborator

elazarg commented May 28, 2024

I can't reproduce it. What flags do you pass?

@Alan-Jowett
Copy link
Contributor Author

Let me see if I can get it to repro with the check program from this repo instead of verifier_fuzzer tool in our repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants