pwndbg_top_chunk
Displays information about the top chunk (wilderness) in a heap arena, used to service allocations when no suitable freed chunk is available.
Instructions
Print information about the top chunk (wilderness) of an arena.
pwndbg command: top_chunk Source: pwndbg/commands/ptmalloc2.py Category: GLibc ptmalloc2 Heap
The top chunk is the last chunk in the heap, used to service allocations when no suitable freed chunk is available.
Args: session_id: The UUID of the session. addr: Optional arena address.
See: https://pwndbg.re/2025.05.30/reference/pwndbg/commands/ptmalloc2/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| addr | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |