Repository navigation
Conversation
Guarder resolves the real pthread_create with
dlopen("libpthread.so.0", RTLD_NOLOAD). Since glibc 2.34 that library is an
empty compatibility stub that nothing loads, so the handle comes back NULL and
dlsym(NULL, name) searches the global scope from the front - which finds
guarder's own interposer. Every pthread_create then recursed into itself until
the 128-entry thread table was full and guarder aborted with "maximum
concurrent thread limit reached (128)"; an interposer mounted in front of
libguarder.so counts 128 creations and no joins for "./mstress 4 50 25". That
is the mstressN and rptestN failure in the gd jobs on ubuntu and fedora, and
with the fallback both return to exit 0. RTLD_NEXT starts the search after
libguarder.so, at the real libc; the same file already resolves malloc and free
that way. larsonN-sized still fails, for a reason unrelated to the lookup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Guarder resolves the real
pthread_createwithdlopen("libpthread.so.0", RTLD_NOLOAD). Sinceglibc 2.34that library is an empty compatibility stub that nothing loads, so the handle comes backNULLanddlsym(NULL, name)searches the global scope from the front - which findsguarder's own interposer. Everypthread_create()then recursed into itself until the 128-entry thread table was full and guarder aborted with "maximum concurrent thread limit reached (128)"; an interposer mounted in front oflibguarder.socounts 128 creations and no joins for "./mstress 4 50 25". That is themstressNandrptestNfailure in thegdjobs on ubuntu and fedora, and with the fallback both return to exit 0.RTLD_NEXTstarts the search afterlibguarder.so, at the real libc; the same file already resolvesmalloc()andfree()that way.larsonN-sizedstill fails, for a reason unrelated to the lookup.