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
  • !3309

Fix -use_ptrace cannot run.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/summershrimp/fix-ptrace into master Dec 13, 2018
  • Overview 17
  • Commits 5
  • Pipelines 0
  • Changes 2

Created by: summershrimp

This problem mainly caused by get_application_name_helper thinks that ptraced child is also early_inject, we cannot resolve executable_path by readlink("/proc/self/exe") But, when we use -use_ptrace to start child process, we can read executable path from /proc/self/exe correctly. And also ptraced child process have already been through system loader. So we consider ptraced child is not early_inject.

After this, the inject_ptrace(parent process) always get SIGILL signal. After digging it out, it's caused by signal_arch_init set vfp_query_signal_handler to handle SIGILL, but inject_ptrace forget to pass this signal to child. So we just pass it.

Also, in order to debugging privload_early_inject, I send SIGSTOP to child process before detach and invoke gdb in detach_and_exec_gdb.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/summershrimp/fix-ptrace