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
[bug] wrong preview value, shows __dso_handle for program data #2116
Comments
In the backend, Pwndbg gets the symbol by running the GDB command pwndbg/pwndbg/gdblib/symbol.py Lines 96 to 102 in 385e63f
Very interestingly, looks like GDB is incorrectly resolving the address in this case. |
I can submit a bug report upstream (to gdb). |
I submitted it to gdb here: https://sourceware.org/bugzilla/show_bug.cgi?id=31669 |
I have added some more comments in https://sourceware.org/bugzilla/show_bug.cgi?id=31669 We can probably hack around this behavior in Pwndbg by ... parsing the symbol returned from info symbol and returning no symbol if there is "+"? But idk, maybe this is not desirable? |
Description
Why is
__dso_handle
shown here?Steps to reproduce
terminal.zip
It's a binary from a ctf, so I don't have the source. It doesn't do anything elf-crafty / libc-messy, its quite a normal challenge.
break main
run
You should see the wrong preview text.
My setup
Linux kali 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: