Skip to content

Detect allocators present and functional - #247

Merged
jvoisin merged 7 commits into
daanx:masterfrom
derSteFfi:detect_allocators_present_and_functional
Nov 4, 2026
Merged

jvoisin merged 7 commits into
daanx:masterfrom
derSteFfi:detect_allocators_present_and_functional

Conversation

@derSteFfi

Copy link
Copy Markdown
Contributor

when #246 is merged, error detection can be added and #245 should be solved.

…ed to LD_PRELOAD contains multiple libs, assuming the allocator is the first one mentioned
The two "installed allocators" listings printed the build manifest
(versions.txt) that the build script had written. With presence now
checked against the actual library files there is no reader left that
needs the manifest: print the list by probing the allocator paths
instead (file check only, so --help stays instant), and drop the last
references to versions.txt so bench.sh runs on a freshly built tree
without a manifest having been produced.
@derSteFfi
derSteFfi force-pushed the detect_allocators_present_and_functional branch from 79d5559 to 392b805 Compare October 26, 2026 09:38
@derSteFfi

Copy link
Copy Markdown
Contributor Author

rebased onto master.

ld.so discards a preload that is unreadable, not a library, not
executable-mappable, or refused by a security policy, but exits 0
anyway and in secure-execution mode stays silent, so the old probe
counted any existing file as installed.
@jvoisin
jvoisin merged commit 36505e0 into daanx:master Nov 4, 2026
72 of 77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants