<feed xmlns='http://www.w3.org/2005/Atom'>
<title>computeranim.git/src/cli/show.zig, branch main</title>
<subtitle>Tracing debugger and animations of running programs (ztrace, canim)</subtitle>
<id>https://git.0x4200.cafe/computeranim.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/computeranim.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/'/>
<updated>2026-11-11T23:08:07Z</updated>
<entry>
<title>trace: what push, call and ret touch; names for data; the stack's roles, sharper</title>
<updated>2026-11-11T23:08:07Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-11T23:08:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=0ec2376cae2fdfc50e90d930ebc86c7a5b7f5594'/>
<id>urn:sha1:0ec2376cae2fdfc50e90d930ebc86c7a5b7f5594</id>
<content type='text'>
For a disassembly that points at the stack word it touched. The stack's
own instructions have touches (push, call and enter write at rsp-8; pop
and ret read at rsp; leave at rbp), and a rep string instruction its
whole range. An address a global or static object holds is named
(head+0, libc.so.6!main_arena+96). The saved rbp has its role at the
push that makes it; every local in a shared word is given; the stack
protector's copy is found by seeing its store; ztrace show labels each
stack word. Six bytes a moment and 3% slower on the list by instruction.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
</content>
</entry>
<entry>
<title>trace: an instruction's bytes are in the recording; show prints a mapping's permissions</title>
<updated>2026-11-11T14:52:21Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-11T14:51:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=05160b340bc0677a9ab29c2379b09475f54bb4eb'/>
<id>urn:sha1:05160b340bc0677a9ab29c2379b09475f54bb4eb</id>
<content type='text'>
For an introduction that shows bytes becoming an instruction, and the
address space as segments.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
</content>
</entry>
<entry>
<title>symbols: a library's separate debug info, when it is of the same build</title>
<updated>2026-11-11T14:27:09Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-11T14:26:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=dcbe8941df205fa8c8805b022f025e1012dede19'/>
<id>urn:sha1:dcbe8941df205fa8c8805b022f025e1012dede19</id>
<content type='text'>
The system glibc stays dynamically linked and is symbolized from the
debug file in the debuginfod client's cache or under /usr/lib/debug,
used only when its own build id equals the mapped library's; nothing is
downloaded. Static functions get names (the loader's resolver is
_dl_runtime_resolve_xsavec; main_arena is found by symbol), libc's
frames their file and line as the build saw them, and locals, blocks and
parameter counts follow. A recording says of each module its build id
and where its names came from; ztrace show prints it. Read only when an
address in the module needs a name: 44 ms and 25 MB at the first one.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
</content>
</entry>
<entry>
<title>trace: glibc's heap, read from a recording at any moment</title>
<updated>2026-11-11T02:25:40Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-11T02:04:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=58643dab07a803dbb579d84f68419911f5a2a16d'/>
<id>urn:sha1:58643dab07a803dbb579d84f68419911f5a2a16d</id>
<content type='text'>
record --heap keeps the arena, the tcache and, of every chunk, its size
word and the links of those on a list: free chunks stay readable, which
--alloc dropped at the free. zt.heap.glibc gives the chunks in address
order, the tcache's and the bins' chains (safe-linking as the stored
value and the pointer it protects), the top; each with the address of
the word it was read from, each chain saying how it ended. ztrace show
prints it. Layouts for glibc 2.44 (no fastbins; a tcache made at the
first free, counting the slots left) and 2.40; the arena found by symbol
or by the struct whose next points at itself. Against pwndbg on 2.40:
the same at every stop. Three bytes a moment and a sixth slower on the
list by instruction.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
</content>
</entry>
<entry>
<title>context: eight instructions above the pc and eight below; where a branch goes</title>
<updated>2026-11-10T17:48:26Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T17:39:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=ed46c51fe127377eb1fde8dee83da984e0f61860'/>
<id>urn:sha1:ed46c51fe127377eb1fde8dee83da984e0f61860</id>
<content type='text'>
A function is decoded once from its start, so the instructions before the
pc are known: each instruction's string now says the length of the one
before it, and ztrace show prints eight above and eight below, as pwndbg
does. A call, a jump or a return at the pc is a branch event with its
target (named) and, for a conditional jump, whether the flags take it.
</content>
</entry>
<entry>
<title>context: what an instruction is about to touch, and the call chain</title>
<updated>2026-11-10T17:39:55Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T17:35:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=97ce7f485fc0419df693fdf16d634e9e9a6085fc'/>
<id>urn:sha1:97ce7f485fc0419df693fdf16d634e9e9a6085fc</id>
<content type='text'>
At a stop the instruction at the pc is decoded against the registers it
will run with (capstone's operands): a touch event for each memory operand
(address, size, read or write), what is there recorded with it, and what a
write left there read back at the next stop. An instruction-level
recording so has every memory write of the stepped thread, nothing watched.
The frames of the call chain are recorded and their return addresses
named; telescope.backtrace walks them from the recording and ztrace show
prints them. Process.read no longer panics on address 0.
</content>
</entry>
<entry>
<title>ztrace dbg: context, everything at the moment looked at, pwndbg's way</title>
<updated>2026-11-10T17:12:42Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T17:12:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=e2fa716dcda7de877908de006adc34f0c3593693'/>
<id>urn:sha1:e2fa716dcda7de877908de006adc34f0c3593693</id>
<content type='text'>
</content>
</entry>
<entry>
<title>context: disassembly, telescopes and names in every stop; strings as one table</title>
<updated>2026-11-10T17:12:08Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T16:36:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=02aa51a6f54235cf18e627dbbfe21f21e502eb0b'/>
<id>urn:sha1:02aa51a6f54235cf18e627dbbfe21f21e502eb0b</id>
<content type='text'>
For a viewer to show what pwndbg's context shows, the debugger records it
while the memory is there: each register and the top of the stack followed
as pointers three deep (--telescope), every code address met named, eight
instructions from the pc disassembled by capstone (built from source for
x86, into the command only; pinned as in 03-codenomicom). zt.telescope
reads a chain back with the kind of memory each link points into, and
ztrace show prints the context, coloured on a terminal as pwndbg colours.

The thirty thousand strings of a small run showed that a string map in
each keyframe costs 700 bytes of tree a string: strings are now one table
for the recording, appended a batch and read whole at open. fib(12) by
instruction with everything on: 9 MB, 71 000 moments/s.
</content>
</entry>
<entry>
<title>ztrace show: a recording's summary, and the program's state at a moment</title>
<updated>2026-11-10T14:20:34Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-10T14:20:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/computeranim.git/commit/?id=7f1adc581deba868f5ad04b55e34027ae70f899e'/>
<id>urn:sha1:7f1adc581deba868f5ad04b55e34027ae70f899e</id>
<content type='text'>
</content>
</entry>
</feed>
