Created
December 31, 2022 22:35
-
-
Save azat/3b5f2ae6011bef2ae86392cea7789eb7 to your computer and use it in GitHub Desktop.
different behavior of dlsym since glibc 2.36
This file contains 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
#define _GNU_SOURCE | |
#include <dlfcn.h> | |
#include <stdio.h> | |
int main() | |
{ | |
void *p = dlsym(RTLD_NEXT, "__pthread_mutex_lock"); | |
printf("__pthread_mutex_lock: %p (via RTLD_NEXT)\n", p); | |
return 0; | |
} |
This file contains 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
libc 2.35: __pthread_mutex_lock: 0x7ffff7e27f70 (via RTLD_NEXT) | |
libc 2.36: __pthread_mutex_lock: (nil) (via RTLD_NEXT) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://sourceware.org/bugzilla/show_bug.cgi?id=14932