Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #3049
Closed
Open
Issue created Jun 16, 2018 by Administrator@rootContributor

Bug to fix: drmgr counters being nonzero when exit, leading to corrupted drmemtrace traces in subsequent execution

Created by: Louis-Ye

It looks like drwrap doesn't clean up all the resources when calling drwrap_exit() in client. In might cause potential problems in clients when DR is actively invoked and stopped by the same user application several times in one run. Here is how I reproduce the problem in drcachesim client test case:

  1. Call drwrap_init() inside clients/drcachesim/tracer/tracer.cpp:drmemtrace_client_main
  2. Call drwrap_exit() inside clients/drcachesim/tracer/tracer.pp:event_exit
  3. include "drwrap.h" in clients/drcachesim/tracer/tracer.pp, add use_DynamoRIO_extension(${name} drwrap${ext_sfx}) under clients/drcachesim/CMakeLists.txt:configure_DynamoRIO_client
  4. Build with test cases
  5. ctest -R .*burst_static will fail 2 out of 3 times (test case: tool.drcacheoff.burst_static).
Assignee
Assign to
Time tracking