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

Remove cleanup code from Session.Initialize, add precondition #789

Merged
merged 2 commits into from
Oct 1, 2021

Conversation

kanigsson
Copy link
Collaborator

We remove the defensive code from Session.Initialize, which
deallocates buffers for global session variables if already
allocated. We add a precondition "Session.Unitialized" to that
procedure to avoid calling it in such situations.

Fixes #788

@kanigsson kanigsson requested a review from treiher October 1, 2021 01:24
@kanigsson
Copy link
Collaborator Author

That proof failure on dhcp_client seems strange. I don't have it locally, and it's in a procedure that's not related to my patch AFAICS.

tests/utils.py Outdated Show resolved Hide resolved
@treiher
Copy link
Collaborator

treiher commented Oct 1, 2021

That proof failure on dhcp_client seems strange. I don't have it locally, and it's in a procedure that's not related to my patch AFAICS.

That is strange. I don't have a good idea what is causing this. Let's see if the issue persists after rebasing and fixing the open comment.

We remove the defensive code from Session.Initialize, which
deallocates buffers for global session variables if already
allocated. We add a precondition "Session.Unitialized" to that
procedure to avoid calling it in such situations.

Fixes #788
@senier
Copy link
Member

senier commented Oct 1, 2021

That proof failure on dhcp_client seems strange. I don't have it locally, and it's in a procedure that's not related to my patch AFAICS.

That is strange. I don't have a good idea what is causing this. Let's see if the issue persists after rebasing and fixing the open comment.

@treiher An instance of #433?

@kanigsson
Copy link
Collaborator Author

Probably it was because I didn't update the sessions. The new CI is all green (pending the last running test).

@treiher
Copy link
Collaborator

treiher commented Oct 1, 2021

That proof failure on dhcp_client seems strange. I don't have it locally, and it's in a procedure that's not related to my patch AFAICS.

That is strange. I don't have a good idea what is causing this. Let's see if the issue persists after rebasing and fixing the open comment.

@treiher An instance of #433?

No, #433 is about occasionally failing verification tests found by property tests. The found issues were usually also reproducible locally. #433 collects all found issues for further investigation.

@senier
Copy link
Member

senier commented Oct 1, 2021

No, #433 is about occasionally failing verification tests found by property tests. The found issues were usually also reproducible locally. #433 collects all found issues for further investigation.

I see.

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

Successfully merging this pull request may close these issues.

Session Initialize procedure should suppose Uninitialized state
3 participants