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

Add Linux dynamic library checks using ldd/LD_DEBUG #1718

Merged
merged 6 commits into from
Mar 18, 2022

Conversation

ranweiler
Copy link
Member

@ranweiler ranweiler commented Mar 17, 2022

Add support for detecting for missing dynamic libraries on Linux, and extend the existing CLI tool.

This uses the ldd tool and the LD_DEBUG environment variable to enable ld.so debug logging. We could replace the use of ldd with LD_TRACE_LOADED_OBJECTS and target invocation, but I think the presence of ldd is a safe assumption.

Integration tested with the linux-libfuzzer-dlopen and linux-libfuzzer-linked-library example binaries. Verified that the CLI tool works as expected with 0, 1, or many missing shared libraries, both when linking at process startup or loading at runtime.

Toward #1706.

@ranweiler ranweiler requested a review from hayleycall March 17, 2022 20:37
@ranweiler ranweiler merged commit 9d3b0e0 into microsoft:main Mar 18, 2022
@ranweiler ranweiler deleted the linux-dynamic-library branch March 18, 2022 00:26
@ghost ghost locked as resolved and limited conversation to collaborators Apr 17, 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.

2 participants