-
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
i#4139: Add method to clear droption values for static re-attach #5335
Conversation
The values of droption accumulated options are not reset on detach, causing them to accumulate in a statically-linked client. There is no control point for droption to do this automatically, so we add droption_parser_t::clear_values() that a client can call. Adds a call to clear_values() in drmemtrace. Augments the drmemtrace burst_malloc test to fail when the options are not reset (i.e., fail without this fix). This serves as a test of the new feature, as the existing droption tests do not have static clients nor simple ways to add re-attaches. Adds a section to the droption documentation explaining the new feature. Fixes #4139
The windows crashes on burst_replaceall and burst_traceopts seem to be real problems (thought they were flakes at first). Looking. |
The windows failure is a complex PEB state issue.
Hmm:
Xref #4002 VS2017 issues where static TLS support (#4030) was needed to These tests use dr_app_stop_and_cleanup(): for which DR does
|
Filed #5340 on the windows issues. |
I'm thinking I'll separate out the #5340 fix into a separate PR; just waiting to make sure it fixes the droption issues here first. |
The values of droption accumulated options are not reset on detach,
causing them to accumulate in a statically-linked client.
There is no control point for droption to do this automatically, so we
add droption_parser_t::clear_values() that a client can call.
Adds a call to clear_values() in drmemtrace.
Augments the drmemtrace burst_malloc test to fail when the options are
not reset (i.e., fail without this fix). This serves as a test of the
new feature, as the existing droption tests do not have static clients
nor simple ways to add re-attaches.
Adds a section to the droption documentation explaining the new
feature.
Fixes #4139