-
Notifications
You must be signed in to change notification settings - Fork 915
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
heap commands: get_file called with incorrect path #2659
Labels
Comments
...should we just remove the assertion all together? |
@sasha-999 please check with current |
It's just throwing an exception now instead of an assertion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When using any heap command, such as
vis_heap_chunks
, when determining the glibc version pwndbg may fail to get the version when the glibc is stripped.Steps to reproduce
The binary needs to be patched such that the path for the libc is relative and doesn't begin with
./
, such asglibc/libc.so.6
:This way,
info sharedlibrary
returns the following:The libc also needs to be stripped, so that the version can't be found using the
__libc_version
symbol.Then when debugging the program, use a heap command like
vis_heap_chunks
, and it will fail to get the libc.My setup
The text was updated successfully, but these errors were encountered: