diff options
31 files changed, 1051 insertions, 519 deletions
diff --git a/design/README.md b/design/README.md index e465e8e..cd7a730 100644 --- a/design/README.md +++ b/design/README.md @@ -426,7 +426,7 @@ A word of the stack, pwndbg's way and a little more. | 16 | pins | the `row` pin's lane, to 112: every register whose value is this word's address | | 172 | offset | from rsp, hex, `+18`, faint, ranged right in four characters (`-8` above rsp) | | 184 | address | stack ink, `lead`; then the chain, its first hop the word's content | -| right | role | what the word is, where the recording knows it, ranged right where the chain's room ends: `saved rbp`, `saved rbx` (dim); a local's name (primary); at the process's start `argc`, `argv[0]`, `argv end`, `envp end`, `auxv` (dim) | +| right | role | what the word is, where the recording knows it, ranged right where the chain's room ends: `saved rbp`, `saved rbx` (dim); a local's name (primary), and which part of the word when it is narrower (`n, high half`); at the process's start `argc`, `argv[0]`, `argv end`, `envp end`, `auxv` (dim) | | 14 from the right | span | the [`call`](#call) bracket, its name left of it | A return address needs no word: its chain is code, named (`10018b0 @@ -482,7 +482,7 @@ whole annotation do not fit, in this order: | It | Annotation | | --- | --- | -| reads memory | a chain from the address it computes: `28b41098 → 28b41070 ◂ 9`. Before the step, where it will look; in the step its first hop is `read` | +| reads memory | a chain from the address it computes: `28b41098 → 28b41070 ◂ 9`. Before the step, where it will look; in the step its first hop is `read`. The value is read at the access's width: a 4-byte load of `n` is `7fffffffecc4 ◂ 15`, not the word round it | | writes memory | the same chain; the value after `holds` is `struck` | | only sets a register | a small `reg`: `rax 28b41090 ◂ 4` | | compares or tests | the two values it compares, ` : ` between, faint: `3 : -4096`; then the flags it leaves, those the conditional after it reads (CF ZF SF OF when none follows): set on a chip as rip's are, clear in dim lower case: `3 : -4096 CF zf` | @@ -746,7 +746,7 @@ is made, the kernel. Down is deeper, and the way back up is drawn. | Part | Drawn | | --- | --- | -| a caller's window | its call row, `waiting`, the row before it and the row it will return to: three rows. The nearest caller gets the rows the deepest does not use, round its call row | +| a caller's window | its call row, `waiting`, one row after it (the row it will return to) and at least one before: three rows. The rows the deepest window does not use go to the nearest caller, above its call row; it never keeps more than the one row after the call, so the callee's head sits directly under its return row. Where the caller's function starts first, the rest go to the deepest window, its neighbours `outside` | | a head | a row: a 2-unit rule across, the callee's name at 40 (Go Medium 18, primary), what it is ranged right (Go 18, faint): `libc.so.6 · no source`, `the PLT · its jmp reads open@got, 403fd8`, `vdso · the kernel's code, run here` | | the call lane | 2 units, primary, from the waiting ring at x 14 straight down to the head, turning in to a head 7 by 8 before the name. It is part of the panel, as the jump lane is, and not a tie of the budget | | a stub | its rows whole (a PLT entry is three); once its `jmp` has gone on, its window keeps that row, `pass`, and the lane runs on from it to the next head | @@ -924,7 +924,7 @@ appears: leaves in call order, a parent over the middle of its children. | Part | Drawn | | --- | --- | | node | a disc 48 across; its argument in mono 25 at its centre, primary | -| levels | 46 apart, the root's centre 48 under the tag; leaves spread over the drawing's width (about 111 apart for eight) | +| levels | 46 apart, the root's centre 48 under the tag; leaves spread over the drawing's width, the last leaf's centre at 880 − 69 so its badge stays 12 inside the rule (about 111 apart for eight) | | result | on its shoulder (12 right of the centre, 42 up): a square of 30 framed 2 in faint, the number in mono 25 primary; struck when the call returns | | edge | 3 wide, centre to centre, under the nodes; primary on the path of calls waiting, rule elsewhere | | the caller | `main`, a raised box 64 by 28 left of the root on its level, the name in mono 20; an edge into the root | @@ -971,7 +971,11 @@ far as strace writes them, a row each, oldest on top and the newest at the bottom: the name in bold, the arguments by name with their values (`fd 3 "t.db"`, `buf 538b28`) where the recording has them, ` = ` and the result, the newest's with the turned corner. Its view is a -[`hexdump`](#hexdump) by `fields` of the buffer, `given`. The band is not +[`hexdump`](#hexdump) by `fields` of the buffer, `given`, and it changes +with the crossing, never in one frame: the last call's bytes go (12 f) +and this one's come (12 f) while its arguments are framed (a path or a +buffer handed in is there whole; one the kernel fills is dots until its +bytes strike, 144 to 176); they leave when the log takes the call's row. The band is not the kernel and is not on vellum: the kernel is under the program, the floor of a [`descent`](#descent), where the call is made. A crossing stepped over (a line that calls libc's wrapper, not followed down) opens @@ -1019,8 +1023,15 @@ stage, and a 4-unit bracket under the digits lying on the tag: the stem, as short as a stem can be; it covers the rows under its pointer, whole. A loupe opened from a loupe hangs the same way from its field, 120 to the right, over the older one's lower rows. It never covers its own pointer, the current marks (the pc's row, the current line, rip's row), the ends of a drawn tie, or a -row the step changes; where the first place would, it moves down past -them, then to the other side; it stays inside the stage. On the map it is +row the step changes, at any moment of the step; where the first place +would, it moves down past them, then to the other side; it stays inside +the stage. **One hung from the band's view** (a row of the drawing's +bytes) never lies over the registers, which every step changes: it lies +over the stack, its tag's top on the stack's first row (clamped to the +stage: in `subject` 736 to 888), its left edge on the state column's, its +stem down the gutter's right lane (x 962) from the foot of its row to the +tag. Where the step changes a word of the stack under it, it does not open +in that step. On the map it is a panel of its own beside the memory it shows (the map has room), and on the minimap a lifted box there, its target's row outlined in its region's ink. @@ -1234,15 +1245,23 @@ lens's drawing, and the loupes open. the next under it with 12 between; a panel longer than what is left of its column continues at the top of the next column's free space, as a second column of itself under the same tag, `continued`. Nothing is - stretched and nothing is centred to fill: a column's foot that is left - holds the map's key (the scene, the moment, the marks' legend), or is - page. + stretched and nothing is centred to fill. **A box is as tall as its + rows, never taller**: a dump is the rows that hold a field or were + touched, with `more` rows for the rest, so a region with six rows of + fields is a box of six (176 units), not a window of 32. Space a column + has left is given, in this order, to: more of the stack (before it folds + into `more`); the memory round the pointers the registers and the + stack's words hold, a short dump each (five rows round the target, its + region's ink, under the memory panel); the loupes open; and last the + map's key (the scene, the moment, the marks' legend, three rows). Only + then is a column's foot page. - **Its lengths.** The source: the file whole, or 69 lines round the current line. The disassembly: 69 rows, the function whole where it fits. The stack: from 16 words above rsp (the 128 bytes the recording keeps under it) to the stack's top, folded into `more` after the - process's start. Memory: each region the scene touches, 32 rows round - what was touched, fieldless rows folded. The drawing: its subject size, + process's start. Memory: each region the scene touches, up to 32 rows + round what was touched, as many as hold something, fieldless rows + folded. The drawing: its subject size, 880 by 296. A loupe: nine rows, beside the memory it shows. - **What it draws.** The rows as the working frame draws them, the marks of the moment (current, struck, read, held, trail), the thread across the @@ -1275,8 +1294,9 @@ step strikes a word the stack's window does not show, its block on the minimap strikes with it, and `flash`es (a ring 8 across drawing out to 14 and gone, 12 f) so the eye goes there once. That is how nothing is hidden at the working frame's size: it is only small. The minimap is -secondary action: it never starts on a primary onset's frame, it fades -and never travels, except its windows, which glide with their scrolls. +secondary action: every change on it starts 6 f after the primary onset +it follows, never on that frame; it fades and never travels, except its +windows, which glide with their scrolls. ### clock and caption @@ -1298,6 +1318,8 @@ and never travels, except its windows, which glide with their scrolls. | before the first step it describes fires | 60 f after it has arrived; 120 f for a scene's first | | a scene's first | arrives at 1.0 s; the first step fires by 4.0 s (5.0 s when the scene opens on the map and dives) | | changes | only in a rest, never under a moving thing | + | names | only what is on screen at the pace it plays: no register a run veils, no step that has not happened or that played more than its 60 f lead ago | + | checked | by the instruments' CAPTION ([motion.md](motion.md#the-instruments)) | | longer than two lines | two captions, split at a phrase rest | | the last | its reading time before the cut, and 2 s on the finished picture; the scene grows to fit | @@ -1320,7 +1342,7 @@ Frames at 60 a second. `s` is the frame a strike lands. Curves: | --- | --- | --- | | `fire` | the current plaque | 0 to 12: it pulses once. Nothing else moves | | `arm` | a value about to be written | s-12 to s: the `armed` frame, in over 2 f; the old value still in it | -| `strike` | a value written | s to s+6 the fill comes in, linear; the new digits at s+3; s to s+12 its edges go out 3 units (4 in a lens's cell) and back, sine; solid until the advance | +| `strike` | a value written (in a dump, its bytes from the first that changed to the last, 1 f apart; never the whole field) | s to s+6 the fill comes in, linear; the new digits at s+3; s to s+12 its edges go out 3 units (4 in a lens's cell) and back, sine; solid until the advance | | `cool` | a struck value | starts with the advance: 24 f, `glide`, the paper to nothing, and the turned corner of `held` fades in over its last 6 f, for three steps (then out over 36 f); the same in a lens's cell. The digits go to their ordinary face at its middle | | `read` | a value read | in over 6 f; held to the advance; out over 18 f. No arm, no pulse | | `extend` | a chain whose first hop was struck | each later hop is followed again, 4 f apart, fading in over 6 f | @@ -1328,18 +1350,18 @@ Frames at 60 a second. `s` is the frame a strike lands. Curves: | `project` | a run read or struck, and its part of the drawing | on the run's mark: the bracket on the row (6 f), the line draws from the bytes to the drawing (18 f; 30 f over 600 units; `standard`); only when it arrives does the part react (its own `read`, or `arm` and `strike`; a new call's node fades in, 6 f); out with the advance, 18 f | | `travel` | a value, a card or a pin going from one place to another | `glide`. A value or card: 30 f to 200 units, 36 f to 400, 48 f beyond. A pin goes along its lane, 18 f after the strike that moved it: in a drawing 30 f to the next node or cell, 36 f to one farther; in the stack's lane 24 f to the next row and 2 f a further row, 36 f at most. A pin that comes fades in over 12 f rising 8 units; one that goes fades out over 12 f; a name joining or leaving a pin cross-fades over 12 f. On a `link` the pin rides the line's head instead. 8 f at a run; at a sprint only at a phrase's end | | `open` | a loupe, from a pointer | the pointer's hop framed `read` (6 f); the stem draws from it to the loupe's place, head first, 18 f (30 f over 600 units), `standard`; the loupe rises with the stem's head: it fades in over 12 f from 8 units lower, its shadow growing from nothing to its offset (18 f, `standard`); the target's bright frame lands 6 f after. From a pointer inside a loupe the same, over it, and a third closes the first as it starts. In the slot of the level that read the pointer, or on a beat the caption names | -| `close` | a loupe | the deepest first: its stem draws back into its pointer (12 f) and the loupe sinks, fading out over 12 f as it falls 8 units and its shadow shrinks; with the advance of the step after the one it opened in, unless the narration holds it; 120 f at most without a change | -| `dive` | from the map to the working frame | one continuous move in which the windows become the panels and the map becomes the minimap. 0 to 6: the windows' outlines go bright. 6 to 24: the rest of the map takes the veil (50%). 24 to 96, `glide`: each window goes from its place on the map to its panel's place, its scale on a logarithm from the map's (half, filling the frame) to the frame's (whole), so its rows grow from 10 units to 20 under the eye, the panels 6 f apart in the frame's reading order (drawing, view, source, registers, disassembly, stack), each drawn over those before; the map, veiled, goes the same 72 f to the minimap's place, its scale from a half to a twentieth, so the windows rise out of it as it falls away; their outlines stay on it and land as the minimap's windows. 72 to 96: the drawing, whose sizes differ between the two, crossfades from the map's to the frame's within its box. 84 to 96: the frame's tags, rules and lanes fade in; the veil on the map lifts as it lands. 96 to 132: still | +| `close` | a loupe | the deepest first: its stem draws back into its pointer (12 f) and the loupe sinks, fading out over 12 f as it falls 8 units and its shadow shrinks; with the advance of the step it opened in. A loupe the narration keeps across steps closes at each advance and opens again in the idea's slot of the next step that concerns it (36 f, as `open`): the steps between are not drawn under it. Open 120 f without a change is the most | +| `dive` | from the map to the working frame | one continuous move in which the windows become the panels and the map becomes the minimap. 0 to 6: the windows' outlines go bright. 6 to 24: the rest of the map takes the veil (50%). 24 to 96, `glide`: each window goes from its place on the map to its panel's place, its scale on a logarithm from the map's (half, filling the frame) to the frame's (whole), so its rows grow from 10 units to 20 under the eye, the panels 6 f apart in the frame's reading order (drawing, view, source, registers, disassembly, stack), each drawn over those before; the map, veiled, goes the same 72 f to the minimap's rect (1664, 912, 192 by 108), continuously, its scale from a half to a twentieth on its logarithm, so the windows rise out of it as it falls away; it is never dropped or hidden on the way; their outlines stay on it and land as the minimap's windows; as it lands (90 to 96) it crossfades into the minimap's own drawing. 72 to 96: the drawing, whose sizes differ between the two, crossfades from the map's to the frame's within its box. 84 to 96: the frame's tags, rules and lanes fade in; the veil on the map lifts as it lands. 96 to 132: still | | `surface` | from the working frame to the map | the dive backwards, a little quicker: 0 to 12 the tags, rules and lanes fade out; 12 to 84, `glide`, the panels shrink into their windows as the minimap grows to fill the frame; 84 to 96 its veil lifts; then the map is still 36 f before anything plays on it | | `flash` | the minimap, at a mark no window shows | a ring 8 across in the mark's colour draws out to 14 and is gone, 12 f, with the mark's own strike or read | -| `descend` | a call the narration follows down | 0 to 12 fire on the call row; rsp struck (24); the stack slides and the return address is struck (30 to 60), as for any call; then 66 to 84 the caller's window closes round its call row (the rows it gives up fade, 12 f; its three glide to its top, 18 f, `glide`); 72 to 84 the call row's plaque becomes the ring; 84 to 102 the call lane draws down from the ring, head first, `standard`; 96 to 108 the callee's head fades in rising 8 as the lane reaches it; 102 to 126 its rows, top down, 2 f apart, 12 f each; 126 to 138 the advance: the plaque lands on the callee's first row, and the source line goes `waiting` (6 f) where the callee has none. Through a stub's `jmp`: the stub's window shrinks to that row, `pass` (18 f, `glide`), the lane runs on to the next head (18 f), the next window comes in the same way | +| `descend` | a call the narration follows down | 0 to 12 fire on the call row; rsp struck (24); the stack slides and the return address is struck (30 to 60), as for any call; then the caller's window closes round its call row, in two moves and never both at once: 66 to 78 the rows it gives up fade (those after its return row, and from its top as many as the callee needs), then 78 to 96 the rows it keeps glide up to their places (`glide`), where they move at all; 84 to 96 the call row's plaque becomes the ring; 96 to 114 the call lane draws down from the ring, head first, `standard`; 108 to 120 the callee's head fades in rising 8 as the lane reaches it; 114 to 138 its rows, top down, 2 f apart, 12 f each; 138 to 150 the advance: the plaque lands on the callee's first row, and the source line goes `waiting` (6 f) where the callee has none. Through a stub's `jmp`: the stub's other rows fade (12 f), then its `jmp` row, `pass`, glides to its place (18 f, `glide`), the lane runs on to the next head (18 f), the next window comes in the same way. A label that changes with it (the stack span's name, the source's tag) crossfades, 12 f | | `cross` | a `syscall` row, in a descent | 0 to 12 fire; 18 to 36 the registers that carry the call framed as read, 6 f apart, the argument rows under the row with them (`echo`); 48 to 72 the crossing lane draws down, 3 units, vellum; 66 to 78 the kernel's window opens as it lands, the vellum filling down from the lane's head; 78 to 90 its head and the call fade in, 6 f apart; the work (bytes given or filled, motion.md's chart); `returns` struck; then the answer climbs the lane (24 f) and rax is struck as it lands, the clobbered registers 6 f apart after it, the log's new row fading in (secondary); hold 36; the advance: the kernel's window draws back up into the lane (12 f) and the lane into the plaque (12 f) as the plaque moves on | -| `ascend` | a `ret` out of a descent's window | 0 to 12 fire; 18 to 24 the return address framed as read on the stack; rsp struck (36); 48 to 72 the window closes, its rows fading bottom up, 2 f apart, 12 f each, its head last; 72 to 84 the lane draws back up into the ring; 84 to 102 the caller's window grows back (`glide`), the rows it gave up fading in; 102 to 114 the ring becomes a trail bar, the call row's annotation takes the result (6 f), and the plaque lands on the row after the call; the source line from `waiting` to `current` | +| `ascend` | a `ret` out of a descent's window | 0 to 12 fire; 18 to 24 the return address framed as read on the stack; rsp struck (36); 48 to 72 the window closes, its rows fading bottom up, 2 f apart, 12 f each, its head last; 72 to 84 the lane draws back up into the ring; the caller's window opens in the reverse order of its closing: 84 to 102 the rows it kept glide back down (`glide`), then 102 to 114 the rows it gave up fade in; 114 to 126 the ring becomes a trail bar, the call row's annotation takes the result (6 f), and the plaque lands on the row after the call; the source line from `waiting` to `current` | | `arc` | a pointer to a row of its panel | written: with the arm (s−12) the old arc goes dashed; from s+6 it fades (12 f) while the new one draws from the pointer's row along its lane to the target, head first, 12 f, `standard`, at full ink; with the cool at the advance it quiets to standing (24 f). Read: to full ink with the read (6 f), back with the advance. Overwritten with a target off the panel or NULL: it fades from s+6 (12 f). A lane change glides 12 f. Scrolled: it rides its rows, fading as its target leaves. At a run 8 f, at a sprint none | | `advance` | the current marks | last. The thread, the plaques and rip move together: 12 f to an adjacent row, 24 f up to eight rows, `standard`; farther, out and in over 6 f. A taken jump's line draws in the jump lane with it | | `cascade` | a step | `fire` (12); then its effects a level at a time, 18 f apart: CPU (`reg`s, the pc's annotation), memory (`slot`s, `bytes`), the idea (the drawing, by `project`); each armed, then struck; hold 36 f after the last strike and 12 f a further value, 84 at most; `advance`; rest 24 f. A level with nothing on screen to change gives up its slot | | `continue` | a stop far from the last: a breakpoint, not a step. Where the windows' new places are farther than their own heights (another function, another file), it is told on the map: `surface`, the jump there, `dive` | `fire` on the line it leaves from; then the levels as in a `cascade`, but CPU is a wave: every register that changed is struck 2 f after the one above it, in pwndbg's order, the fill in over 6 f, no arm and no pulse (a dozen pulses at once are a flash, and a dozen arms a crowd); memory: the stack's window scrolls or fades to its new place, and the [backtrace](#backtrace)'s frames leave, slide and arrive; the idea; hold 36 f after the last strike; `advance`, the source and disassembly fading through if far; rest. Its marks are only on what was on screen to change | -| `run` | steps that need not be read | 18 f a step; no fire, arm or pulse; the mark, cards, nodes and pins ease in 8 f; values change with an ember, never a solid; no ties but the thread. Registers, stack and disassembly are veiled from the first shortened step to the last; the source, the band and the clock are not. 24 steps at most. A run longer than a phrase may `surface` and play on the map | +| `run` | steps that need not be read | 18 f a step; no fire, arm or pulse; the mark, cards, nodes and pins ease in 8 f; no strikes, no held corners and no arcs drawing: a value changes in place under an 8 f crossfade, unmarked, and what the run changed is shown settled when it ends (its arcs fade in, 8 f, standing; no corners); no ties but the thread. A caption never names what a run veils. Registers, stack and disassembly are veiled from the first shortened step to the last; the source, the band and the clock are not. 24 steps at most. A run longer than a phrase may `surface` and play on the map | | `sprint` | steps to be got through | 4 f a step. The drawing grows and the clock sweeps; the source and the band's view are veiled as well; the mark and the pins move only at a phrase's end. Each change of pace ramps at 0.6 of the step before. A sprint plays on the map: `surface` before it, `dive` after it, at the stop it reaches; the windows glide with the pc, the minimap's marks flash and fade | | `establish` | a scene's opening | done by 54 f: the panels fade in, 18 f each, 6 f apart (registers, stack, source, disassembly, the band's view, the drawing's panel: 0 to 48); from 30 f the drawing's elements fade in rising 8 units, 12 f each, 2 f apart in address order and all begun by 42 f, each with its row's quiet bracket (an `echo`: no lines). The first caption arrives at 60 f | | `scroll` | a `source`, `disasm` or `stack` window | whole rows, 24 f, `glide`, before the level it makes room for; marks ride with their rows; the window's outline on the minimap glides with it, the same 24 f. A column's `lead` and the line numbers are the rows' on screen: they change on the scroll's first frame, never before. A window going farther than its own height (ten lines, nine instructions, six slots) does not scroll, which would only blur: it fades out (12 f) and in at its new place (12 f), and what it brings comes in with no marks | @@ -1347,10 +1369,16 @@ Frames at 60 a second. `s` is the frame a strike lands. Curves: | `visit` | the camera | the target framed first (24 f), the rest veiled (18 f); the move 72 f, `glide`. The panel's tag and whole rows in frame, the rows the visit's steps change in its middle third, never at its edge; a stack visited holds its window still. A visit never veils or clears a panel a drawn tie starts or ends in: it waits until the tie has drawn back, or frames both ends. 120 f at most without a change; back | | `say` | the caption | out 12 f, gap 6 f, in 18 f; the numbers are under [caption](#clock-and-caption) | +**Nothing changes in one frame.** A label that changes in place (a tag's +note, a span's name, a box's name, the source's tag) crossfades over 12 +f; a count that appears fades in (6 f) and is then armed and struck; a +value written is struck; a window going far fades through. The +instruments' POP finds any one-frame change after stillness. + A step is as long as its content: 0.8 s when only the line moves, 1.5 s for one register, 2.0 s for a register and memory, 3.0 s for a call and 3.1 s -for a return across three levels, 2.7 s for a swap; 2.7 s to follow a -call down, 3.6 s for a crossing (4.9 s when it moves bytes), 2.3 s back up. +for a return across three levels, 2.7 s for a swap; 2.9 s to follow a +call down, 3.6 s for a crossing (4.9 s when it moves bytes), 2.5 s back up. ## Composition @@ -1427,7 +1455,7 @@ cd design/mock python3 -B context.py && for n in 12-calls-subject 13-sqlite-row 14-sqlite-page; do resvg $n.svg $n.png && resvg -w 480 $n.svg $n-480.png; done; resvg 16-descent.svg 16-descent.png resvg 17-operands.svg 17-operands.png -python3 -B heap.py && resvg 18-heap.svg 18-heap.png && resvg -w 480 18-heap.svg 18-heap-480.png +python3 -B heap.py && for n in 18-heap 18-heap-free; do resvg $n.svg $n.png && resvg -w 480 $n.svg $n-480.png; done python3 -B dense.py && resvg 15-marks.svg 15-marks.png python3 -B map.py && for n in 09-context 10-context-step 11-context-lens 21-loupe 19-map; do resvg $n.svg $n.png && resvg -w 480 $n.svg $n-480.png; done # 20-dive.png it composes itself @@ -1447,9 +1475,10 @@ python3 -B gen.py # 1 to 8, then resvg the same way | [19](mock/19-map.png) | the map, mid-step with a loupe open: the same moment unfolded on 3840 by 2160 ([at 1080p](mock/19-map-1080.png)) | the file whole; 69 instructions; memory, the registers, the backtrace whole; the stack from 16 words above rsp, continued at the third column's foot and folded into `more` at the process's start; the loupe as a panel beside memory; `arc`s in memory, the loupe and the stack (the frame chain left to the spans); the key; the thread across the gutter; the working frame's windows outlined | | [20](mock/20-dive.png) | `dive`, four instants on one sheet, each at the working frame's size | frame 0 the map; 24 the windows bright, the rest veiled; 60 halfway, the panels rising out of the map as it falls to the corner; 96 the working frame with its minimap | | [21](mock/21-loupe.png) | the working frame mid-step with a `loupe` open | the loupe hanging from rdi over the registers under it, its node framed, the chain 1004090 → 1004070 → 1004050 as `arc`s in one lane (the view withholds them while the loupe is open); the minimap with the loupe at its place on the map, outlined bright | -| [16](mock/16-descent.png) | the syscalls scene's `open` followed down, four instants of the program column (`ztrace dbg` on `anim/tools/hello.c`, moments 1 to 6) | `descent`: main's window, the PLT stub's under it, libc's `open`, the kernel's window on vellum; `insn` `waiting` and `pass`; the call lane and the crossing lane; `line` `waiting` and the waiting thread; a PLT target named, an indirect jump's target, a `lea`'s result, a named place (the canary), a system call's number and its arguments hanging under it; libc's twelve-digit addresses moving their own window's columns; the descent closed again, the call `ran` with its result | +| [16](mock/16-descent.png) | the syscalls scene's `open` followed down, four instants of the program column (`ztrace dbg` on `anim/tools/hello.c`, moments 1 to 6) | `descent`: main's window, its spare rows above its call and one row after it, the PLT stub's head directly under that row (its neighbour `_start` `outside`), libc's `open`, the kernel's window on vellum; `insn` `waiting` and `pass`; the call lane and the crossing lane; `line` `waiting` and the waiting thread; a PLT target named, an indirect jump's target, a `lea`'s result, a named place (the canary), a system call's number and its arguments hanging under it; libc's twelve-digit addresses moving their own window's columns; the descent closed again, the call `ran` with its result | | [17](mock/17-operands.png) | operands before and after, on real rows of list, hello and libc's `open`; then the row's detail | size words gone; `width` on an immediate store, a byte compare, a sign-extending load; padding faint; a compare's two values and the flags it leaves; conditionals reading them; `lea`'s sum; an indirect jump through `open@got` | -| [18](mock/18-heap.png) | the heap scene, five instants: `ztrace dbg` on `mock/heap.c`, glibc 2.44, after each malloc and free | `nodes` in two rows, a `bin` heading the second (`dummy tcache` before the first free); a free chunk drawn `freed`, its link in its first word; `bytes` read as `size` (`0x20 a m P`) and `protected` (`→ 405050 ^ 405`), notes (`key`, `the old link`); the free list and the program's list as `arc`s; struck bytes, one byte of a pointer struck alone; a `loupe` on the tcache hung from the dump's row of its chunk | +| [18](mock/18-heap.png) | the heap scene, five instants of the band: `ztrace dbg` on `mock/heap.c`, glibc 2.44, after each malloc and free (2 a run's end, settled, unmarked) | `nodes` in two rows, a `bin` heading the second (`dummy tcache` before the first free); a free chunk drawn `freed`, its link in its first word; `bytes` read as `size` (`0x20 a m P`) and `protected` (`→ 405050 ^ 405`), notes (`key`, `the old link`); the free list and the program's list as `arc`s; struck bytes, one byte of a pointer struck alone | +| [18, the free](mock/18-heap-free.png) | beat 3 in the working frame, mid-step | the register wave a stepped-over call leaves; a `loupe` from the band's view lying over the stack, never the registers, its stem down the gutter's right lane; `rdi` still on the freed chunk; the tcache's two fields, `0x2f8 bytes` | | [1](mock/01-fib-recursion.png) | first pass | `calls` at camera scale | | [2](mock/02-list-insert.png) | first pass | `nodes` at camera scale; `allocated` | | [3](mock/03-syscall-write.png) | first pass | `syscalls`; `kernel` (the kernel's side is now the descent's floor, 16) | @@ -1482,11 +1511,11 @@ the band. at stop 167, before the kernel took it). - A calls tree small or folded. - `array`, `pages` in the band. -- The heap scene's working frame whole, its map and minimap (its places +- The heap scene's map and minimap (their places are in [the scene](motion.md#a-scene-libcs-heap-from-the-inside)), a node travelling between the rows, a bin of the unsorted or large kind. -- A loupe opened from the stack or the disassembly (18 opens one from a - dump's row); two in the working frame; a third closing the first. +- A loupe opened from the stack or the disassembly (18's opens from the + band's view); two in the working frame; a third closing the first. - The minimaps of 12 to 18: their recordings hold a stack of 64 words or less and no bytes round targets, so their maps would be mostly gaps. - `surface`, `flash`, a window's outline gliding on the minimap. @@ -1608,9 +1637,9 @@ loupe's and the arc's tokens, the lift's colours, the clock's count at | `metric.insn.wide` | none | 12 a digit past seven, per window: libc's mnemonic at 240, its annotation at 624 | | `metric.descent` | none | callers' windows 3 rows; a head a row (rule 2, name at 40 in Go Medium 18, what it is ranged right in Go 18); the call lane at x 14, 2 in primary, head 7 by 8 into the name; into the kernel 3 in vellum, its head in ink; three windows of code, then a fold row; the kernel's window a head and two rows | | `metric.node.two_rows`, `metric.bin` | none | rows 110 apart, nodes 136 wide; the bin box 160 by 44 at the row's left, its count on a 30 square on the shoulder; a free node's outline dashed 12 on 8 | -| `time.descend` | none | `close` 0.20 then 0.30 (`glide`), `ring` 0.20, `lane` 0.30, `head` 0.20, `rows` 0.20 a row 0.03 apart, from 1.10 after the fire; the step 2.70 | +| `time.descend` | none | `close` 0.20 then 0.30 (`glide`), `ring` 0.20, `lane` 0.30, `head` 0.20, `rows` 0.20 a row 0.03 apart, from 1.10 after the fire, the given-up rows fading before the kept glide, never both; the step 2.90 | | `time.cross` | none | the registers framed 0.10 apart from 0.30; `lane` 0.40 from 0.80; the kernel's window 0.20; the answer up 0.40; the step 3.60, 4.90 when it moves bytes | -| `time.ascend` | none | `close` 0.20 a row, 0.03 apart, from 0.80; the lane back 0.20; the caller's window 0.30 (`glide`); the step 2.30 | +| `time.ascend` | none | `close` 0.20 a row, 0.03 apart, from 0.80; the lane back 0.20; the caller's kept rows 0.30 (`glide`), then the given-back rows 0.20; the step 2.50 | Unchanged and already there: the 1920 stage and its splits, the palette with the marks of the last round (`wash`, `struck` `b54f42`, the corner), diff --git a/design/mock/09-context-480.png b/design/mock/09-context-480.png Binary files differindex d20bfa0..52edc14 100644 --- a/design/mock/09-context-480.png +++ b/design/mock/09-context-480.png diff --git a/design/mock/09-context.png b/design/mock/09-context.png Binary files differindex d7ad775..b262b5b 100644 --- a/design/mock/09-context.png +++ b/design/mock/09-context.png diff --git a/design/mock/09-context.svg b/design/mock/09-context.svg index a67fd37..c867889 100644 --- a/design/mock/09-context.svg +++ b/design/mock/09-context.svg @@ -874,16 +874,16 @@ <rect x="1670.2" y="986.5" width="1.2" height="1.0" fill="#3f4a7b"/> <rect x="1672.6" y="986.5" width="5.4" height="1.0" fill="#878689"/> <rect x="1669.6" y="993.0" width="44.0" height="1.2" fill="#121e51"/> -<rect x="1670.2" y="993.5" width="42.9" height="6.5" fill="none" stroke="#303e78" stroke-width="1"/> +<rect x="1670.2" y="993.5" width="42.9" height="4.1" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1671.0" y="993.3" width="3.7" height="1.0" fill="#59638d"/> <rect x="1702.4" y="993.3" width="10.7" height="0.9" fill="#3f4a7b"/> <rect x="1670.2" y="994.8" width="22.9" height="0.9" fill="#59638d"/> -<rect x="1670.2" y="996.0" width="6.0" height="1.2" fill="#181e3b"/> -<rect x="1677.0" y="996.4" width="2.8" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="996.4" width="2.4" height="0.9" fill="#59638d"/> -<rect x="1706.0" y="996.4" width="1.8" height="0.9" fill="#59638d"/> -<rect x="1677.0" y="997.6" width="1.7" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="997.6" width="3.0" height="0.9" fill="#59638d"/> +<rect x="1670.2" y="995.6" width="6.0" height="1.2" fill="#181e3b"/> +<rect x="1677.0" y="996.0" width="2.8" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="996.0" width="2.4" height="0.9" fill="#59638d"/> +<rect x="1706.0" y="996.0" width="1.8" height="0.9" fill="#59638d"/> +<rect x="1677.0" y="997.2" width="1.7" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="997.2" width="3.0" height="0.9" fill="#59638d"/> <rect x="1715.2" y="916.8" width="44.0" height="1.2" fill="#121e51"/> <rect x="1715.8" y="917.4" width="42.9" height="83.3" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1716.6" y="917.1" width="5.8" height="1.0" fill="#59638d"/> @@ -2000,9 +2000,9 @@ <rect x="1670.0" y="917.1" width="1.5" height="1.5" fill="#e8c46a"/> <rect x="1669.7" y="957.6" width="2.5" height="1.5" fill="#e8c46a"/> <rect x="1669.7" y="991.0" width="2.0" height="1.5" fill="#e8c46a"/> -<rect x="1670.2" y="996.0" width="1.5" height="1.5" fill="#e8c46a"/> -<rect x="1684.7" y="996.0" width="3.0" height="1.5" fill="#ff6a4a"/> -<rect x="1699.2" y="996.0" width="2.9" height="1.5" fill="#6fd6e6"/> +<rect x="1670.2" y="995.6" width="1.5" height="1.5" fill="#e8c46a"/> +<rect x="1684.7" y="995.6" width="3.0" height="1.5" fill="#ff6a4a"/> +<rect x="1699.2" y="995.6" width="2.9" height="1.5" fill="#6fd6e6"/> <rect x="1715.3" y="962.6" width="1.5" height="1.5" fill="#e8c46a"/> <rect x="1713.8" y="957.7" width="1.5" height="1.5" fill="#e8c46a"/> <rect x="1713.5" y="957.7" width="1.5" height="1.5" fill="#e8c46a"/> diff --git a/design/mock/10-context-step-480.png b/design/mock/10-context-step-480.png Binary files differindex 8f92f8d..2a9eaad 100644 --- a/design/mock/10-context-step-480.png +++ b/design/mock/10-context-step-480.png diff --git a/design/mock/10-context-step.png b/design/mock/10-context-step.png Binary files differindex 59d3169..7290e91 100644 --- a/design/mock/10-context-step.png +++ b/design/mock/10-context-step.png diff --git a/design/mock/10-context-step.svg b/design/mock/10-context-step.svg index b33a4d0..c788864 100644 --- a/design/mock/10-context-step.svg +++ b/design/mock/10-context-step.svg @@ -886,16 +886,16 @@ <rect x="1670.2" y="986.5" width="1.2" height="1.0" fill="#3f4a7b"/> <rect x="1672.6" y="986.5" width="5.4" height="1.0" fill="#878689"/> <rect x="1669.6" y="993.0" width="44.0" height="1.2" fill="#121e51"/> -<rect x="1670.2" y="993.5" width="42.9" height="6.5" fill="none" stroke="#303e78" stroke-width="1"/> +<rect x="1670.2" y="993.5" width="42.9" height="4.1" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1671.0" y="993.3" width="3.7" height="1.0" fill="#59638d"/> <rect x="1702.4" y="993.3" width="10.7" height="0.9" fill="#3f4a7b"/> <rect x="1670.2" y="994.8" width="22.9" height="0.9" fill="#59638d"/> -<rect x="1670.2" y="996.0" width="6.0" height="1.2" fill="#181e3b"/> -<rect x="1677.0" y="996.4" width="2.8" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="996.4" width="2.4" height="0.9" fill="#59638d"/> -<rect x="1706.0" y="996.4" width="1.8" height="0.9" fill="#59638d"/> -<rect x="1677.0" y="997.6" width="1.7" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="997.6" width="3.0" height="0.9" fill="#59638d"/> +<rect x="1670.2" y="995.6" width="6.0" height="1.2" fill="#181e3b"/> +<rect x="1677.0" y="996.0" width="2.8" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="996.0" width="2.4" height="0.9" fill="#59638d"/> +<rect x="1706.0" y="996.0" width="1.8" height="0.9" fill="#59638d"/> +<rect x="1677.0" y="997.2" width="1.7" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="997.2" width="3.0" height="0.9" fill="#59638d"/> <rect x="1715.2" y="916.8" width="44.0" height="1.2" fill="#121e51"/> <rect x="1715.8" y="917.4" width="42.9" height="83.3" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1716.6" y="917.1" width="5.8" height="1.0" fill="#59638d"/> @@ -2013,9 +2013,9 @@ <rect x="1681.3" y="922.8" width="2.5" height="3.7" fill="#6fd6e6"/> <rect x="1669.7" y="957.6" width="2.5" height="1.5" fill="#e8c46a"/> <rect x="1669.7" y="991.0" width="2.0" height="1.5" fill="#e8c46a"/> -<rect x="1670.2" y="996.0" width="1.5" height="1.5" fill="#e8c46a"/> -<rect x="1684.7" y="996.0" width="3.0" height="1.5" fill="#ff6a4a"/> -<rect x="1699.2" y="996.0" width="2.9" height="1.5" fill="#6fd6e6"/> +<rect x="1670.2" y="995.6" width="1.5" height="1.5" fill="#e8c46a"/> +<rect x="1684.7" y="995.6" width="3.0" height="1.5" fill="#ff6a4a"/> +<rect x="1699.2" y="995.6" width="2.9" height="1.5" fill="#6fd6e6"/> <rect x="1715.3" y="962.6" width="1.5" height="1.5" fill="#e8c46a"/> <rect x="1743.2" y="962.6" width="4.7" height="1.5" fill="#6fd6e6"/> <rect x="1713.8" y="957.7" width="1.5" height="1.5" fill="#e8c46a"/> diff --git a/design/mock/11-context-lens-480.png b/design/mock/11-context-lens-480.png Binary files differindex c5e6c0b..6285b81 100644 --- a/design/mock/11-context-lens-480.png +++ b/design/mock/11-context-lens-480.png diff --git a/design/mock/11-context-lens.png b/design/mock/11-context-lens.png Binary files differindex c070e3e..6e17b47 100644 --- a/design/mock/11-context-lens.png +++ b/design/mock/11-context-lens.png diff --git a/design/mock/11-context-lens.svg b/design/mock/11-context-lens.svg index 1190b7c..b8188b3 100644 --- a/design/mock/11-context-lens.svg +++ b/design/mock/11-context-lens.svg @@ -901,16 +901,16 @@ <rect x="1670.2" y="986.5" width="1.2" height="1.0" fill="#3f4a7b"/> <rect x="1672.6" y="986.5" width="5.4" height="1.0" fill="#878689"/> <rect x="1669.6" y="993.0" width="44.0" height="1.2" fill="#121e51"/> -<rect x="1670.2" y="993.5" width="42.9" height="6.5" fill="none" stroke="#303e78" stroke-width="1"/> +<rect x="1670.2" y="993.5" width="42.9" height="4.1" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1671.0" y="993.3" width="3.7" height="1.0" fill="#59638d"/> <rect x="1702.4" y="993.3" width="10.7" height="0.9" fill="#3f4a7b"/> <rect x="1670.2" y="994.8" width="22.9" height="0.9" fill="#59638d"/> -<rect x="1670.2" y="996.0" width="6.0" height="1.2" fill="#181e3b"/> -<rect x="1677.0" y="996.4" width="2.8" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="996.4" width="2.4" height="0.9" fill="#59638d"/> -<rect x="1706.0" y="996.4" width="1.8" height="0.9" fill="#59638d"/> -<rect x="1677.0" y="997.6" width="1.7" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="997.6" width="3.0" height="0.9" fill="#59638d"/> +<rect x="1670.2" y="995.6" width="6.0" height="1.2" fill="#181e3b"/> +<rect x="1677.0" y="996.0" width="2.8" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="996.0" width="2.4" height="0.9" fill="#59638d"/> +<rect x="1706.0" y="996.0" width="1.8" height="0.9" fill="#59638d"/> +<rect x="1677.0" y="997.2" width="1.7" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="997.2" width="3.0" height="0.9" fill="#59638d"/> <rect x="1715.2" y="916.8" width="44.0" height="1.2" fill="#121e51"/> <rect x="1715.8" y="917.4" width="42.9" height="83.3" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1716.6" y="917.1" width="5.8" height="1.0" fill="#59638d"/> @@ -2028,9 +2028,9 @@ <rect x="1681.3" y="922.8" width="2.5" height="3.7" fill="#6fd6e6"/> <rect x="1669.7" y="957.6" width="2.5" height="1.5" fill="#e8c46a"/> <rect x="1669.7" y="991.0" width="2.0" height="1.5" fill="#e8c46a"/> -<rect x="1670.2" y="996.0" width="1.5" height="1.5" fill="#e8c46a"/> -<rect x="1684.7" y="996.0" width="3.0" height="1.5" fill="#ff6a4a"/> -<rect x="1699.2" y="996.0" width="2.9" height="1.5" fill="#6fd6e6"/> +<rect x="1670.2" y="995.6" width="1.5" height="1.5" fill="#e8c46a"/> +<rect x="1684.7" y="995.6" width="3.0" height="1.5" fill="#ff6a4a"/> +<rect x="1699.2" y="995.6" width="2.9" height="1.5" fill="#6fd6e6"/> <rect x="1715.3" y="962.6" width="1.5" height="1.5" fill="#e8c46a"/> <rect x="1743.2" y="962.6" width="4.7" height="1.5" fill="#6fd6e6"/> <rect x="1713.8" y="957.7" width="1.5" height="1.5" fill="#e8c46a"/> diff --git a/design/mock/16-descent.png b/design/mock/16-descent.png Binary files differindex 36ff670..1c26cd7 100644 --- a/design/mock/16-descent.png +++ b/design/mock/16-descent.png diff --git a/design/mock/16-descent.svg b/design/mock/16-descent.svg index c0af532..d0fcadb 100644 --- a/design/mock/16-descent.svg +++ b/design/mock/16-descent.svg @@ -263,102 +263,103 @@ <text x="92.0" y="318.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> <text x="934.0" y="318.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">open@plt · the PLT</text> <text x="104.0 116.0 128.0 140.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">87</text> +<text x="152.0 164.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">76</text> <text x="222.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">4</text> -<text x="244.0 256.0 268.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 8], rax</text> +<text x="244.0 256.0 268.0 280.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text> +<text x="328.0 340.0 352.0" y="347.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp</text> <text x="104.0 116.0 128.0 140.0" y="371.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="371.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">8b</text> -<text x="244.0 256.0 268.0" y="371.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="371.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text> +<text x="152.0 164.0" y="371.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">77</text> +<text x="244.0 256.0 268.0" y="371.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="371.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rbp, rsp</text> <text x="104.0 116.0 128.0 140.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">8d</text> -<text x="222.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">6</text> -<text x="244.0 256.0 268.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, [rip + 0xe70]</text> -<text x="628.0 640.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">= </text> -<text x="652.0 664.0 676.0 688.0 700.0 712.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">402004</text> -<text x="724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500"> "note"</text> +<text x="152.0 164.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7a</text> +<text x="244.0 256.0 268.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">sub</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0" y="395.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsp, 0x40</text> <text x="104.0 116.0 128.0 140.0" y="419.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="419.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">94</text> +<text x="152.0 164.0" y="419.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7e</text> <text x="244.0 256.0 268.0" y="419.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="419.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">esi, 0</text> -<rect x="66.0" y="425.0" width="4.0" height="22.0" fill="#463b20"/> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="419.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, fs:[0x28]</text> +<text x="628.0 640.0 652.0 664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0" y="419.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">the stack's canary</text> <text x="104.0 116.0 128.0 140.0" y="443.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="443.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">99</text> +<text x="152.0 164.0" y="443.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">87</text> <text x="244.0 256.0 268.0" y="443.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="443.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rax</text> -<rect x="66.0" y="449.0" width="4.0" height="22.0" fill="#746235"/> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="443.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 8], rax</text> <text x="104.0 116.0 128.0 140.0" y="467.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="467.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9c</text> -<text x="244.0 256.0 268.0" y="467.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="467.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, 0</text> -<rect x="67.0" y="473.0" width="22.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> -<path d="M83,484 l-8,-5 v10 Z" fill="#eee6d2"/> +<text x="152.0 164.0" y="467.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">8b</text> +<text x="244.0 256.0 268.0" y="467.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">xor</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="467.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, eax</text> <text x="104.0 116.0 128.0 140.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a1</text> -<text x="244.0 256.0 268.0 280.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401070</text> -<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open@plt</text> -<text x="628.0 640.0 652.0 664.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">open</text> -<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">("note", O_RDONLY)</text> +<text x="152.0 164.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">8d</text> +<text x="222.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">6</text> +<text x="244.0 256.0 268.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, [rip + 0xe70]</text> +<text x="628.0 640.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">= </text> +<text x="652.0 664.0 676.0 688.0 700.0 712.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">402004</text> +<text x="724.0 736.0 748.0 760.0 772.0 784.0 796.0" y="491.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500"> "note"</text> <text x="104.0 116.0 128.0 140.0" y="515.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="515.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a6</text> +<text x="152.0 164.0" y="515.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">94</text> <text x="244.0 256.0 268.0" y="515.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="515.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x38], eax</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="515.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">esi, 0</text> +<rect x="66.0" y="521.0" width="4.0" height="22.0" fill="#463b20"/> <text x="104.0 116.0 128.0 140.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a9</text> -<text x="222.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">7</text> -<text x="244.0 256.0 268.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">lea</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rcx, [rbp - 0x30]</text> +<text x="152.0 164.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">99</text> +<text x="244.0 256.0 268.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="539.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rax</text> +<rect x="66.0" y="545.0" width="4.0" height="22.0" fill="#746235"/> <text x="104.0 116.0 128.0 140.0" y="563.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="563.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ad</text> +<text x="152.0 164.0" y="563.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9c</text> <text x="244.0 256.0 268.0" y="563.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="563.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, [rbp - 0x38]</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="563.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">eax, 0</text> +<rect x="67.0" y="569.0" width="22.0" height="22.0" fill="none" stroke="#eee6d2" stroke-width="2"/> +<path d="M83,580 l-8,-5 v10 Z" fill="#eee6d2"/> <text x="104.0 116.0 128.0 140.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b0</text> -<text x="244.0 256.0 268.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">edx, 0x20</text> +<text x="152.0 164.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a1</text> +<text x="244.0 256.0 268.0 280.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401070</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">open@plt</text> +<text x="628.0 640.0 652.0 664.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">open</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0" y="587.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">("note", O_RDONLY)</text> <text x="104.0 116.0 128.0 140.0" y="611.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="611.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b5</text> +<text x="152.0 164.0" y="611.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a6</text> <text x="244.0 256.0 268.0" y="611.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="611.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rsi, rcx</text> -<text x="104.0 116.0 128.0 140.0" y="635.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> -<text x="152.0 164.0" y="635.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b8</text> -<text x="244.0 256.0 268.0" y="635.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="635.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">edi, eax</text> -<rect x="66.0" y="640.0" width="876.0" height="2.0" fill="#3a4a8a"/> -<text x="104.0" y="659.2" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">open@plt</text> -<text x="932.0" y="659.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the PLT · its jmp reads open@got, 403fd8</text> -<path d="M78.0,496.0 L78.0,648.0 Q78.0,652.0 82.0,652.0 L93.0,652.0" fill="none" stroke="#eee6d2" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> -<path d="M98.0,652.0 L91.0,656.0 L91.0,648.0 Z" fill="#eee6d2"/> -<rect x="66.0" y="664.0" width="876.0" height="24.0" fill="#222742"/> -<rect x="66.0" y="664.0" width="24.0" height="24.0" fill="#e8c46a"/> -<path d="M84,676 l-10,-6 v12 Z" fill="#050a24"/> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0" y="611.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rbp - 0x38], eax</text> +<rect x="66.0" y="616.0" width="876.0" height="2.0" fill="#3a4a8a"/> +<text x="104.0" y="635.2" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">open@plt</text> +<text x="932.0" y="635.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the PLT · its jmp reads open@got, 403fd8</text> +<path d="M78.0,592.0 L78.0,624.0 Q78.0,628.0 82.0,628.0 L93.0,628.0" fill="none" stroke="#eee6d2" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M98.0,628.0 L91.0,632.0 L91.0,624.0 Z" fill="#eee6d2"/> +<rect x="66.0" y="640.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="640.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M84,652 l-10,-6 v12 Z" fill="#050a24"/> +<text x="104.0 116.0 128.0 140.0" y="659.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> +<text x="152.0 164.0" y="659.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">70</text> +<text x="244.0 256.0 268.0" y="659.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="659.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x2f62]</text> +<rect x="634.0" y="651.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M652,652 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="658.0 670.0 682.0 694.0 706.0 718.0 730.0 742.0 754.0 766.0 778.0 790.0" y="659.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10ec0</text> +<text x="802.0 814.0 826.0 838.0 850.0" y="659.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"> open</text> <text x="104.0 116.0 128.0 140.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> -<text x="152.0 164.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">70</text> -<text x="244.0 256.0 268.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x2f62]</text> -<rect x="634.0" y="675.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M652,676 l-8,-5 v10 Z" fill="#6a7ab8"/> -<text x="658.0 670.0 682.0 694.0 706.0 718.0 730.0 742.0 754.0 766.0 778.0 790.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7d10ec0</text> -<text x="802.0 814.0 826.0 838.0 850.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500"> open</text> +<text x="152.0 164.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">76</text> +<text x="244.0 256.0 268.0 280.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text> +<text x="328.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">4</text> +<text x="628.0 640.0 652.0 664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0" y="683.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">lazy binding: unused</text> <text x="104.0 116.0 128.0 140.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> -<text x="152.0 164.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">76</text> -<text x="244.0 256.0 268.0 280.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">push</text> -<text x="328.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">4</text> -<text x="628.0 640.0 652.0 664.0 676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">lazy binding: unused</text> +<text x="152.0 164.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7b</text> +<text x="244.0 256.0 268.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="707.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401020</text> +<rect x="66.0" y="712.0" width="876.0" height="2.0" fill="#3a4a8a"/> <text x="104.0 116.0 128.0 140.0" y="731.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4010</text> -<text x="152.0 164.0" y="731.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7b</text> -<text x="244.0 256.0 268.0" y="731.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">jmp</text> -<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="731.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401020</text> +<text x="152.0 164.0" y="731.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">80</text> +<text x="244.0 256.0 268.0 280.0 292.0 304.0 316.0" y="731.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">endbr64</text> +<text x="628.0 640.0 652.0 664.0 676.0 688.0" y="731.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">_start</text> <rect x="53.0" y="166.0" width="2.0" height="20.0" fill="#eee6d2"/> <rect x="53.0" y="166.0" width="9.0" height="2.0" fill="#eee6d2"/> <rect x="53.0" y="184.0" width="9.0" height="2.0" fill="#eee6d2"/> -<rect x="53.0" y="378.0" width="2.0" height="140.0" fill="#eee6d2"/> -<rect x="53.0" y="378.0" width="9.0" height="2.0" fill="#eee6d2"/> -<rect x="53.0" y="516.0" width="9.0" height="2.0" fill="#eee6d2"/> -<rect x="53.0" y="166.0" width="2.0" height="352.0" fill="#eee6d2"/> +<rect x="53.0" y="474.0" width="2.0" height="140.0" fill="#eee6d2"/> +<rect x="53.0" y="474.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="612.0" width="9.0" height="2.0" fill="#eee6d2"/> +<rect x="53.0" y="166.0" width="2.0" height="448.0" fill="#eee6d2"/> <text x="64.0" y="800.0" font-family="Go" font-size="28" fill="#eee6d2" xml:space="preserve">The call pushed main+48 and went down: main's window keeps</text> <text x="64.0" y="840.0" font-family="Go" font-size="28" fill="#eee6d2" xml:space="preserve">its call, ringed; the stub's opens under it, and its jmp reads the GOT.</text> </g> diff --git a/design/mock/18-heap-480.png b/design/mock/18-heap-480.png Binary files differindex 2ba9c76..078ee3e 100644 --- a/design/mock/18-heap-480.png +++ b/design/mock/18-heap-480.png diff --git a/design/mock/18-heap-free-480.png b/design/mock/18-heap-free-480.png Binary files differnew file mode 100644 index 0000000..1041f68 --- /dev/null +++ b/design/mock/18-heap-free-480.png diff --git a/design/mock/18-heap-free.png b/design/mock/18-heap-free.png Binary files differnew file mode 100644 index 0000000..ae1fe01 --- /dev/null +++ b/design/mock/18-heap-free.png diff --git a/design/mock/18-heap-free.svg b/design/mock/18-heap-free.svg new file mode 100644 index 0000000..b3a2076 --- /dev/null +++ b/design/mock/18-heap-free.svg @@ -0,0 +1,639 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="1920" height="1080" viewBox="0 0 1920 1080"> +<defs><pattern id="hatch" width="20" height="20" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="5" height="20" fill="#3a4a8a"/></pattern><pattern id="hazard" width="24" height="24" patternUnits="userSpaceOnUse" patternTransform="rotate(45)"><rect width="24" height="24" fill="#050a24"/><rect width="12" height="24" fill="#ff6a4a"/></pattern></defs> +<rect width="1920" height="1080" fill="#0a1030"/> +<rect x="64.0" y="356.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="357.0" width="878.0" height="270.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="363.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="374.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">heap.c</text> +<text x="934.0" y="374.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">lines 14 to 23 of 31</text> +<text x="86.0 98.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">14</text> +<text x="176.0 188.0 200.0 212.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="236.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="260.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="272.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="86.0 98.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">15</text> +<text x="128.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">}</text> +<text x="86.0 98.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">16</text> +<text x="86.0 98.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">17</text> +<text x="128.0 140.0 152.0 164.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">void</text> +<text x="188.0 200.0 212.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">pop</text> +<text x="224.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="236.0 248.0 260.0 272.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">void</text> +<text x="284.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="308.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">{</text> +<rect x="66.0" y="481.0" width="4.0" height="22.0" fill="#746235"/> +<text x="86.0 98.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">18</text> +<text x="176.0 188.0 200.0 212.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">node</text> +<text x="236.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">*</text> +<text x="248.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="272.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="296.0 308.0 320.0 332.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="344.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="66.0" y="505.0" width="4.0" height="22.0" fill="#ae9350"/> +<text x="86.0 98.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">19</text> +<text x="176.0 188.0 200.0 212.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">head</text> +<text x="236.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">=</text> +<text x="260.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="272.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">-</text> +<text x="284.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">></text> +<text x="296.0 308.0 320.0 332.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">next</text> +<text x="344.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<rect x="66.0" y="528.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="528.0" width="50.0" height="24.0" fill="#e8c46a"/> +<text x="86.0 98.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">20</text> +<text x="176.0 188.0 200.0 212.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">free</text> +<text x="224.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="236.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="248.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="260.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">;</text> +<text x="86.0 98.0" y="571.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">21</text> +<text x="128.0" y="571.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">}</text> +<text x="86.0 98.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">22</text> +<text x="86.0 98.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">23</text> +<text x="128.0 140.0 152.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">int</text> +<text x="176.0 188.0 200.0 212.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main</text> +<text x="224.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">(</text> +<text x="236.0 248.0 260.0 272.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">void</text> +<text x="284.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">)</text> +<text x="308.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">{</text> +<rect x="64.0" y="640.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="641.0" width="878.0" height="246.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="73.0" y="647.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="92.0" y="658.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">disassembly</text> +<text x="934.0" y="658.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">pop</text> +<text x="104.0 116.0 128.0 140.0" y="687.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="687.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9b</text> +<text x="210.0 222.0" y="687.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">19</text> +<text x="244.0 256.0 268.0" y="687.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="687.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, [rbp - 8]</text> +<text x="104.0 116.0 128.0 140.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">9f</text> +<text x="244.0 256.0 268.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="711.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, [rax + 8]</text> +<text x="104.0 116.0 128.0 140.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">a3</text> +<text x="244.0 256.0 268.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0 508.0 520.0 532.0 544.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">[rip + 0x2e7e], rax</text> +<text x="628.0 640.0 652.0 664.0" y="735.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">head</text> +<rect x="66.0" y="741.0" width="4.0" height="22.0" fill="#746235"/> +<text x="104.0 116.0 128.0 140.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">aa</text> +<text x="210.0 222.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#e8c46a" xml:space="preserve" font-weight="bold">20</text> +<text x="244.0 256.0 268.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0 424.0 436.0 448.0 460.0 472.0 484.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rax, [rbp - 8]</text> +<rect x="66.0" y="765.0" width="4.0" height="22.0" fill="#ae9350"/> +<text x="104.0 116.0 128.0 140.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">ae</text> +<text x="244.0 256.0 268.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">mov</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0 400.0 412.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">rdi, rax</text> +<rect x="66.0" y="788.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="66.0" y="788.0" width="24.0" height="24.0" fill="#e8c46a"/> +<path d="M84,800 l-10,-6 v12 Z" fill="#050a24"/> +<text x="104.0 116.0 128.0 140.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b1</text> +<text x="244.0 256.0 268.0 280.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">call</text> +<text x="328.0 340.0 352.0 364.0 376.0 388.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401030</text> +<text x="412.0 424.0 436.0 448.0 460.0 472.0 484.0 496.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">free@plt</text> +<text x="628.0 640.0 652.0 664.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="500">free</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0 748.0 760.0 772.0 784.0 796.0 808.0 820.0 832.0 844.0 856.0 868.0 880.0 892.0 904.0 916.0 928.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> in libc, stepped over</text> +<text x="104.0 116.0 128.0 140.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b6</text> +<text x="210.0 222.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">21</text> +<text x="244.0 256.0 268.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">nop</text> +<text x="628.0 640.0 652.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi</text> +<text x="676.0 688.0 700.0 712.0 724.0 736.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405050</text> +<path d="M754,824 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="761.0" y="823.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="778.0 790.0 802.0 814.0 826.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x405</text> +<text x="846.0 858.0 870.0 882.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">1029</text> +<text x="104.0 116.0 128.0 140.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b7</text> +<text x="244.0 256.0 268.0 280.0 292.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">leave</text> +<text x="104.0 116.0 128.0 140.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#9d5c70" xml:space="preserve" font-weight="500">4011</text> +<text x="152.0 164.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">b8</text> +<text x="244.0 256.0 268.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#c0dcff" xml:space="preserve" font-weight="bold">ret</text> +<rect x="52.5" y="530.0" width="3.0" height="20.0" fill="#e8c46a"/> +<rect x="52.5" y="530.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="547.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="742.0" width="3.0" height="68.0" fill="#e8c46a"/> +<rect x="52.5" y="742.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="807.0" width="10.0" height="3.0" fill="#e8c46a"/> +<rect x="52.5" y="530.0" width="3.0" height="280.0" fill="#e8c46a"/> +<rect x="976.0" y="260.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="977.0" y="261.0" width="878.0" height="438.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="985.0" y="267.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1004.0" y="278.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">registers</text> +<text x="1501.7" y="278.0" font-family="Go Medium" font-size="18" fill="#f2d675" xml:space="preserve">stack</text> +<text x="1559.8" y="278.0" font-family="Go Medium" font-size="18" fill="#86b6ff" xml:space="preserve">heap</text> +<text x="1614.8" y="278.0" font-family="Go Medium" font-size="18" fill="#ff8f9a" xml:space="preserve">code</text> +<text x="1669.3" y="278.0" font-family="Go Medium" font-size="18" fill="#d59cf5" xml:space="preserve">data</text> +<text x="1719.4" y="278.0" font-family="Go Medium" font-size="18" fill="#d59cf5" xml:space="preserve">rwx</text> +<rect x="1719.4" y="281.0" width="29.5" height="2.0" fill="#d59cf5"/> +<text x="1762.9" y="278.0" font-family="Go Medium" font-size="18" fill="#eee6d2" xml:space="preserve">read-only</text> +<text x="988.0 1000.0 1012.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rax</text> +<rect x="1043.0" y="289.0" width="22.0" height="22.0" fill="#b64f42"/> +<text x="1048.0" y="307.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0</text> +<text x="988.0 1000.0 1012.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rbx</text> +<text x="1048.0" y="331.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rcx</text> +<rect x="1043.0" y="337.0" width="70.0" height="22.0" fill="#b64f42"/> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0" y="355.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0x405</text> +<text x="988.0 1000.0 1012.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdx</text> +<rect x="1043.0" y="361.0" width="46.0" height="22.0" fill="#b64f42"/> +<text x="1048.0 1060.0 1072.0" y="379.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0xf</text> +<text x="988.0 1000.0 1012.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsi</text> +<rect x="1043.0" y="385.0" width="226.0" height="22.0" fill="#b64f42"/> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0 1192.0 1204.0 1216.0 1228.0 1240.0 1252.0" y="403.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0xe2263c1be1246b56</text> +<text x="988.0 1000.0 1012.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rdi</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405050</text> +<path d="M1126,420 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1133.0" y="419.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1150.0 1162.0 1174.0 1186.0 1198.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x405</text> +<text x="1218.0 1230.0 1242.0 1254.0" y="427.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">1029</text> +<text x="988.0 1000.0 1012.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rbp</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffecf0</text> +<rect x="1198.0" y="443.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1216,444 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0 1318.0 1330.0 1342.0 1354.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<rect x="1372.0" y="443.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1390,444 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1396.0 1408.0 1420.0 1432.0 1444.0 1456.0 1468.0 1480.0 1492.0 1504.0 1516.0 1528.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="1546.0" y="443.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1564,444 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1570.0 1582.0 1594.0 1606.0 1618.0 1630.0 1642.0 1654.0 1666.0 1678.0 1690.0 1702.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee10</text> +<path d="M1720,444 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1727.0" y="443.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1744.0" y="451.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">rsp</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffece0</text> +<path d="M1198,468 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1205.0" y="467.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1222.0" y="475.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r8</text> +<rect x="1043.0" y="481.0" width="82.0" height="22.0" fill="#b64f42"/> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">405070</text> +<path d="M1126,492 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1133.0" y="491.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1150.0 1162.0 1174.0 1186.0 1198.0 1210.0 1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0" y="499.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x10001000100f</text> +<text x="988.0 1000.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r9</text> +<text x="1048.0 1060.0 1072.0 1084.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x20</text> +<text x="1104.0 1116.0" y="523.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">32</text> +<text x="988.0 1000.0 1012.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r10</text> +<rect x="1043.0" y="529.0" width="58.0" height="22.0" fill="#b64f42"/> +<text x="1048.0 1060.0 1072.0 1084.0" y="547.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0x21</text> +<text x="988.0 1000.0 1012.0" y="571.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r11</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="571.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7e19ac8</text> +<text x="988.0 1000.0 1012.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r12</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffee38</text> +<rect x="1198.0" y="587.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1216,588 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0 1318.0 1330.0 1342.0 1354.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffefea</text> +<path d="M1372,588 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1379.0" y="587.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1396.0 1408.0 1420.0 1432.0 1444.0 1456.0 1468.0 1480.0" y="595.2" font-family="JetBrains Mono NL" font-size="20" fill="#b5e8c8" xml:space="preserve" font-weight="500">"./heap"</text> +<text x="988.0 1000.0 1012.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r13</text> +<text x="1048.0" y="619.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">1</text> +<text x="988.0 1000.0 1012.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r14</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0 1120.0 1132.0 1144.0 1156.0 1168.0 1180.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7ffd000</text> +<rect x="1198.0" y="635.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1216,636 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1222.0 1234.0 1246.0 1258.0 1270.0 1282.0 1294.0 1306.0 1318.0 1330.0 1342.0 1354.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">7ffff7ffe3c0</text> +<path d="M1372,636 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1379.0" y="635.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1396.0" y="643.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="988.0 1000.0 1012.0" y="667.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">r15</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0" y="667.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="500">403df0</text> +<rect x="1126.0" y="659.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1144,660 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1150.0 1162.0 1174.0 1186.0 1198.0 1210.0" y="667.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">401110</text> +<text x="1232.0 1244.0 1256.0 1268.0 1280.0 1292.0 1304.0 1316.0 1328.0 1340.0 1352.0 1364.0 1376.0 1388.0 1400.0 1412.0 1424.0 1436.0 1448.0 1460.0 1472.0" y="667.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">__do_global_dtors_aux</text> +<rect x="978.0" y="672.0" width="876.0" height="24.0" fill="#222742"/> +<rect x="978.0" y="672.0" width="54.0" height="24.0" fill="#e8c46a"/> +<text x="988.0 1000.0 1012.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#050a24" xml:space="preserve" font-weight="bold">rip</text> +<text x="1048.0 1060.0 1072.0 1084.0 1096.0 1108.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">4011b6</text> +<text x="1130.0 1142.0 1154.0 1166.0 1178.0 1190.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">pop+46</text> +<text x="1522.0 1534.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">cf</text> +<rect x="1560.0" y="674.0" width="32.0" height="20.0" fill="#16245f"/> +<text x="1564.0 1576.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">PF</text> +<text x="1606.0 1618.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">af</text> +<text x="1648.0 1660.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">zf</text> +<text x="1690.0 1702.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">sf</text> +<rect x="1728.0" y="674.0" width="32.0" height="20.0" fill="#16245f"/> +<text x="1732.0 1744.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">IF</text> +<text x="1774.0 1786.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">df</text> +<text x="1816.0 1828.0" y="691.2" font-family="JetBrains Mono NL" font-size="20" fill="#828dbb" xml:space="preserve" font-weight="500">of</text> +<rect x="976.0" y="712.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="977.0" y="713.0" width="878.0" height="174.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="985.0" y="719.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1004.0" y="730.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">stack</text> +<text x="1846.0" y="730.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">six words from rsp · the frames they belong to</text> +<text x="992.0 1004.0 1016.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rsp</text> +<path d="M1042,752 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="1124.0 1136.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+0</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce0</text> +<path d="M1310,752 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1317.0" y="751.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1334.0" y="759.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0</text> +<text x="1124.0 1136.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+8</text> +<text x="1708.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">n</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">ce8</text> +<rect x="1310.0" y="775.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,776 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405050</text> +<path d="M1412,776 l8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1419.0" y="775.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<text x="1436.0 1448.0 1460.0 1472.0 1484.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x405</text> +<text x="1504.0 1516.0 1528.0 1540.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">1029</text> +<text x="992.0 1004.0 1016.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rbp</text> +<path d="M1042,800 l-9,-6 v12 Z" fill="#f2d675"/> +<text x="1112.0 1124.0 1136.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+10</text> +<text x="1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf0</text> +<rect x="1310.0" y="799.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,800 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffed00</text> +<rect x="1484.0" y="799.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1502,800 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1510.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1518.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1526.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="1112.0 1124.0 1136.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+18</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">cf8</text> +<rect x="1310.0" y="823.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,824 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">4011e0</text> +<text x="1416.0 1428.0 1440.0 1452.0 1464.0 1476.0 1488.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">main+39</text> +<text x="1112.0 1124.0 1136.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+20</text> +<text x="1612.0 1624.0 1636.0 1648.0 1660.0 1672.0 1684.0 1696.0 1708.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">saved rbp</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d00</text> +<rect x="1310.0" y="847.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,848 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">7fffffffedb0</text> +<rect x="1484.0" y="847.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1502,848 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1510.0" y="850.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1518.0" y="850.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1526.0" y="850.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="1112.0 1124.0 1136.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">+28</text> +<text x="1160.0 1172.0 1184.0 1196.0 1208.0 1220.0 1232.0 1244.0 1256.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#958759" xml:space="preserve" font-weight="500">7fffffffe</text> +<text x="1268.0 1280.0 1292.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#f2d675" xml:space="preserve" font-weight="500">d08</text> +<rect x="1310.0" y="871.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1328,872 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1334.0 1346.0 1358.0 1370.0 1382.0 1394.0 1406.0 1418.0 1430.0 1442.0 1454.0 1466.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#ff8f9a" xml:space="preserve" font-weight="500">7ffff7c27781</text> +<text x="1488.0 1500.0 1512.0 1524.0 1536.0 1548.0 1560.0 1572.0 1584.0 1596.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">libc+27781</text> +<rect x="1841.0" y="743.0" width="2.0" height="90.0" fill="#e8c46a"/> +<rect x="1835.0" y="743.0" width="8.0" height="2.0" fill="#e8c46a"/> +<rect x="1835.0" y="831.0" width="8.0" height="2.0" fill="#e8c46a"/> +<text x="1828.0" y="794.0" font-family="Go Medium" font-size="18" fill="#fff8e8" xml:space="preserve" text-anchor="end">pop</text> +<rect x="1841.0" y="839.0" width="2.0" height="42.0" fill="#3a4a8a"/> +<rect x="1835.0" y="839.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<rect x="1835.0" y="879.0" width="8.0" height="2.0" fill="#3a4a8a"/> +<text x="1828.0" y="866.0" font-family="Go Medium" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">main</text> +<rect x="64.0" y="48.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="65.0" y="49.0" width="878.0" height="294.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> +<rect x="72.0" y="54.0" width="12.0" height="12.0" fill="#e8c46a"/> +<text x="92.0" y="66.0" font-family="Go Medium" font-size="20" fill="#eee6d2" xml:space="preserve">the chunks of 0x20</text> +<text x="934.0" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the program's list · malloc's free list</text> +<text x="80.0" y="153.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">the program's</text> +<text x="296.0 308.0 320.0 332.0 344.0 356.0" y="116.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405030</text> +<text x="456.0 468.0 480.0 492.0 504.0 516.0" y="116.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405010</text> +<rect x="264.0" y="124.0" width="86.0" height="44.0" fill="#16245f"/> +<text x="292.0 307.0" y="155.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve" font-weight="500">12</text> +<rect x="352.0" y="124.0" width="48.0" height="44.0" fill="#101a48"/> +<rect x="371.0" y="141.0" width="10.0" height="10.0" fill="#86b6ff"/> +<path d="M384.0,146.0 L411.0,146.0" fill="none" stroke="#86b6ff" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M421.0,146.0 L409.0,151.0 L409.0,141.0 Z" fill="#86b6ff"/> +<rect x="424.0" y="124.0" width="86.0" height="44.0" fill="#16245f"/> +<text x="459.5" y="155.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve" font-weight="500">7</text> +<rect x="512.0" y="124.0" width="48.0" height="44.0" fill="#101a48"/> +<path d="M522,160 L550,132" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<rect x="80.0" y="234.0" width="160.0" height="44.0" fill="#16245f"/> +<text x="94.0 106.0 118.0 130.0 142.0 154.0 166.0 178.0 190.0 202.0 214.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">tcache 0x20</text> +<rect x="222.0" y="208.0" width="30.0" height="30.0" fill="#0a1030"/> +<rect x="223.0" y="209.0" width="28.0" height="28.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="229.5" y="232.0" font-family="JetBrains Mono NL" font-size="25" fill="#eee6d2" xml:space="preserve" font-weight="500">1</text> +<path d="M240.0,256.0 L251.0,256.0" fill="none" stroke="#86b6ff" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M261.0,256.0 L249.0,261.0 L249.0,251.0 Z" fill="#86b6ff"/> +<text x="296.0 308.0 320.0 332.0 344.0 356.0" y="226.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405050</text> +<rect x="264.0" y="234.0" width="86.0" height="44.0" fill="#101a48"/> +<rect x="352.0" y="234.0" width="48.0" height="44.0" fill="url(#hatch)"/> +<text x="358.0 370.0 382.0" y="251.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">key</text> +<rect x="262.0" y="232.0" width="140.0" height="48.0" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-dasharray="12 8"/> +<path d="M274,270 L342,242" fill="none" stroke="#9aa6d9" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<rect x="744.0" y="234.0" width="164.0" height="44.0" fill="#16245f"/> +<rect x="745.0" y="235.0" width="162.0" height="42.0" fill="none" stroke="#6a7ab8" stroke-width="2" stroke-dasharray="12 8"/> +<text x="756.0 768.0 780.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">top</text> +<text x="812.0 824.0 836.0 848.0 860.0 872.0 884.0" y="263.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x20ca0</text> +<text x="790.0 802.0 814.0 826.0 838.0 850.0" y="226.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405360</text> +<path d="M332.0,198.0 L332.0,177.0" fill="none" stroke="#86b6ff" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M332.0,169.0 L337.0,179.0 L327.0,179.0 Z" fill="#86b6ff"/> +<text x="275.0 287.0 299.0 311.0" y="193.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">head</text> +<text x="275.0 287.0 299.0 311.0" y="193.2" font-family="JetBrains Mono NL" font-size="20" fill="#d59cf5" xml:space="preserve" font-weight="bold">head</text> +<path d="M332.0,308.0 L332.0,287.0" fill="none" stroke="#86b6ff" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M332.0,279.0 L337.0,289.0 L327.0,289.0 Z" fill="#86b6ff"/> +<text x="287.0 299.0 311.0" y="303.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="bold">rdi</text> +<rect x="976.0" y="48.0" width="880.0" height="24.0" fill="#16245f"/> +<rect x="977.0" y="49.0" width="878.0" height="198.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="985.0" y="55.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> +<text x="1004.0" y="66.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">its bytes</text> +<text x="1093.7" y="66.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">the heap, 405000 to 40506f</text> +<rect x="999.0" y="79.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="79.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="95.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0 1046.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> +<text x="1058.0 1070.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">00</text> +<text x="1108.0 1120.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1138.0 1150.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<rect x="1356.0" y="77.0" width="242.0" height="22.0" fill="#16245f"/> +<text x="1360.0 1372.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">21</text> +<text x="1390.0 1402.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1420.0 1432.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1450.0 1462.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0 1628.0 1640.0 1652.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x20</text> +<text x="1676.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">a</text> +<text x="1694.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">m</text> +<rect x="1708.0" y="78.0" width="20.0" height="20.0" fill="#16245f"/> +<text x="1712.0" y="95.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">P</text> +<rect x="999.0" y="103.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="103.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="119.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0 1046.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> +<text x="1058.0 1070.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">10</text> +<rect x="1104.0" y="101.0" width="242.0" height="22.0" fill="#16245f"/> +<text x="1108.0 1120.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">07</text> +<text x="1138.0 1150.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">7</text> +<rect x="1356.0" y="101.0" width="242.0" height="22.0" fill="#16245f"/> +<text x="1360.0 1372.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1390.0 1402.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1420.0 1432.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1450.0 1462.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">00</text> +<text x="1640.0 1652.0 1664.0 1676.0" y="119.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">NULL</text> +<rect x="999.0" y="127.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="127.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="143.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0 1046.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> +<text x="1058.0 1070.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">20</text> +<text x="1108.0 1120.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1138.0 1150.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<rect x="1356.0" y="125.0" width="242.0" height="22.0" fill="#16245f"/> +<text x="1360.0 1372.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">21</text> +<text x="1390.0 1402.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1420.0 1432.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1450.0 1462.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0 1628.0 1640.0 1652.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x20</text> +<text x="1676.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">a</text> +<text x="1694.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">m</text> +<rect x="1708.0" y="126.0" width="20.0" height="20.0" fill="#16245f"/> +<text x="1712.0" y="143.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">P</text> +<rect x="999.0" y="151.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="151.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="167.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0 1046.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> +<text x="1058.0 1070.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">30</text> +<rect x="1104.0" y="149.0" width="242.0" height="22.0" fill="#16245f"/> +<text x="1108.0 1120.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0c</text> +<text x="1138.0 1150.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0 1628.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">12</text> +<rect x="1356.0" y="149.0" width="242.0" height="22.0" fill="#16245f"/> +<text x="1360.0 1372.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">10</text> +<text x="1390.0 1402.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">50</text> +<text x="1420.0 1432.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">40</text> +<text x="1450.0 1462.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<rect x="1658.0" y="159.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1676,160 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1682.0 1694.0 1706.0 1718.0 1730.0 1742.0" y="167.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405010</text> +<rect x="999.0" y="175.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="175.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="191.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0 1046.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> +<text x="1058.0 1070.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">40</text> +<text x="1108.0 1120.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1138.0 1150.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<rect x="1356.0" y="173.0" width="242.0" height="22.0" fill="#16245f"/> +<text x="1360.0 1372.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">21</text> +<text x="1390.0 1402.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1420.0 1432.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1450.0 1462.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0 1628.0 1640.0 1652.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x20</text> +<text x="1676.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">a</text> +<text x="1694.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">m</text> +<rect x="1708.0" y="174.0" width="20.0" height="20.0" fill="#16245f"/> +<text x="1712.0" y="191.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">P</text> +<rect x="999.0" y="199.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="199.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="215.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0 1046.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> +<text x="1058.0 1070.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">50</text> +<rect x="1104.0" y="197.0" width="242.0" height="22.0" fill="#16245f"/> +<rect x="1103.0" y="197.0" width="64.0" height="22.0" fill="#b64f42"/> +<text x="1108.0 1120.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">05</text> +<text x="1138.0 1150.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">04</text> +<text x="1168.0 1180.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0 1628.0 1640.0 1652.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">NULL</text> +<text x="1676.0 1688.0 1700.0 1712.0 1724.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">^ 405</text> +<rect x="1356.0" y="197.0" width="242.0" height="22.0" fill="#16245f"/> +<rect x="1355.0" y="197.0" width="244.0" height="22.0" fill="#b64f42"/> +<text x="1360.0 1372.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">53</text> +<text x="1390.0 1402.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">89</text> +<text x="1420.0 1432.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">03</text> +<text x="1450.0 1462.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0a</text> +<text x="1480.0 1492.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">cf</text> +<text x="1510.0 1522.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">c5</text> +<text x="1540.0 1552.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">9f</text> +<text x="1570.0 1582.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">6b</text> +<text x="1748.0" y="214.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">key</text> +<rect x="999.0" y="223.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="223.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="239.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0 1046.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> +<text x="1058.0 1070.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">60</text> +<text x="1108.0 1120.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1138.0 1150.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<rect x="1356.0" y="221.0" width="242.0" height="22.0" fill="#16245f"/> +<rect x="1355.0" y="221.0" width="94.0" height="22.0" fill="#b64f42"/> +<text x="1360.0 1372.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">01</text> +<text x="1390.0 1402.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">03</text> +<text x="1420.0 1432.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">00</text> +<text x="1450.0 1462.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0 1628.0 1640.0 1652.0 1664.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">0x300</text> +<text x="1688.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">a</text> +<text x="1706.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">m</text> +<rect x="1720.0" y="222.0" width="20.0" height="20.0" fill="#16245f"/> +<text x="1724.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">P</text> +<text x="1748.0" y="238.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">tcache</text> +<path d="M997.0,157.0 L984.0,157.0 Q980.0,157.0 980.0,153.0 L980.0,119.0 Q980.0,115.0 984.0,115.0 L993.0,115.0" fill="none" stroke="#3c5283" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M998.0,115.0 L991.0,119.0 L991.0,111.0 Z" fill="#3c5283"/> +<rect x="988.0" y="752.0" width="880.0" height="152.0" fill="#02061a"/> +<rect x="976.0" y="736.0" width="880.0" height="152.0" fill="#121c52"/> +<rect x="976.0" y="736.0" width="880.0" height="24.0" fill="#22317a"/> +<rect x="977.0" y="737.0" width="878.0" height="150.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> +<text x="988.0 1000.0 1012.0 1024.0 1036.0 1048.0" y="754.0" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">tcache</text> +<text x="1060.0 1072.0 1084.0" y="754.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> → </text> +<text x="1096.0 1108.0 1120.0 1132.0 1144.0 1156.0" y="754.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405070</text> +<text x="1846.0" y="754.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">tcache_perthread_struct · 0x2f8 bytes</text> +<rect x="999.0" y="767.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="767.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="783.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> +<text x="1046.0 1058.0 1070.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">070</text> +<rect x="1104.0" y="765.0" width="62.0" height="22.0" fill="#16245f"/> +<rect x="1102.0" y="764.0" width="66.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> +<rect x="1103.0" y="765.0" width="34.0" height="22.0" fill="#b64f42"/> +<text x="1108.0 1120.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0f</text> +<text x="1138.0 1150.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> +<text x="1616.0 1628.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">15</text> +<text x="1652.0" y="782.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">slots left · 1 in the bin</text> +<text x="1168.0 1180.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1198.0 1210.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1258.0 1270.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1318.0 1330.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1360.0 1372.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1390.0 1402.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1420.0 1432.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1450.0 1462.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1510.0 1522.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1570.0 1582.0" y="783.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<rect x="1010.0" y="799.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1028,800 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1036.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1044.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1052.0" y="802.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0" y="807.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">8 rows</text> +<rect x="999.0" y="815.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="815.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="831.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> +<text x="1046.0 1058.0 1070.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">100</text> +<text x="1108.0 1120.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1138.0 1150.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1198.0 1210.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1258.0 1270.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> +<text x="1318.0 1330.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<rect x="1356.0" y="813.0" width="242.0" height="22.0" fill="#16245f"/> +<rect x="1354.0" y="812.0" width="246.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> +<rect x="1355.0" y="813.0" width="94.0" height="22.0" fill="#b64f42"/> +<text x="1360.0 1372.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">50</text> +<text x="1390.0 1402.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">50</text> +<text x="1420.0 1432.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">40</text> +<text x="1450.0 1462.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> +<rect x="1622.0" y="823.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1640,824 l-8,-5 v10 Z" fill="#6a7ab8"/> +<text x="1646.0 1658.0 1670.0 1682.0 1694.0 1706.0" y="831.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405050</text> +<rect x="999.0" y="839.0" width="2.0" height="18.0" fill="#5474ac"/> +<rect x="999.0" y="839.0" width="7.0" height="2.0" fill="#5474ac"/> +<rect x="999.0" y="855.0" width="7.0" height="2.0" fill="#5474ac"/> +<text x="1010.0 1022.0 1034.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> +<text x="1046.0 1058.0 1070.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">110</text> +<text x="1108.0 1120.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1138.0 1150.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1168.0 1180.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1198.0 1210.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1228.0 1240.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1258.0 1270.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1288.0 1300.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1318.0 1330.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1360.0 1372.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1390.0 1402.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1420.0 1432.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1450.0 1462.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1480.0 1492.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1510.0 1522.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1540.0 1552.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<text x="1570.0 1582.0" y="855.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> +<rect x="1010.0" y="871.0" width="11.0" height="2.0" fill="#6a7ab8"/> +<path d="M1028,872 l-8,-5 v10 Z" fill="#6a7ab8"/> +<rect x="1036.0" y="874.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1044.0" y="874.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<rect x="1052.0" y="874.0" width="3.0" height="3.0" fill="#6a7ab8"/> +<text x="1076.0 1088.0 1100.0 1112.0 1124.0 1136.0 1148.0" y="879.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">37 rows</text> +<rect x="1008.0" y="244.0" width="76.0" height="4.0" fill="#86b6ff"/> +<path d="M1008.0,246.0 L970.0,246.0 Q962.0,246.0 962.0,254.0 L962.0,745.5 Q962.0,748.0 964.5,748.0 L967.0,748.0" fill="none" stroke="#86b6ff" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/> +<path d="M975.0,748.0 L965.0,753.0 L965.0,743.0 Z" fill="#86b6ff"/> +<rect x="64.0" y="899.0" width="3712.0" height="2.0" fill="#3a4a8a"/> +<rect x="64.0" y="898.0" width="2165.3" height="4.0" fill="#e8c46a"/> +<text x="3608.0 3620.0 3632.0 3644.0 3656.0 3668.0 3680.0 3692.0 3704.0 3716.0 3728.0 3740.0 3752.0 3764.0" y="934.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">moment 7 of 12</text> +<text x="64.0" y="964.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">free gave 9's chunk to the tcache, malloc's bin for </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">0x20</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">. Its first</tspan></text> +<text x="64.0" y="1018.0" font-size="40" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#eee6d2">word is the link now: </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="35">405</tspan><tspan font-family="Go" font-weight="normal" fill="#eee6d2">, which is NULL, safe-linked.</tspan></text> +</svg> diff --git a/design/mock/18-heap.png b/design/mock/18-heap.png Binary files differindex 17789ad..f7b90d9 100644 --- a/design/mock/18-heap.png +++ b/design/mock/18-heap.png diff --git a/design/mock/18-heap.svg b/design/mock/18-heap.svg index cf60bb3..3445a01 100644 --- a/design/mock/18-heap.svg +++ b/design/mock/18-heap.svg @@ -381,7 +381,6 @@ <text x="1010.0 1022.0 1034.0 1046.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">4050</text> <text x="1058.0 1070.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">50</text> <rect x="1104.0" y="197.0" width="242.0" height="22.0" fill="#16245f"/> -<path d="M1104,198 h9 l-9,9 Z" fill="#ff6a4a"/> <text x="1108.0 1120.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">09</text> <text x="1138.0 1150.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> <text x="1168.0 1180.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> @@ -392,7 +391,6 @@ <text x="1318.0 1330.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> <text x="1616.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">9</text> <rect x="1356.0" y="197.0" width="242.0" height="22.0" fill="#16245f"/> -<path d="M1356,198 h9 l-9,9 Z" fill="#ff6a4a"/> <text x="1360.0 1372.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">30</text> <text x="1390.0 1402.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">50</text> <text x="1420.0 1432.0" y="215.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">40</text> @@ -436,8 +434,8 @@ <path d="M998.0,115.0 L991.0,119.0 L991.0,111.0 Z" fill="#3c5283"/> <path d="M997.0,205.0 L984.0,205.0 Q980.0,205.0 980.0,201.0 L980.0,167.0 Q980.0,163.0 984.0,163.0 L993.0,163.0" fill="none" stroke="#3c5283" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> <path d="M998.0,163.0 L991.0,167.0 L991.0,159.0 Z" fill="#3c5283"/> -<text x="64.0" y="440.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">Three pushes, three chunks in a row, each with P: the chunk</text> -<text x="64.0" y="484.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">before it is in use. The list's next pointers are arcs in the bytes.</text> +<text x="64.0" y="440.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">Two more pushes, at a run: three chunks in a row, each with P</text> +<text x="64.0" y="484.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">set, the chunk before it in use. Settled: no marks, the arcs standing.</text> </g> <g transform="translate(0,1120)"> <text x="64.0" y="34.0" font-family="Go" font-size="28" fill="#e8c46a" xml:space="preserve" font-weight="bold">3</text> @@ -683,101 +681,6 @@ <text x="1748.0" y="238.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">tcache</text> <path d="M997.0,157.0 L984.0,157.0 Q980.0,157.0 980.0,153.0 L980.0,119.0 Q980.0,115.0 984.0,115.0 L993.0,115.0" fill="none" stroke="#3c5283" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> <path d="M998.0,115.0 L991.0,119.0 L991.0,111.0 Z" fill="#3c5283"/> -<rect x="930.0" y="262.0" width="880.0" height="152.0" fill="#02061a"/> -<rect x="918.0" y="246.0" width="880.0" height="152.0" fill="#121c52"/> -<rect x="918.0" y="246.0" width="880.0" height="24.0" fill="#22317a"/> -<rect x="919.0" y="247.0" width="878.0" height="150.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> -<text x="930.0 942.0 954.0 966.0 978.0 990.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">tcache</text> -<text x="1002.0 1014.0 1026.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> → </text> -<text x="1038.0 1050.0 1062.0 1074.0 1086.0 1098.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405070</text> -<text x="1788.0" y="264.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">tcache_perthread_struct · 0x2f0 bytes</text> -<rect x="941.0" y="277.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="277.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="293.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">070</text> -<rect x="1046.0" y="275.0" width="62.0" height="22.0" fill="#16245f"/> -<rect x="1044.0" y="274.0" width="66.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> -<rect x="1045.0" y="275.0" width="34.0" height="22.0" fill="#b64f42"/> -<text x="1050.0 1062.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0f</text> -<text x="1080.0 1092.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> -<text x="1558.0 1570.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">15</text> -<text x="1594.0" y="292.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">slots left · 1 in the bin</text> -<text x="1110.0 1122.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1140.0 1152.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1200.0 1212.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1260.0 1272.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1302.0 1314.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1332.0 1344.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1362.0 1374.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1392.0 1404.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1452.0 1464.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1512.0 1524.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="952.0" y="309.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M970,310 l-8,-5 v10 Z" fill="#6a7ab8"/> -<rect x="978.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="986.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="994.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<text x="1018.0 1030.0 1042.0 1054.0 1066.0 1078.0" y="317.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">8 rows</text> -<rect x="941.0" y="325.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="325.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="341.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">100</text> -<text x="1050.0 1062.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1080.0 1092.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1110.0 1122.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1140.0 1152.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1200.0 1212.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1260.0 1272.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="1298.0" y="323.0" width="242.0" height="22.0" fill="#16245f"/> -<rect x="1296.0" y="322.0" width="246.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> -<rect x="1297.0" y="323.0" width="94.0" height="22.0" fill="#b64f42"/> -<text x="1302.0 1314.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">50</text> -<text x="1332.0 1344.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">50</text> -<text x="1362.0 1374.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">40</text> -<text x="1392.0 1404.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1452.0 1464.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1512.0 1524.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<rect x="1564.0" y="333.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M1582,334 l-8,-5 v10 Z" fill="#6a7ab8"/> -<text x="1588.0 1600.0 1612.0 1624.0 1636.0 1648.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405050</text> -<rect x="941.0" y="349.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="349.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="365.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">110</text> -<text x="1050.0 1062.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1080.0 1092.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1110.0 1122.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1140.0 1152.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1200.0 1212.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1260.0 1272.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1302.0 1314.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1332.0 1344.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1362.0 1374.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1392.0 1404.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1452.0 1464.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1512.0 1524.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="952.0" y="381.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M970,382 l-8,-5 v10 Z" fill="#6a7ab8"/> -<rect x="978.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="986.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="994.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<text x="1018.0 1030.0 1042.0 1054.0 1066.0 1078.0 1090.0" y="389.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">36 rows</text> -<rect x="1008.0" y="242.0" width="76.0" height="4.0" fill="#86b6ff"/> <text x="64.0" y="440.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">free gave 9's chunk to the tcache, malloc's bin for 0x20. Its first</text> <text x="64.0" y="484.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">word is the link now: 405, which is NULL, safe-linked.</text> </g> @@ -1026,101 +929,6 @@ <text x="1748.0" y="238.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">tcache</text> <path d="M997.0,163.0 L984.0,163.0 Q980.0,163.0 980.0,167.0 L980.0,201.0 Q980.0,205.0 984.0,205.0 L993.0,205.0" fill="none" stroke="#86b6ff" stroke-width="2" stroke-linejoin="round" stroke-linecap="butt"/> <path d="M998.0,205.0 L991.0,209.0 L991.0,201.0 Z" fill="#86b6ff"/> -<rect x="930.0" y="262.0" width="880.0" height="152.0" fill="#02061a"/> -<rect x="918.0" y="246.0" width="880.0" height="152.0" fill="#121c52"/> -<rect x="918.0" y="246.0" width="880.0" height="24.0" fill="#22317a"/> -<rect x="919.0" y="247.0" width="878.0" height="150.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> -<text x="930.0 942.0 954.0 966.0 978.0 990.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">tcache</text> -<text x="1002.0 1014.0 1026.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> → </text> -<text x="1038.0 1050.0 1062.0 1074.0 1086.0 1098.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405070</text> -<text x="1788.0" y="264.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">tcache_perthread_struct · 0x2f0 bytes</text> -<rect x="941.0" y="277.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="277.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="293.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">070</text> -<rect x="1046.0" y="275.0" width="62.0" height="22.0" fill="#16245f"/> -<rect x="1044.0" y="274.0" width="66.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> -<rect x="1045.0" y="275.0" width="34.0" height="22.0" fill="#b64f42"/> -<text x="1050.0 1062.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0e</text> -<text x="1080.0 1092.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> -<text x="1558.0 1570.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">14</text> -<text x="1594.0" y="292.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">slots left · 2 in the bin</text> -<text x="1110.0 1122.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1140.0 1152.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1200.0 1212.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1260.0 1272.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1302.0 1314.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1332.0 1344.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1362.0 1374.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1392.0 1404.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1452.0 1464.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1512.0 1524.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="952.0" y="309.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M970,310 l-8,-5 v10 Z" fill="#6a7ab8"/> -<rect x="978.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="986.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="994.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<text x="1018.0 1030.0 1042.0 1054.0 1066.0 1078.0" y="317.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">8 rows</text> -<rect x="941.0" y="325.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="325.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="341.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">100</text> -<text x="1050.0 1062.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1080.0 1092.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1110.0 1122.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1140.0 1152.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1200.0 1212.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1260.0 1272.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="1298.0" y="323.0" width="242.0" height="22.0" fill="#16245f"/> -<rect x="1296.0" y="322.0" width="246.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> -<rect x="1297.0" y="323.0" width="34.0" height="22.0" fill="#b64f42"/> -<text x="1302.0 1314.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">30</text> -<text x="1332.0 1344.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">50</text> -<text x="1362.0 1374.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">40</text> -<text x="1392.0 1404.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1452.0 1464.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1512.0 1524.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<rect x="1564.0" y="333.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M1582,334 l-8,-5 v10 Z" fill="#6a7ab8"/> -<text x="1588.0 1600.0 1612.0 1624.0 1636.0 1648.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405030</text> -<rect x="941.0" y="349.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="349.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="365.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">110</text> -<text x="1050.0 1062.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1080.0 1092.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1110.0 1122.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1140.0 1152.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1200.0 1212.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1260.0 1272.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1302.0 1314.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1332.0 1344.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1362.0 1374.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1392.0 1404.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1452.0 1464.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1512.0 1524.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="952.0" y="381.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M970,382 l-8,-5 v10 Z" fill="#6a7ab8"/> -<rect x="978.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="986.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="994.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<text x="1018.0 1030.0 1042.0 1054.0 1066.0 1078.0 1090.0" y="389.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">36 rows</text> -<rect x="1008.0" y="242.0" width="76.0" height="4.0" fill="#86b6ff"/> <text x="64.0" y="440.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">The second chains to the first: 405455 is 405050 xor 405, the</text> <text x="64.0" y="484.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">chunk's own address shifted 12. The arc is the pointer it hides.</text> </g> @@ -1359,102 +1167,7 @@ <rect x="1720.0" y="222.0" width="20.0" height="20.0" fill="#16245f"/> <text x="1724.0" y="239.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">P</text> <text x="1748.0" y="238.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">tcache</text> -<rect x="930.0" y="262.0" width="880.0" height="152.0" fill="#02061a"/> -<rect x="918.0" y="246.0" width="880.0" height="152.0" fill="#121c52"/> -<rect x="918.0" y="246.0" width="880.0" height="24.0" fill="#22317a"/> -<rect x="919.0" y="247.0" width="878.0" height="150.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> -<text x="930.0 942.0 954.0 966.0 978.0 990.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">tcache</text> -<text x="1002.0 1014.0 1026.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500"> → </text> -<text x="1038.0 1050.0 1062.0 1074.0 1086.0 1098.0" y="264.0" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405070</text> -<text x="1788.0" y="264.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve" text-anchor="end">tcache_perthread_struct · 0x2f0 bytes</text> -<rect x="941.0" y="277.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="277.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="293.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">070</text> -<rect x="1046.0" y="275.0" width="62.0" height="22.0" fill="#16245f"/> -<rect x="1044.0" y="274.0" width="66.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> -<rect x="1045.0" y="275.0" width="34.0" height="22.0" fill="#b64f42"/> -<text x="1050.0 1062.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">0f</text> -<text x="1080.0 1092.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#717079" xml:space="preserve" font-weight="500">00</text> -<text x="1558.0 1570.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">15</text> -<text x="1594.0" y="292.2" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve">slots left · 1 in the bin</text> -<text x="1110.0 1122.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1140.0 1152.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1200.0 1212.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1260.0 1272.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1302.0 1314.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1332.0 1344.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1362.0 1374.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1392.0 1404.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1452.0 1464.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1512.0 1524.0" y="293.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="952.0" y="309.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M970,310 l-8,-5 v10 Z" fill="#6a7ab8"/> -<rect x="978.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="986.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="994.0" y="312.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<text x="1018.0 1030.0 1042.0 1054.0 1066.0 1078.0" y="317.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">8 rows</text> -<rect x="941.0" y="325.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="325.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="341.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">100</text> -<text x="1050.0 1062.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1080.0 1092.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1110.0 1122.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1140.0 1152.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1200.0 1212.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">10</text> -<text x="1260.0 1272.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="1298.0" y="323.0" width="242.0" height="22.0" fill="#16245f"/> -<rect x="1296.0" y="322.0" width="246.0" height="24.0" fill="none" stroke="#fff8e8" stroke-width="2"/> -<rect x="1297.0" y="323.0" width="34.0" height="22.0" fill="#b64f42"/> -<text x="1302.0 1314.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">50</text> -<text x="1332.0 1344.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">50</text> -<text x="1362.0 1374.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">40</text> -<text x="1392.0 1404.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1452.0 1464.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<text x="1512.0 1524.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#425b8d" xml:space="preserve" font-weight="500">00</text> -<rect x="1564.0" y="333.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M1582,334 l-8,-5 v10 Z" fill="#6a7ab8"/> -<text x="1588.0 1600.0 1612.0 1624.0 1636.0 1648.0" y="341.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">405050</text> -<rect x="941.0" y="349.0" width="2.0" height="18.0" fill="#5474ac"/> -<rect x="941.0" y="349.0" width="7.0" height="2.0" fill="#5474ac"/> -<rect x="941.0" y="365.0" width="7.0" height="2.0" fill="#5474ac"/> -<text x="952.0 964.0 976.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#5474ac" xml:space="preserve" font-weight="500">405</text> -<text x="988.0 1000.0 1012.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#86b6ff" xml:space="preserve" font-weight="500">110</text> -<text x="1050.0 1062.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1080.0 1092.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1110.0 1122.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1140.0 1152.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1170.0 1182.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1200.0 1212.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1230.0 1242.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1260.0 1272.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1302.0 1314.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1332.0 1344.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1362.0 1374.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1392.0 1404.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1422.0 1434.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1452.0 1464.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1482.0 1494.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<text x="1512.0 1524.0" y="365.2" font-family="JetBrains Mono NL" font-size="20" fill="#9aa6d9" xml:space="preserve" font-weight="500">00</text> -<rect x="952.0" y="381.0" width="11.0" height="2.0" fill="#6a7ab8"/> -<path d="M970,382 l-8,-5 v10 Z" fill="#6a7ab8"/> -<rect x="978.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="986.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<rect x="994.0" y="384.0" width="3.0" height="3.0" fill="#6a7ab8"/> -<text x="1018.0 1030.0 1042.0 1054.0 1066.0 1078.0 1090.0" y="389.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">36 rows</text> -<rect x="1008.0" y="242.0" width="76.0" height="4.0" fill="#86b6ff"/> <text x="64.0" y="440.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">malloc(16) took the bin's head, 405030: the tcache points at 405050</text> -<text x="64.0" y="484.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">again, the key is wiped, and the old link stays until push writes.</text> +<text x="64.0" y="484.0" font-family="Go" font-size="32" fill="#eee6d2" xml:space="preserve">again, the key is wiped, the old link stays.</text> </g> </svg> diff --git a/design/mock/19-map-1080.png b/design/mock/19-map-1080.png Binary files differindex 65ae927..7fe6d63 100644 --- a/design/mock/19-map-1080.png +++ b/design/mock/19-map-1080.png diff --git a/design/mock/19-map-480.png b/design/mock/19-map-480.png Binary files differindex 1dabf72..bb0404f 100644 --- a/design/mock/19-map-480.png +++ b/design/mock/19-map-480.png diff --git a/design/mock/19-map.png b/design/mock/19-map.png Binary files differindex 3c5d6d9..a20d85e 100644 --- a/design/mock/19-map.png +++ b/design/mock/19-map.png diff --git a/design/mock/19-map.svg b/design/mock/19-map.svg index 8dc8779..613dd14 100644 --- a/design/mock/19-map.svg +++ b/design/mock/19-map.svg @@ -374,22 +374,22 @@ <text x="124.0 136.0" y="1503.2" font-family="JetBrains Mono NL" font-size="20" fill="#6a7ab8" xml:space="preserve" font-weight="500">#4</text> <text x="172.0 184.0 196.0 208.0 220.0 232.0 244.0 256.0 268.0" y="1503.2" font-family="JetBrains Mono NL" font-size="20" fill="#eee6d2" xml:space="preserve" font-weight="500">_start+37</text> <rect x="112.0" y="1620.0" width="880.0" height="24.0" fill="#16245f"/> -<rect x="113.0" y="1621.0" width="878.0" height="150.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> +<rect x="113.0" y="1621.0" width="878.0" height="102.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> <rect x="121.0" y="1627.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> <text x="140.0" y="1638.0" font-family="Go Medium" font-size="20" fill="#9aa6d9" xml:space="preserve">the map</text> <text x="982.0" y="1638.0" font-family="Go" font-size="18" fill="#6a7ab8" xml:space="preserve" text-anchor="end">targets/list · moment 3 of 4</text> <text x="124.0" y="1667.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">every panel whole; the working frame's windows outlined</text> -<rect x="124.0" y="1680.0" width="120.0" height="24.0" fill="#222742"/> -<rect x="124.0" y="1680.0" width="24.0" height="24.0" fill="#e8c46a"/> -<text x="260.0" y="1699.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">current</text> -<rect x="414.0" y="1681.0" width="60.0" height="22.0" fill="#b64f42"/> -<text x="550.0" y="1699.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">struck</text> -<rect x="705.0" y="1681.0" width="58.0" height="22.0" fill="none" stroke="#6fd6e6" stroke-width="2"/> -<text x="840.0" y="1699.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">read</text> -<path d="M128,1706 h9 l-9,9 Z" fill="#ff6a4a"/> -<text x="260.0" y="1723.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">held</text> -<rect x="415.0" y="1705.0" width="58.0" height="22.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> -<text x="550.0" y="1723.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">window</text> +<rect x="124.0" y="1672.0" width="120.0" height="24.0" fill="#222742"/> +<rect x="124.0" y="1672.0" width="24.0" height="24.0" fill="#e8c46a"/> +<text x="260.0" y="1691.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">current</text> +<rect x="414.0" y="1673.0" width="60.0" height="22.0" fill="#b64f42"/> +<text x="550.0" y="1691.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">struck</text> +<rect x="705.0" y="1673.0" width="58.0" height="22.0" fill="none" stroke="#6fd6e6" stroke-width="2"/> +<text x="840.0" y="1691.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">read</text> +<path d="M128,1698 h9 l-9,9 Z" fill="#ff6a4a"/> +<text x="260.0" y="1715.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">held</text> +<rect x="415.0" y="1697.0" width="58.0" height="22.0" fill="none" stroke="#9aa6d9" stroke-width="2"/> +<text x="550.0" y="1715.2" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">window</text> <rect x="1024.0" y="96.0" width="880.0" height="24.0" fill="#16245f"/> <rect x="1025.0" y="97.0" width="878.0" height="1686.0" fill="none" stroke="#3a4a8a" stroke-width="2"/> <rect x="1033.0" y="103.0" width="10.0" height="10.0" fill="none" stroke="#6a7ab8" stroke-width="2"/> diff --git a/design/mock/20-dive.png b/design/mock/20-dive.png Binary files differindex b389ac2..5efba9c 100644 --- a/design/mock/20-dive.png +++ b/design/mock/20-dive.png diff --git a/design/mock/21-loupe-480.png b/design/mock/21-loupe-480.png Binary files differindex 684fc1a..383c7f2 100644 --- a/design/mock/21-loupe-480.png +++ b/design/mock/21-loupe-480.png diff --git a/design/mock/21-loupe.png b/design/mock/21-loupe.png Binary files differindex 1633127..ed97f20 100644 --- a/design/mock/21-loupe.png +++ b/design/mock/21-loupe.png diff --git a/design/mock/21-loupe.svg b/design/mock/21-loupe.svg index 7a40916..5a3e837 100644 --- a/design/mock/21-loupe.svg +++ b/design/mock/21-loupe.svg @@ -1017,16 +1017,16 @@ <rect x="1670.2" y="986.5" width="1.2" height="1.0" fill="#3f4a7b"/> <rect x="1672.6" y="986.5" width="5.4" height="1.0" fill="#878689"/> <rect x="1669.6" y="993.0" width="44.0" height="1.2" fill="#121e51"/> -<rect x="1670.2" y="993.5" width="42.9" height="6.5" fill="none" stroke="#303e78" stroke-width="1"/> +<rect x="1670.2" y="993.5" width="42.9" height="4.1" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1671.0" y="993.3" width="3.7" height="1.0" fill="#59638d"/> <rect x="1702.4" y="993.3" width="10.7" height="0.9" fill="#3f4a7b"/> <rect x="1670.2" y="994.8" width="22.9" height="0.9" fill="#59638d"/> -<rect x="1670.2" y="996.0" width="6.0" height="1.2" fill="#181e3b"/> -<rect x="1677.0" y="996.4" width="2.8" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="996.4" width="2.4" height="0.9" fill="#59638d"/> -<rect x="1706.0" y="996.4" width="1.8" height="0.9" fill="#59638d"/> -<rect x="1677.0" y="997.6" width="1.7" height="0.9" fill="#59638d"/> -<rect x="1691.5" y="997.6" width="3.0" height="0.9" fill="#59638d"/> +<rect x="1670.2" y="995.6" width="6.0" height="1.2" fill="#181e3b"/> +<rect x="1677.0" y="996.0" width="2.8" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="996.0" width="2.4" height="0.9" fill="#59638d"/> +<rect x="1706.0" y="996.0" width="1.8" height="0.9" fill="#59638d"/> +<rect x="1677.0" y="997.2" width="1.7" height="0.9" fill="#59638d"/> +<rect x="1691.5" y="997.2" width="3.0" height="0.9" fill="#59638d"/> <rect x="1715.2" y="916.8" width="44.0" height="1.2" fill="#121e51"/> <rect x="1715.8" y="917.4" width="42.9" height="83.3" fill="none" stroke="#303e78" stroke-width="1"/> <rect x="1716.6" y="917.1" width="5.8" height="1.0" fill="#59638d"/> @@ -2286,9 +2286,9 @@ <rect x="1681.3" y="922.8" width="2.5" height="3.7" fill="#6fd6e6"/> <rect x="1669.7" y="957.6" width="2.5" height="1.5" fill="#e8c46a"/> <rect x="1669.7" y="991.0" width="2.0" height="1.5" fill="#e8c46a"/> -<rect x="1670.2" y="996.0" width="1.5" height="1.5" fill="#e8c46a"/> -<rect x="1684.7" y="996.0" width="3.0" height="1.5" fill="#ff6a4a"/> -<rect x="1699.2" y="996.0" width="2.9" height="1.5" fill="#6fd6e6"/> +<rect x="1670.2" y="995.6" width="1.5" height="1.5" fill="#e8c46a"/> +<rect x="1684.7" y="995.6" width="3.0" height="1.5" fill="#ff6a4a"/> +<rect x="1699.2" y="995.6" width="2.9" height="1.5" fill="#6fd6e6"/> <rect x="1715.3" y="962.6" width="1.5" height="1.5" fill="#e8c46a"/> <rect x="1743.2" y="962.6" width="4.7" height="1.5" fill="#6fd6e6"/> <rect x="1713.8" y="957.7" width="1.5" height="1.5" fill="#e8c46a"/> diff --git a/design/mock/context.py b/design/mock/context.py index efae74c..a040109 100644 --- a/design/mock/context.py +++ b/design/mock/context.py @@ -1403,7 +1403,7 @@ def frame_sqlite(name, late): # 2 (in the stub), 4 (at libc's `syscall`), 5 (after it) and 6 (back in main). HELLO = open(__file__.replace("design/mock/context.py", "anim/tools/hello.c")).read().split("\n") R_ = VELLUM # read-only data: the string, and the GOT once relro has sealed it -HM = [(0x40117a, 4, "sub", "rsp, 0x40"), (0x40117e, 4, "mov", "rax, qword ptr fs:[0x28]"), +HM = [(0x401176, 4, "push", "rbp"), (0x401177, 4, "mov", "rbp, rsp"), (0x40117a, 4, "sub", "rsp, 0x40"), (0x40117e, 4, "mov", "rax, qword ptr fs:[0x28]"), (0x401187, 4, "mov", "qword ptr [rbp - 8], rax"), (0x40118b, 4, "xor", "eax, eax"), (0x40118d, 6, "lea", "rax, [rip + 0xe70]"), (0x401194, 6, "mov", "esi, 0"), (0x401199, 6, "mov", "rdi, rax"), (0x40119c, 6, "mov", "eax, 0"), (0x4011a1, 6, "call", (0x401070, "open@plt")), @@ -1443,7 +1443,7 @@ def frame_descent(name): call_c = ("runs", [("open", BRIGHT), ('("note", O_RDONLY)', VELLUM)]) instants = [ ("1", "at the call", "moment 1", None, "main", - [("main", None, main_rows(0, 17, {0x401194: "trail2", 0x401199: "trail1", 0x40119c: "trail0", 0x4011a1: "cur"}, + [("main", None, main_rows(0x40117a, 17, {0x401194: "trail2", 0x401199: "trail1", 0x40119c: "trail0", 0x4011a1: "cur"}, {0x401194: ("set", "rsi", [], ("int", 0)), 0x401199: ("set", "rdi", [(0x402004, R_)], ("str", "note")), 0x40119c: ("set", "rax", [], ("int", 0)), @@ -1452,13 +1452,15 @@ def frame_descent(name): ["main calls open by its stub in the PLT. The arguments", 'are in rdi and rsi: "note" and O_RDONLY.']), ("2", "in the stub", "moment 2", "main waits at line 6 · the pc is in the PLT", "open@plt · the PLT", - [("main", None, main_rows(0x401187, 13, {0x401199: "trail2", 0x40119c: "trail1", 0x4011a1: "wait"}, + # main keeps one row after its call and gives the rest above it: the stub's head is under its return row + [("main", None, main_rows(0x401176, 12, {0x401199: "trail2", 0x40119c: "trail1", 0x4011a1: "wait"}, {0x4011a1: call_c})), ("open@plt", "the PLT · its jmp reads open@got, 403fd8", [(0x401070, None, "jmp", [("qword ptr [rip + 0x2f62]", P)], "cur", ("runs", [("", "arrow"), (0x7ffff7d10ec0, CODE), (" open", VELLUM)])), (0x401076, None, "push", [("4", P)], None, ("text", "lazy binding: unused", FAINT)), - (0x40107b, None, "jmp", [(0x401020, CODE)], None, None)])], + (0x40107b, None, "jmp", [(0x401020, CODE)], None, None), + (0x401080, None, "endbr64", [], "other_first", ("text", "_start", DIM))])], ["The call pushed main+48 and went down: main's window keeps", "its call, ringed; the stub's opens under it, and its jmp reads the GOT."]), ("3", "the crossing", "moments 4 and 5", "main waits at line 6 · the pc is in libc's open", @@ -1482,7 +1484,7 @@ def frame_descent(name): ["libc's open is a wrapper: it puts openat's number in rax", "and its arguments in rdi, rsi, rdx, r10; syscall crosses down."]), ("4", "back up", "moment 6", None, "main", - [("main", None, main_rows(0, 17, {0x401199: "trail2", 0x40119c: "trail1", 0x4011a1: "trail0", 0x4011a6: "cur"}, + [("main", None, main_rows(0x40117a, 17, {0x401199: "trail2", 0x40119c: "trail1", 0x4011a1: "trail0", 0x4011a6: "cur"}, {0x4011a1: ("runs", [("open", VELLUM), ('("note", O_RDONLY) = ', DIM), ("3", VELLUM)]), 0x4011a6: ("chain", [(0x7fffffffecc8, S_)], ("int", 0), None)}))], ["open's ret came straight back to main+48: the stub was a jump,", diff --git a/design/mock/heap.py b/design/mock/heap.py index e4c3e3a..57cd7e3 100644 --- a/design/mock/heap.py +++ b/design/mock/heap.py @@ -165,7 +165,7 @@ def loupe(g, x, y, inst, changed): for s_, ink in [("tcache", DIM), (" → ", FAINT), ("405070", HEAP)]: g.t(xx, y + 18, s_, S, ink, MONO) xx += len(s_) * A - g.t(x + CW - 10, y + 18, "tcache_perthread_struct · 0x2f0 bytes", 18, DIM, "sans", "end") + g.t(x + CW - 10, y + 18, "tcache_perthread_struct · 0x2f8 bytes", 18, DIM, "sans", "end") slots, head = TC[inst] base = 0x405070 mem = {base + i: v for i, v in enumerate(bytes([slots, 0] + [0x10, 0] * 7))} @@ -173,9 +173,8 @@ def loupe(g, x, y, inst, changed): mem.update({base + 0xa0 + i: 0 for i in range(16)}) fl = [(0, 2, "number", False, None, "slots left · %d in the bin" % (16 - slots)), (0x98, 8, "pointer", False, None, "the head of 0x20")] - C.fields(g, y, h, "", base, 0x2f0, fl, mem, HEAP, region, framed=[(0, 2), (0x98, 8)], bare=True, x=x, + C.fields(g, y, h, "", base, 0x2f8, fl, mem, HEAP, region, framed=[(0, 2), (0x98, 8)], bare=True, x=x, rows_shown=[0, 9, 10], changed=changed) - g.rect(RX + 34 - 2, y - 4, 6 * A + 4, 4, HEAP) # the stem: a bracket under the row's address, on the tag INSTANTS = [ @@ -183,8 +182,8 @@ INSTANTS = [ ["malloc(16) cut a chunk of 0x20 off the top: its size word, 0x21,", "then the 16 bytes rax points at. The top is 0x20 smaller."]), ("B", "2", "three chunks", "stop 6, after push(9)", - ["Three pushes, three chunks in a row, each with P: the chunk", - "before it is in use. The list's next pointers are arcs in the bytes."]), + ["Two more pushes, at a run: three chunks in a row, each with P", + "set, the chunk before it in use. Settled: no marks, the arcs standing."]), ("C", "3", "a free", "stop 7, back from free in the first pop", ["free gave 9's chunk to the tcache, malloc's bin for 0x20. Its first", "word is the link now: 405, which is NULL, safe-linked."]), @@ -193,7 +192,7 @@ INSTANTS = [ "chunk's own address shifted 12. The arc is the pointer it hides."]), ("E", "5", "malloc takes it back", "stop 9, back from malloc in push(25)", ["malloc(16) took the bin's head, 405030: the tcache points at 405050", - "again, the key is wiped, and the old link stays until push writes."]), + "again, the key is wiped, the old link stays."]), ] CHANGED = { # the bytes each stop changed, of those on screen: struck "C": {0x405050, 0x405051} | set(range(0x405058, 0x405060)) | {0x405068, 0x405069, 0x40506a}, @@ -215,15 +214,73 @@ def storyboard(name): drawing(g, 48, 296, inst) C.fields(g, 48, 200, "the heap, 405000 to 40506f", BASE, 0x70, chunk_fields(inst), MEM[inst], HEAP, region, rows_shown=list(range(7)), more_rows=False, changed=CHANGED.get(inst, ()), - held_at={0x405050, 0x405058} if inst == "B" else (), touched={0x405030} if inst == "D" else ()) - if inst in TC: # hung from the view's last row: the chunk that is the tcache - loupe(g, RX + 34 - 92, 48 + TAG + PAD + 7 * ROW + 2, inst, LOUPE_CHANGED[inst]) + touched={0x405030} if inst == "D" else ()) # 2 is a run's end: settled, no marks + # the tcache's loupe lies over the stack, never over the registers: in 18-heap-free, not on this sheet for i, line in enumerate(cap): g.t(LX, 440 + i * 44, line, 32, VELLUM, "sans") g.o.append("</g>") g.save(name) +# ---- beat 3 whole: the first free, mid-step, in the working frame (`subject`) --------------------------------- +H_, S_, C_, D_ = HEAP, C.STACK, C.CODE, DATA +SRC = open(__file__.replace("heap.py", "heap.c")).read().split("\n") +RBP = [(0x7fffffffed00, S_), (0x7fffffffedb0, S_), (0x7fffffffee10, S_)] +REGS = [("rax", [], ("int", 0)), ("rbx", [], ("int", 0)), ("rcx", [], ("int", 0x405)), ("rdx", [], ("int", 0xf)), + ("rsi", [], ("int", 0xe2263c1be1246b56)), ("rdi", [(0x405050, H_)], ("int", 0x405)), + ("rbp", [(0x7fffffffecf0, S_)] + RBP, ("int", 0)), ("rsp", [(0x7fffffffece0, S_)], ("int", 0)), + ("r8", [(0x405070, H_)], ("int", 0x10001000100f)), ("r9", [], ("int", 0x20)), ("r10", [], ("int", 0x21)), + ("r11", [(0x7ffff7e19ac8, D_)], None), ("r12", [(0x7fffffffee38, S_), (0x7fffffffefea, S_)], ("str", "./heap")), + ("r13", [], ("int", 1)), ("r14", [(0x7ffff7ffd000, D_), (0x7ffff7ffe3c0, D_)], ("int", 0)), + ("r15", [(0x403df0, D_), (0x401110, C_, "__do_global_dtors_aux")], None), + ("rip", [(0x4011b6, C_, "pop+46")], None)] +FLAGS = [("CF", 0, 0), ("PF", 1, 0), ("AF", 0, 0), ("ZF", 0, 0), ("SF", 0, 0), ("IF", 1, 0), ("DF", 0, 0), ("OF", 0, 0)] +STACK = [(0x7fffffffece0, ["rsp"], [], ("int", 0)), (0x7fffffffece8, [], [(0x405050, H_)], ("int", 0x405)), + (0x7fffffffecf0, ["rbp"], RBP, ("int", 0)), (0x7fffffffecf8, [], [(0x4011e0, C_, "main+39")], None), + (0x7fffffffed00, [], RBP[1:], ("int", 0)), (0x7fffffffed08, [], [(0x7ffff7c27781, C_, "libc+27781")], None)] +P = VELLUM +DIS = [(0x40119b, 19, "mov", "rax, qword ptr [rbp - 8]", None, None), + (0x40119f, 19, "mov", "rax, qword ptr [rax + 8]", None, None), + (0x4011a3, 19, "mov", "qword ptr [rip + 0x2e7e], rax", None, ("text", "head", DATA)), + (0x4011aa, 20, "mov", "rax, qword ptr [rbp - 8]", "trail1", None), + (0x4011ae, 20, "mov", "rdi, rax", "trail0", None), + (0x4011b1, 20, "call", (0x401030, "free@plt"), "cur", ("runs", [("free", BRIGHT), (" in libc, stepped over", FAINT)])), + (0x4011b6, 21, "nop", "", None, ("set", "rdi", [(0x405050, H_)], ("int", 0x405))), + (0x4011b7, 21, "leave", "", None, None), (0x4011b8, 21, "ret", "", None, None)] + + +def frame_free(name): + """The first free in the working frame: the register wave struck, the chunk's words struck on the bytes that + changed, the node gone down to the bin's row, and the loupe on the tcache over the stack, never the registers.""" + gen.W, gen.H = 1920, 1080 + g = Svg() + sp = C.SUBJECT + y = 48 + sp["band"] + 12 + ys = C.source(g, y, sp["src"], SRC, 14, 20, [19, 18], "heap.c", 31) + at = C.disasm(g, y + ph(sp["src"]) + 12, + [(a, ln, mn, [(ops, C.CODE)] if isinstance(ops, tuple) else ([(ops, P)] if ops else []), st, note) + for a, ln, mn, ops, st, note in DIS], "pop", 20) + C.thread(g, ys, [(at[0x4011aa], at[0x4011b1] + ROW)]) + yr = 48 + sp["view"] + 12 + C.registers(g, yr, REGS, FLAGS, {r: {0: "strike"} for r in ("rax", "rcx", "rdx", "rsi", "r8", "r10")}) + C.stack(g, yr + ph(17) + 12, STACK, [("pop", 0, 3), ("main", 4, 5)], rsp=0x7fffffffece0, + roles={1: ("n", VELLUM), 2: ("saved rbp", DIM), 4: ("saved rbp", DIM)}) + drawing(g, 48, sp["band"], "C") + rows_y = C.fields(g, 48, sp["view"], "the heap, 405000 to 40506f", BASE, 0x70, chunk_fields("C"), MEM["C"], HEAP, + region, rows_shown=list(range(7)), more_rows=False, changed=CHANGED["C"]) + ly = 888 - ph(5) # over the stack, clamped to the stage + loupe(g, RX, ly, "C", LOUPE_CHANGED["C"]) + foot = rows_y[0x405060] + ROW + 2 # the stem: from under the row's address, down the gutter's right lane + g.rect(RX + 34 - 2, foot - 2, 6 * A + 4, 4, HEAP) + gen.arrow(g, [(RX + 32, foot), (962, foot), (962, ly + 12), (RX - 1, ly + 12)], HEAP, 3, r=8, + hl=10, hw=10) + C.clock(g, 7, 12) + gen.caption(g, [[("free gave 9's chunk to the tcache, malloc's bin for ",), ("0x20", "mono"), (". Its first",)], + [("word is the link now: ",), ("405", "mono"), (", which is NULL, safe-linked.",)]]) + g.save(name) + + if __name__ == "__main__": assert 0x405455 ^ (0x405030 >> 12) == 0x405050 and 0x405 ^ (0x405050 >> 12) == 0 # safe-linking, as stored storyboard("18-heap") + frame_free("18-heap-free") diff --git a/design/mock/map.py b/design/mock/map.py index aaf90e6..1b4287b 100644 --- a/design/mock/map.py +++ b/design/mock/map.py @@ -148,13 +148,13 @@ def draw_map(g, step, loupe, subject=False): def key(g, x, y, step): """The map's key, at the foot of a column it leaves: what this is, and its marks.""" - y0 = C.panel(g, x, y, D.CW, 5, "the map", note="targets/list · moment %d of 4" % (3 if step else 2)) + y0 = C.panel(g, x, y, D.CW, 3, "the map", note="targets/list · moment %d of 4" % (3 if step else 2)) # its rows, no more g.t(x + 12, b(y0), "every panel whole; the working frame's windows outlined", 18, DIM, "sans") items = [("current", lambda xx, yy: C.current_row(g, xx, yy, 120, 24)), ("struck", lambda xx, yy: C.struck(g, xx, yy, 60)), ("read", lambda xx, yy: g.frame(xx, yy, 60, ROW, READ, 2)), ("held", lambda xx, yy: C.held(g, xx + 8, yy, 40)), ("window", lambda xx, yy: g.frame(xx, yy, 60, ROW, DIM, 2))] for i, (name, draw) in enumerate(items): - xx, yy = x + 12 + (i % 3) * 290, y0 + (1 + i // 3) * ROW + 8 + xx, yy = x + 12 + (i % 3) * 290, y0 + (1 + i // 3) * ROW draw(xx, yy) g.t(xx + 136, b(yy), name, 18, DIM, "sans") diff --git a/design/motion.md b/design/motion.md index 16a3e28..afc3b08 100644 --- a/design/motion.md +++ b/design/motion.md @@ -313,7 +313,7 @@ catalogue's [caption](README.md#clock-and-caption). | | A step | What is drawn | Veiled | When | | --- | --- | --- | --- | --- | | walk | by content, 0.8 to 3.0 s | everything | nothing | the first time anything happens, and whatever the narration names | -| run | 0.30 s | the mark glides (8 f); cards, nodes, arrows and pins ease (8 f); values get embers, never solids; no fire, arm, pulse, link or projection | registers, stack, disassembly | a pattern seen once in full; 24 steps at most | +| run | 0.30 s | the mark glides (8 f); cards, nodes, arrows and pins ease (8 f); no strikes, no held corners, no arcs drawing: values change in place under 8 f crossfades, and what the run changed is shown settled when it ends (its arcs fade in, 8 f); no fire, arm, pulse, link or projection | registers, stack, disassembly | a pattern seen once in full; 24 steps at most | | sprint | 0.067 s or less | the drawing grows; embers; the mark and the pins only at phrase ends; the clock sweeps | the same, and the source and the band's view | everything longer | A run keeps its bars: 12 f of rest at each phrase end. A sprint does not. @@ -505,8 +505,40 @@ under the call row instead. The result is stored only after the kernel has given it: `returns` has the value before rax, and rax before anything the caller does with it, -never the other way round. A call with no work (`open`, `close`) goes from -84 straight to `returns` at 108 and is 3.6 s; one that moves bytes, 4.9 s. +never the other way round. A call with no bytes to move (`open`, +`close`) does not wait: it goes from 84 straight to `returns` at 108, the +answer climbs 108 to 132 in its full 24 f, and the step is 3.6 s; one that +moves bytes, 4.9 s. The band's view changes with the arguments' framing +(18 to 36): the last call's bytes out (12 f), this one's in (12 f), a path +or a buffer handed in whole, a buffer the kernel fills as dots until 144 +to 176; it is cleared when the log takes the row. + +**Stepped over.** A line that calls libc's wrapper (`n = read(f, buf, +32);`) is three parts, in the order the machine does them; the kernel's +window opens under the call row, and the wrapper is not shown. + +| Frames | | +| --- | --- | +| 0 to 12 | 1, the instructions before the call, a cascade: fire on the line | +| 6 to 18, 18 · 12 to 24, 24 · 18 to 30, 30 | arm, strike: the argument registers, in the order the instructions set them (`rdx` 32, `rsi` buf, `rdi` 3), the disassembly's trail following them | +| 36 to 48, 48 | a store the line makes before the call, in memory's slot | +| 60 to 72 | the plaque advances onto the call row; the line stays current | +| 72 to 90 | 2, the crossing, on the chart above with its frame 18 at 72 (no second fire): the arguments framed with their new values, 6 f apart, the view's bytes changing with them | +| 102 to 126 | the crossing lane, from the call row's plaque down to the kernel's window under it | +| 120 to 132 | the window opens and its call fades in | +| 198 to 230 | the bytes the kernel fills strike, 2 f apart (none for `open` or `close`, whose `returns` comes at 162) | +| 234 | `returns` | +| 240 to 264 | the answer climbs to the call row | +| 264 | rax struck as it lands | +| 270, 276 | `rcx`, `r11` | +| 270 to 282, 282 | 3, the stores after the call, in their own slot 18 f after rax: `n`, `[rbp - 0x34]` | +| 282 to 318 | hold | +| 318 to 330 | advance; the kernel's window draws back up into the lane | +| 330 to 354 | rest: 5.9 s for `read`; `close`, with no bytes and no store, 4.5 s | + +The order is the claim: no register is framed as an argument before the +instruction that set it has struck, the kernel shows nothing before the +lane lands, and nothing the caller does with the result moves before rax. A step that makes more than one call (a continue through a library) is not a crossing: the log takes the calls, oldest first, 2 f apart, and the step is a `continue`. Nothing on the kernel's side changes before frame @@ -523,20 +555,23 @@ step is a `continue`. Nothing on the kernel's side changes before frame | 12 to 24, 24 | arm, strike: `rsp`. Its pin stays on the window's top row | | 30 to 48 | the stack's rows slide down one slot, `glide` | | 48 to 60, 60 | arm, strike: the return address, `main+48` | -| 66 to 78 | the caller's window closes round its call row: the rows it gives up fade out | -| 72 to 84 | the call row's gold plaque becomes the waiting ring, and the remaining three rows glide to the window's top (18 f to 90) | -| 84 to 102 | the call lane draws down from the ring, head first, `standard` | -| 96 to 108 | the callee's head fades in rising 8 units as the lane reaches it | -| 102 to 126 | its rows fade in top down, 2 f apart, 12 f each | -| 126 to 138 | the advance: the plaque lands on the callee's first row; the source's line goes `waiting` (6 f) where the callee has no source | -| 138 to 162 | rest | +| 66 to 78 | the caller's window closes round its call row, first move: the rows it gives up fade out (those after its return row, and from its top as many as the callee needs) | +| 78 to 96 | second move: the rows it keeps glide up to their places, `glide`, where they move at all. Never both at once: a row gliding over a row fading is text on text | +| 84 to 96 | the call row's gold plaque becomes the waiting ring | +| 96 to 114 | the call lane draws down from the ring, head first, `standard`, to the head's place directly under the return row | +| 108 to 120 | the callee's head fades in rising 8 units as the lane reaches it | +| 114 to 138 | its rows fade in top down, 2 f apart, 12 f each | +| 138 to 150 | the advance: the plaque lands on the callee's first row; the source's line goes `waiting` (6 f) where the callee has no source | +| 150 to 174 | rest: 2.9 s | The stub's `jmp`, the next step, reads its GOT slot: fire (0 to 12); the slot framed as read in memory, on the map or in a loupe, and the row's -annotation names it (18 to 24); the stub's window shrinks to that row, -`pass` (24 to 42, `glide`); the lane runs on from it to `open`'s head (42 -to 60); `open`'s head and rows come in as above (54 to 84); advance (84 -to 96). A jump is not a call: nothing is pushed. +annotation names it (18 to 24); the stub's other rows fade (24 to 36), +then its `jmp` row, `pass`, glides to its place (36 to 54, `glide`); the +lane runs on from it to `open`'s head (54 to 72); `open`'s head and rows +come in as above (66 to 96); the stack span's name and the source's tag +crossfade to `open`'s (84 to 96, 12 f, never in a frame); advance (96 to +108). A jump is not a call: nothing is pushed. **Back up.** `open`'s `ret`: @@ -547,9 +582,10 @@ to 96). A jump is not a call: nothing is pushed. | 24 to 36, 36 | arm, strike: `rsp` | | 48 to 72 | `open`'s window closes, its rows fading bottom up, 2 f apart, 12 f each, its head last; the stub's `pass` row with it: the return skips the stub | | 72 to 84 | the lane draws back up into the ring | -| 84 to 102 | main's window grows back to the panel, `glide`; the rows it gave up fade in | -| 102 to 114 | the ring becomes a trail bar, the call's annotation takes its result (`= 3`, 6 f), and the plaque lands on the row after the call; the source's line from `waiting` to `current` | -| 114 to 138 | rest | +| 84 to 102 | main's window opens in the reverse of its closing, first move: the rows it kept glide back down to their places, `glide` | +| 102 to 114 | second move: the rows it gave up fade in | +| 114 to 126 | the ring becomes a trail bar, the call's annotation takes its result (`= 3`, 6 f), and the plaque lands on the row after the call; the source's line from `waiting` to `current`, its tag crossfading | +| 126 to 150 | rest: 2.5 s | A descent is a beat the narration names, and each of its steps is walked: at a run the windows open and close in 8 f with no lane drawn, and at a @@ -699,7 +735,8 @@ own path and its own scale. | before | the map is still and the caption that says where we are going has been up 60 f | | 0 to 6 | the windows' outlines go bright | | 6 to 24 | the rest of the map takes the veil, 50% | -| 24 to 96 | each window travels to its panel's place, its scale from a half to whole on its logarithm, `glide`; the panels set off 6 f apart in the frame's reading order (drawing, view, source, registers, disassembly, stack), each drawn over the ones before, so that two crossing are seen to cross. The map, veiled, travels the same 72 f to the minimap's place, its scale from a half to a twentieth | +| 24 to 96 | each window travels to its panel's place, its scale from a half to whole on its logarithm, `glide`; the panels set off 6 f apart in the frame's reading order (drawing, view, source, registers, disassembly, stack), each drawn over the ones before, so that two crossing are seen to cross. The map, veiled, travels the same 72 f to the minimap's rect (1664, 912, 192 by 108), its scale from a half to a twentieth on its logarithm: continuously, never dropped or hidden on the way | +| 90 to 96 | as it lands, the falling map crossfades into the minimap's own drawing | | 72 to 96 | the drawing crossfades from the map's size to the frame's within its box | | 84 to 102 | the working frame's tags, rules and lanes fade in; the veil on the map lifts as it lands; the clock's count fades in | | 102 to 138 | still | @@ -725,8 +762,8 @@ What is played on the map, and why: In the working frame the minimap is secondary action: its windows glide with their scrolls (24 f), a mark no window shows `flash`es on it once -(12 f) as it is struck, and nothing on it ever starts on a primary -onset's frame. A scene that opens on the map establishes it (0 to 48), its +(12 f) as it is struck, and every change on it starts 6 f after the +primary onset it follows, never on that frame. A scene that opens on the map establishes it (0 to 48), its first caption at 60, dives at 150, and has its first step by 300 (5.0 s). ### Captions, opening, closing @@ -926,38 +963,67 @@ heads. On the minimap those three are where they sit; a strike on one no window shows (the top's header moving down when the tcache is cut from it) flashes there. -**The beats.** +**The beats.** Each `free` and the `malloc` that takes the head back are +walked; pushes 2 and 3 are a run, which draws no strikes and no arcs and +shows what it did settled at its end. -| | Stop | Caption | What plays | +| | Stop | Pace | What plays | | --- | --- | --- | --- | -| 1 | the first `malloc` returns | malloc(16) cut a chunk of 0x20 off the top: its size word, 0x21, then the 16 bytes rax points at. The top is 0x20 smaller. | `fire`; `rax` struck and its `link` to the pin under a node that fades in on the program's row (12 f); the view's rows come in unmarked, the region being new (a dump that comes in after its step has no marks); the `bin` dashed, `dummy tcache`: before the first free the thread's tcache is a read-only dummy in libc | -| 2 | after `push(9)` | Three pushes, three chunks in a row, each with P: the chunk before it is in use. The list's next pointers are arcs in the bytes. | the second and third pushes at a run (8 f eases), each `next` written struck and its `arc` drawn (12 f), quieting with the cool; `head`'s pin travels to the newest node (30 f) | -| 3 | the first `free` returns | free gave 9's chunk to the tcache, malloc's bin for 0x20. Its first word is the link now: 405, which is NULL, safe-linked. | the chart below: the tcache made, the loupe opened on it, the node travelling down to the bin's row | -| 4 | the second `free` returns | The second chains to the first: 405455 is 405050 xor 405, the chunk's own address shifted 12. The arc is the pointer it hides. | the same, shorter: the chunk's first word struck (`55 54 40`) and its key; in the loupe `entries[0]` struck on its low byte alone (`50` to `30`) and `num_slots[0]` 15 to 14; the free node glides one place right (18 f) and the new one lands at the bin's head; the `arc` from 405030 to 405050 draws at full ink (12 f); the count 1 to 2 | -| 5 | the next `malloc` returns | malloc(16) took the bin's head, 405030: the tcache points at 405050 again, the key is wiped, and the old link stays until push writes. | `rax` struck and its link to the node; the key's 8 bytes struck to zero; the loupe's head and count struck back; the arc from 405030 fades (the word is the program's again, read as `bytes`, `the old link`); the node travels up to the program's row (36 f) and its halves turn back, the old link faint in the value's half; the count 2 to 1. Then `push` writes 25 and its `next`, and that arc draws | +| 1 | the first `malloc` returns | walked | `fire`; `rax` struck and its `link` to the pin under the chunk, which fades in on the program's row, in neither list: no arrow into it (12 f); the view's rows come in unmarked, the region being new; the `bin` dashed, `dummy tcache` (before the first free the thread's tcache is a read-only dummy in libc). Then push's three stores walked: the value struck, `next` struck, `head`'s pin travelling to the node | +| 2 | after `push(9)` | a run | pushes 2 and 3, twelve steps at a run: the nodes come in (8 f), values change in place unmarked; when the run ends the arcs of the `next`s fade in standing (8 f) | +| 3 | the first `free` returns | walked | the chart below: the tcache made, the loupe opened on it, the node travelling to the bin's row | +| 4 | the second `free` returns | walked | the chunk's first word struck on its three bytes that changed (`55 54 40`), then the key; the loupe opens again in the idea's slot (36 f) and in it `entries[0]` struck on its low byte alone (`50` to `30`), `num_slots[0]` 15 to 14 on its one byte; the free node glides one place right (18 f) and the new one travels down to the bin's head; the `arc` from 405030 to 405050 draws at full ink (12 f); the count 1 to 2, struck | +| 5 | the next `malloc` returns | walked | `rax` struck and its link; the key's 8 bytes struck to zero; the loupe opens again, its head and count struck back on the bytes that changed; the arc from 405030 fades (the word is the program's again, read as `bytes`, `the old link`); the node travels up to the program's row (36 f), in neither list, its old link faint in the value's half; the count 2 to 1. Then `push` writes 25 and its `next`, walked, and that arc draws | -The first free, frame by frame: +The loupe on the tcache hangs over the stack, never over the registers +(the free's register wave and malloc's `rax` are what the captions are +about); it opens in each step that changes the tcache (3, 4, 5), in its +idea slot, and closes at that step's advance: it is never open over a +step it does not concern. Its tag reads `tcache_perthread_struct · +0x2f8 bytes` (76 two-byte counts and 76 pointers: 760), and a note that +does not fit is cut with `…`, never in mid-word without it. + +**The captions**, on the rules (`say`; at least 90 f + 3.6 f a character, +at most 720 f, arriving at least 60 f before the step they describe, in a +rest). Frames from the scene's first; "lands" is when the caption has +arrived, "leaves" when it starts to go. + +| Lands | Leaves | Least | Caption | The step it leads, at | +| --- | --- | --- | --- | --- | +| 78 | 396 | 317 | Three pushes and two pops: what malloc and free do to the heap. | main's `push(7)`, 198 | +| 414 | 954 | 529 | malloc(16) cut a chunk of 0x20 off the top: its size word, 0x21, then the 16 bytes rax points at. The top is 0x20 smaller. | the malloc line, 474; push's stores to 954 | +| 972 | 1570 | 428 | Two more pushes, at a run: three chunks in a row, each with P set, the chunk before it in use. | the run, 1032 to 1522 | +| 1588 | 2068 | 263 | pop takes the head off the list: head = n->next. | the call to pop, 1648 | +| 2086 | 2615 | 529 | free gave 9's chunk to the tcache, malloc's bin for 0x20. Its first word is the link now: 405, which is NULL, safe-linked. | the free, 2146 | +| 2633 | 3113 | 245 | The second pop: head moves on, to 7's node. | the call to pop, 2693 | +| 3131 | 3693 | 562 | The second free chains to the first: 405455 is 405050 xor 405, the chunk's own address shifted 12. The arc is the pointer it hides. | the free, 3191 | +| 3711 | 4204 | 493 | malloc(16) took the bin's head, 405030: the tcache points at 405050 again, the key is wiped, the old link stays. | the call to push, 3771; its malloc, 3951 | +| 4222 | the cut, 4762 | 295 | push writes 25 over the old link: the list is 25, then 7. | push's stores, 4282 to 4642 | + +Each caption leaves 18 f before the next lands (12 out, 6 of nothing) and +only in a rest; none is up more than 598 f; the scene is 79.4 s, its last +120 f the finished picture. This replaces the rendered scene's caption up +31 s and the two that arrived after their steps. + +The first free, frame by frame, from its fire: | Frames | | | --- | --- | | 0 to 12 | fire on `free(n);` | -| 18 to 30 | the registers `free` left changed, struck in a wave 2 f apart (`rax`, `rcx` 405, `rdx`, `rsi` the key, `r8`, `r10`): it was stepped over, so as a `continue` | -| 54 to 66, 66 | memory: the chunk's first word armed and struck, its two bytes that changed 1 f apart (`05 04`) | -| 72 to 80 | its second word, the key, 8 bytes 1 f apart | -| 90 to 102 | the next chunk's header struck (`01 03`): the tcache's chunk, cut from the top at this first free; the top's own header has left the window, and flashes on the minimap | -| 102 to 138 | `open`: the loupe on the tcache, hung from that row: the row framed as read, the stem, the rise, its two fields framed | -| 144, 150 | in the loupe: `num_slots[0]` struck (16 to 15), then `entries[0]` (`50 50 40`) | -| 162 to 174 | the idea: the `bin`'s box goes from dashed to raised, `tcache 0x20` | +| 18 to 30 | the registers `free` left changed, struck in a wave 2 f apart (`rax`, `rcx` 405, `rdx`, `rsi`, `r8`, `r10`): it was stepped over, so as a `continue` | +| 54 to 66, 66 | memory: the chunk's first word armed and struck on its two bytes that changed (`05 04`), 1 f apart, the held corner to come on the first | +| 72 to 80 | its second word, the key, its 8 bytes 1 f apart | +| 90 to 102 | the next chunk's header struck on its three bytes that changed (`01 03 00`): the tcache's chunk, cut from the top at this first free; the top's own header has left the window and flashes on the minimap (6 f after) | +| 102 to 138 | `open`: the loupe on the tcache, over the stack, its stem down the gutter from that row; its two fields framed | +| 144, 150 | in the loupe: `num_slots[0]` struck on its one byte (16 to 15), then `entries[0]` on its three (`50 50 40`) | +| 162 to 174 | the idea: the `bin`'s box crossfades from dashed to raised, `dummy tcache` to `tcache 0x20`, and the top's box crossfades to its new place and size, `0x20ca0` struck | | 168 to 210 | the node lifts (6 f) and travels down to the bin's row (36 f, `glide`); as it lands its outline goes dashed and its halves turn (12 f): the first word's half the link's well, the second hatched, `key`. `rdi`'s pin rides with it: the pointer was freed, not cleared | -| 210 to 222 | the count lands on the bin's shoulder, struck: 1 | +| 204 to 210 | the count fades in on the bin's shoulder | +| 210 to 222, 222 | arm, strike: the count, 1 | | 222 to 258 | hold | -| 258 to 270 | advance | +| 258 to 270 | advance; the loupe closes with it | | 270 to 294 | rest: 4.9 s | -The loupe stays open while the caption names the tcache (beats 3 to 5), -each of its changes a strike in it; it closes with the advance after beat -5's push. - **What the scene's author writes.** A sketch in the shape of `anim/scenes/sqlite.zig`'s fields: @@ -1095,7 +1161,9 @@ python3 motion.py track VIDEO f139 f158 --color e8c46a # a colour's b `chart` compares each frame with the one before, in each region of the scene's layout (a table at the top of the script, keyed by the video's -name; add a scene there). A pixel *moved* if a channel changed by more than +name; add a scene there). Any other name gets the working frame's: the +program column, the state column, the caption's text alone (64 to 1464, +906 to 1032, clear of the clock's count), the clock and the minimap. A pixel *moved* if a channel changed by more than 24 of 255 and is *fading* if by more than 6. The picture is one bar a frame and one strip a region: solid for moving, outlined for fading, holds shaded with their length. The text lists every event with the first and @@ -1104,10 +1172,10 @@ ends with the checks: | Check | Fires when | Wants | | --- | --- | --- | -| POP | over 0.2% of the frame changes within two frames, still either side | easing, or a smaller change | +| POP | a region still for 12 frames or more changes in one frame and is still again, at any size (a label swapped, a count appearing, a box gone, a window that jumped); or over 0.2% of the frame changes within two frames, still either side. The clock's count is exempt: it is time | a crossfade, a fade, an arm and a strike | | CROWD | three or more panels begin within two frames of each other | the cascade | | METRONOME | seven or more events of over 0.5% of the frame, evenly spaced | content-timed steps, phrase rests | -| RUSH | a panel moves within a second of a caption arriving | the caption's lead | +| CAPTION | a caption is on screen over 720 f, or under 90 f + 3.6 f a character, or the picture moves less than 60 f after it arrives. Its time on screen runs from the end of the change that brought it to the start of the next. `design/motion/motion.py` reads the video only, so it holds a caption to 90 f; `anim/tools/chart.py`, which has the scene's captions, counts their characters | a second caption, a shorter scene, a later step | | AIR | nothing changes for three seconds | a shorter hold, or something to say | A scene is ready for eyes when all five are empty or each remaining line diff --git a/design/motion/motion.py b/design/motion/motion.py index b0647d7..d192295 100644 --- a/design/motion/motion.py +++ b/design/motion/motion.py @@ -26,6 +26,7 @@ SOFT = 6 # ... and is fading if by more than this MIN_PX = 12 # a region is moving in a frame if this many of its pixels moved MIN_SOFT = 150 # ... and fading if this many did: under it is the codec HOLD = 0.4 # seconds of nothing that count as a hold +STILL = 12 # frames still before a one-frame change counts as a pop def cols(first, n, y, h): @@ -46,6 +47,10 @@ REGIONS = { "boundary": (0, 528, W, 96), "kernel": (0, 624, W, 272), "caption": CAPTION}, "zoom": {"head": HEAD, "source": cols(0, 5, 0, 384), "registers": cols(0, 5, 408, 360), "stack": cols(5, 7, 0, 768), "caption": CAPTION}, + # The working frame (README.md, "The frame"): the two columns, the caption's text alone (not the clock's count + # at its right, which changes every step), the clock, the minimap. The default for any other name. + "frame": {"program": (64, 48, 880, 840), "state": (976, 48, 880, 840), "caption": (64, 906, 1400, 126), + "clock": (64, 894, 1600, 52), "minimap": (1664, 906, 192, 120)}, } PALETTE = ["#9aa6d9", "#e8c46a", "#6fd6e6", "#7fdc9a", "#d59cf5", "#ff6a4a", "#eee6d2", "#17a0b0"] @@ -90,7 +95,7 @@ def font(size): def regions_for(video, name): stem = os.path.splitext(os.path.basename(video))[0] - return REGIONS.get(name or stem, REGIONS["bands"]) + return REGIONS.get(name or stem, REGIONS["frame"]) # ---- measure -------------------------------------------------------------- @@ -182,7 +187,7 @@ def report(video, names, counts, soft, sizes, fps): return ev, "\n".join(lines) -WORDS = ("head", "caption") # regions that are not panels +WORDS = ("head", "caption", "clock", "minimap") # regions that are not panels def lint(names, counts, soft, sizes, fps, ev): @@ -193,10 +198,19 @@ def lint(names, counts, soft, sizes, fps, ev): on = busy(counts, soft) panels = [k for k, n_ in enumerate(names) if k > 0 and n_ not in WORDS] - # POP: a lot changes in a frame or two, with stillness either side: nothing eased it. - pops = [e["from"] / fps for e in ev if e["moved"] <= 2 and e["frames"] <= 3 and e["peak"] / sizes[0] > 0.002] + # POP: a region still for STILL frames changes in one frame and is still again, at any size: a label + # swapped, a box gone, a count appearing. Nothing eased it. (And, as before, a large change in two.) + pops = {e["from"] for e in ev if e["moved"] <= 2 and e["frames"] <= 3 and e["peak"] / sizes[0] > 0.002} + for k in range(1, len(names)): + if names[k] == "clock": # its count changes in a frame by design: it is time, not a thing + continue + col = on[:, k] + for t in range(STILL, len(col) - 1): + if col[t] and not col[t + 1] and not col[t - STILL:t].any() and counts[t, k] >= MIN_PX: + pops.add(t) + pops = sorted(pops) if pops: - out.append(f" POP {len(pops):3d} a change of over 0.2% of the frame in a frame or two: {some(pops)}") + out.append(f" POP {len(pops):3d} a change in one frame after stillness: {some([t / fps for t in pops])}") # CROWD: three or more panels begin to move within two frames of each other. crowd = [] @@ -221,18 +235,27 @@ def lint(names, counts, soft, sizes, fps, ev): for a, b, n_, gap in runs_: out.append(f" METRONOME {n_:3d} events {gap:.2f} s apart, from {a:.2f} to {b:.2f}") - # RUSH: a caption arrives or changes, and the picture moves before it can be read. + # CAPTION: a caption up too long or too short to be read, or the picture moving before it can be. + # Its time on screen is from the end of the change that brought it to the start of the next change. + # Without the text, the shortest is 90 f; tools/chart.py, which has the scene's captions, adds 3.6 f a + # character. The picture may move 60 f after a caption arrives, no sooner. cap = names.index("caption") if "caption" in names else None - rush = [] + late, longs, shorts = [], [], [] if cap is not None: - for a, b in runs(on[:, cap]): - if b - a < 3: - continue + changes = [(a, b) for a, b in runs(on[:, cap]) if b - a >= 3] + for (a, b), nxt in zip(changes, changes[1:] + [(len(on), len(on))]): + up = nxt[0] - b - 1 + if up > 720: + longs.append(b / fps) + elif 6 < up < 90: # 6: a caption leaving and the next arriving + shorts.append(b / fps) later = np.nonzero(on[b + 1:, panels].any(axis=1))[0] - if len(later) and later[0] / fps < 1.0: - rush.append(b / fps) - if rush: - out.append(f" RUSH {len(rush):3d} the picture moves within a second of a caption arriving: {some(rush)}") + if len(later) and later[0] < 60 and up >= 90: + late.append(b / fps) + for what, times in (("up over 720 f (12 s)", longs), ("up under 90 f", shorts), + ("the picture moves within 60 f of its arrival", late)): + if times: + out.append(f" CAPTION {len(times):3d} {what}: {some(times)}") # AIR: nothing at all changes for three seconds. air = [(a / fps, (b - a + 1) / fps) for a, b in runs(~on[:, 0]) if (b - a + 1) / fps >= 3.0] |
