pwndbg_tcache
Displays tcache contents for the current thread, showing 64 singly-linked bins for small heap allocations in glibc 2.26+.
Instructions
Print tcache contents for the current thread.
pwndbg command: tcache Source: pwndbg/commands/ptmalloc2.py Category: GLibc ptmalloc2 Heap
Thread-local caching (tcache) was introduced in glibc 2.26. Each thread has 64 singly-linked bins for small allocations, providing fast thread-local allocation without arena locks.
Args: session_id: The UUID of the session. addr: Optional tcache 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 |