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/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>"
},
"name": "pwndbg_top_chunk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| addr | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |