Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Add crate to debug missing dynamic libraries on Windows #1713

Merged
merged 3 commits into from
Mar 16, 2022

Conversation

ranweiler
Copy link
Member

@ranweiler ranweiler commented Mar 16, 2022

Add a CLI tool and library code to debug missing dynamic library errors on Windows.

The implementation manually edits the registry global flags for an image file to temporarily enable loader snaps, runs the target under our custom debugger to collect the debug output strings, then parses them for informative loading errors. It does not depend on the presence of gflags.exe.

This detects both dynamic linking (and thus process startup) errors, as well as dynamic loading (LoadLibrary) errors. It can report multiple missing dynamically-linked libraries.

Towards #1706.

@ranweiler ranweiler merged commit 9000a23 into microsoft:main Mar 16, 2022
@ranweiler ranweiler deleted the dynamic-library branch March 16, 2022 23:11
@ghost ghost locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants