-
Notifications
You must be signed in to change notification settings - Fork 566
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
static DR re-attach extension support #3065
Comments
Move `i` declaration inside for loop Fixes DynamoRIO#3049, DynamoRIO#3065
This commit is the supplement for PR #3050. We also need to clean postcall_cache on drwrap_exit, otherwise post_callback will not be invoked at re-attach. This is because the registration of post_callback relies on pre_callback, and the pre_callback checks postcall_cache before registering the post_callback. The stale data in postcall_cache prevents post_callback being registered to the hash table. Issue: #3065, #2157 Fixes #3049
Report another potential re-attach problem: |
The reattach + ACCUMULATE issue is filed under #2661 |
Split from #2157
Pasting from PR #3049:
This brings up two thoughts:
For large data structures zeroing at exit is costly when there's no chance or re-attach: which is all of the time for regular non-static DR. Inside DR we only zero for doing_detach. We may want to export that for extensions.
We should add a re-attach test for drwrap.
The text was updated successfully, but these errors were encountered: