Skip to content
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

fix: obtain ldrlock before dumping leaks, to avoid deadlocks #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 16, 2017

  1. fix: obtain ldrlock before dumping leaks, to avoid deadlocks when res…

    …olving callstack (e.g. GetModuleName)
    
    While dumping leaks, vld calls GetModuleName during callstack resolving, but this function takes ldrlock.  If other threads call functions taking ldrlock and also triggering vld code (e.g. module unloading) this leads to a deadlock.
    
    Signed-off-by: rglarix <[email protected]>
    rglarix committed Mar 16, 2017
    Configuration menu
    Copy the full SHA
    ea090e1 View commit details
    Browse the repository at this point in the history