-
-
Notifications
You must be signed in to change notification settings - Fork 755
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 chunks doesn't list chunks in a non-main arena #706
Comments
yes, you're right! the Line 6706 in 169e6e6
Line 6712 in 169e6e6
Here options should be added to allow usage with non-main-arenas. Furthermore Line 638 in 169e6e6
I will create a PR later today or tomorrow after some more testing. |
@irontigran I have opened a PR (#709) for this issue but it is still missing some tests that should/will be added later. If you want you can test it in the meantime and report back if it solves this issue for you. |
* Fix 'heap chunks' command for non-main arenas (#706) * Fix 'heap chunks' cmd for non-main arenas with debug symbols enabled * Rename arena global * Visually realign globals * Fix 'heap chunks' command for non-main arenas (#706) * Fix 'heap chunks' cmd for non-main arenas with debug symbols enabled * Rename arena global * Visually realign globals * Fix address parsing
dev
branch?gdb -nx
the closed ones) - and the PR?
Step 1: Describe your environment
version
in GEF.Step 2: Describe your problem
The
heap chunks
command does not list chunks in non-main arenas, even after switching arenas with theheap set-arena
command. This looks like the same issue as #422, but it looks to still be a problem, and I thought it could use a more careful description.Steps to reproduce
From the project root directory:
make testbins
gdb -ex 'run' /tmp/heap-non-main.out
heap arenas
heap set-arena
p2
withp p2
heap chunks
and note that it only prints chunks from the main arena -p2
is not among them. (See the screenshot below)Minimalist test case
heap-non-main.c
, from the standard test cases, is a good minimal test case.Observed Results
gef
'sheap chunks
command only prints the chunks in the main arena.Expected results
heap chunks
should print the chunks in a non-main arena if that arena has been set to be the current arena usingheap set-arena
.Traces
The text was updated successfully, but these errors were encountered: