New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dmh cannot find gblic mapped in memory because glibc name contains no dash #19473
Comments
Press the pencil icon and make a pr with the fix if you know where is the issue |
@trufae I know where the issue is and I would love to fix it, but I'm not really sure how should I approach it, since if I just remove the dash it may match with any library that starts with "libc", and checking for '-' or '.' sounds a bit too ad-hoc of a solution. Any clue if it is possible to determine where libc is in some other way? Or add some way of specifying which mapping is the libc to have at least a workaround for "weirder" distros? |
The current approach is already fuzzy iirc, as long as the library is linked to the binary we can get the name from rbin. But this will work only on local debugging, which is the main use case i guess. But for an easier solution your proposal lgtm if added as fallback when the libc- cant be found. |
Environment
Description
Seems that
r_resolve_main_arena
function relies upon fact that libc filename contains version number with dash in the middle, which is not true for some distros (e.g. Gentoo).https://github.com/radareorg/radare2/blob/master/libr/core/linux_heap_glibc.c#L414
Test
The text was updated successfully, but these errors were encountered: