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

prunes Primus leave events on abnormal evaluation #1003

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

gitoleg
Copy link
Contributor

@gitoleg gitoleg commented Oct 21, 2019

Before this PR we were emitting the leave-* events even when a term
didn't evaluate normally (but instead raised an exception). As a result
event handlers were invoked in the context where the term was partially
(if at all evaluate), while they were expecting that the evaluation was
successful. This led to a few undefined variables and other errors.

Even worse, since the leave-* events were posted in the exception
handler, it was possible for the event handler to raise an exception on
its own, which was escaping the original exception handler and breaking
havoc and significantly affecting performance.

Before this PR we were emitting the `leave-*` events even when a term
didn't evaluate normally (but instead raised an exception). As a result
event handlers were invoked in the context where the term was partially
(if at all evaluate), while they were expecting that the evaluation was
successful. This led to a few undefined variables and other errors.

Even worse, since the `leave-*` events were posted in the exception
handler, it was possible for the event handler to raise an exception on
its own, which was escaping the original exception handler and breaking
havoc and significantly affecting performance.
@ivg ivg merged commit 80f6254 into BinaryAnalysisPlatform:master Oct 23, 2019
@gitoleg gitoleg deleted the prune-events-on-exn branch May 13, 2020 21:09
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.

2 participants