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
  • Merge requests
  • !3183

i#3160: add tests of full detach state preservation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i3160-detach-state into master Sep 21, 2018
  • Overview 1
  • Commits 3
  • Pipelines 0
  • Changes 6

Adds a new test api.detach_state which runs a series of start/stop sessions, each testing different aspects of state preservation across detach. The test is Linux x86_64-only for now.

One set of tests restoring microarchitectural state: general-purpose registers, eflags, stack pointer, and xmm registers. Each is tested at two different points: one from the code cache and the other from DR (via selfmod code to make it very likely the thread will be in DR at detach time), since the state restore mechanism for each point differs.

Another set of tests checks that signal state (blocked signal mask and alternate stack) is properly restored after detach, again with two different points: detaching when inside a signal handler, and when not.

Fixes #3160 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i3160-detach-state