blob: f975a898e8fae4ef30459f7edc05e31adf48d987 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
<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="150.0" width="24.0" height="24.0" fill="#e8c46a"/>
<text x="108.0" y="172.0" font-family="Go Medium" font-size="30" fill="#9aa6d9" xml:space="preserve">How programs really run</text>
<text x="1856.0" y="172.0" font-family="Go Medium" font-size="30" fill="#6a7ab8" xml:space="preserve" text-anchor="end">part 3</text>
<text x="60.0" y="330.0" font-family="Go" font-size="116" fill="#fff8e8" xml:space="preserve" font-weight="bold">Where does malloc</text>
<text x="60.0" y="458.0" font-family="Go" font-size="116" fill="#fff8e8" xml:space="preserve" font-weight="bold">keep its notes?</text>
<text x="64.0" y="540.0" font-size="44" xml:space="preserve"><tspan font-family="Go" font-weight="normal" fill="#9aa6d9">glibc and musl, one </tspan><tspan font-family="JetBrains Mono NL" font-weight="normal" fill="#eee6d2" font-size="38">free()</tspan><tspan font-family="Go" font-weight="normal" fill="#9aa6d9"> at a time</tspan></text>
<rect x="64.0" y="624.0" width="1792.0" height="48.0" fill="#16245f"/>
<rect x="65.0" y="625.0" width="1790.0" height="262.0" fill="none" stroke="#3a4a8a" stroke-width="2"/>
<line x1="64.0" y1="672.0" x2="1856.0" y2="672.0" stroke="#3a4a8a" stroke-width="2"/>
<rect x="79.0" y="639.0" width="18.0" height="18.0" fill="none" stroke="#6a7ab8" stroke-width="2"/>
<text x="112.0" y="658.0" font-family="Go Medium" font-size="28" fill="#9aa6d9" xml:space="preserve">legend</text>
<text x="1840.0" y="656.0" font-family="Go" font-size="22" fill="#6a7ab8" xml:space="preserve" text-anchor="end">the same marks in every picture</text>
<rect x="88.0" y="706.0" width="72.0" height="46.0" fill="#e8c46a"/>
<text x="97.0 115.0 133.0" y="739.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">rip</text>
<text x="174.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">current</text>
<text x="174.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">executing now</text>
<rect x="307.0" y="706.0" width="72.0" height="46.0" fill="#ff6a4a"/>
<text x="325.0 343.0" y="739.8" font-family="JetBrains Mono NL" font-size="30" fill="#050a24" xml:space="preserve" font-weight="bold">2a</text>
<text x="393.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">written</text>
<text x="393.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">by this step</text>
<rect x="526.0" y="706.0" width="72.0" height="46.0" fill="#5a2218"/>
<rect x="526.0" y="746.0" width="72.0" height="6.0" fill="#ff6a4a"/>
<text x="544.0 562.0" y="739.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">2a</text>
<text x="612.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">changed</text>
<text x="612.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">a moment ago</text>
<rect x="745.0" y="706.0" width="72.0" height="46.0" fill="#1c4652"/>
<rect x="746.5" y="707.5" width="69.0" height="43.0" fill="none" stroke="#6fd6e6" stroke-width="3"/>
<text x="763.0 781.0" y="739.8" font-family="JetBrains Mono NL" font-size="30" fill="#eee6d2" xml:space="preserve">2a</text>
<text x="831.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">read</text>
<text x="831.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">by this step</text>
<path d="M964.0,729.0 L1022.0,729.0" fill="none" stroke="#eee6d2" stroke-width="3" stroke-linejoin="round" stroke-linecap="butt"/>
<path d="M1036.0,729.0 L1020.0,736.0 L1020.0,722.0 Z" fill="#eee6d2"/>
<text x="1050.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">moving</text>
<text x="1050.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">in transit</text>
<rect x="1205.0" y="726.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<rect x="1227.0" y="726.0" width="6.0" height="6.0" fill="#6a7ab8"/>
<text x="1269.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">not seen</text>
<text x="1269.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">never observed</text>
<rect x="1402.0" y="706.0" width="72.0" height="46.0" fill="#eee6d2"/>
<text x="1411.0 1429.0 1447.0" y="739.8" font-family="JetBrains Mono NL" font-size="30" fill="#0a1030" xml:space="preserve" font-weight="bold">sys</text>
<text x="1488.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">kernel</text>
<text x="1488.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">the other side</text>
<rect x="1621.0" y="706.0" width="72.0" height="46.0" fill="url(#hazard)"/>
<rect x="1629.0" y="714.0" width="56.0" height="30.0" fill="#050a24"/>
<text x="1633.0 1645.0 1657.0 1669.0" y="736.2" font-family="JetBrains Mono NL" font-size="20" fill="#fff8e8" xml:space="preserve" font-weight="bold">SEGV</text>
<text x="1707.0" y="724.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">fault</text>
<text x="1707.0" y="752.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">signal, error</text>
<text x="88.0 106.0 124.0 142.0" y="835.8" font-family="JetBrains Mono NL" font-size="30" fill="#f2d675" xml:space="preserve">7ffe</text>
<text x="174.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">stack</text>
<text x="174.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">points into it</text>
<text x="307.0 325.0 343.0 361.0" y="835.8" font-family="JetBrains Mono NL" font-size="30" fill="#86b6ff" xml:space="preserve">7ffe</text>
<text x="393.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">heap</text>
<text x="393.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">points into it</text>
<text x="526.0 544.0 562.0 580.0" y="835.8" font-family="JetBrains Mono NL" font-size="30" fill="#ff8f9a" xml:space="preserve">7ffe</text>
<text x="612.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">code</text>
<text x="612.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">points into it</text>
<text x="745.0 763.0 781.0 799.0" y="835.8" font-family="JetBrains Mono NL" font-size="30" fill="#d59cf5" xml:space="preserve">7ffe</text>
<text x="831.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">data</text>
<text x="831.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">points into it</text>
<text x="964.0 982.0 1000.0 1018.0" y="835.8" font-family="JetBrains Mono NL" font-size="30" fill="#d59cf5" xml:space="preserve">7f3c</text>
<rect x="964.0" y="840.0" width="72.0" height="2.0" fill="#d59cf5"/>
<text x="1050.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">rwx</text>
<text x="1050.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">write and run</text>
<text x="1183.0 1201.0 1219.0 1237.0" y="835.8" font-family="JetBrains Mono NL" font-size="30" fill="#b5e8c8" xml:space="preserve">"hi"</text>
<text x="1269.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">text</text>
<text x="1269.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">a string</text>
<rect x="1402.0" y="802.0" width="72.0" height="46.0" fill="#1f4a33"/>
<rect x="1403.5" y="803.5" width="69.0" height="43.0" fill="none" stroke="#7fdc9a" stroke-width="3"/>
<text x="1488.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">allocated</text>
<text x="1488.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">handed out</text>
<rect x="1621.0" y="802.0" width="72.0" height="46.0" fill="url(#hatch)"/>
<rect x="1622.5" y="803.5" width="69.0" height="43.0" fill="none" stroke="#9aa6d9" stroke-width="3" stroke-dasharray="12 8"/>
<text x="1707.0" y="820.0" font-family="Go Medium" font-size="26" fill="#eee6d2" xml:space="preserve">freed</text>
<text x="1707.0" y="848.0" font-family="Go" font-size="18" fill="#9aa6d9" xml:space="preserve">handed back</text>
</svg>
|