pwndbg_smallbins
Print the contents of small bins from a GLibc arena to inspect sorted free chunks by size.
Instructions
Print the contents of an arena's small bins.
pwndbg command: smallbins Source: pwndbg/commands/ptmalloc2.py Category: GLibc ptmalloc2 Heap
Small bins hold chunks from 0x20 to 0x3F0 bytes (64-bit) in doubly-linked lists sorted by size.
Args: session_id: The UUID of the session. addr: Optional arena address. verbose: If True, show extended details.
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_smallbins"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| addr | No | ||
| verbose | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |