home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume32 / dbmalloc / part01 < prev    next >
SHell self-extracting ARchive  |  1992-09-04  |  56.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: SHell self-extracting ARchive (archive/shar).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 46 72 |.sources|.misc.Fr|
|00000020| 6f 6d 3a 20 63 70 63 61 | 68 69 6c 40 76 74 69 2e |om: cpca|hil@vti.|
|00000030| 63 6f 6d 20 28 43 6f 6e | 6f 72 20 50 2e 20 43 61 |com (Con|or P. Ca|
|00000040| 68 69 6c 6c 29 0a 53 75 | 62 6a 65 63 74 3a 20 20 |hill).Su|bject: |
|00000050| 76 33 32 69 30 30 36 3a | 20 20 64 62 6d 61 6c 6c |v32i006:| dbmall|
|00000060| 6f 63 20 2d 20 44 65 62 | 75 67 20 4d 61 6c 6c 6f |oc - Deb|ug Mallo|
|00000070| 63 20 4c 69 62 72 61 72 | 79 20 50 4c 31 34 2c 20 |c Librar|y PL14, |
|00000080| 50 61 72 74 30 31 2f 31 | 30 0a 4d 65 73 73 61 67 |Part01/1|0.Messag|
|00000090| 65 2d 49 44 3a 20 3c 31 | 39 39 32 53 65 70 34 2e |e-ID: <1|992Sep4.|
|000000a0| 31 35 31 37 30 37 2e 31 | 32 33 33 32 40 73 70 61 |151707.1|2332@spa|
|000000b0| 72 6b 79 2e 69 6d 64 2e | 73 74 65 72 6c 69 6e 67 |rky.imd.|sterling|
|000000c0| 2e 63 6f 6d 3e 0a 58 2d | 4d 64 34 2d 53 69 67 6e |.com>.X-|Md4-Sign|
|000000d0| 61 74 75 72 65 3a 20 36 | 65 63 34 66 31 62 33 33 |ature: 6|ec4f1b33|
|000000e0| 39 35 36 38 34 38 65 33 | 65 37 30 65 39 35 66 34 |956848e3|e70e95f4|
|000000f0| 61 39 31 34 33 37 65 0a | 44 61 74 65 3a 20 46 72 |a91437e.|Date: Fr|
|00000100| 69 2c 20 34 20 53 65 70 | 20 31 39 39 32 20 31 35 |i, 4 Sep| 1992 15|
|00000110| 3a 31 37 3a 30 37 20 47 | 4d 54 0a 41 70 70 72 6f |:17:07 G|MT.Appro|
|00000120| 76 65 64 3a 20 6b 65 6e | 74 40 73 70 61 72 6b 79 |ved: ken|t@sparky|
|00000130| 2e 69 6d 64 2e 73 74 65 | 72 6c 69 6e 67 2e 63 6f |.imd.ste|rling.co|
|00000140| 6d 0a 0a 53 75 62 6d 69 | 74 74 65 64 2d 62 79 3a |m..Submi|tted-by:|
|00000150| 20 63 70 63 61 68 69 6c | 40 76 74 69 2e 63 6f 6d | cpcahil|@vti.com|
|00000160| 20 28 43 6f 6e 6f 72 20 | 50 2e 20 43 61 68 69 6c | (Conor |P. Cahil|
|00000170| 6c 29 0a 50 6f 73 74 69 | 6e 67 2d 6e 75 6d 62 65 |l).Posti|ng-numbe|
|00000180| 72 3a 20 56 6f 6c 75 6d | 65 20 33 32 2c 20 49 73 |r: Volum|e 32, Is|
|00000190| 73 75 65 20 36 0a 41 72 | 63 68 69 76 65 2d 6e 61 |sue 6.Ar|chive-na|
|000001a0| 6d 65 3a 20 64 62 6d 61 | 6c 6c 6f 63 2f 70 61 72 |me: dbma|lloc/par|
|000001b0| 74 30 31 0a 45 6e 76 69 | 72 6f 6e 6d 65 6e 74 3a |t01.Envi|ronment:|
|000001c0| 20 43 2c 20 55 4e 49 58 | 0a 0a 23 21 20 2f 62 69 | C, UNIX|..#! /bi|
|000001d0| 6e 2f 73 68 0a 23 20 54 | 68 69 73 20 69 73 20 61 |n/sh.# T|his is a|
|000001e0| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 2e 20 | shell a|rchive. |
|000001f0| 20 52 65 6d 6f 76 65 20 | 61 6e 79 74 68 69 6e 67 | Remove |anything|
|00000200| 20 62 65 66 6f 72 65 20 | 74 68 69 73 20 6c 69 6e | before |this lin|
|00000210| 65 2c 20 74 68 65 6e 20 | 75 6e 70 61 63 6b 0a 23 |e, then |unpack.#|
|00000220| 20 69 74 20 62 79 20 73 | 61 76 69 6e 67 20 69 74 | it by s|aving it|
|00000230| 20 69 6e 74 6f 20 61 20 | 66 69 6c 65 20 61 6e 64 | into a |file and|
|00000240| 20 74 79 70 69 6e 67 20 | 22 73 68 20 66 69 6c 65 | typing |"sh file|
|00000250| 22 2e 20 20 54 6f 20 6f | 76 65 72 77 72 69 74 65 |". To o|verwrite|
|00000260| 20 65 78 69 73 74 69 6e | 67 0a 23 20 66 69 6c 65 | existin|g.# file|
|00000270| 73 2c 20 74 79 70 65 20 | 22 73 68 20 66 69 6c 65 |s, type |"sh file|
|00000280| 20 2d 63 22 2e 20 20 59 | 6f 75 20 63 61 6e 20 61 | -c". Y|ou can a|
|00000290| 6c 73 6f 20 66 65 65 64 | 20 74 68 69 73 20 61 73 |lso feed| this as|
|000002a0| 20 73 74 61 6e 64 61 72 | 64 20 69 6e 70 75 74 20 | standar|d input |
|000002b0| 76 69 61 0a 23 20 75 6e | 73 68 61 72 2c 20 6f 72 |via.# un|shar, or|
|000002c0| 20 62 79 20 74 79 70 69 | 6e 67 20 22 73 68 20 3c | by typi|ng "sh <|
|000002d0| 66 69 6c 65 22 2c 20 65 | 2e 67 2e 2e 20 20 49 66 |file", e|.g.. If|
|000002e0| 20 74 68 69 73 20 61 72 | 63 68 69 76 65 20 69 73 | this ar|chive is|
|000002f0| 20 63 6f 6d 70 6c 65 74 | 65 2c 20 79 6f 75 0a 23 | complet|e, you.#|
|00000300| 20 77 69 6c 6c 20 73 65 | 65 20 74 68 65 20 66 6f | will se|e the fo|
|00000310| 6c 6c 6f 77 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |llowing |message |
|00000320| 61 74 20 74 68 65 20 65 | 6e 64 3a 0a 23 09 09 22 |at the e|nd:.#.."|
|00000330| 45 6e 64 20 6f 66 20 61 | 72 63 68 69 76 65 20 31 |End of a|rchive 1|
|00000340| 20 28 6f 66 20 31 30 29 | 2e 22 0a 23 20 43 6f 6e | (of 10)|.".# Con|
|00000350| 74 65 6e 74 73 3a 20 20 | 52 45 41 44 4d 45 20 43 |tents: |README C|
|00000360| 48 41 4e 47 45 53 20 4d | 41 4e 49 46 45 53 54 20 |HANGES M|ANIFEST |
|00000370| 43 48 45 43 4b 53 55 4d | 53 20 4d 61 6b 65 66 69 |CHECKSUM|S Makefi|
|00000380| 6c 65 20 43 6f 6e 66 69 | 67 2e 66 6c 61 67 73 0a |le Confi|g.flags.|
|00000390| 23 20 20 20 61 62 6f 72 | 74 2e 63 20 70 61 74 63 |# abor|t.c patc|
|000003a0| 68 6c 65 76 65 6c 0a 23 | 20 57 72 61 70 70 65 64 |hlevel.#| Wrapped|
|000003b0| 20 62 79 20 63 70 63 61 | 68 69 6c 40 76 69 72 74 | by cpca|hil@virt|
|000003c0| 65 63 68 20 6f 6e 20 54 | 68 75 20 53 65 70 20 20 |ech on T|hu Sep |
|000003d0| 33 20 31 38 3a 33 39 3a | 31 38 20 31 39 39 32 0a |3 18:39:|18 1992.|
|000003e0| 50 41 54 48 3d 2f 62 69 | 6e 3a 2f 75 73 72 2f 62 |PATH=/bi|n:/usr/b|
|000003f0| 69 6e 3a 2f 75 73 72 2f | 75 63 62 20 3b 20 65 78 |in:/usr/|ucb ; ex|
|00000400| 70 6f 72 74 20 50 41 54 | 48 0a 69 66 20 74 65 73 |port PAT|H.if tes|
|00000410| 74 20 2d 66 20 27 52 45 | 41 44 4d 45 27 20 2d 61 |t -f 'RE|ADME' -a|
|00000420| 20 22 24 7b 31 7d 22 20 | 21 3d 20 22 2d 63 22 20 | "${1}" |!= "-c" |
|00000430| 3b 20 74 68 65 6e 20 0a | 20 20 65 63 68 6f 20 73 |; then .| echo s|
|00000440| 68 61 72 3a 20 57 69 6c | 6c 20 6e 6f 74 20 63 6c |har: Wil|l not cl|
|00000450| 6f 62 62 65 72 20 65 78 | 69 73 74 69 6e 67 20 66 |obber ex|isting f|
|00000460| 69 6c 65 20 5c 22 27 52 | 45 41 44 4d 45 27 5c 22 |ile \"'R|EADME'\"|
|00000470| 0a 65 6c 73 65 0a 65 63 | 68 6f 20 73 68 61 72 3a |.else.ec|ho shar:|
|00000480| 20 45 78 74 72 61 63 74 | 69 6e 67 20 5c 22 27 52 | Extract|ing \"'R|
|00000490| 45 41 44 4d 45 27 5c 22 | 20 5c 28 32 30 38 38 34 |EADME'\"| \(20884|
|000004a0| 20 63 68 61 72 61 63 74 | 65 72 73 5c 29 0a 73 65 | charact|ers\).se|
|000004b0| 64 20 22 73 2f 5e 58 2f | 2f 22 20 3e 27 52 45 41 |d "s/^X/|/" >'REA|
|000004c0| 44 4d 45 27 20 3c 3c 27 | 45 4e 44 5f 4f 46 5f 46 |DME' <<'|END_OF_F|
|000004d0| 49 4c 45 27 0a 58 2f 2a | 0a 58 20 2a 20 28 63 29 |ILE'.X/*|.X * (c)|
|000004e0| 20 43 6f 70 79 72 69 67 | 68 74 20 31 39 39 30 2c | Copyrig|ht 1990,|
|000004f0| 20 31 39 39 31 2c 20 31 | 39 39 32 20 43 6f 6e 6f | 1991, 1|992 Cono|
|00000500| 72 20 50 2e 20 43 61 68 | 69 6c 6c 20 28 75 75 6e |r P. Cah|ill (uun|
|00000510| 65 74 21 76 69 72 74 65 | 63 68 21 63 70 63 61 68 |et!virte|ch!cpcah|
|00000520| 69 6c 29 2e 20 20 0a 58 | 20 2a 0a 58 20 2a 20 54 |il). .X| *.X * T|
|00000530| 68 69 73 20 73 6f 66 74 | 77 61 72 65 20 6d 61 79 |his soft|ware may|
|00000540| 20 62 65 20 64 69 73 74 | 72 69 62 75 74 65 64 20 | be dist|ributed |
|00000550| 66 72 65 65 6c 79 20 61 | 73 20 6c 6f 6e 67 20 61 |freely a|s long a|
|00000560| 73 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |s the fo|llowing |
|00000570| 63 6f 6e 64 69 74 69 6f | 6e 73 0a 58 20 2a 20 61 |conditio|ns.X * a|
|00000580| 72 65 20 6d 65 74 3a 0a | 58 20 2a 20 09 09 2a 20 |re met:.|X * ..* |
|00000590| 74 68 65 20 64 69 73 74 | 72 69 62 75 74 69 6f 6e |the dist|ribution|
|000005a0| 2c 20 6f 72 20 61 6e 79 | 20 64 65 72 69 76 61 74 |, or any| derivat|
|000005b0| 69 76 65 20 74 68 65 72 | 65 6f 66 2c 20 6d 61 79 |ive ther|eof, may|
|000005c0| 20 6e 6f 74 20 62 65 0a | 58 20 2a 09 09 20 20 69 | not be.|X *.. i|
|000005d0| 6e 63 6c 75 64 65 64 20 | 61 73 20 70 61 72 74 20 |ncluded |as part |
|000005e0| 6f 66 20 61 20 63 6f 6d | 6d 65 72 63 69 61 6c 20 |of a com|mercial |
|000005f0| 70 72 6f 64 75 63 74 0a | 58 20 2a 09 09 2a 20 66 |product.|X *..* f|
|00000600| 75 6c 6c 20 73 6f 75 72 | 63 65 20 63 6f 64 65 20 |ull sour|ce code |
|00000610| 69 73 20 70 72 6f 76 69 | 64 65 64 20 69 6e 63 6c |is provi|ded incl|
|00000620| 75 64 69 6e 67 20 74 68 | 69 73 20 63 6f 70 79 72 |uding th|is copyr|
|00000630| 69 67 68 74 0a 58 20 2a | 09 09 2a 20 74 68 65 72 |ight.X *|..* ther|
|00000640| 65 20 69 73 20 6e 6f 20 | 63 68 61 72 67 65 20 66 |e is no |charge f|
|00000650| 6f 72 20 74 68 65 20 73 | 6f 66 74 77 61 72 65 20 |or the s|oftware |
|00000660| 69 74 73 65 6c 66 20 28 | 74 68 65 72 65 20 6d 61 |itself (|there ma|
|00000670| 79 20 62 65 0a 58 20 2a | 09 09 20 20 61 20 6d 69 |y be.X *|.. a mi|
|00000680| 6e 69 6d 61 6c 20 63 68 | 61 72 67 65 20 66 6f 72 |nimal ch|arge for|
|00000690| 20 74 68 65 20 63 6f 70 | 79 69 6e 67 20 6f 72 20 | the cop|ying or |
|000006a0| 64 69 73 74 72 69 62 75 | 74 69 6f 6e 20 65 66 66 |distribu|tion eff|
|000006b0| 6f 72 74 29 0a 58 20 2a | 09 09 2a 20 74 68 69 73 |ort).X *|..* this|
|000006c0| 20 63 6f 70 79 72 69 67 | 68 74 20 6e 6f 74 69 63 | copyrig|ht notic|
|000006d0| 65 20 69 73 20 6e 6f 74 | 20 6d 6f 64 69 66 69 65 |e is not| modifie|
|000006e0| 64 20 6f 72 20 72 65 6d | 6f 76 65 64 20 66 72 6f |d or rem|oved fro|
|000006f0| 6d 20 61 6e 79 0a 58 20 | 2a 09 09 20 20 73 6f 75 |m any.X |*.. sou|
|00000700| 72 63 65 20 66 69 6c 65 | 0a 58 20 2a 2f 0a 58 0a |rce file|.X */.X.|
|00000710| 58 54 68 69 73 20 70 61 | 63 6b 61 67 65 20 69 73 |XThis pa|ckage is|
|00000720| 20 61 20 63 6f 6c 6c 65 | 63 74 69 6f 6e 20 6f 66 | a colle|ction of|
|00000730| 20 72 6f 75 74 69 6e 65 | 73 20 77 68 69 63 68 20 | routine|s which |
|00000740| 61 72 65 20 61 20 64 72 | 6f 70 2d 69 6e 20 72 65 |are a dr|op-in re|
|00000750| 70 6c 61 63 65 6d 65 6e | 74 0a 58 66 6f 72 20 74 |placemen|t.Xfor t|
|00000760| 68 65 20 6d 61 6c 6c 6f | 63 28 33 29 2c 20 6d 65 |he mallo|c(3), me|
|00000770| 6d 6f 72 79 28 33 29 2c | 20 73 74 72 69 6e 67 28 |mory(3),| string(|
|00000780| 33 29 2c 20 61 6e 64 20 | 62 73 74 72 69 6e 67 28 |3), and |bstring(|
|00000790| 33 29 20 6c 69 62 72 61 | 72 79 20 66 75 6e 63 74 |3) libra|ry funct|
|000007a0| 69 6f 6e 73 2e 0a 58 54 | 68 65 73 65 20 72 65 70 |ions..XT|hese rep|
|000007b0| 6c 61 63 65 6d 65 6e 74 | 20 6d 6f 64 75 6c 65 73 |lacement| modules|
|000007c0| 20 61 72 65 20 64 69 66 | 66 65 72 65 6e 74 20 66 | are dif|ferent f|
|000007d0| 72 6f 6d 20 74 68 65 20 | 6f 72 69 67 69 6e 61 6c |rom the |original|
|000007e0| 20 6d 6f 64 75 6c 65 73 | 20 69 6e 20 74 68 61 74 | modules| in that|
|000007f0| 0a 58 74 68 65 79 20 70 | 72 6f 76 69 64 65 20 61 |.Xthey p|rovide a|
|00000800| 20 66 75 6c 6c 20 73 65 | 74 20 6f 66 20 64 65 62 | full se|t of deb|
|00000810| 75 67 67 69 6e 67 20 66 | 65 61 74 75 72 65 73 20 |ugging f|eatures |
|00000820| 77 68 69 63 68 20 64 65 | 74 65 63 74 20 6d 61 6c |which de|tect mal|
|00000830| 6c 6f 63 20 0a 58 6d 65 | 6d 6f 72 79 20 6f 76 65 |loc .Xme|mory ove|
|00000840| 72 72 75 6e 73 20 61 6e | 64 20 6f 74 68 65 72 20 |rruns an|d other |
|00000850| 74 79 70 65 73 20 6f 66 | 20 6d 69 73 75 73 65 2e |types of| misuse.|
|00000860| 0a 58 0a 58 54 68 65 20 | 73 6f 66 74 77 61 72 65 |.X.XThe |software|
|00000870| 20 68 61 73 20 62 65 65 | 6e 20 64 65 76 65 6c 6f | has bee|n develo|
|00000880| 70 65 64 20 75 6e 64 65 | 72 20 49 53 43 20 55 4e |ped unde|r ISC UN|
|00000890| 49 58 20 61 6e 64 20 70 | 6f 72 74 65 64 20 74 6f |IX and p|orted to|
|000008a0| 20 73 65 76 65 72 61 6c | 20 6f 74 68 65 72 0a 58 | several| other.X|
|000008b0| 55 4e 49 58 20 61 72 63 | 68 69 74 65 63 74 75 72 |UNIX arc|hitectur|
|000008c0| 65 73 20 69 6e 63 6c 75 | 64 69 6e 67 20 48 50 2d |es inclu|ding HP-|
|000008d0| 55 58 2c 20 53 75 6e 4f | 53 2c 20 61 6e 64 20 41 |UX, SunO|S, and A|
|000008e0| 49 58 2e 20 20 59 6f 75 | 20 73 68 6f 75 6c 64 20 |IX. You| should |
|000008f0| 62 65 20 61 62 6c 65 20 | 0a 58 74 6f 20 67 65 74 |be able |.Xto get|
|00000900| 20 69 74 20 74 6f 20 72 | 75 6e 20 6f 75 74 20 6f | it to r|un out o|
|00000910| 66 20 74 68 65 20 62 6f | 78 20 6f 6e 20 6d 6f 73 |f the bo|x on mos|
|00000920| 74 20 55 4e 49 58 20 73 | 79 73 74 65 6d 73 2e 20 |t UNIX s|ystems. |
|00000930| 20 49 66 20 6e 6f 74 2c | 20 73 65 65 20 74 68 65 | If not,| see the|
|00000940| 20 50 52 4f 42 4c 45 4d | 53 0a 58 66 69 6c 65 20 | PROBLEM|S.Xfile |
|00000950| 66 6f 72 20 73 6f 6d 65 | 20 68 65 6c 70 2e 20 20 |for some| help. |
|00000960| 0a 58 0a 58 56 69 72 74 | 75 61 6c 20 54 65 63 68 |.X.XVirt|ual Tech|
|00000970| 6e 6f 6c 6f 67 69 65 73 | 2c 20 49 6e 63 20 61 6c |nologies|, Inc al|
|00000980| 73 6f 20 73 75 70 70 6f | 72 74 73 20 61 20 63 6f |so suppo|rts a co|
|00000990| 6d 6d 65 72 63 69 61 6c | 20 76 65 72 73 69 6f 6e |mmercial| version|
|000009a0| 20 6f 66 20 74 68 65 20 | 6c 69 62 72 61 72 79 20 | of the |library |
|000009b0| 0a 58 77 68 69 63 68 20 | 69 6e 63 6c 75 64 65 73 |.Xwhich |includes|
|000009c0| 20 6d 6f 72 65 20 66 65 | 61 74 75 72 65 73 2c 20 | more fe|atures, |
|000009d0| 62 65 74 74 65 72 20 65 | 72 72 6f 72 20 72 65 70 |better e|rror rep|
|000009e0| 6f 72 74 69 6e 67 2c 20 | 62 65 74 74 65 72 20 70 |orting, |better p|
|000009f0| 65 72 66 6f 72 6d 61 6e | 63 65 2c 0a 58 6e 6f 20 |erforman|ce,.Xno |
|00000a00| 6e 65 65 64 20 74 6f 20 | 72 65 63 6f 6d 70 69 6c |need to |recompil|
|00000a10| 65 20 74 68 65 20 63 6f | 64 65 20 74 6f 20 62 65 |e the co|de to be|
|00000a20| 20 76 65 72 69 66 69 65 | 64 2c 20 70 72 6f 66 65 | verifie|d, profe|
|00000a30| 73 73 69 6f 6e 61 6c 20 | 64 6f 63 75 6d 65 6e 74 |ssional |document|
|00000a40| 61 74 69 6f 6e 2c 0a 58 | 61 6e 64 20 73 75 70 70 |ation,.X|and supp|
|00000a50| 6f 72 74 2e 20 20 54 68 | 65 20 63 6f 6d 6d 65 72 |ort. Th|e commer|
|00000a60| 63 69 61 6c 20 76 65 72 | 73 69 6f 6e 20 69 73 20 |cial ver|sion is |
|00000a70| 61 76 61 69 6c 61 62 6c | 65 20 6f 6e 20 61 20 67 |availabl|e on a g|
|00000a80| 72 6f 77 69 6e 67 20 72 | 61 6e 67 65 20 6f 66 0a |rowing r|ange of.|
|00000a90| 58 61 72 63 68 69 74 65 | 63 74 75 72 65 73 20 61 |Xarchite|ctures a|
|00000aa0| 6e 64 20 69 73 20 72 65 | 61 73 6f 6e 61 62 6c 79 |nd is re|asonably|
|00000ab0| 20 70 72 69 63 65 64 2e | 0a 58 0a 58 49 66 20 79 | priced.|.X.XIf y|
|00000ac0| 6f 75 20 77 6f 75 6c 64 | 20 6c 69 6b 65 20 6d 6f |ou would| like mo|
|00000ad0| 72 65 20 69 6e 66 6f 20 | 6f 6e 20 74 68 65 20 63 |re info |on the c|
|00000ae0| 6f 6d 6d 65 72 63 69 61 | 6c 20 76 65 72 73 69 6f |ommercia|l versio|
|00000af0| 6e 2c 20 79 6f 75 20 63 | 61 6e 20 73 65 6e 64 20 |n, you c|an send |
|00000b00| 65 6d 61 69 6c 0a 58 74 | 6f 20 69 6e 66 6f 40 76 |email.Xt|o info@v|
|00000b10| 69 72 74 65 63 68 2e 76 | 74 69 2e 63 6f 6d 2e 0a |irtech.v|ti.com..|
|00000b20| 58 0a 58 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X.X-----|--------|
|00000b30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b40| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000b60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 58 50 |--------|-----.XP|
|00000b70| 4f 52 54 49 4e 47 20 4e | 4f 54 45 53 3a 0a 58 0a |ORTING N|OTES:.X.|
|00000b80| 58 30 2e 20 53 68 6f 72 | 74 20 63 75 74 3a 20 20 |X0. Shor|t cut: |
|00000b90| 6a 75 73 74 20 72 75 6e | 20 22 6d 61 6b 65 20 72 |just run| "make r|
|00000ba0| 75 6e 74 65 73 74 73 22 | 2e 20 20 54 68 69 73 20 |untests"|. This |
|00000bb0| 77 69 6c 6c 20 63 6f 6e | 66 69 67 75 72 65 20 61 |will con|figure a|
|00000bc0| 6e 64 20 63 6f 6d 70 69 | 6c 65 0a 58 20 20 20 74 |nd compi|le.X t|
|00000bd0| 68 65 20 6c 69 62 72 61 | 72 79 20 61 6e 64 20 63 |he libra|ry and c|
|00000be0| 6f 6d 70 69 6c 65 20 61 | 6e 64 20 72 75 6e 20 61 |ompile a|nd run a|
|00000bf0| 6c 6c 20 6f 66 20 74 68 | 65 20 74 65 73 74 73 2e |ll of th|e tests.|
|00000c00| 20 20 4f 74 68 65 72 77 | 69 73 65 2c 20 79 6f 75 | Otherw|ise, you|
|00000c10| 20 63 61 6e 0a 58 20 20 | 20 66 6f 6c 6c 6f 77 20 | can.X | follow |
|00000c20| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 73 74 |the foll|owing st|
|00000c30| 65 70 73 3a 0a 58 0a 58 | 31 2e 20 45 64 69 74 20 |eps:.X.X|1. Edit |
|00000c40| 74 68 65 20 6d 61 6b 65 | 66 69 6c 65 20 61 6e 64 |the make|file and|
|00000c50| 20 73 65 74 20 74 68 65 | 20 61 70 70 72 6f 70 72 | set the| appropr|
|00000c60| 69 61 74 65 20 66 6c 61 | 67 73 20 66 6f 72 20 74 |iate fla|gs for t|
|00000c70| 68 65 20 63 6f 6d 70 69 | 6c 61 74 69 6f 6e 73 0a |he compi|lations.|
|00000c80| 58 20 20 20 53 65 65 20 | 6e 6f 74 65 20 61 62 6f |X See |note abo|
|00000c90| 75 74 20 63 6f 6e 66 69 | 67 75 72 65 20 61 6e 64 |ut confi|gure and|
|00000ca0| 20 73 65 74 74 69 6e 67 | 20 73 70 65 63 69 61 6c | setting| special|
|00000cb0| 20 66 6c 61 67 73 20 69 | 6e 20 74 68 65 20 6e 65 | flags i|n the ne|
|00000cc0| 78 74 20 73 74 65 70 2e | 0a 58 0a 58 32 2e 20 54 |xt step.|.X.X2. T|
|00000cd0| 79 70 65 20 6d 61 6b 65 | 20 6d 61 6c 6c 6f 63 2e |ype make| malloc.|
|00000ce0| 68 20 20 2d 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |h - whi|ch will |
|00000cf0| 72 75 6e 20 74 68 65 20 | 43 6f 6e 66 69 67 75 72 |run the |Configur|
|00000d00| 65 20 73 63 72 69 70 74 | 20 74 6f 20 67 65 6e 65 |e script| to gene|
|00000d10| 72 61 74 65 0a 58 20 20 | 20 74 68 65 20 61 70 70 |rate.X | the app|
|00000d20| 72 6f 70 72 69 61 74 65 | 20 65 6e 74 72 69 65 73 |ropriate| entries|
|00000d30| 20 69 6e 20 6d 61 6c 6c | 6f 63 2e 68 20 66 69 6c | in mall|oc.h fil|
|00000d40| 65 20 66 6f 72 20 74 68 | 69 73 20 63 6f 6d 70 69 |e for th|is compi|
|00000d50| 6c 65 72 2f 4f 53 2e 0a | 58 20 20 20 49 66 20 74 |ler/OS..|X If t|
|00000d60| 68 65 20 63 6f 6e 66 69 | 67 75 72 65 20 73 63 72 |he confi|gure scr|
|00000d70| 69 70 74 20 68 61 73 20 | 70 72 6f 62 6c 65 6d 73 |ipt has |problems|
|00000d80| 2c 20 74 68 65 6e 20 79 | 6f 75 20 77 69 6c 6c 20 |, then y|ou will |
|00000d90| 70 72 6f 62 61 62 6c 79 | 20 68 61 76 65 20 74 6f |probably| have to|
|00000da0| 20 0a 58 20 20 20 63 6f | 6e 66 69 67 75 72 65 20 | .X co|nfigure |
|00000db0| 74 68 65 20 6d 61 6c 6c | 6f 63 2e 68 20 66 69 6c |the mall|oc.h fil|
|00000dc0| 65 20 62 79 20 68 61 6e | 64 2e 20 20 4c 6f 6f 6b |e by han|d. Look|
|00000dd0| 20 69 6e 20 74 68 65 20 | 50 52 4f 42 4c 45 4d 53 | in the |PROBLEMS|
|00000de0| 20 66 69 6c 65 0a 58 20 | 20 20 66 6f 72 20 6d 6f | file.X | for mo|
|00000df0| 72 65 20 69 6e 66 6f 2e | 0a 58 0a 58 20 20 20 4e |re info.|.X.X N|
|00000e00| 4f 54 45 3a 20 43 6f 6e | 66 69 67 75 72 65 20 6c |OTE: Con|figure l|
|00000e10| 6f 6f 6b 73 20 61 72 6f | 75 6e 64 20 66 6f 72 20 |ooks aro|und for |
|00000e20| 61 6c 6c 20 6f 66 20 74 | 68 65 20 63 6f 6d 70 69 |all of t|he compi|
|00000e30| 6c 65 72 73 20 79 6f 75 | 20 68 61 76 65 20 6f 6e |lers you| have on|
|00000e40| 20 74 68 65 0a 58 20 20 | 20 73 79 73 74 65 6d 20 | the.X | system |
|00000e50| 61 6e 64 20 61 74 74 65 | 6d 70 74 73 20 74 6f 20 |and atte|mpts to |
|00000e60| 73 65 74 75 70 20 61 20 | 73 69 6e 67 6c 65 20 6d |setup a |single m|
|00000e70| 61 6c 6c 6f 63 2e 68 20 | 74 68 61 74 20 63 61 6e |alloc.h |that can|
|00000e80| 20 62 65 20 69 6e 63 6c | 75 64 65 64 20 62 79 0a | be incl|uded by.|
|00000e90| 58 20 20 20 61 6e 79 20 | 6f 66 20 74 68 65 6d 2e |X any |of them.|
|00000ea0| 20 20 43 6f 6e 66 69 67 | 75 72 65 20 61 73 73 75 | Config|ure assu|
|00000eb0| 6d 65 73 20 74 68 61 74 | 20 74 68 65 20 63 6f 6d |mes that| the com|
|00000ec0| 70 69 6c 65 72 73 20 63 | 61 6e 20 62 65 20 63 61 |pilers c|an be ca|
|00000ed0| 6c 6c 65 64 20 77 69 74 | 68 6f 75 74 0a 58 20 20 |lled wit|hout.X |
|00000ee0| 20 61 6e 79 20 73 70 65 | 63 69 61 6c 20 66 6c 61 | any spe|cial fla|
|00000ef0| 67 73 20 66 6f 72 20 61 | 20 62 61 73 69 63 20 63 |gs for a| basic c|
|00000f00| 6f 6d 70 69 6c 65 2e 20 | 20 49 66 20 74 68 69 73 |ompile. | If this|
|00000f10| 20 69 73 20 6e 6f 74 20 | 74 68 65 20 63 61 73 65 | is not |the case|
|00000f20| 20 79 6f 75 0a 58 20 20 | 20 77 69 6c 6c 20 68 61 | you.X | will ha|
|00000f30| 76 65 20 74 6f 20 6d 6f | 64 69 66 79 20 74 68 65 |ve to mo|dify the|
|00000f40| 20 43 6f 6e 66 69 67 2e | 66 6c 61 67 73 20 66 69 | Config.|flags fi|
|00000f50| 6c 65 20 61 6e 64 20 61 | 64 64 20 61 20 6c 69 6e |le and a|dd a lin|
|00000f60| 65 20 77 69 74 68 20 74 | 68 65 0a 58 20 20 20 63 |e with t|he.X c|
|00000f70| 6f 6d 70 69 6c 65 72 20 | 6e 61 6d 65 20 61 6e 64 |ompiler |name and|
|00000f80| 20 73 70 65 63 69 61 6c | 20 66 6c 61 67 73 2e 20 | special| flags. |
|00000f90| 0a 58 0a 58 20 20 20 46 | 6f 72 20 65 78 61 6d 70 |.X.X F|or examp|
|00000fa0| 6c 65 2c 20 69 66 20 79 | 6f 75 20 77 61 6e 74 65 |le, if y|ou wante|
|00000fb0| 64 20 74 6f 20 75 73 65 | 20 74 68 65 20 2d 41 61 |d to use| the -Aa|
|00000fc0| 20 66 6c 61 67 20 6f 6e | 20 48 50 2f 55 58 20 63 | flag on| HP/UX c|
|00000fd0| 63 20 28 73 74 72 69 63 | 74 20 0a 58 20 20 20 41 |c (stric|t .X A|
|00000fe0| 4e 53 49 20 6d 6f 64 65 | 20 2d 20 77 68 69 63 68 |NSI mode| - which|
|00000ff0| 20 61 6c 73 6f 20 77 6f | 75 6c 64 20 72 65 71 75 | also wo|uld requ|
|00001000| 69 72 65 20 2d 44 5f 50 | 4f 53 49 58 5f 53 4f 55 |ire -D_P|OSIX_SOU|
|00001010| 52 43 45 20 74 6f 20 63 | 6f 6d 70 69 6c 65 20 74 |RCE to c|ompile t|
|00001020| 68 65 0a 58 20 20 20 6d | 61 6c 6c 6f 63 20 6c 69 |he.X m|alloc li|
|00001030| 62 72 61 72 79 29 2c 20 | 79 6f 75 20 77 6f 75 6c |brary), |you woul|
|00001040| 64 20 68 61 76 65 20 74 | 6f 20 61 64 64 20 74 68 |d have t|o add th|
|00001050| 65 20 6c 69 6e 65 3a 20 | 22 63 63 20 2d 41 61 20 |e line: |"cc -Aa |
|00001060| 2d 44 5f 50 4f 53 49 58 | 5f 53 4f 55 52 43 45 22 |-D_POSIX|_SOURCE"|
|00001070| 0a 58 20 20 20 74 6f 20 | 43 6f 6e 66 69 67 2e 66 |.X to |Config.f|
|00001080| 6c 61 67 73 20 28 61 6e | 64 20 61 64 64 20 2d 41 |lags (an|d add -A|
|00001090| 61 20 2d 44 5f 50 4f 53 | 49 58 5f 53 4f 55 52 43 |a -D_POS|IX_SOURC|
|000010a0| 45 20 74 6f 20 74 68 65 | 20 43 46 4c 41 47 53 20 |E to the| CFLAGS |
|000010b0| 64 65 66 69 6e 69 74 69 | 6f 6e 0a 58 20 20 20 69 |definiti|on.X i|
|000010c0| 6e 20 74 68 65 20 4d 61 | 6b 65 66 69 6c 65 29 2e |n the Ma|kefile).|
|000010d0| 0a 58 0a 58 20 20 20 52 | 45 4d 45 4d 42 45 52 2c |.X.X R|EMEMBER,|
|000010e0| 20 69 66 20 79 6f 75 20 | 64 6f 20 74 68 69 73 2c | if you |do this,|
|000010f0| 20 79 6f 75 20 6d 61 79 | 20 67 65 74 20 65 72 72 | you may| get err|
|00001100| 6f 72 20 6d 65 73 73 61 | 67 65 20 69 66 20 74 68 |or messa|ge if th|
|00001110| 65 20 6d 61 6c 6c 6f 63 | 2e 68 0a 58 20 20 20 66 |e malloc|.h.X f|
|00001120| 69 6c 65 20 69 73 20 69 | 6e 63 6c 75 64 65 64 20 |ile is i|ncluded |
|00001130| 69 6e 20 63 6f 6d 70 69 | 6c 65 73 20 74 68 61 74 |in compi|les that|
|00001140| 20 64 6f 20 6e 6f 74 20 | 69 6e 63 6c 75 64 65 20 | do not |include |
|00001150| 74 68 65 20 73 70 65 63 | 69 66 69 65 64 20 66 6c |the spec|ified fl|
|00001160| 61 67 73 2e 0a 58 20 20 | 20 49 66 20 79 6f 75 20 |ags..X | If you |
|00001170| 65 78 70 65 63 74 20 64 | 69 66 66 65 72 65 6e 74 |expect d|ifferent|
|00001180| 20 63 6f 6d 70 69 6c 61 | 74 69 6f 6e 20 65 6e 76 | compila|tion env|
|00001190| 69 72 6f 6e 6d 65 6e 74 | 73 20 77 69 74 68 20 74 |ironment|s with t|
|000011a0| 68 65 20 73 61 6d 65 20 | 63 6f 6d 70 69 6c 65 72 |he same |compiler|
|000011b0| 2c 0a 58 20 20 20 79 6f | 75 20 6d 69 67 68 74 20 |,.X yo|u might |
|000011c0| 77 61 6e 74 20 74 6f 20 | 68 61 76 65 20 64 69 66 |want to |have dif|
|000011d0| 66 65 72 65 6e 74 20 76 | 65 72 73 69 6f 6e 73 20 |ferent v|ersions |
|000011e0| 6f 66 20 74 68 65 20 64 | 65 62 75 67 67 69 6e 67 |of the d|ebugging|
|000011f0| 20 6d 61 6c 6c 6f 63 2e | 68 20 66 69 6c 65 0a 58 | malloc.|h file.X|
|00001200| 20 20 20 66 6f 72 20 65 | 61 63 68 20 65 6e 76 69 | for e|ach envi|
|00001210| 72 6f 6e 6d 65 6e 74 2e | 0a 58 0a 58 20 20 20 4e |ronment.|.X.X N|
|00001220| 4f 54 45 3a 20 43 6f 6e | 66 69 67 75 72 65 20 77 |OTE: Con|figure w|
|00001230| 69 6c 6c 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |ill auto|maticall|
|00001240| 79 20 67 65 6e 65 72 61 | 74 65 20 74 77 6f 20 63 |y genera|te two c|
|00001250| 6f 6e 66 69 67 75 72 61 | 74 69 6f 6e 73 20 66 6f |onfigura|tions fo|
|00001260| 72 0a 58 20 20 20 67 63 | 63 20 69 66 20 69 74 20 |r.X gc|c if it |
|00001270| 66 69 6e 64 73 20 69 74 | 20 28 6f 6e 65 20 66 6f |finds it| (one fo|
|00001280| 72 20 6e 6f 72 6d 61 6c | 20 67 63 63 20 61 6e 64 |r normal| gcc and|
|00001290| 20 6f 6e 65 20 66 6f 72 | 20 67 63 63 20 2d 74 72 | one for| gcc -tr|
|000012a0| 61 64 69 74 69 6f 6e 61 | 6c 29 0a 58 20 20 20 73 |aditiona|l).X s|
|000012b0| 6f 20 74 68 61 74 20 74 | 68 65 20 6c 69 62 72 61 |o that t|he libra|
|000012c0| 72 79 20 63 61 6e 20 62 | 65 20 75 73 65 64 20 69 |ry can b|e used i|
|000012d0| 6e 20 65 69 74 68 65 72 | 20 6d 6f 64 65 2e 0a 58 |n either| mode..X|
|000012e0| 0a 58 20 20 20 4e 4f 54 | 45 3a 20 72 65 61 6c 20 |.X NOT|E: real |
|000012f0| 70 72 6f 67 72 61 6d 6d | 65 72 73 20 64 6f 6e 27 |programm|ers don'|
|00001300| 74 20 6e 65 65 64 20 61 | 6e 79 20 66 61 6e 63 79 |t need a|ny fancy|
|00001310| 20 43 6f 6e 66 69 67 75 | 72 65 20 73 63 72 69 70 | Configu|re scrip|
|00001320| 74 2c 20 74 68 65 79 20 | 63 61 6e 20 0a 58 20 20 |t, they |can .X |
|00001330| 20 63 6f 6e 66 69 67 75 | 72 65 20 74 68 65 20 75 | configu|re the u|
|00001340| 74 69 6c 69 74 79 20 62 | 79 20 68 61 6e 64 20 28 |tility b|y hand (|
|00001350| 61 6e 64 20 73 6f 20 62 | 79 70 61 73 73 20 74 68 |and so b|ypass th|
|00001360| 69 73 20 73 74 65 70 29 | 2e 20 3a 2d 7d 0a 58 0a |is step)|. :-}.X.|
|00001370| 58 20 20 20 50 52 4f 42 | 4c 45 4d 53 3a 20 69 66 |X PROB|LEMS: if|
|00001380| 20 79 6f 75 20 66 69 6e | 64 20 61 20 70 72 6f 62 | you fin|d a prob|
|00001390| 6c 65 6d 20 77 69 74 68 | 20 74 68 65 20 63 6f 6e |lem with| the con|
|000013a0| 66 69 67 75 72 65 20 73 | 63 72 69 70 74 2c 20 79 |figure s|cript, y|
|000013b0| 6f 75 20 63 61 6e 20 64 | 6f 0a 58 20 20 20 6f 6e |ou can d|o.X on|
|000013c0| 65 20 6f 66 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |e of the| followi|
|000013d0| 6e 67 3a 0a 58 0a 58 09 | 31 2e 20 67 69 76 65 20 |ng:.X.X.|1. give |
|000013e0| 75 70 0a 58 09 32 2e 20 | 72 65 70 6f 72 74 20 70 |up.X.2. |report p|
|000013f0| 72 6f 62 6c 65 6d 20 61 | 6e 64 20 67 69 76 65 20 |roblem a|nd give |
|00001400| 75 70 0a 58 09 33 2e 20 | 66 69 78 20 70 72 6f 62 |up.X.3. |fix prob|
|00001410| 6c 65 6d 2c 20 73 65 6e | 64 20 66 69 78 20 74 6f |lem, sen|d fix to|
|00001420| 20 6d 65 20 61 6e 64 20 | 63 6f 6e 74 69 6e 75 65 | me and |continue|
|00001430| 0a 58 09 34 2e 20 62 79 | 70 61 73 73 20 74 68 65 |.X.4. by|pass the|
|00001440| 20 61 75 74 6f 6d 61 74 | 69 63 20 63 6f 6e 66 69 | automat|ic confi|
|00001450| 67 75 72 61 74 69 6f 6e | 20 28 73 65 65 20 74 68 |guration| (see th|
|00001460| 65 20 50 52 4f 42 4c 45 | 4d 53 20 66 69 6c 65 20 |e PROBLE|MS file |
|00001470| 66 6f 72 0a 58 09 20 20 | 20 69 6e 66 6f 20 6f 6e |for.X. | info on|
|00001480| 20 68 6f 77 20 74 6f 20 | 64 6f 20 74 68 69 73 29 | how to |do this)|
|00001490| 2e 0a 58 0a 58 20 20 20 | 53 69 6e 63 65 20 49 20 |..X.X |Since I |
|000014a0| 68 61 76 65 20 65 6e 73 | 75 72 65 64 20 74 68 61 |have ens|ured tha|
|000014b0| 74 20 74 68 69 73 20 77 | 6f 72 6b 73 20 6f 6e 20 |t this w|orks on |
|000014c0| 61 6c 6c 20 74 68 65 20 | 65 6e 76 69 72 6f 6e 6d |all the |environm|
|000014d0| 65 6e 74 73 20 74 68 61 | 74 20 49 20 0a 58 20 20 |ents tha|t I .X |
|000014e0| 20 68 61 76 65 20 61 63 | 63 65 73 73 20 74 6f 2c | have ac|cess to,|
|000014f0| 20 49 20 77 69 6c 6c 20 | 6e 6f 74 20 62 65 20 61 | I will |not be a|
|00001500| 62 6c 65 20 74 6f 20 66 | 69 78 20 61 20 70 72 6f |ble to f|ix a pro|
|00001510| 62 6c 65 6d 20 74 68 61 | 74 20 79 6f 75 20 68 61 |blem tha|t you ha|
|00001520| 76 65 20 0a 58 20 20 20 | 6f 6e 20 79 6f 75 72 20 |ve .X |on your |
|00001530| 4f 53 2f 63 6f 6d 70 69 | 6c 65 72 20 63 6f 6d 62 |OS/compi|ler comb|
|00001540| 69 6e 61 74 69 6f 6e 20 | 75 6e 6c 65 73 73 20 79 |ination |unless y|
|00001550| 6f 75 20 67 69 76 65 20 | 6d 65 20 65 78 74 72 65 |ou give |me extre|
|00001560| 6d 65 6c 79 20 67 6f 6f | 64 20 0a 58 20 20 20 64 |mely goo|d .X d|
|00001570| 65 74 61 69 6c 73 20 61 | 62 6f 75 74 20 74 68 65 |etails a|bout the|
|00001580| 20 70 72 6f 62 6c 65 6d | 20 69 6e 63 6c 75 64 69 | problem| includi|
|00001590| 6e 67 3a 0a 58 09 0a 58 | 09 31 2e 20 48 61 72 64 |ng:.X..X|.1. Hard|
|000015a0| 77 61 72 65 20 26 20 4f | 53 0a 58 09 32 2e 20 63 |ware & O|S.X.2. c|
|000015b0| 6f 6d 70 69 6c 65 72 0a | 58 09 33 2e 20 63 6f 6d |ompiler.|X.3. com|
|000015c0| 70 69 6c 61 74 69 6f 6e | 20 65 6e 76 69 72 6f 6e |pilation| environ|
|000015d0| 6d 65 6e 74 20 28 69 2e | 65 2e 20 6f 6e 20 73 75 |ment (i.|e. on su|
|000015e0| 6e 73 20 79 6f 75 20 63 | 61 6e 20 72 75 6e 20 69 |ns you c|an run i|
|000015f0| 6e 20 61 20 53 79 73 20 | 56 0a 58 09 20 20 20 65 |n a Sys |V.X. e|
|00001600| 6e 76 69 72 6f 6e 6d 65 | 6e 74 20 6f 72 20 61 20 |nvironme|nt or a |
|00001610| 42 53 44 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |BSD envi|ronment |
|00001620| 2d 20 74 68 69 73 20 69 | 73 20 69 6d 70 6f 72 74 |- this i|s import|
|00001630| 61 6e 74 29 0a 58 09 34 | 2e 20 61 6e 79 20 66 6c |ant).X.4|. any fl|
|00001640| 61 67 73 20 75 73 65 64 | 20 66 6f 72 20 63 6f 6d |ags used| for com|
|00001650| 70 69 6c 69 6e 67 0a 58 | 09 35 2e 20 6f 75 74 70 |piling.X|.5. outp|
|00001660| 75 74 20 66 72 6f 6d 20 | 22 6d 61 6b 65 20 72 75 |ut from |"make ru|
|00001670| 6e 74 65 73 74 73 22 0a | 58 09 36 2e 20 61 6e 79 |ntests".|X.6. any|
|00001680| 20 70 65 72 74 69 6e 65 | 6e 74 20 66 69 6c 65 73 | pertine|nt files|
|00001690| 20 2d 20 77 68 69 63 68 | 20 2a 73 68 6f 75 6c 64 | - which| *should|
|000016a0| 2a 20 69 6e 63 6c 75 64 | 65 20 74 68 65 20 66 6f |* includ|e the fo|
|000016b0| 6c 6c 6f 77 69 6e 67 3a | 0a 58 09 0a 58 09 09 2f |llowing:|.X..X../|
|000016c0| 75 73 72 2f 69 6e 63 6c | 75 64 65 2f 6d 65 6d 6f |usr/incl|ude/memo|
|000016d0| 72 79 2e 68 20 28 69 66 | 20 69 74 20 65 78 69 73 |ry.h (if| it exis|
|000016e0| 74 73 29 0a 58 09 09 2f | 75 73 72 2f 69 6e 63 6c |ts).X../|usr/incl|
|000016f0| 75 64 65 2f 6d 61 6c 6c | 6f 63 2e 68 0a 58 09 09 |ude/mall|oc.h.X..|
|00001700| 2f 75 73 72 2f 69 6e 63 | 6c 75 64 65 2f 73 74 72 |/usr/inc|lude/str|
|00001710| 69 6e 67 2e 68 0a 58 09 | 09 6d 61 6c 6c 6f 63 2e |ing.h.X.|.malloc.|
|00001720| 68 20 28 69 66 20 69 74 | 20 67 6f 74 20 67 65 6e |h (if it| got gen|
|00001730| 65 72 61 74 65 64 29 0a | 58 09 09 2e 63 6f 6e 66 |erated).|X...conf|
|00001740| 69 67 75 72 65 0a 58 09 | 09 2e 63 6f 6e 66 69 67 |igure.X.|..config|
|00001750| 75 72 65 2e 73 0a 58 09 | 09 0a 58 0a 58 20 20 20 |ure.s.X.|..X.X |
|00001760| 57 69 74 68 20 74 68 69 | 73 20 69 6e 66 6f 20 49 |With thi|s info I|
|00001770| 20 77 69 6c 6c 20 70 72 | 6f 62 61 62 6c 79 20 62 | will pr|obably b|
|00001780| 65 20 61 62 6c 65 20 74 | 6f 20 2a 67 75 65 73 73 |e able t|o *guess|
|00001790| 2a 20 61 74 20 74 68 65 | 20 73 6f 75 72 63 65 20 |* at the| source |
|000017a0| 6f 66 0a 58 20 20 20 74 | 68 65 20 70 72 6f 62 6c |of.X t|he probl|
|000017b0| 65 6d 20 61 6e 64 20 73 | 65 6e 64 20 79 6f 75 20 |em and s|end you |
|000017c0| 62 61 63 6b 20 61 20 70 | 6f 74 65 6e 74 69 61 6c |back a p|otential|
|000017d0| 20 66 69 78 2e 20 20 48 | 6f 77 65 76 65 72 2c 20 | fix. H|owever, |
|000017e0| 77 69 74 68 6f 75 74 20 | 61 63 63 65 73 73 0a 58 |without |access.X|
|000017f0| 20 20 20 74 6f 20 73 75 | 63 68 20 61 6e 20 61 72 | to su|ch an ar|
|00001800| 63 68 69 74 65 63 74 75 | 72 65 2c 20 49 20 6d 61 |chitectu|re, I ma|
|00001810| 79 20 6e 6f 74 20 62 65 | 20 61 62 6c 65 20 74 6f |y not be| able to|
|00001820| 20 66 69 78 20 74 68 65 | 20 70 72 6f 62 6c 65 6d | fix the| problem|
|00001830| 2e 20 0a 58 0a 58 33 2e | 20 54 79 70 65 20 6d 61 |. .X.X3.| Type ma|
|00001840| 6b 65 20 28 53 65 65 20 | 74 68 65 20 50 52 4f 42 |ke (See |the PROB|
|00001850| 4c 45 4d 53 20 66 69 6c | 65 20 69 66 20 79 6f 75 |LEMS fil|e if you|
|00001860| 20 68 61 76 65 20 61 20 | 70 72 6f 62 6c 65 6d 20 | have a |problem |
|00001870| 63 6f 6d 70 69 6c 69 6e | 67 29 0a 58 0a 58 34 2e |compilin|g).X.X4.|
|00001880| 20 54 79 70 65 20 6d 61 | 6b 65 20 72 75 6e 74 65 | Type ma|ke runte|
|00001890| 73 74 73 20 74 6f 20 62 | 75 69 6c 64 20 61 6e 64 |sts to b|uild and|
|000018a0| 20 72 75 6e 74 20 74 68 | 65 20 74 65 73 74 73 20 | runt th|e tests |
|000018b0| 28 73 6f 6d 65 20 6f 66 | 20 77 68 69 63 68 20 77 |(some of| which w|
|000018c0| 69 6c 6c 20 74 61 6b 65 | 0a 58 20 20 20 61 20 6c |ill take|.X a l|
|000018d0| 6f 6e 67 20 74 69 6d 65 | 20 61 6e 64 20 73 6f 6d |ong time| and som|
|000018e0| 65 20 77 68 69 63 68 20 | 77 69 6c 6c 20 61 62 6f |e which |will abo|
|000018f0| 72 74 29 2e 20 20 53 65 | 65 20 74 68 65 20 6e 6f |rt). Se|e the no|
|00001900| 74 65 73 20 62 65 6c 6f | 77 20 66 6f 72 20 0a 58 |tes belo|w for .X|
|00001910| 20 20 20 6d 6f 72 65 20 | 69 6e 66 6f 20 6f 6e 20 | more |info on |
|00001920| 74 68 65 20 74 65 73 74 | 73 20 61 6e 64 20 74 68 |the test|s and th|
|00001930| 65 20 65 78 70 65 63 74 | 65 64 20 6f 75 74 70 75 |e expect|ed outpu|
|00001940| 74 0a 58 0a 58 35 2e 20 | 49 6e 73 74 61 6c 6c 20 |t.X.X5. |Install |
|00001950| 6c 69 62 64 62 6d 61 6c | 6c 6f 63 2e 61 20 61 6e |libdbmal|loc.a an|
|00001960| 64 20 6d 61 6c 6c 6f 63 | 2e 68 20 73 6f 6d 65 77 |d malloc|.h somew|
|00001970| 68 65 72 65 20 77 68 65 | 72 65 20 75 73 65 72 73 |here whe|re users|
|00001980| 20 63 61 6e 20 67 65 74 | 0a 58 20 20 20 74 6f 20 | can get|.X to |
|00001990| 74 68 65 6d 20 62 79 20 | 75 73 69 6e 67 20 6d 61 |them by |using ma|
|000019a0| 6b 65 20 69 6e 73 74 61 | 6c 6c 20 28 6d 61 6b 65 |ke insta|ll (make|
|000019b0| 20 73 75 72 65 20 49 4e | 53 54 44 49 52 20 69 73 | sure IN|STDIR is|
|000019c0| 20 73 65 74 20 63 6f 72 | 72 65 63 74 6c 79 0a 58 | set cor|rectly.X|
|000019d0| 20 20 20 69 6e 20 74 68 | 65 20 6d 61 6b 65 66 69 | in th|e makefi|
|000019e0| 6c 65 29 0a 58 0a 58 36 | 2e 20 49 66 20 74 68 65 |le).X.X6|. If the|
|000019f0| 20 73 79 73 74 65 6d 20 | 6d 65 6d 6f 72 79 20 72 | system |memory r|
|00001a00| 6f 75 74 69 6e 65 73 20 | 61 72 65 20 6e 6f 74 20 |outines |are not |
|00001a10| 63 6f 6d 70 61 74 69 62 | 6c 65 20 77 69 74 68 20 |compatib|le with |
|00001a20| 74 68 65 20 6f 6e 65 73 | 20 65 78 70 65 63 74 65 |the ones| expecte|
|00001a30| 64 0a 58 20 20 20 62 79 | 20 74 68 65 20 6d 61 6c |d.X by| the mal|
|00001a40| 6c 6f 63 6c 69 62 20 28 | 74 68 69 73 20 69 73 20 |loclib (|this is |
|00001a50| 74 68 65 20 63 61 73 65 | 20 69 66 20 74 68 65 20 |the case| if the |
|00001a60| 63 6f 6e 66 69 67 75 72 | 65 20 73 63 72 69 70 74 |configur|e script|
|00001a70| 20 64 6f 65 73 6e 27 74 | 20 63 72 65 61 74 65 0a | doesn't| create.|
|00001a80| 58 20 20 20 61 20 64 61 | 74 61 6d 5b 63 73 5d 2e |X a da|tam[cs].|
|00001a90| 4f 20 66 69 6c 65 29 20 | 61 6e 64 20 69 66 20 79 |O file) |and if y|
|00001aa0| 6f 75 20 61 72 65 20 67 | 6f 6f 64 20 77 69 74 68 |ou are g|ood with|
|00001ab0| 20 61 73 73 65 6d 62 6c | 79 2c 20 61 6e 64 20 69 | assembl|y, and i|
|00001ac0| 66 20 79 6f 75 20 68 61 | 76 65 0a 58 20 20 20 6e |f you ha|ve.X n|
|00001ad0| 6f 74 68 69 6e 67 20 62 | 65 74 74 65 72 20 74 6f |othing b|etter to|
|00001ae0| 20 64 6f 2c 20 79 6f 75 | 20 63 6f 75 6c 64 20 70 | do, you| could p|
|00001af0| 75 74 20 74 6f 67 65 74 | 68 65 72 20 61 6e 20 61 |ut toget|her an a|
|00001b00| 73 6d 20 6d 6f 64 75 6c | 65 20 66 6f 72 20 65 69 |sm modul|e for ei|
|00001b10| 74 68 65 72 2c 20 6f 72 | 0a 58 20 20 20 62 6f 74 |ther, or|.X bot|
|00001b20| 68 20 6f 66 20 74 68 65 | 20 66 75 6e 63 74 69 6f |h of the| functio|
|00001b30| 6e 73 20 28 61 73 20 49 | 20 68 61 76 65 20 64 6f |ns (as I| have do|
|00001b40| 6e 65 20 66 6f 72 20 74 | 68 65 20 44 61 74 61 4d |ne for t|he DataM|
|00001b50| 43 20 72 6f 75 74 69 6e | 65 20 6f 6e 20 33 38 36 |C routin|e on 386|
|00001b60| 20 0a 58 20 20 20 73 79 | 73 74 65 6d 73 29 2e 0a | .X sy|stems)..|
|00001b70| 58 0a 58 20 20 20 54 68 | 65 73 65 20 74 77 6f 20 |X.X Th|ese two |
|00001b80| 66 75 6e 63 74 69 6f 6e | 73 20 61 72 65 20 74 79 |function|s are ty|
|00001b90| 70 69 63 61 6c 6c 79 20 | 74 68 65 20 62 6f 74 74 |pically |the bott|
|00001ba0| 6c 65 20 6e 65 63 6b 20 | 77 68 65 6e 20 72 75 6e |le neck |when run|
|00001bb0| 6e 69 6e 67 20 74 68 65 | 20 64 65 62 75 67 67 69 |ning the| debuggi|
|00001bc0| 6e 67 0a 58 20 20 20 6c | 69 62 72 61 72 79 20 61 |ng.X l|ibrary a|
|00001bd0| 6e 64 20 49 20 68 61 76 | 65 20 66 6f 75 6e 64 20 |nd I hav|e found |
|00001be0| 74 68 61 74 20 61 20 66 | 65 77 20 6d 6f 6d 65 6e |that a f|ew momen|
|00001bf0| 74 73 20 73 70 65 6e 74 | 20 6f 6e 20 63 61 72 65 |ts spent| on care|
|00001c00| 66 75 6c 6c 79 20 69 6d | 70 6c 65 6d 65 6e 74 69 |fully im|plementi|
|00001c10| 6e 67 0a 58 20 20 20 74 | 68 65 73 65 20 72 6f 75 |ng.X t|hese rou|
|00001c20| 74 69 6e 65 73 20 77 69 | 6c 6c 20 76 61 73 74 6c |tines wi|ll vastl|
|00001c30| 79 20 69 6e 63 72 65 61 | 73 65 20 74 68 65 20 70 |y increa|se the p|
|00001c40| 65 72 66 6f 72 6d 61 6e | 63 65 20 6f 66 20 74 68 |erforman|ce of th|
|00001c50| 65 20 6c 69 62 72 61 72 | 79 2e 0a 58 0a 58 20 20 |e librar|y..X.X |
|00001c60| 20 49 66 20 79 6f 75 20 | 64 6f 20 73 74 61 72 74 | If you |do start|
|00001c70| 20 75 70 6f 6e 20 74 68 | 69 73 20 6d 69 73 73 69 | upon th|is missi|
|00001c80| 6f 6e 2c 20 6d 61 6b 65 | 20 73 75 72 65 20 74 68 |on, make| sure th|
|00001c90| 61 74 20 79 6f 75 20 6d | 61 69 6e 74 61 69 6e 20 |at you m|aintain |
|00001ca0| 74 68 65 20 0a 58 20 20 | 20 66 75 6e 63 74 69 6f |the .X | functio|
|00001cb0| 6e 61 6c 69 74 79 20 70 | 72 65 73 65 6e 74 20 69 |nality p|resent i|
|00001cc0| 6e 20 74 68 65 20 70 6f | 72 74 61 62 6c 65 20 76 |n the po|rtable v|
|00001cd0| 65 72 73 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 72 |ersions |of the r|
|00001ce0| 6f 75 74 69 6e 65 73 2e | 20 20 54 68 69 73 20 69 |outines.| This i|
|00001cf0| 73 0a 58 20 20 20 65 73 | 70 65 63 69 61 6c 6c 79 |s.X es|pecially|
|00001d00| 20 69 6d 70 6f 72 74 61 | 6e 74 20 77 69 74 68 20 | importa|nt with |
|00001d10| 74 68 65 20 44 61 74 61 | 4d 43 20 72 6f 75 74 69 |the Data|MC routi|
|00001d20| 6e 65 2c 20 77 68 69 63 | 68 20 6d 75 73 74 20 66 |ne, whic|h must f|
|00001d30| 75 6e 63 74 69 6f 6e 20 | 6c 69 6b 65 0a 58 20 20 |unction |like.X |
|00001d40| 20 6d 65 6d 63 70 79 20 | 70 6c 75 73 20 68 61 6e | memcpy |plus han|
|00001d50| 64 6c 65 20 6f 76 65 72 | 6c 61 70 70 69 6e 67 20 |dle over|lapping |
|00001d60| 6d 6f 76 65 73 20 28 6c | 69 6b 65 20 6d 65 6d 6d |moves (l|ike memm|
|00001d70| 6f 76 65 29 2e 0a 58 0a | 58 20 20 20 4f 6e 63 65 |ove)..X.|X Once|
|00001d80| 20 79 6f 75 20 68 61 76 | 65 20 69 74 20 77 6f 72 | you hav|e it wor|
|00001d90| 6b 69 6e 67 20 28 61 6e | 64 20 69 74 20 70 61 73 |king (an|d it pas|
|00001da0| 73 65 73 20 74 68 65 20 | 74 65 73 74 73 29 20 73 |ses the |tests) s|
|00001db0| 65 6e 64 20 69 74 20 69 | 6e 20 61 6e 64 20 49 20 |end it i|n and I |
|00001dc0| 77 69 6c 6c 20 0a 58 20 | 20 20 69 6e 63 6c 75 64 |will .X | includ|
|00001dd0| 65 20 69 74 20 69 6e 20 | 74 68 65 20 62 61 73 65 |e it in |the base|
|00001de0| 6c 69 6e 65 2e 0a 58 0a | 58 2d 2d 2d 2d 2d 2d 2d |line..X.|X-------|
|00001df0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e00| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e20| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001e30| 2d 2d 2d 0a 58 55 53 41 | 47 45 3a 0a 58 0a 58 54 |---.XUSA|GE:.X.XT|
|00001e40| 6f 20 75 73 65 20 74 68 | 65 20 6c 69 62 72 61 72 |o use th|e librar|
|00001e50| 79 2c 20 69 6e 63 6c 75 | 64 65 20 74 68 65 20 6d |y, inclu|de the m|
|00001e60| 61 6c 6c 6f 63 2e 68 20 | 68 65 61 64 65 72 20 69 |alloc.h |header i|
|00001e70| 6e 63 6c 75 64 65 64 20 | 77 69 74 68 20 74 68 69 |ncluded |with thi|
|00001e80| 73 0a 58 6c 69 62 72 61 | 72 79 20 28 20 74 68 69 |s.Xlibra|ry ( thi|
|00001e90| 73 20 69 73 20 6e 6f 74 | 20 65 6e 74 69 72 65 6c |s is not| entirel|
|00001ea0| 79 20 6e 65 63 65 73 73 | 61 72 79 2c 20 62 75 74 |y necess|ary, but|
|00001eb0| 20 74 68 65 20 69 64 65 | 6e 74 69 66 69 63 61 74 | the ide|ntificat|
|00001ec0| 69 6f 6e 20 6f 66 20 77 | 68 65 72 65 0a 58 74 68 |ion of w|here.Xth|
|00001ed0| 65 20 70 72 6f 62 6c 65 | 6d 73 20 6f 72 69 67 69 |e proble|ms origi|
|00001ee0| 6e 61 74 65 64 20 77 69 | 6c 6c 20 62 65 20 6d 75 |nated wi|ll be mu|
|00001ef0| 63 68 20 62 65 74 74 65 | 72 20 69 66 20 69 74 20 |ch bette|r if it |
|00001f00| 69 73 29 2c 20 63 6f 6d | 70 69 6c 65 20 74 68 65 |is), com|pile the|
|00001f10| 20 0a 58 6f 62 6a 65 63 | 74 20 66 69 6c 65 73 2c | .Xobjec|t files,|
|00001f20| 20 61 6e 64 20 6c 69 6e | 6b 20 77 69 74 68 20 74 | and lin|k with t|
|00001f30| 68 65 20 6c 69 62 64 62 | 6d 61 6c 6c 6f 63 2e 61 |he libdb|malloc.a|
|00001f40| 20 28 6d 61 6b 65 20 73 | 75 72 65 20 69 74 20 69 | (make s|ure it i|
|00001f50| 73 20 62 65 66 6f 72 65 | 0a 58 74 68 65 20 6c 69 |s before|.Xthe li|
|00001f60| 62 63 2e 61 20 6f 6e 20 | 74 68 65 20 6c 69 6e 6b |bc.a on |the link|
|00001f70| 20 63 6f 6d 6d 61 6e 64 | 20 2d 20 74 68 69 73 20 | command| - this |
|00001f80| 69 73 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 69 |is the d|efault i|
|00001f90| 66 20 79 6f 75 20 64 6f | 6e 27 74 20 73 70 65 63 |f you do|n't spec|
|00001fa0| 69 66 69 63 61 6c 6c 79 | 0a 58 69 6e 63 6c 75 64 |ifically|.Xinclud|
|00001fb0| 65 20 6c 69 62 63 2e 61 | 20 6f 6e 20 79 6f 75 72 |e libc.a| on your|
|00001fc0| 20 6c 69 6e 6b 29 2e 0a | 58 0a 58 46 6f 72 20 6d | link)..|X.XFor m|
|00001fd0| 6f 72 65 20 69 6e 66 6f | 20 6f 6e 20 68 6f 77 20 |ore info| on how |
|00001fe0| 74 6f 20 75 73 65 20 74 | 68 65 20 6c 69 62 72 61 |to use t|he libra|
|00001ff0| 72 79 2c 20 73 65 65 20 | 74 68 65 20 6d 61 6e 20 |ry, see |the man |
|00002000| 70 61 67 65 20 69 6e 0a | 58 6d 61 6c 6c 6f 63 2e |page in.|Xmalloc.|
|00002010| 33 20 28 5b 6e 74 5d 72 | 6f 66 66 20 73 6f 75 72 |3 ([nt]r|off sour|
|00002020| 63 65 29 20 6f 72 20 6d | 61 6c 6c 6f 63 2e 6d 61 |ce) or m|alloc.ma|
|00002030| 6e 20 28 61 6c 72 65 61 | 64 79 20 6e 72 6f 66 66 |n (alrea|dy nroff|
|00002040| 65 64 29 2e 0a 58 0a 58 | 2d 2d 2d 2d 2d 2d 2d 2d |ed)..X.X|--------|
|00002050| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002060| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002070| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002080| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002090| 2d 2d 0a 58 54 45 53 54 | 20 50 52 4f 47 52 41 4d |--.XTEST| PROGRAM|
|000020a0| 53 0a 58 0a 58 54 68 65 | 20 6c 69 62 72 61 72 79 |S.X.XThe| library|
|000020b0| 20 63 6f 6d 65 73 20 77 | 69 74 68 20 73 65 76 65 | comes w|ith seve|
|000020c0| 72 61 6c 20 74 65 73 74 | 20 70 72 6f 67 72 61 6d |ral test| program|
|000020d0| 73 20 74 68 61 74 20 73 | 68 6f 75 6c 64 20 62 65 |s that s|hould be|
|000020e0| 20 72 75 6e 20 62 65 66 | 6f 72 65 0a 58 69 74 20 | run bef|ore.Xit |
|000020f0| 69 73 20 69 6e 73 74 61 | 6c 6c 65 64 20 6f 6e 20 |is insta|lled on |
|00002100| 74 68 65 20 73 79 73 74 | 65 6d 2e 20 20 54 68 65 |the syst|em. The|
|00002110| 20 74 65 73 74 73 20 61 | 72 65 20 72 75 6e 20 61 | tests a|re run a|
|00002120| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 20 62 79 20 |utomatic|ally by |
|00002130| 74 68 65 0a 58 52 75 6e | 74 65 73 74 73 20 73 68 |the.XRun|tests sh|
|00002140| 65 6c 6c 20 28 77 68 69 | 63 68 20 69 73 20 69 6e |ell (whi|ch is in|
|00002150| 76 6f 6b 65 64 20 62 79 | 20 6d 61 6b 65 20 72 75 |voked by| make ru|
|00002160| 6e 74 65 73 74 73 29 2e | 20 20 52 75 6e 74 65 73 |ntests).| Runtes|
|00002170| 74 73 20 77 69 6c 6c 20 | 61 74 74 65 6d 70 74 0a |ts will |attempt.|
|00002180| 58 74 6f 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |Xto auto|maticall|
|00002190| 79 20 64 65 74 65 72 6d | 69 6e 65 20 69 66 20 74 |y determ|ine if t|
|000021a0| 68 65 20 6c 69 62 72 61 | 72 79 20 70 61 73 73 65 |he libra|ry passe|
|000021b0| 73 20 61 6c 6c 20 6f 66 | 20 74 68 65 20 74 65 73 |s all of| the tes|
|000021c0| 74 73 20 61 6e 64 0a 58 | 77 69 6c 6c 20 73 61 76 |ts and.X|will sav|
|000021d0| 65 20 61 6c 6c 20 6f 66 | 20 69 74 73 20 6f 75 74 |e all of| its out|
|000021e0| 70 75 74 20 69 6e 20 74 | 68 65 20 66 69 6c 65 20 |put in t|he file |
|000021f0| 52 75 6e 74 65 73 74 73 | 2e 6f 75 74 2e 20 20 49 |Runtests|.out. I|
|00002200| 66 20 61 20 66 61 69 6c | 75 72 65 20 69 73 20 0a |f a fail|ure is .|
|00002210| 58 72 65 70 6f 72 74 65 | 64 2c 20 79 6f 75 20 73 |Xreporte|d, you s|
|00002220| 68 6f 75 6c 64 20 6c 6f | 6f 6b 20 61 74 20 52 75 |hould lo|ok at Ru|
|00002230| 6e 74 65 73 74 73 2e 6f | 75 74 20 66 6f 72 20 6d |ntests.o|ut for m|
|00002240| 6f 72 65 20 69 6e 66 6f | 20 6f 6e 20 77 68 65 72 |ore info| on wher|
|00002250| 65 20 74 68 65 20 66 61 | 69 6c 75 72 65 0a 58 6f |e the fa|ilure.Xo|
|00002260| 63 63 75 72 72 65 64 2e | 0a 58 0a 58 54 68 65 20 |ccurred.|.X.XThe |
|00002270| 66 6f 6c 6c 6f 77 69 6e | 67 20 74 65 73 74 20 61 |followin|g test a|
|00002280| 72 65 20 72 75 6e 20 62 | 79 20 74 68 65 20 73 63 |re run b|y the sc|
|00002290| 72 69 70 74 3a 0a 58 0a | 58 74 65 73 74 6d 61 6c |ript:.X.|Xtestmal|
|000022a0| 6c 6f 63 20 2d 20 74 68 | 69 73 20 70 72 6f 67 72 |loc - th|is progr|
|000022b0| 61 6d 20 72 75 6e 73 20 | 74 68 72 6f 75 67 68 20 |am runs |through |
|000022c0| 7a 69 6c 6c 69 6f 6e 73 | 20 6f 66 20 6d 61 6c 6c |zillions| of mall|
|000022d0| 6f 63 73 2f 72 65 61 6c | 6c 6f 63 73 20 61 6e 64 |ocs/real|locs and|
|000022e0| 20 66 72 65 65 73 0a 58 | 69 6e 20 6f 72 64 65 72 | frees.X|in order|
|000022f0| 20 74 6f 20 65 78 65 72 | 63 69 73 65 20 74 68 65 | to exer|cise the|
|00002300| 20 6d 61 6c 6c 6f 63 20 | 73 79 73 74 65 6d 2e 20 | malloc |system. |
|00002310| 20 54 68 65 20 6f 75 74 | 70 75 74 20 66 72 6f 6d | The out|put from|
|00002320| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 77 69 | this pr|ogram wi|
|00002330| 6c 6c 0a 58 6c 6f 6f 6b | 20 73 6f 6d 65 74 68 69 |ll.Xlook| somethi|
|00002340| 6e 67 20 6c 69 6b 65 20 | 74 68 65 20 66 6f 6c 6c |ng like |the foll|
|00002350| 6f 77 69 6e 67 20 28 4e | 4f 54 45 20 74 68 61 74 |owing (N|OTE that|
|00002360| 20 69 66 20 72 75 6e 20 | 66 72 6f 6d 20 74 68 65 | if run |from the|
|00002370| 20 52 75 6e 74 65 73 74 | 73 20 73 63 72 69 70 74 | Runtest|s script|
|00002380| 2c 0a 58 69 74 20 77 69 | 6c 6c 20 6f 6e 6c 79 20 |,.Xit wi|ll only |
|00002390| 72 75 6e 20 66 6f 72 20 | 35 30 30 30 30 20 69 74 |run for |50000 it|
|000023a0| 65 72 61 74 69 6f 6e 73 | 29 3a 0a 58 0a 58 09 4d |erations|):.X.X.M|
|000023b0| 41 58 49 54 45 52 20 31 | 30 30 30 30 30 30 20 4d |AXITER 1|000000 M|
|000023c0| 41 58 4f 42 4a 53 20 31 | 30 30 30 20 42 49 47 4f |AXOBJS 1|000 BIGO|
|000023d0| 42 4a 20 39 30 30 30 30 | 2c 20 54 49 4e 59 4f 42 |BJ 90000|, TINYOB|
|000023e0| 4a 20 38 30 2c 20 6e 62 | 69 67 2f 6e 74 69 6e 79 |J 80, nb|ig/ntiny|
|000023f0| 20 31 2f 31 30 30 0a 58 | 09 4d 65 6d 6f 72 79 20 | 1/100.X|.Memory |
|00002400| 75 73 65 20 61 74 20 73 | 74 61 72 74 3a 20 32 30 |use at s|tart: 20|
|00002410| 31 34 30 20 62 79 74 65 | 73 0a 58 09 53 74 61 72 |140 byte|s.X.Star|
|00002420| 74 69 6e 67 20 74 68 65 | 20 74 65 73 74 2e 2e 2e |ting the| test...|
|00002430| 0a 58 09 30 20 69 74 65 | 72 61 74 69 6f 6e 73 0a |.X.0 ite|rations.|
|00002440| 58 09 31 30 30 30 30 20 | 69 74 65 72 61 74 69 6f |X.10000 |iteratio|
|00002450| 6e 73 0a 58 09 32 30 30 | 30 30 20 69 74 65 72 61 |ns.X.200|00 itera|
|00002460| 74 69 6f 6e 73 0a 58 09 | 2e 2e 2e 2e 28 6c 6f 74 |tions.X.|....(lot|
|00002470| 73 20 6f 66 20 69 74 65 | 72 61 74 69 6f 6e 73 20 |s of ite|rations |
|00002480| 73 6b 69 70 70 65 64 29 | 2e 2e 2e 2e 0a 58 09 39 |skipped)|.....X.9|
|00002490| 38 30 30 30 30 20 69 74 | 65 72 61 74 69 6f 6e 73 |80000 it|erations|
|000024a0| 0a 58 09 39 39 30 30 30 | 30 20 69 74 65 72 61 74 |.X.99000|0 iterat|
|000024b0| 69 6f 6e 73 0a 58 0a 58 | 09 44 69 64 20 31 30 30 |ions.X.X|.Did 100|
|000024c0| 30 30 30 30 20 69 74 65 | 72 61 74 69 6f 6e 73 2c |0000 ite|rations,|
|000024d0| 20 39 39 39 20 6f 62 6a | 65 63 74 73 2c 20 35 31 | 999 obj|ects, 51|
|000024e0| 35 37 33 33 20 6d 61 6c | 6c 6f 63 73 2c 20 34 38 |5733 mal|locs, 48|
|000024f0| 34 32 36 37 20 72 65 61 | 6c 6c 6f 63 73 0a 58 09 |4267 rea|llocs.X.|
|00002500| 4d 65 6d 6f 72 79 20 75 | 73 65 20 61 74 20 65 6e |Memory u|se at en|
|00002510| 64 3a 20 31 36 31 37 35 | 38 30 20 62 79 74 65 73 |d: 16175|80 bytes|
|00002520| 0a 58 09 4d 65 6d 6f 72 | 79 20 75 73 65 20 61 66 |.X.Memor|y use af|
|00002530| 74 65 72 20 66 72 65 65 | 3a 20 31 36 31 37 35 38 |ter free|: 161758|
|00002540| 30 20 62 79 74 65 73 0a | 58 0a 58 09 2a 2a 2a 2a |0 bytes.|X.X.****|
|00002550| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002560| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002570| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002580| 2a 2a 2a 2a 2a 2a 2a 2a | 2e 2e 2e 0a 58 09 09 09 |********|....X...|
|00002590| 09 20 20 20 20 20 46 52 | 45 45 20 20 20 20 20 46 |. FR|EE F|
|000025a0| 52 45 45 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |REE | |
|000025b0| 20 20 20 20 2e 2e 2e 0a | 58 09 20 20 50 54 52 20 | ....|X. PTR |
|000025c0| 20 20 20 20 20 4e 45 58 | 54 20 20 20 20 20 50 52 | NEX|T PR|
|000025d0| 45 56 20 20 20 20 20 4e | 45 58 54 20 20 20 20 20 |EV N|EXT |
|000025e0| 50 52 45 56 20 20 20 20 | 20 20 46 4c 41 47 53 20 |PREV | FLAGS |
|000025f0| 20 20 20 20 2e 2e 2e 0a | 58 09 2d 2d 2d 2d 2d 2d | ....|X.------|
|00002600| 2d 2d 20 2d 2d 2d 2d 2d | 2d 2d 2d 20 2d 2d 2d 2d |-- -----|--- ----|
|00002610| 2d 2d 2d 2d 20 2d 2d 2d | 2d 2d 2d 2d 2d 20 2d 2d |---- ---|----- --|
|00002620| 2d 2d 2d 2d 2d 2d 20 2d | 2d 2d 2d 2d 2d 2d 2d 2d |------ -|--------|
|00002630| 2d 20 2d 2e 2e 2e 0a 58 | 09 30 78 34 30 33 43 33 |- -....X|.0x403C3|
|00002640| 30 20 30 78 34 30 37 35 | 31 30 20 30 78 30 30 30 |0 0x4075|10 0x000|
|00002650| 30 30 30 20 30 78 30 30 | 30 30 30 30 20 30 78 30 |000 0x00|0000 0x0|
|00002660| 30 30 30 30 30 20 30 78 | 30 30 30 30 30 30 30 30 |00000 0x|00000000|
|00002670| 20 20 2e 2e 2e 0a 58 09 | 30 78 34 30 37 35 31 30 | ....X.|0x407510|
|00002680| 20 30 78 34 30 37 36 34 | 30 20 30 78 34 30 33 43 | 0x40764|0 0x403C|
|00002690| 33 30 20 30 78 30 30 30 | 30 30 30 20 30 78 30 30 |30 0x000|000 0x00|
|000026a0| 30 30 30 30 20 30 78 30 | 33 31 35 36 31 31 31 20 |0000 0x0|3156111 |
|000026b0| 20 2e 2e 2e 0a 58 09 30 | 78 34 30 37 36 34 30 20 | ....X.0|x407640 |
|000026c0| 30 78 30 30 30 30 30 30 | 20 30 78 34 30 37 35 31 |0x000000| 0x40751|
|000026d0| 30 20 30 78 30 30 30 30 | 30 30 20 30 78 30 30 30 |0 0x0000|00 0x000|
|000026e0| 30 30 30 20 30 78 30 33 | 31 35 36 31 30 30 20 20 |000 0x03|156100 |
|000026f0| 2e 2e 2e 0a 58 09 4d 61 | 6c 6c 6f 63 20 73 74 61 |....X.Ma|lloc sta|
|00002700| 72 74 3a 20 20 20 20 20 | 20 30 78 34 30 33 43 33 |rt: | 0x403C3|
|00002710| 30 0a 58 09 4d 61 6c 6c | 6f 63 20 65 6e 64 3a 20 |0.X.Mall|oc end: |
|00002720| 20 20 20 20 20 20 20 30 | 78 34 30 37 36 34 30 0a | 0|x407640.|
|00002730| 58 09 4d 61 6c 6c 6f 63 | 20 64 61 74 61 20 73 74 |X.Malloc| data st|
|00002740| 61 72 74 3a 20 30 78 34 | 30 37 35 31 30 0a 58 09 |art: 0x4|07510.X.|
|00002750| 4d 61 6c 6c 6f 63 20 64 | 61 74 61 20 65 6e 64 3a |Malloc d|ata end:|
|00002760| 20 20 20 30 78 35 38 46 | 35 31 30 0a 58 09 4d 61 | 0x58F|510.X.Ma|
|00002770| 6c 6c 6f 63 20 66 72 65 | 65 20 6c 69 73 74 3a 20 |lloc fre|e list: |
|00002780| 20 30 78 34 30 37 36 34 | 30 0a 58 0a 58 09 73 74 | 0x40764|0.X.X.st|
|00002790| 61 72 74 73 69 7a 65 20 | 32 30 31 34 30 20 21 3d |artsize |20140 !=|
|000027a0| 20 65 6e 64 73 69 7a 65 | 20 31 36 31 37 35 38 30 | endsize| 1617580|
|000027b0| 0a 58 0a 58 54 68 69 73 | 20 69 73 20 6e 6f 72 6d |.X.XThis| is norm|
|000027c0| 61 6c 20 6f 75 74 70 75 | 74 2e 20 20 49 66 20 69 |al outpu|t. If i|
|000027d0| 74 20 64 6f 65 73 6e 27 | 74 20 67 65 74 20 74 6f |t doesn'|t get to|
|000027e0| 20 74 68 65 20 65 78 70 | 65 63 74 65 64 20 6e 75 | the exp|ected nu|
|000027f0| 6d 62 65 72 20 6f 66 20 | 0a 58 69 74 65 72 61 74 |mber of |.Xiterat|
|00002800| 69 6f 6e 73 20 28 35 30 | 30 30 30 20 69 66 20 72 |ions (50|000 if r|
|00002810| 75 6e 20 62 79 20 72 75 | 6e 74 65 73 74 2c 20 6f |un by ru|ntest, o|
|00002820| 72 20 31 30 30 30 30 30 | 30 20 69 66 20 72 75 6e |r 100000|0 if run|
|00002830| 20 66 72 6f 6d 20 74 68 | 65 20 63 6f 6d 6d 61 6e | from th|e comman|
|00002840| 64 0a 58 6c 69 6e 65 20 | 77 69 74 68 20 6e 6f 20 |d.Xline |with no |
|00002850| 6f 74 68 65 72 20 61 72 | 67 75 6d 65 6e 74 73 29 |other ar|guments)|
|00002860| 20 6f 72 20 69 66 20 74 | 68 65 72 65 20 61 72 65 | or if t|here are|
|00002870| 20 61 6e 79 20 61 6c 6c | 6f 63 61 74 69 6f 6e 73 | any all|ocations|
|00002880| 20 73 74 69 6c 6c 20 69 | 6e 0a 58 65 66 66 65 63 | still i|n.Xeffec|
|00002890| 74 20 74 68 61 74 20 77 | 65 72 65 20 69 6e 69 74 |t that w|ere init|
|000028a0| 69 61 74 65 64 20 62 79 | 20 74 65 73 74 6d 61 6c |iated by| testmal|
|000028b0| 6c 6f 63 2e 63 2c 20 73 | 6f 6d 65 74 68 69 6e 67 |loc.c, s|omething|
|000028c0| 20 77 65 6e 74 20 77 72 | 6f 6e 67 20 28 74 68 65 | went wr|ong (the|
|000028d0| 0a 58 6c 69 62 72 61 72 | 79 20 64 69 64 6e 27 74 |.Xlibrar|y didn't|
|000028e0| 20 70 61 73 73 20 74 68 | 65 20 74 65 73 74 29 2e | pass th|e test).|
|000028f0| 20 20 44 6f 6e 27 74 20 | 77 6f 72 72 79 20 61 62 | Don't |worry ab|
|00002900| 6f 75 74 20 68 61 76 69 | 6e 67 20 65 78 61 63 74 |out havi|ng exact|
|00002910| 20 6d 61 74 63 68 65 73 | 20 77 69 74 68 0a 58 74 | matches| with.Xt|
|00002920| 68 65 20 6e 75 6d 62 65 | 72 73 20 6c 69 73 74 65 |he numbe|rs liste|
|00002930| 64 20 61 62 6f 76 65 20 | 61 6e 64 20 64 6f 6e 27 |d above |and don'|
|00002940| 74 20 77 6f 72 72 79 20 | 74 68 61 74 20 73 74 61 |t worry |that sta|
|00002950| 72 74 73 69 7a 65 20 21 | 3d 20 65 6e 64 73 69 7a |rtsize !|= endsiz|
|00002960| 65 2e 0a 58 0a 58 4e 6f | 74 65 20 74 68 61 74 20 |e..X.XNo|te that |
|00002970| 74 68 65 72 65 20 6d 61 | 79 20 62 65 20 73 65 76 |there ma|y be sev|
|00002980| 65 72 61 6c 20 65 6e 74 | 72 69 65 73 20 69 6e 20 |eral ent|ries in |
|00002990| 74 68 65 20 6d 61 6c 6c | 6f 63 20 63 68 61 69 6e |the mall|oc chain|
|000029a0| 20 69 66 20 74 68 65 20 | 43 20 73 74 61 72 74 75 | if the |C startu|
|000029b0| 70 0a 58 66 75 6e 63 74 | 69 6f 6e 20 68 61 73 20 |p.Xfunct|ion has |
|000029c0| 61 6c 6c 6f 63 61 74 65 | 64 20 64 61 74 61 20 62 |allocate|d data b|
|000029d0| 65 66 6f 72 65 20 74 68 | 65 20 6d 61 69 6e 20 67 |efore th|e main g|
|000029e0| 65 74 73 20 63 61 6c 6c | 65 64 2e 20 20 54 68 65 |ets call|ed. The|
|000029f0| 20 6b 65 79 20 69 73 20 | 74 68 61 74 0a 58 74 68 | key is |that.Xth|
|00002a00| 65 72 65 20 61 72 65 20 | 6e 6f 20 61 6c 6c 6f 63 |ere are |no alloc|
|00002a10| 61 74 65 64 20 65 6e 74 | 72 69 65 73 20 28 74 68 |ated ent|ries (th|
|00002a20| 6f 73 65 20 77 69 74 68 | 20 74 68 65 20 31 20 62 |ose with| the 1 b|
|00002a30| 69 74 20 6f 6e 20 69 6e | 20 74 68 65 20 66 6c 61 |it on in| the fla|
|00002a40| 67 73 20 66 69 65 6c 64 | 29 0a 58 6c 65 66 74 20 |gs field|).Xleft |
|00002a50| 74 68 61 74 20 61 72 65 | 20 69 64 65 6e 74 69 66 |that are| identif|
|00002a60| 69 65 64 20 61 73 20 62 | 65 69 6e 67 20 61 6c 6c |ied as b|eing all|
|00002a70| 6f 63 61 74 65 64 20 77 | 69 74 68 69 6e 20 74 68 |ocated w|ithin th|
|00002a80| 65 20 74 65 73 74 6d 61 | 6c 6c 6f 63 2e 63 20 66 |e testma|lloc.c f|
|00002a90| 69 6c 65 2e 0a 58 49 6e | 20 74 68 65 20 65 78 61 |ile..XIn| the exa|
|00002aa0| 6d 70 6c 65 20 61 62 6f | 76 65 2c 20 74 68 65 20 |mple abo|ve, the |
|00002ab0| 6d 69 64 64 6c 65 20 65 | 6e 74 72 79 20 64 6f 65 |middle e|ntry doe|
|00002ac0| 73 20 69 6e 20 66 61 63 | 74 20 68 61 76 65 20 74 |s in fac|t have t|
|00002ad0| 68 65 20 31 20 62 69 74 | 20 6f 6e 2c 20 62 75 74 |he 1 bit| on, but|
|00002ae0| 0a 58 69 6e 20 74 68 65 | 20 69 6e 66 6f 20 74 68 |.Xin the| info th|
|00002af0| 61 74 20 77 61 73 20 63 | 75 74 2d 6f 66 66 2c 20 |at was c|ut-off, |
|00002b00| 74 68 65 72 65 20 77 61 | 73 20 6e 6f 20 69 6e 64 |there wa|s no ind|
|00002b10| 69 63 61 74 69 6f 6e 20 | 74 68 61 74 20 69 74 20 |ication |that it |
|00002b20| 77 61 73 20 61 6c 6c 6f | 63 61 74 65 64 0a 58 77 |was allo|cated.Xw|
|00002b30| 69 74 68 69 6e 20 74 65 | 73 74 6d 61 6c 6c 6f 63 |ithin te|stmalloc|
|00002b40| 2e 63 2c 20 74 68 65 72 | 65 66 6f 72 65 20 69 74 |.c, ther|efore it|
|00002b50| 20 6d 75 73 74 20 68 61 | 76 65 20 62 65 65 6e 20 | must ha|ve been |
|00002b60| 61 6c 6c 6f 63 61 74 65 | 64 20 73 6f 6d 65 77 68 |allocate|d somewh|
|00002b70| 65 72 65 20 65 6c 73 65 | 2e 0a 58 54 68 65 20 6c |ere else|..XThe l|
|00002b80| 61 73 74 20 6c 69 6e 65 | 20 69 6e 20 74 68 65 20 |ast line| in the |
|00002b90| 63 68 61 69 6e 20 77 69 | 6c 6c 20 75 73 75 61 6c |chain wi|ll usual|
|00002ba0| 6c 79 20 73 61 79 20 69 | 74 20 77 61 73 20 61 6c |ly say i|t was al|
|00002bb0| 6c 6f 63 61 74 65 64 20 | 77 69 74 68 69 6e 0a 58 |located |within.X|
|00002bc0| 74 65 73 74 6d 61 6c 6c | 6f 63 2e 63 3b 20 68 6f |testmall|oc.c; ho|
|00002bd0| 77 65 76 65 72 2c 20 61 | 73 20 69 6e 20 74 68 69 |wever, a|s in thi|
|00002be0| 73 20 63 61 73 65 2c 20 | 69 74 20 77 69 6c 6c 20 |s case, |it will |
|00002bf0| 61 6c 73 6f 20 69 6e 64 | 69 63 61 74 65 20 74 68 |also ind|icate th|
|00002c00| 61 74 20 69 74 20 69 73 | 0a 58 6e 6f 74 20 69 6e |at it is|.Xnot in|
|00002c10| 20 75 73 65 20 28 74 68 | 65 20 31 20 62 69 74 20 | use (th|e 1 bit |
|00002c20| 77 69 6c 6c 20 62 65 20 | 6f 66 66 20 69 6e 20 74 |will be |off in t|
|00002c30| 68 65 20 66 6c 61 67 73 | 20 66 69 65 6c 64 29 2e |he flags| field).|
|00002c40| 0a 58 0a 58 4d 6f 73 74 | 20 6c 69 6b 65 6c 79 2c |.X.XMost| likely,|
|00002c50| 20 69 66 20 74 68 65 20 | 70 72 6f 67 72 61 6d 20 | if the |program |
|00002c60| 72 61 6e 20 74 6f 20 63 | 6f 6d 70 6c 65 74 69 6f |ran to c|ompletio|
|00002c70| 6e 20 28 70 72 6f 63 65 | 73 73 65 64 20 31 30 30 |n (proce|ssed 100|
|00002c80| 30 30 30 30 20 69 74 65 | 72 61 74 69 6f 6e 73 29 |0000 ite|rations)|
|00002c90| 2c 0a 58 74 68 65 20 74 | 65 73 74 20 77 61 73 20 |,.Xthe t|est was |
|00002ca0| 73 75 63 63 65 73 73 66 | 75 6c 2e 0a 58 0a 58 41 |successf|ul..X.XA|
|00002cb0| 6c 73 6f 20 6e 6f 74 65 | 20 74 68 61 74 20 74 68 |lso note| that th|
|00002cc0| 69 73 20 70 72 6f 67 72 | 61 6d 20 70 65 72 66 6f |is progr|am perfo|
|00002cd0| 72 6d 73 20 6d 61 6e 79 | 20 73 6d 61 6c 6c 20 61 |rms many| small a|
|00002ce0| 6e 64 20 6c 61 72 67 65 | 20 61 6c 6c 6f 63 61 74 |nd large| allocat|
|00002cf0| 69 6f 6e 73 20 61 6e 64 | 0a 58 6d 61 79 20 74 61 |ions and|.Xmay ta|
|00002d00| 6b 65 20 61 20 6c 6f 6e | 67 20 74 69 6d 65 20 74 |ke a lon|g time t|
|00002d10| 6f 20 72 75 6e 2e 20 20 | 54 68 65 20 72 75 6e 20 |o run. |The run |
|00002d20| 74 69 6d 65 20 66 6f 72 | 20 76 61 72 69 6f 75 73 |time for| various|
|00002d30| 20 61 72 63 68 69 74 65 | 63 74 75 72 65 73 20 28 | archite|ctures (|
|00002d40| 61 6c 6c 0a 58 64 6f 6e | 65 20 75 6e 64 65 72 20 |all.Xdon|e under |
|00002d50| 66 61 69 72 6c 79 20 71 | 75 69 65 74 20 73 79 73 |fairly q|uiet sys|
|00002d60| 74 65 6d 20 75 74 69 6c | 69 7a 61 74 69 6f 6e 29 |tem util|ization)|
|00002d70| 3a 0a 58 0a 58 09 34 38 | 36 2f 33 33 20 77 69 74 |:.X.X.48|6/33 wit|
|00002d80| 68 20 63 63 20 75 6e 64 | 65 72 20 49 53 43 20 55 |h cc und|er ISC U|
|00002d90| 4e 49 58 20 33 2e 30 3a | 09 09 31 3a 31 37 20 28 |NIX 3.0:|..1:17 (|
|00002da0| 31 20 6d 69 6e 75 74 65 | 2c 20 31 37 20 73 65 63 |1 minute|, 17 sec|
|00002db0| 73 29 0a 58 09 48 50 39 | 30 30 30 2f 38 35 37 20 |s).X.HP9|000/857 |
|00002dc0| 77 69 74 68 20 63 63 20 | 75 6e 64 65 72 20 48 50 |with cc |under HP|
|00002dd0| 2f 55 58 20 38 2e 30 3a | 09 09 30 3a 35 39 0a 58 |/UX 8.0:|..0:59.X|
|00002de0| 09 52 53 36 30 30 30 2f | 33 32 30 20 77 69 74 68 |.RS6000/|320 with|
|00002df0| 20 63 63 20 75 6e 64 65 | 72 20 41 49 58 20 3f 33 | cc unde|r AIX ?3|
|00002e00| 2e 31 3f 3a 09 09 33 3a | 34 37 0a 58 09 41 54 54 |.1?:..3:|47.X.ATT|
|00002e10| 20 33 42 32 2f 36 30 30 | 20 77 69 74 68 20 63 63 | 3B2/600| with cc|
|00002e20| 20 75 6e 64 65 72 20 53 | 56 52 34 2e 31 45 53 3a | under S|VR4.1ES:|
|00002e30| 09 20 20 20 20 20 20 20 | 31 36 3a 35 39 0a 58 0a |. |16:59.X.|
|00002e40| 58 49 66 20 74 68 69 73 | 20 74 65 73 74 20 74 61 |XIf this| test ta|
|00002e50| 6b 65 73 20 74 6f 6f 20 | 6c 6f 6e 67 20 66 6f 72 |kes too |long for|
|00002e60| 20 79 6f 75 2c 20 79 6f | 75 20 63 61 6e 20 73 70 | you, yo|u can sp|
|00002e70| 65 65 64 20 69 74 20 75 | 70 20 62 79 20 73 65 74 |eed it u|p by set|
|00002e80| 74 69 6e 67 20 0a 58 4d | 41 4c 4c 4f 43 5f 46 49 |ting .XM|ALLOC_FI|
|00002e90| 4c 4c 41 52 45 41 20 65 | 71 75 61 6c 20 74 6f 20 |LLAREA e|qual to |
|00002ea0| 7a 65 72 6f 2e 20 20 54 | 68 69 73 20 68 61 73 20 |zero. T|his has |
|00002eb0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 66 |the foll|owing ef|
|00002ec0| 66 65 63 74 73 20 6f 6e | 20 74 68 65 20 0a 58 74 |fects on| the .Xt|
|00002ed0| 69 6d 65 20 69 74 20 74 | 61 6b 65 73 20 74 6f 20 |ime it t|akes to |
|00002ee0| 72 75 6e 20 74 68 65 20 | 74 65 73 74 73 3a 0a 58 |run the |tests:.X|
|00002ef0| 0a 58 09 34 38 36 2f 33 | 33 20 77 69 74 68 20 63 |.X.486/3|3 with c|
|00002f00| 63 20 75 6e 64 65 72 20 | 49 53 43 20 55 4e 49 58 |c under |ISC UNIX|
|00002f10| 20 33 2e 30 3a 09 09 30 | 3a 34 35 2e 38 20 28 34 | 3.0:..0|:45.8 (4|
|00002f20| 35 20 73 65 63 6f 6e 64 | 73 29 0a 58 09 48 50 39 |5 second|s).X.HP9|
|00002f30| 30 30 30 2f 38 35 37 20 | 77 69 74 68 20 63 63 20 |000/857 |with cc |
|00002f40| 75 6e 64 65 72 20 48 50 | 2f 55 58 20 38 2e 30 3a |under HP|/UX 8.0:|
|00002f50| 09 09 30 3a 33 33 2e 34 | 0a 58 09 52 53 36 30 30 |..0:33.4|.X.RS600|
|00002f60| 30 2f 33 32 30 20 77 69 | 74 68 20 63 63 20 75 6e |0/320 wi|th cc un|
|00002f70| 64 65 72 20 41 49 58 20 | 3f 33 2e 31 3f 3a 09 09 |der AIX |?3.1?:..|
|00002f80| 33 3a 34 37 0a 58 09 41 | 54 54 20 33 42 32 2f 36 |3:47.X.A|TT 3B2/6|
|00002f90| 30 30 20 77 69 74 68 20 | 63 63 20 75 6e 64 65 72 |00 with |cc under|
|00002fa0| 20 53 56 52 34 2e 31 45 | 53 3a 09 20 20 20 20 20 | SVR4.1E|S:. |
|00002fb0| 20 20 20 37 3a 30 34 2e | 32 0a 58 0a 58 49 66 20 | 7:04.|2.X.XIf |
|00002fc0| 69 74 20 69 73 20 73 74 | 69 6c 6c 20 74 6f 6f 20 |it is st|ill too |
|00002fd0| 73 6c 6f 77 2c 20 79 6f | 75 20 63 61 6e 20 61 64 |slow, yo|u can ad|
|00002fe0| 64 20 61 6e 20 61 72 67 | 75 6d 65 6e 74 20 74 6f |d an arg|ument to|
|00002ff0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 73 70 65 | the pro|gram spe|
|00003000| 63 69 66 79 69 6e 67 0a | 58 74 68 65 20 6e 75 6d |cifying.|Xthe num|
|00003010| 62 65 72 20 6f 66 20 69 | 74 65 72 61 74 69 6f 6e |ber of i|teration|
|00003020| 73 2e 20 20 54 68 65 20 | 64 65 66 61 75 6c 74 20 |s. The |default |
|00003030| 69 73 20 31 2c 30 30 30 | 2c 30 30 30 2e 20 0a 58 |is 1,000|,000. .X|
|00003040| 0a 58 4f 6e 65 20 74 68 | 69 6e 67 20 74 6f 20 74 |.XOne th|ing to t|
|00003050| 68 69 6e 6b 20 61 62 6f | 75 74 20 62 65 66 6f 72 |hink abo|ut befor|
|00003060| 65 20 6d 61 6b 69 6e 67 | 20 61 20 63 68 61 6e 67 |e making| a chang|
|00003070| 65 20 74 6f 20 69 6e 63 | 72 65 61 73 65 20 74 68 |e to inc|rease th|
|00003080| 65 20 70 65 72 66 6f 72 | 6d 61 6e 63 65 0a 58 6f |e perfor|mance.Xo|
|00003090| 66 20 74 68 69 73 20 74 | 65 73 74 20 69 73 20 74 |f this t|est is t|
|000030a0| 68 61 74 20 6d 61 69 6e | 74 61 69 6e 69 6e 67 20 |hat main|taining |
|000030b0| 64 79 6e 61 6d 69 63 20 | 6d 65 6d 6f 72 79 20 28 |dynamic |memory (|
|000030c0| 61 6c 6f 6e 67 20 77 69 | 74 20 74 68 65 20 61 64 |along wi|t the ad|
|000030d0| 64 69 74 69 6f 6e 61 6c | 0a 58 64 65 62 75 67 67 |ditional|.Xdebugg|
|000030e0| 69 6e 67 20 63 6f 64 65 | 20 74 68 61 74 20 68 61 |ing code| that ha|
|000030f0| 73 20 62 65 65 6e 20 61 | 64 64 65 64 29 20 69 73 |s been a|dded) is|
|00003100| 20 61 20 73 6f 6d 65 77 | 68 61 74 20 63 6f 6d 70 | a somew|hat comp|
|00003110| 6c 65 78 20 70 69 65 63 | 65 20 6f 66 20 73 6f 66 |lex piec|e of sof|
|00003120| 74 77 61 72 65 2e 0a 58 | 49 74 20 73 68 6f 75 6c |tware..X|It shoul|
|00003130| 64 20 62 65 20 77 65 6c | 6c 20 74 65 73 74 65 64 |d be wel|l tested|
|00003140| 20 62 65 66 6f 72 65 20 | 79 6f 75 20 70 6c 61 63 | before |you plac|
|00003150| 65 20 69 74 20 69 6e 74 | 6f 20 61 20 75 73 65 72 |e it int|o a user|
|00003160| 20 65 6e 76 69 72 6f 6e | 6d 65 6e 74 2e 0a 58 0a | environ|ment..X.|
|00003170| 58 74 65 73 74 6d 65 6d | 20 2d 20 74 68 69 73 20 |Xtestmem| - this |
|00003180| 70 72 6f 67 72 61 6d 20 | 74 65 73 74 73 20 6d 61 |program |tests ma|
|00003190| 6e 79 20 6f 66 20 74 68 | 65 20 73 74 72 69 6e 67 |ny of th|e string|
|000031a0| 20 61 6e 64 20 6d 65 6d | 6f 72 79 20 66 75 6e 63 | and mem|ory func|
|000031b0| 74 69 6f 6e 73 20 74 6f | 20 76 65 72 69 66 79 0a |tions to| verify.|
|000031c0| 58 74 68 61 74 20 74 68 | 65 79 20 77 6f 72 6b 20 |Xthat th|ey work |
|000031d0| 61 73 20 74 68 65 79 20 | 61 72 65 20 73 75 70 70 |as they |are supp|
|000031e0| 6f 73 65 64 20 74 6f 2e | 20 20 59 6f 75 20 73 68 |osed to.| You sh|
|000031f0| 6f 75 6c 64 20 67 65 74 | 20 6e 6f 20 6f 75 74 70 |ould get| no outp|
|00003200| 75 74 20 66 72 6f 6d 20 | 74 68 69 73 0a 58 74 65 |ut from |this.Xte|
|00003210| 73 74 2e 20 20 49 66 20 | 79 6f 75 20 64 6f 2c 20 |st. If |you do, |
|00003220| 73 6f 6d 65 74 68 69 6e | 67 20 69 73 20 77 72 6f |somethin|g is wro|
|00003230| 6e 67 2e 0a 58 0a 58 74 | 65 73 74 65 72 72 20 2d |ng..X.Xt|esterr -|
|00003240| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 74 65 | this pr|ogram te|
|00003250| 73 74 73 20 73 65 76 65 | 72 61 6c 20 6d 61 6c 6c |sts seve|ral mall|
|00003260| 6f 63 20 72 65 6c 61 74 | 65 64 20 70 72 6f 67 72 |oc relat|ed progr|
|00003270| 61 6d 20 65 72 72 6f 72 | 73 20 28 74 6f 20 6d 61 |am error|s (to ma|
|00003280| 6b 65 0a 58 73 75 72 65 | 20 74 68 61 74 20 74 68 |ke.Xsure| that th|
|00003290| 65 20 6c 69 62 72 61 72 | 79 20 69 73 20 63 6f 72 |e librar|y is cor|
|000032a0| 72 65 63 74 6c 79 20 69 | 64 65 6e 74 69 66 79 69 |rectly i|dentifyi|
|000032b0| 6e 67 20 74 68 65 20 70 | 72 6f 62 6c 65 6d 73 29 |ng the p|roblems)|
|000032c0| 2e 20 20 54 68 65 20 6f | 75 74 70 75 74 0a 58 66 |. The o|utput.Xf|
|000032d0| 72 6f 6d 20 74 68 65 20 | 74 65 73 74 20 67 6f 65 |rom the |test goe|
|000032e0| 73 20 74 6f 20 73 74 64 | 65 72 72 20 61 6e 64 20 |s to std|err and |
|000032f0| 73 68 6f 75 6c 64 20 62 | 65 20 73 69 6d 69 6c 61 |should b|e simila|
|00003300| 72 20 74 6f 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |r to the| followi|
|00003310| 6e 67 20 28 61 6c 74 68 | 6f 75 67 68 0a 58 62 65 |ng (alth|ough.Xbe|
|00003320| 63 61 75 73 65 20 6f 66 | 20 6d 61 63 68 69 6e 65 |cause of| machine|
|00003330| 20 61 72 63 68 69 74 65 | 63 74 75 72 65 73 20 74 | archite|ctures t|
|00003340| 68 65 20 65 72 72 6f 72 | 20 6d 65 73 73 61 67 65 |he error| message|
|00003350| 73 20 6d 61 79 20 62 65 | 20 73 6c 69 67 68 74 6c |s may be| slightl|
|00003360| 79 20 64 69 66 66 65 72 | 65 6e 74 29 3a 0a 58 0a |y differ|ent):.X.|
|00003370| 58 09 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |X.------|--------|
|00003380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003390| 2d 2d 2d 2d 2d 2d 2d 0a | 58 09 45 72 72 6f 72 20 |-------.|X.Error |
|000033a0| 66 72 6f 6d 20 73 74 72 | 63 70 79 28 29 20 2d 20 |from str|cpy() - |
|000033b0| 6f 75 74 20 6f 66 20 62 | 6f 75 6e 64 73 0a 58 09 |out of b|ounds.X.|
|000033c0| 4d 41 4c 4c 4f 43 20 57 | 61 72 6e 69 6e 67 20 66 |MALLOC W|arning f|
|000033d0| 72 6f 6d 20 73 74 72 6e | 63 70 79 28 29 20 28 63 |rom strn|cpy() (c|
|000033e0| 61 6c 6c 65 64 20 66 72 | 6f 6d 20 74 65 73 74 65 |alled fr|om teste|
|000033f0| 72 72 2e 63 20 6c 69 6e | 65 20 33 33 29 3a 0a 58 |rr.c lin|e 33):.X|
|00003400| 09 50 6f 69 6e 74 65 72 | 20 77 69 74 68 69 6e 20 |.Pointer| within |
|00003410| 6d 61 6c 6c 6f 63 20 72 | 65 67 69 6f 6e 2c 20 62 |malloc r|egion, b|
|00003420| 75 74 20 6f 75 74 73 69 | 64 65 20 6f 66 20 6d 61 |ut outsi|de of ma|
|00003430| 6c 6c 6f 63 20 64 61 74 | 61 20 62 6f 75 6e 64 73 |lloc dat|a bounds|
|00003440| 0a 58 09 54 68 69 73 20 | 65 72 72 6f 72 20 69 73 |.X.This |error is|
|00003450| 20 2a 70 72 6f 62 61 62 | 6c 79 2a 20 61 73 73 6f | *probab|ly* asso|
|00003460| 63 69 61 74 65 64 20 77 | 69 74 68 20 74 68 65 20 |ciated w|ith the |
|00003470| 66 6f 6c 6c 6f 77 69 6e | 67 20 61 6c 6c 6f 63 61 |followin|g alloca|
|00003480| 74 69 6f 6e 3a 0a 58 0a | 58 09 09 41 20 63 61 6c |tion:.X.|X..A cal|
|00003490| 6c 20 74 6f 20 6d 61 6c | 6c 6f 63 20 66 6f 72 20 |l to mal|loc for |
|000034a0| 31 30 20 62 79 74 65 73 | 20 69 6e 20 74 65 73 74 |10 bytes| in test|
|000034b0| 65 72 72 2e 63 20 6f 6e | 20 6c 69 6e 65 20 32 39 |err.c on| line 29|
|000034c0| 2e 0a 58 09 09 54 68 69 | 73 20 77 61 73 20 74 68 |..X..Thi|s was th|
|000034d0| 65 20 32 6e 64 20 63 61 | 6c 6c 20 74 6f 20 6d 61 |e 2nd ca|ll to ma|
|000034e0| 6c 6c 6f 63 2e 0a 58 0a | 58 09 2d 2d 2d 2d 2d 2d |lloc..X.|X.------|
|000034f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003500| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0a |--------|-------.|
|00003510| 58 09 45 72 72 6f 72 20 | 66 72 6f 6d 20 6d 65 6d |X.Error |from mem|
|00003520| 73 65 74 28 29 20 2d 20 | 6f 75 74 20 6f 66 20 62 |set() - |out of b|
|00003530| 6f 75 6e 64 73 0a 58 09 | 4d 41 4c 4c 4f 43 20 57 |ounds.X.|MALLOC W|
|00003540| 61 72 6e 69 6e 67 20 66 | 72 6f 6d 20 6d 65 6d 73 |arning f|rom mems|
|00003550| 65 74 28 29 20 28 63 61 | 6c 6c 65 64 20 66 72 6f |et() (ca|lled fro|
|00003560| 6d 20 74 65 73 74 65 72 | 72 2e 63 20 6c 69 6e 65 |m tester|r.c line|
|00003570| 20 33 37 29 3a 0a 58 09 | 50 6f 69 6e 74 65 72 20 | 37):.X.|Pointer |
|00003580| 77 69 74 68 69 6e 20 6d | 61 6c 6c 6f 63 20 72 65 |within m|alloc re|
|00003590| 67 69 6f 6e 2c 20 62 75 | 74 20 6f 75 74 73 69 64 |gion, bu|t outsid|
|000035a0| 65 20 6f 66 20 6d 61 6c | 6c 6f 63 20 64 61 74 61 |e of mal|loc data|
|000035b0| 20 62 6f 75 6e 64 73 0a | 58 09 54 68 69 73 20 65 | bounds.|X.This e|
|000035c0| 72 72 6f 72 20 69 73 20 | 2a 70 72 6f 62 61 62 6c |rror is |*probabl|
|000035d0| 79 2a 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |y* assoc|iated wi|
|000035e0| 74 68 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |th the f|ollowing|
|000035f0| 20 61 6c 6c 6f 63 61 74 | 69 6f 6e 3a 0a 58 0a 58 | allocat|ion:.X.X|
|00003600| 09 09 41 20 63 61 6c 6c | 20 74 6f 20 6d 61 6c 6c |..A call| to mall|
|00003610| 6f 63 20 66 6f 72 20 32 | 30 20 62 79 74 65 73 20 |oc for 2|0 bytes |
|00003620| 69 6e 20 74 65 73 74 65 | 72 72 2e 63 20 6f 6e 20 |in teste|rr.c on |
|00003630| 6c 69 6e 65 20 32 37 2e | 0a 58 09 09 54 68 69 73 |line 27.|.X..This|
|00003640| 20 77 61 73 20 74 68 65 | 20 31 73 74 20 63 61 6c | was the| 1st cal|
|00003650| 6c 20 74 6f 20 6d 61 6c | 6c 6f 63 2e 0a 58 0a 58 |l to mal|loc..X.X|
|00003660| 09 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00003670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003680| 2d 2d 2d 2d 2d 2d 0a 58 | 09 45 72 72 6f 72 20 66 |------.X|.Error f|
|00003690| 72 6f 6d 20 66 72 65 65 | 28 29 20 2d 20 6f 76 65 |rom free|() - ove|
|000036a0| 72 72 75 6e 0a 58 09 4d | 41 4c 4c 4f 43 20 57 61 |rrun.X.M|ALLOC Wa|
|000036b0| 72 6e 69 6e 67 20 66 72 | 6f 6d 20 66 72 65 65 28 |rning fr|om free(|
|000036c0| 29 20 28 63 61 6c 6c 65 | 64 20 66 72 6f 6d 20 74 |) (calle|d from t|
|000036d0| 65 73 74 65 72 72 2e 63 | 20 6c 69 6e 65 20 34 31 |esterr.c| line 41|
|000036e0| 29 3a 0a 58 09 44 61 74 | 61 20 68 61 73 20 6f 76 |):.X.Dat|a has ov|
|000036f0| 65 72 72 75 6e 20 62 65 | 79 6f 6e 64 20 72 65 71 |errun be|yond req|
|00003700| 75 65 73 74 65 64 20 6e | 75 6d 62 65 72 20 6f 66 |uested n|umber of|
|00003710| 20 62 79 74 65 73 0a 58 | 09 54 68 69 73 20 65 72 | bytes.X|.This er|
|00003720| 72 6f 72 20 69 73 20 2a | 70 72 6f 62 61 62 6c 79 |ror is *|probably|
|00003730| 2a 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |* associ|ated wit|
|00003740| 68 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |h the fo|llowing |
|00003750| 61 6c 6c 6f 63 61 74 69 | 6f 6e 3a 0a 58 0a 58 09 |allocati|on:.X.X.|
|00003760| 09 41 20 63 61 6c 6c 20 | 74 6f 20 6d 61 6c 6c 6f |.A call |to mallo|
|00003770| 63 20 66 6f 72 20 32 30 | 20 62 79 74 65 73 20 69 |c for 20| bytes i|
|00003780| 6e 20 74 65 73 74 65 72 | 72 2e 63 20 6f 6e 20 6c |n tester|r.c on l|
|00003790| 69 6e 65 20 32 37 2e 0a | 58 09 09 54 68 69 73 20 |ine 27..|X..This |
|000037a0| 77 61 73 20 74 68 65 20 | 31 73 74 20 63 61 6c 6c |was the |1st call|
|000037b0| 20 74 6f 20 6d 61 6c 6c | 6f 63 2e 0a 58 0a 58 09 | to mall|oc..X.X.|
|000037c0| 4d 41 4c 4c 4f 43 20 57 | 61 72 6e 69 6e 67 20 66 |MALLOC W|arning f|
|000037d0| 72 6f 6d 20 66 72 65 65 | 28 29 20 28 63 61 6c 6c |rom free|() (call|
|000037e0| 65 64 20 66 72 6f 6d 20 | 74 65 73 74 65 72 72 2e |ed from |testerr.|
|000037f0| 63 20 6c 69 6e 65 20 34 | 31 29 3a 0a 58 09 44 61 |c line 4|1):.X.Da|
|00003800| 74 61 20 68 61 73 20 6f | 76 65 72 72 75 6e 20 62 |ta has o|verrun b|
|00003810| 65 79 6f 6e 64 20 72 65 | 71 75 65 73 74 65 64 20 |eyond re|quested |
|00003820| 6e 75 6d 62 65 72 20 6f | 66 20 62 79 74 65 73 0a |number o|f bytes.|
|00003830| 58 09 54 68 69 73 20 65 | 72 72 6f 72 20 69 73 20 |X.This e|rror is |
|00003840| 2a 70 72 6f 62 61 62 6c | 79 2a 20 61 73 73 6f 63 |*probabl|y* assoc|
|00003850| 69 61 74 65 64 20 77 69 | 74 68 20 74 68 65 20 66 |iated wi|th the f|
|00003860| 6f 6c 6c 6f 77 69 6e 67 | 20 61 6c 6c 6f 63 61 74 |ollowing| allocat|
|00003870| 69 6f 6e 3a 0a 58 0a 58 | 09 09 41 20 63 61 6c 6c |ion:.X.X|..A call|
|00003880| 20 74 6f 20 6d 61 6c 6c | 6f 63 20 66 6f 72 20 32 | to mall|oc for 2|
|00003890| 30 20 62 79 74 65 73 20 | 69 6e 20 74 65 73 74 65 |0 bytes |in teste|
|000038a0| 72 72 2e 63 20 6f 6e 20 | 6c 69 6e 65 20 32 37 2e |rr.c on |line 27.|
|000038b0| 0a 58 09 09 54 68 69 73 | 20 77 61 73 20 74 68 65 |.X..This| was the|
|000038c0| 20 31 73 74 20 63 61 6c | 6c 20 74 6f 20 6d 61 6c | 1st cal|l to mal|
|000038d0| 6c 6f 63 2e 0a 58 0a 58 | 09 2d 2d 2d 2d 2d 2d 2d |loc..X.X|.-------|
|000038e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000038f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0a 58 |--------|------.X|
|00003900| 09 45 72 72 6f 72 20 66 | 72 6f 6d 20 66 72 65 65 |.Error f|rom free|
|00003910| 28 29 20 2d 20 64 6f 75 | 62 6c 65 20 66 72 65 65 |() - dou|ble free|
|00003920| 0a 58 09 4d 41 4c 4c 4f | 43 20 57 61 72 6e 69 6e |.X.MALLO|C Warnin|
|00003930| 67 20 66 72 6f 6d 20 66 | 72 65 65 28 29 20 28 63 |g from f|ree() (c|
|00003940| 61 6c 6c 65 64 20 66 72 | 6f 6d 20 74 65 73 74 65 |alled fr|om teste|
|00003950| 72 72 2e 63 20 6c 69 6e | 65 20 34 35 29 3a 0a 58 |rr.c lin|e 45):.X|
|00003960| 09 44 61 74 61 20 61 72 | 65 61 20 69 73 20 6e 6f |.Data ar|ea is no|
|00003970| 74 20 69 6e 20 75 73 65 | 20 28 63 61 6e 27 74 20 |t in use| (can't |
|00003980| 62 65 20 66 72 65 65 64 | 20 6f 72 20 72 65 61 6c |be freed| or real|
|00003990| 6c 6f 63 65 64 29 0a 58 | 09 54 68 69 73 20 65 72 |loced).X|.This er|
|000039a0| 72 6f 72 20 69 73 20 2a | 70 72 6f 62 61 62 6c 79 |ror is *|probably|
|000039b0| 2a 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |* associ|ated wit|
|000039c0| 68 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |h the fo|llowing |
|000039d0| 61 6c 6c 6f 63 61 74 69 | 6f 6e 3a 0a 58 0a 58 09 |allocati|on:.X.X.|
|000039e0| 09 41 20 63 61 6c 6c 20 | 74 6f 20 6d 61 6c 6c 6f |.A call |to mallo|
|000039f0| 63 20 66 6f 72 20 32 30 | 20 62 79 74 65 73 20 69 |c for 20| bytes i|
|00003a00| 6e 20 74 65 73 74 65 72 | 72 2e 63 20 6f 6e 20 6c |n tester|r.c on l|
|00003a10| 69 6e 65 20 32 37 2e 0a | 58 09 09 54 68 69 73 20 |ine 27..|X..This |
|00003a20| 77 61 73 20 74 68 65 20 | 31 73 74 20 63 61 6c 6c |was the |1st call|
|00003a30| 20 74 6f 20 6d 61 6c 6c | 6f 63 2e 0a 58 0a 58 09 | to mall|oc..X.X.|
|00003a40| 09 54 68 69 73 20 62 6c | 6f 63 6b 20 77 61 73 20 |.This bl|ock was |
|00003a50| 66 72 65 65 64 20 6f 6e | 20 74 68 65 20 31 73 74 |freed on| the 1st|
|00003a60| 20 63 61 6c 6c 20 74 6f | 20 66 72 65 65 28 29 0a | call to| free().|
|00003a70| 58 09 09 69 6e 20 74 65 | 73 74 65 72 72 2e 63 20 |X..in te|sterr.c |
|00003a80| 6f 6e 20 6c 69 6e 65 20 | 34 31 2e 0a 58 0a 58 09 |on line |41..X.X.|
|00003a90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003aa0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ab0| 2d 2d 2d 2d 2d 0a 58 09 | 4e 4f 20 65 72 72 6f 72 |-----.X.|NO error|
|00003ac0| 20 66 72 6f 6d 20 62 7a | 65 72 6f 0a 58 09 2d 2d | from bz|ero.X.--|
|00003ad0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ae0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003af0| 2d 2d 2d 0a 58 09 45 72 | 72 6f 72 20 66 72 6f 6d |---.X.Er|ror from|
|00003b00| 20 62 7a 65 72 6f 28 29 | 20 2d 20 6f 75 74 20 6f | bzero()| - out o|
|00003b10| 66 20 62 6f 75 6e 64 73 | 0a 58 09 4d 41 4c 4c 4f |f bounds|.X.MALLO|
|00003b20| 43 20 57 61 72 6e 69 6e | 67 20 66 72 6f 6d 20 62 |C Warnin|g from b|
|00003b30| 7a 65 72 6f 28 29 20 28 | 63 61 6c 6c 65 64 20 66 |zero() (|called f|
|00003b40| 72 6f 6d 20 74 65 73 74 | 65 72 72 2e 63 20 6c 69 |rom test|err.c li|
|00003b50| 6e 65 20 35 33 29 3a 0a | 58 09 50 6f 69 6e 74 65 |ne 53):.|X.Pointe|
|00003b60| 72 20 77 69 74 68 69 6e | 20 6d 61 6c 6c 6f 63 20 |r within| malloc |
|00003b70| 72 65 67 69 6f 6e 2c 20 | 62 75 74 20 6f 75 74 73 |region, |but outs|
|00003b80| 69 64 65 20 6f 66 20 6d | 61 6c 6c 6f 63 20 64 61 |ide of m|alloc da|
|00003b90| 74 61 20 62 6f 75 6e 64 | 73 0a 58 09 54 68 69 73 |ta bound|s.X.This|
|00003ba0| 20 65 72 72 6f 72 20 69 | 73 20 2a 70 72 6f 62 61 | error i|s *proba|
|00003bb0| 62 6c 79 2a 20 61 73 73 | 6f 63 69 61 74 65 64 20 |bly* ass|ociated |
|00003bc0| 77 69 74 68 20 74 68 65 | 20 66 6f 6c 6c 6f 77 69 |with the| followi|
|00003bd0| 6e 67 20 61 6c 6c 6f 63 | 61 74 69 6f 6e 3a 0a 58 |ng alloc|ation:.X|
|00003be0| 0a 58 09 09 41 20 63 61 | 6c 6c 20 74 6f 20 6d 61 |.X..A ca|ll to ma|
|00003bf0| 6c 6c 6f 63 20 66 6f 72 | 20 31 30 20 62 79 74 65 |lloc for| 10 byte|
|00003c00| 73 20 69 6e 20 74 65 73 | 74 65 72 72 2e 63 20 6f |s in tes|terr.c o|
|00003c10| 6e 20 6c 69 6e 65 20 32 | 39 2e 0a 58 09 09 54 68 |n line 2|9..X..Th|
|00003c20| 69 73 20 77 61 73 20 74 | 68 65 20 32 6e 64 20 63 |is was t|he 2nd c|
|00003c30| 61 6c 6c 20 74 6f 20 6d | 61 6c 6c 6f 63 2e 0a 58 |all to m|alloc..X|
|00003c40| 0a 58 09 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.X.-----|--------|
|00003c50| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003c60| 2d 2d 2d 2d 2d 2d 2d 2d | 0a 58 09 45 72 72 6f 72 |--------|.X.Error|
|00003c70| 20 66 72 6f 6d 20 66 72 | 65 65 28 29 20 2d 20 6f | from fr|ee() - o|
|00003c80| 76 65 72 72 75 6e 0a 58 | 09 4d 41 4c 4c 4f 43 20 |verrun.X|.MALLOC |
|00003c90| 57 61 72 6e 69 6e 67 20 | 66 72 6f 6d 20 66 72 65 |Warning |from fre|
|00003ca0| 65 28 29 20 28 63 61 6c | 6c 65 64 20 66 72 6f 6d |e() (cal|led from|
|00003cb0| 20 74 65 73 74 65 72 72 | 2e 63 20 6c 69 6e 65 20 | testerr|.c line |
|00003cc0| 35 37 29 3a 0a 58 09 44 | 61 74 61 20 68 61 73 20 |57):.X.D|ata has |
|00003cd0| 6f 76 65 72 72 75 6e 20 | 62 65 79 6f 6e 64 20 72 |overrun |beyond r|
|00003ce0| 65 71 75 65 73 74 65 64 | 20 6e 75 6d 62 65 72 20 |equested| number |
|00003cf0| 6f 66 20 62 79 74 65 73 | 0a 58 09 54 68 69 73 20 |of bytes|.X.This |
|00003d00| 65 72 72 6f 72 20 69 73 | 20 2a 70 72 6f 62 61 62 |error is| *probab|
|00003d10| 6c 79 2a 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |ly* asso|ciated w|
|00003d20| 69 74 68 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ith the |followin|
|00003d30| 67 20 61 6c 6c 6f 63 61 | 74 69 6f 6e 3a 0a 58 0a |g alloca|tion:.X.|
|00003d40| 58 09 09 41 20 63 61 6c | 6c 20 74 6f 20 6d 61 6c |X..A cal|l to mal|
|00003d50| 6c 6f 63 20 66 6f 72 20 | 31 30 20 62 79 74 65 73 |loc for |10 bytes|
|00003d60| 20 69 6e 20 74 65 73 74 | 65 72 72 2e 63 20 6f 6e | in test|err.c on|
|00003d70| 20 6c 69 6e 65 20 32 39 | 2e 0a 58 09 09 54 68 69 | line 29|..X..Thi|
|00003d80| 73 20 77 61 73 20 74 68 | 65 20 32 6e 64 20 63 61 |s was th|e 2nd ca|
|00003d90| 6c 6c 20 74 6f 20 6d 61 | 6c 6c 6f 63 2e 0a 58 0a |ll to ma|lloc..X.|
|00003da0| 58 09 4d 41 4c 4c 4f 43 | 20 57 61 72 6e 69 6e 67 |X.MALLOC| Warning|
|00003db0| 20 66 72 6f 6d 20 66 72 | 65 65 28 29 20 28 63 61 | from fr|ee() (ca|
|00003dc0| 6c 6c 65 64 20 66 72 6f | 6d 20 74 65 73 74 65 72 |lled fro|m tester|
|00003dd0| 72 2e 63 20 6c 69 6e 65 | 20 35 37 29 3a 0a 58 09 |r.c line| 57):.X.|
|00003de0| 44 61 74 61 20 68 61 73 | 20 6f 76 65 72 72 75 6e |Data has| overrun|
|00003df0| 20 62 65 79 6f 6e 64 20 | 72 65 71 75 65 73 74 65 | beyond |requeste|
|00003e00| 64 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 79 74 65 |d number| of byte|
|00003e10| 73 0a 58 09 54 68 69 73 | 20 65 72 72 6f 72 20 69 |s.X.This| error i|
|00003e20| 73 20 2a 70 72 6f 62 61 | 62 6c 79 2a 20 61 73 73 |s *proba|bly* ass|
|00003e30| 6f 63 69 61 74 65 64 20 | 77 69 74 68 20 74 68 65 |ociated |with the|
|00003e40| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 6c 6c 6f 63 | followi|ng alloc|
|00003e50| 61 74 69 6f 6e 3a 0a 58 | 0a 58 09 09 41 20 63 61 |ation:.X|.X..A ca|
|00003e60| 6c 6c 20 74 6f 20 6d 61 | 6c 6c 6f 63 20 66 6f 72 |ll to ma|lloc for|
|00003e70| 20 31 30 20 62 79 74 65 | 73 20 69 6e 20 74 65 73 | 10 byte|s in tes|
|00003e80| 74 65 72 72 2e 63 20 6f | 6e 20 6c 69 6e 65 20 32 |terr.c o|n line 2|
|00003e90| 39 2e 0a 58 09 09 54 68 | 69 73 20 77 61 73 20 74 |9..X..Th|is was t|
|00003ea0| 68 65 20 32 6e 64 20 63 | 61 6c 6c 20 74 6f 20 6d |he 2nd c|all to m|
|00003eb0| 61 6c 6c 6f 63 2e 0a 58 | 0a 58 09 2d 2d 2d 2d 2d |alloc..X|.X.-----|
|00003ec0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ed0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003ee0| 0a 58 09 45 72 72 6f 72 | 20 66 72 6f 6d 20 66 72 |.X.Error| from fr|
|00003ef0| 65 65 28 29 20 2d 20 69 | 6e 76 61 6c 69 64 20 6d |ee() - i|nvalid m|
|00003f00| 61 67 69 63 0a 58 09 4d | 41 4c 4c 4f 43 20 57 61 |agic.X.M|ALLOC Wa|
|00003f10| 72 6e 69 6e 67 20 66 72 | 6f 6d 20 66 72 65 65 28 |rning fr|om free(|
|00003f20| 29 20 28 63 61 6c 6c 65 | 64 20 66 72 6f 6d 20 74 |) (calle|d from t|
|00003f30| 65 73 74 65 72 72 2e 63 | 20 6c 69 6e 65 20 36 31 |esterr.c| line 61|
|00003f40| 29 3a 0a 58 09 4d 61 6c | 6c 6f 63 20 72 65 67 69 |):.X.Mal|loc regi|
|00003f50| 6f 6e 20 64 6f 65 73 20 | 6e 6f 74 20 68 61 76 65 |on does |not have|
|00003f60| 20 76 61 6c 69 64 20 6d | 61 67 69 63 20 6e 75 6d | valid m|agic num|
|00003f70| 62 65 72 20 69 6e 20 68 | 65 61 64 65 72 0a 58 09 |ber in h|eader.X.|
|00003f80| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003f90| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003fa0| 2d 2d 2d 2d 2d 0a 58 09 | 45 72 72 6f 72 20 66 72 |-----.X.|Error fr|
|00003fb0| 6f 6d 20 6d 65 6d 73 65 | 74 28 29 20 2d 20 6f 75 |om memse|t() - ou|
|00003fc0| 74 20 6f 66 20 62 6f 75 | 6e 64 73 0a 58 09 4d 41 |t of bou|nds.X.MA|
|00003fd0| 4c 4c 4f 43 20 57 61 72 | 6e 69 6e 67 20 66 72 6f |LLOC War|ning fro|
|00003fe0| 6d 20 6d 65 6d 73 65 74 | 28 29 20 28 63 61 6c 6c |m memset|() (call|
|00003ff0| 65 64 20 66 72 6f 6d 20 | 74 65 73 74 65 72 72 2e |ed from |testerr.|
|00004000| 63 20 6c 69 6e 65 20 36 | 38 29 3a 0a 58 09 50 6f |c line 6|8):.X.Po|
|00004010| 69 6e 74 65 72 20 77 69 | 74 68 69 6e 20 6d 61 6c |inter wi|thin mal|
|00004020| 6c 6f 63 20 72 65 67 69 | 6f 6e 2c 20 62 75 74 20 |loc regi|on, but |
|00004030| 6f 75 74 73 69 64 65 20 | 6f 66 20 6d 61 6c 6c 6f |outside |of mallo|
|00004040| 63 20 64 61 74 61 20 62 | 6f 75 6e 64 73 0a 58 09 |c data b|ounds.X.|
|00004050| 54 68 69 73 20 65 72 72 | 6f 72 20 69 73 20 2a 70 |This err|or is *p|
|00004060| 72 6f 62 61 62 6c 79 2a | 20 61 73 73 6f 63 69 61 |robably*| associa|
|00004070| 74 65 64 20 77 69 74 68 | 20 74 68 65 20 66 6f 6c |ted with| the fol|
|00004080| 6c 6f 77 69 6e 67 20 61 | 6c 6c 6f 63 61 74 69 6f |lowing a|llocatio|
|00004090| 6e 3a 0a 58 0a 58 09 09 | 41 20 63 61 6c 6c 20 74 |n:.X.X..|A call t|
|000040a0| 6f 20 6d 61 6c 6c 6f 63 | 20 66 6f 72 20 31 30 20 |o malloc| for 10 |
|000040b0| 62 79 74 65 73 20 69 6e | 20 74 65 73 74 65 72 72 |bytes in| testerr|
|000040c0| 2e 63 20 6f 6e 20 6c 69 | 6e 65 20 36 33 2e 0a 58 |.c on li|ne 63..X|
|000040d0| 09 09 54 68 69 73 20 77 | 61 73 20 74 68 65 20 33 |..This w|as the 3|
|000040e0| 72 64 20 63 61 6c 6c 20 | 74 6f 20 6d 61 6c 6c 6f |rd call |to mallo|
|000040f0| 63 2e 0a 58 0a 58 09 2d | 2d 2d 2d 2d 2d 2d 2d 2d |c..X.X.-|--------|
|00004100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00004110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 58 09 45 |--------|----.X.E|
|00004120| 72 72 6f 72 20 66 72 6f | 6d 20 6d 61 6c 6c 6f 63 |rror fro|m malloc|
|00004130| 28 29 20 2d 20 63 68 61 | 69 6e 20 62 72 6f 6b 65 |() - cha|in broke|
|00004140| 6e 0a 58 09 4d 41 4c 4c | 4f 43 20 57 61 72 6e 69 |n.X.MALL|OC Warni|
|00004150| 6e 67 20 66 72 6f 6d 20 | 6d 61 6c 6c 6f 63 28 29 |ng from |malloc()|
|00004160| 20 28 63 61 6c 6c 65 64 | 20 66 72 6f 6d 20 74 65 | (called| from te|
|00004170| 73 74 65 72 72 2e 63 20 | 6c 69 6e 65 20 37 32 29 |sterr.c |line 72)|
|00004180| 3a 0a 58 09 50 6f 69 6e | 74 65 72 73 20 62 65 74 |:.X.Poin|ters bet|
|00004190| 77 65 65 6e 20 74 68 69 | 73 20 73 65 67 6d 65 6e |ween thi|s segmen|
|000041a0| 74 20 61 6e 64 20 61 64 | 6a 6f 69 6e 69 6e 67 20 |t and ad|joining |
|000041b0| 73 65 67 6d 65 6e 74 73 | 20 61 72 65 20 69 6e 76 |segments| are inv|
|000041c0| 61 6c 69 64 0a 58 09 54 | 68 69 73 20 65 72 72 6f |alid.X.T|his erro|
|000041d0| 72 20 69 73 20 2a 70 72 | 6f 62 61 62 6c 79 2a 20 |r is *pr|obably* |
|000041e0| 61 73 73 6f 63 69 61 74 | 65 64 20 77 69 74 68 20 |associat|ed with |
|000041f0| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 61 6c |the foll|owing al|
|00004200| 6c 6f 63 61 74 69 6f 6e | 3a 0a 58 0a 58 09 09 41 |location|:.X.X..A|
|00004210| 20 63 61 6c 6c 20 74 6f | 20 6d 61 6c 6c 6f 63 20 | call to| malloc |
|00004220| 66 6f 72 20 31 30 20 62 | 79 74 65 73 20 69 6e 20 |for 10 b|ytes in |
|00004230| 74 65 73 74 65 72 72 2e | 63 20 6f 6e 20 6c 69 6e |testerr.|c on lin|
|00004240| 65 20 36 33 2e 0a 58 09 | 09 54 68 69 73 20 77 61 |e 63..X.|.This wa|
|00004250| 73 20 74 68 65 20 33 72 | 64 20 63 61 6c 6c 20 74 |s the 3r|d call t|
|00004260| 6f 20 6d 61 6c 6c 6f 63 | 2e 0a 58 0a 58 09 4d 41 |o malloc|..X.X.MA|
|00004270| 4c 4c 4f 43 20 57 61 72 | 6e 69 6e 67 20 66 72 6f |LLOC War|ning fro|
|00004280| 6d 20 6d 61 6c 6c 6f 63 | 28 29 20 28 63 61 6c 6c |m malloc|() (call|
|00004290| 65 64 20 66 72 6f 6d 20 | 74 65 73 74 65 72 72 2e |ed from |testerr.|
|000042a0| 63 20 6c 69 6e 65 20 37 | 32 29 3a 0a 58 09 4d 61 |c line 7|2):.X.Ma|
|000042b0| 6c 6c 6f 63 20 72 65 67 | 69 6f 6e 20 64 6f 65 73 |lloc reg|ion does|
|000042c0| 20 6e 6f 74 20 68 61 76 | 65 20 76 61 6c 69 64 20 | not hav|e valid |
|000042d0| 6d 61 67 69 63 20 6e 75 | 6d 62 65 72 20 69 6e 20 |magic nu|mber in |
|000042e0| 68 65 61 64 65 72 0a 58 | 09 4d 41 4c 4c 4f 43 20 |header.X|.MALLOC |
|000042f0| 46 61 74 61 6c 20 65 72 | 72 6f 72 20 66 72 6f 6d |Fatal er|ror from|
|00004300| 20 6d 61 6c 6c 6f 63 28 | 29 20 28 63 61 6c 6c 65 | malloc(|) (calle|
|00004310| 64 20 66 72 6f 6d 20 74 | 65 73 74 65 72 72 2e 63 |d from t|esterr.c|
|00004320| 20 6c 69 6e 65 20 37 32 | 29 3a 0a 58 09 50 6f 69 | line 72|):.X.Poi|
|00004330| 6e 74 65 72 20 69 73 20 | 6e 6f 74 20 77 69 74 68 |nter is |not with|
|00004340| 69 6e 20 6d 61 6c 6c 6f | 63 20 61 72 65 61 0a 58 |in mallo|c area.X|
|00004350| 0a 58 61 62 6f 72 74 2d | 63 6f 72 65 20 64 75 6d |.Xabort-|core dum|
|00004360| 70 65 64 20 28 6f 72 20 | 73 6f 6d 65 74 68 69 6e |ped (or |somethin|
|00004370| 67 20 61 62 6f 75 74 20 | 53 49 47 49 4f 54 29 20 |g about |SIGIOT) |
|00004380| 63 61 6e 20 62 65 20 65 | 78 70 65 63 74 65 64 20 |can be e|xpected |
|00004390| 61 74 20 74 68 65 20 65 | 6e 64 0a 58 6f 66 20 74 |at the e|nd.Xof t|
|000043a0| 68 65 20 74 65 73 74 20 | 62 65 63 61 75 73 65 20 |he test |because |
|000043b0| 6f 66 20 61 20 70 75 72 | 70 6f 73 65 66 75 6c 20 |of a pur|poseful |
|000043c0| 6f 76 65 72 77 72 69 74 | 65 20 6f 66 20 6d 65 6d |overwrit|e of mem|
|000043d0| 6f 72 79 2e 20 20 44 65 | 70 65 6e 64 69 6e 67 20 |ory. De|pending |
|000043e0| 75 70 6f 6e 20 74 68 65 | 0a 58 61 72 63 68 69 74 |upon the|.Xarchit|
|000043f0| 65 63 74 75 72 65 2c 20 | 74 68 65 20 70 75 72 70 |ecture, |the purp|
|00004400| 6f 73 65 66 75 6c 20 6f | 76 65 72 77 72 69 74 65 |oseful o|verwrite|
|00004410| 20 6d 61 79 20 61 63 74 | 75 61 6c 6c 79 20 63 61 | may act|ually ca|
|00004420| 75 73 65 20 73 6f 6d 65 | 20 6f 74 68 65 72 20 66 |use some| other f|
|00004430| 6f 72 6d 0a 58 6f 66 20 | 63 6f 72 65 20 64 75 6d |orm.Xof |core dum|
|00004440| 70 2e 20 20 49 66 20 69 | 74 20 64 75 6d 70 73 20 |p. If i|t dumps |
|00004450| 73 6f 6d 65 77 68 65 72 | 65 20 69 6e 20 74 68 65 |somewher|e in the|
|00004460| 20 6c 61 73 74 20 65 72 | 72 6f 72 2c 20 79 6f 75 | last er|ror, you|
|00004470| 20 63 61 6e 20 2a 70 72 | 6f 62 61 62 6c 79 2a 0a | can *pr|obably*.|
|00004480| 58 63 6f 6e 73 69 64 65 | 72 20 69 74 20 6e 6f 72 |Xconside|r it nor|
|00004490| 6d 61 6c 2e 0a 58 0a 58 | 74 65 73 74 73 74 61 63 |mal..X.X|teststac|
|000044a0| 6b 20 2d 20 74 68 69 73 | 20 74 65 73 74 20 76 65 |k - this| test ve|
|000044b0| 72 69 66 69 65 73 20 74 | 68 61 74 20 74 68 65 20 |rifies t|hat the |
|000044c0| 73 74 61 63 6b 20 74 72 | 61 63 6b 69 6e 67 20 6d |stack tr|acking m|
|000044d0| 65 63 68 61 6e 69 73 6d | 20 73 74 69 6c 6c 20 77 |echanism| still w|
|000044e0| 6f 72 6b 73 2e 0a 58 54 | 68 65 20 70 72 6f 67 72 |orks..XT|he progr|
|000044f0| 61 6d 20 6a 75 73 74 20 | 75 73 65 73 20 74 68 65 |am just |uses the|
|00004500| 20 6d 61 6c 6c 6f 63 5f | 65 6e 74 65 72 20 61 6e | malloc_|enter an|
|00004510| 64 20 6d 61 6c 6c 6f 63 | 5f 6c 65 61 76 65 20 6d |d malloc|_leave m|
|00004520| 61 63 72 6f 73 20 74 6f | 20 72 65 63 6f 72 64 20 |acros to| record |
|00004530| 61 0a 58 73 74 61 63 6b | 20 77 68 69 6c 65 20 61 |a.Xstack| while a|
|00004540| 6c 6c 6f 63 61 74 69 6e | 67 20 76 61 72 69 61 62 |llocatin|g variab|
|00004550| 6c 65 73 20 61 6e 64 20 | 74 68 65 6e 20 64 75 6d |les and |then dum|
|00004560| 70 69 6e 67 20 74 68 65 | 20 6c 69 73 74 2e 20 20 |ping the| list. |
|00004570| 54 68 65 20 6f 75 74 70 | 75 74 0a 58 73 68 6f 75 |The outp|ut.Xshou|
|00004580| 6c 64 20 6c 6f 6f 6b 20 | 73 6f 6d 65 74 68 69 6e |ld look |somethin|
|00004590| 67 20 6c 69 6b 65 20 74 | 68 65 20 66 6f 6c 6c 6f |g like t|he follo|
|000045a0| 77 69 6e 67 3a 0a 58 0a | 58 09 4d 41 4c 4c 4f 43 |wing:.X.|X.MALLOC|
|000045b0| 20 57 61 72 6e 69 6e 67 | 20 66 72 6f 6d 20 73 74 | Warning| from st|
|000045c0| 72 63 70 79 28 29 20 28 | 63 61 6c 6c 65 64 20 66 |rcpy() (|called f|
|000045d0| 72 6f 6d 20 74 65 73 74 | 73 74 61 63 6b 2e 63 20 |rom test|stack.c |
|000045e0| 6c 69 6e 65 20 38 34 29 | 3a 0a 58 09 50 6f 69 6e |line 84)|:.X.Poin|
|000045f0| 74 65 72 20 77 69 74 68 | 69 6e 20 6d 61 6c 6c 6f |ter with|in mallo|
|00004600| 63 20 72 65 67 69 6f 6e | 2c 20 62 75 74 20 6f 75 |c region|, but ou|
|00004610| 74 73 69 64 65 20 6f 66 | 20 6d 61 6c 6c 6f 63 20 |tside of| malloc |
|00004620| 64 61 74 61 20 62 6f 75 | 6e 64 73 0a 58 09 54 68 |data bou|nds.X.Th|
|00004630| 69 73 20 65 72 72 6f 72 | 20 69 73 20 2a 70 72 6f |is error| is *pro|
|00004640| 62 61 62 6c 79 2a 20 61 | 73 73 6f 63 69 61 74 65 |bably* a|ssociate|
|00004650| 64 20 77 69 74 68 20 74 | 68 65 20 66 6f 6c 6c 6f |d with t|he follo|
|00004660| 77 69 6e 67 20 61 6c 6c | 6f 63 61 74 69 6f 6e 3a |wing all|ocation:|
|00004670| 0a 58 0a 58 09 09 41 20 | 63 61 6c 6c 20 74 6f 20 |.X.X..A |call to |
|00004680| 6d 61 6c 6c 6f 63 20 66 | 6f 72 20 31 20 62 79 74 |malloc f|or 1 byt|
|00004690| 65 73 20 69 6e 20 74 65 | 73 74 73 74 61 63 6b 2e |es in te|ststack.|
|000046a0| 63 20 6f 6e 20 6c 69 6e | 65 20 38 32 2e 0a 58 09 |c on lin|e 82..X.|
|000046b0| 09 54 68 69 73 20 77 61 | 73 20 74 68 65 20 35 74 |.This wa|s the 5t|
|000046c0| 68 20 63 61 6c 6c 20 74 | 6f 20 6d 61 6c 6c 6f 63 |h call t|o malloc|
|000046d0| 2e 0a 58 09 09 53 74 61 | 63 6b 20 66 72 6f 6d 20 |..X..Sta|ck from |
|000046e0| 77 68 65 72 65 20 61 6c | 6c 6f 63 61 74 65 64 3a |where al|located:|
|000046f0| 0a 58 09 09 20 2d 3e 20 | 73 75 62 33 28 29 20 69 |.X.. -> |sub3() i|
|00004700| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 28 38 30 |n testst|ack.c(80|
|00004710| 29 0a 58 09 09 20 2d 3e | 20 73 75 62 32 28 29 20 |).X.. ->| sub2() |
|00004720| 69 6e 20 74 65 73 74 73 | 74 61 63 6b 2e 63 28 36 |in tests|tack.c(6|
|00004730| 35 29 0a 58 09 09 20 2d | 3e 20 73 75 62 31 28 29 |5).X.. -|> sub1()|
|00004740| 20 69 6e 20 74 65 73 74 | 73 74 61 63 6b 2e 63 28 | in test|stack.c(|
|00004750| 34 36 29 0a 58 09 09 20 | 2d 3e 20 6d 61 69 6e 28 |46).X.. |-> main(|
|00004760| 29 20 69 6e 20 74 65 73 | 74 73 74 61 63 6b 2e 63 |) in tes|tstack.c|
|00004770| 28 32 37 29 0a 58 0a 58 | 09 4d 41 4c 4c 4f 43 20 |(27).X.X|.MALLOC |
|00004780| 57 61 72 6e 69 6e 67 20 | 66 72 6f 6d 20 73 74 72 |Warning |from str|
|00004790| 63 70 79 28 29 20 28 63 | 61 6c 6c 65 64 20 66 72 |cpy() (c|alled fr|
|000047a0| 6f 6d 20 74 65 73 74 73 | 74 61 63 6b 2e 63 20 6c |om tests|tack.c l|
|000047b0| 69 6e 65 20 38 34 29 3a | 0a 58 09 50 6f 69 6e 74 |ine 84):|.X.Point|
|000047c0| 65 72 20 77 69 74 68 69 | 6e 20 6d 61 6c 6c 6f 63 |er withi|n malloc|
|000047d0| 20 72 65 67 69 6f 6e 2c | 20 62 75 74 20 6f 75 74 | region,| but out|
|000047e0| 73 69 64 65 20 6f 66 20 | 6d 61 6c 6c 6f 63 20 64 |side of |malloc d|
|000047f0| 61 74 61 20 62 6f 75 6e | 64 73 0a 58 09 54 68 69 |ata boun|ds.X.Thi|
|00004800| 73 20 65 72 72 6f 72 20 | 69 73 20 2a 70 72 6f 62 |s error |is *prob|
|00004810| 61 62 6c 79 2a 20 61 73 | 73 6f 63 69 61 74 65 64 |ably* as|sociated|
|00004820| 20 77 69 74 68 20 74 68 | 65 20 66 6f 6c 6c 6f 77 | with th|e follow|
|00004830| 69 6e 67 20 61 6c 6c 6f | 63 61 74 69 6f 6e 3a 0a |ing allo|cation:.|
|00004840| 58 0a 58 09 09 41 20 63 | 61 6c 6c 20 74 6f 20 6d |X.X..A c|all to m|
|00004850| 61 6c 6c 6f 63 20 66 6f | 72 20 31 20 62 79 74 65 |alloc fo|r 1 byte|
|00004860| 73 20 69 6e 20 74 65 73 | 74 73 74 61 63 6b 2e 63 |s in tes|tstack.c|
|00004870| 20 6f 6e 20 6c 69 6e 65 | 20 38 32 2e 0a 58 09 09 | on line| 82..X..|
|00004880| 54 68 69 73 20 77 61 73 | 20 74 68 65 20 37 74 68 |This was| the 7th|
|00004890| 20 63 61 6c 6c 20 74 6f | 20 6d 61 6c 6c 6f 63 2e | call to| malloc.|
|000048a0| 0a 58 09 09 53 74 61 63 | 6b 20 66 72 6f 6d 20 77 |.X..Stac|k from w|
|000048b0| 68 65 72 65 20 61 6c 6c | 6f 63 61 74 65 64 3a 0a |here all|ocated:.|
|000048c0| 58 09 09 20 2d 3e 20 73 | 75 62 33 28 29 20 69 6e |X.. -> s|ub3() in|
|000048d0| 20 74 65 73 74 73 74 61 | 63 6b 2e 63 28 38 30 29 | teststa|ck.c(80)|
|000048e0| 0a 58 09 09 20 2d 3e 20 | 73 75 62 31 28 29 20 69 |.X.. -> |sub1() i|
|000048f0| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 28 34 36 |n testst|ack.c(46|
|00004900| 29 0a 58 09 09 20 2d 3e | 20 6d 61 69 6e 28 29 20 |).X.. ->| main() |
|00004910| 69 6e 20 74 65 73 74 73 | 74 61 63 6b 2e 63 28 32 |in tests|tack.c(2|
|00004920| 37 29 0a 58 0a 58 09 4d | 41 4c 4c 4f 43 20 57 61 |7).X.X.M|ALLOC Wa|
|00004930| 72 6e 69 6e 67 20 66 72 | 6f 6d 20 73 74 72 63 70 |rning fr|om strcp|
|00004940| 79 28 29 20 28 63 61 6c | 6c 65 64 20 66 72 6f 6d |y() (cal|led from|
|00004950| 20 74 65 73 74 73 74 61 | 63 6b 2e 63 20 6c 69 6e | teststa|ck.c lin|
|00004960| 65 20 38 34 29 3a 0a 58 | 09 50 6f 69 6e 74 65 72 |e 84):.X|.Pointer|
|00004970| 20 77 69 74 68 69 6e 20 | 6d 61 6c 6c 6f 63 20 72 | within |malloc r|
|00004980| 65 67 69 6f 6e 2c 20 62 | 75 74 20 6f 75 74 73 69 |egion, b|ut outsi|
|00004990| 64 65 20 6f 66 20 6d 61 | 6c 6c 6f 63 20 64 61 74 |de of ma|lloc dat|
|000049a0| 61 20 62 6f 75 6e 64 73 | 0a 58 09 54 68 69 73 20 |a bounds|.X.This |
|000049b0| 65 72 72 6f 72 20 69 73 | 20 2a 70 72 6f 62 61 62 |error is| *probab|
|000049c0| 6c 79 2a 20 61 73 73 6f | 63 69 61 74 65 64 20 77 |ly* asso|ciated w|
|000049d0| 69 74 68 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |ith the |followin|
|000049e0| 67 20 61 6c 6c 6f 63 61 | 74 69 6f 6e 3a 0a 58 0a |g alloca|tion:.X.|
|000049f0| 58 09 09 41 20 63 61 6c | 6c 20 74 6f 20 6d 61 6c |X..A cal|l to mal|
|00004a00| 6c 6f 63 20 66 6f 72 20 | 31 20 62 79 74 65 73 20 |loc for |1 bytes |
|00004a10| 69 6e 20 74 65 73 74 73 | 74 61 63 6b 2e 63 20 6f |in tests|tack.c o|
|00004a20| 6e 20 6c 69 6e 65 20 38 | 32 2e 0a 58 09 09 54 68 |n line 8|2..X..Th|
|00004a30| 69 73 20 77 61 73 20 74 | 68 65 20 39 74 68 20 63 |is was t|he 9th c|
|00004a40| 61 6c 6c 20 74 6f 20 6d | 61 6c 6c 6f 63 2e 0a 58 |all to m|alloc..X|
|00004a50| 09 09 53 74 61 63 6b 20 | 66 72 6f 6d 20 77 68 65 |..Stack |from whe|
|00004a60| 72 65 20 61 6c 6c 6f 63 | 61 74 65 64 3a 0a 58 09 |re alloc|ated:.X.|
|00004a70| 09 20 2d 3e 20 73 75 62 | 33 28 29 20 69 6e 20 74 |. -> sub|3() in t|
|00004a80| 65 73 74 73 74 61 63 6b | 2e 63 28 38 30 29 0a 58 |eststack|.c(80).X|
|00004a90| 09 09 20 2d 3e 20 73 75 | 62 32 28 29 20 69 6e 20 |.. -> su|b2() in |
|00004aa0| 74 65 73 74 73 74 61 63 | 6b 2e 63 28 36 35 29 0a |teststac|k.c(65).|
|00004ab0| 58 09 09 20 2d 3e 20 73 | 75 62 31 28 29 20 69 6e |X.. -> s|ub1() in|
|00004ac0| 20 74 65 73 74 73 74 61 | 63 6b 2e 63 28 34 36 29 | teststa|ck.c(46)|
|00004ad0| 0a 58 09 09 20 2d 3e 20 | 6d 61 69 6e 28 29 20 69 |.X.. -> |main() i|
|00004ae0| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 28 32 37 |n testst|ack.c(27|
|00004af0| 29 0a 58 0a 58 09 4d 41 | 4c 4c 4f 43 20 57 61 72 |).X.X.MA|LLOC War|
|00004b00| 6e 69 6e 67 20 66 72 6f | 6d 20 73 74 72 63 70 79 |ning fro|m strcpy|
|00004b10| 28 29 20 28 63 61 6c 6c | 65 64 20 66 72 6f 6d 20 |() (call|ed from |
|00004b20| 74 65 73 74 73 74 61 63 | 6b 2e 63 20 6c 69 6e 65 |teststac|k.c line|
|00004b30| 20 38 34 29 3a 0a 58 09 | 50 6f 69 6e 74 65 72 20 | 84):.X.|Pointer |
|00004b40| 77 69 74 68 69 6e 20 6d | 61 6c 6c 6f 63 20 72 65 |within m|alloc re|
|00004b50| 67 69 6f 6e 2c 20 62 75 | 74 20 6f 75 74 73 69 64 |gion, bu|t outsid|
|00004b60| 65 20 6f 66 20 6d 61 6c | 6c 6f 63 20 64 61 74 61 |e of mal|loc data|
|00004b70| 20 62 6f 75 6e 64 73 0a | 58 09 54 68 69 73 20 65 | bounds.|X.This e|
|00004b80| 72 72 6f 72 20 69 73 20 | 2a 70 72 6f 62 61 62 6c |rror is |*probabl|
|00004b90| 79 2a 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |y* assoc|iated wi|
|00004ba0| 74 68 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |th the f|ollowing|
|00004bb0| 20 61 6c 6c 6f 63 61 74 | 69 6f 6e 3a 0a 58 0a 58 | allocat|ion:.X.X|
|00004bc0| 09 09 41 20 63 61 6c 6c | 20 74 6f 20 6d 61 6c 6c |..A call| to mall|
|00004bd0| 6f 63 20 66 6f 72 20 31 | 20 62 79 74 65 73 20 69 |oc for 1| bytes i|
|00004be0| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 20 6f 6e |n testst|ack.c on|
|00004bf0| 20 6c 69 6e 65 20 38 32 | 2e 0a 58 09 09 54 68 69 | line 82|..X..Thi|
|00004c00| 73 20 77 61 73 20 74 68 | 65 20 31 33 74 68 20 63 |s was th|e 13th c|
|00004c10| 61 6c 6c 20 74 6f 20 6d | 61 6c 6c 6f 63 2e 0a 58 |all to m|alloc..X|
|00004c20| 09 09 53 74 61 63 6b 20 | 66 72 6f 6d 20 77 68 65 |..Stack |from whe|
|00004c30| 72 65 20 61 6c 6c 6f 63 | 61 74 65 64 3a 0a 58 09 |re alloc|ated:.X.|
|00004c40| 09 20 2d 3e 20 73 75 62 | 33 28 29 20 69 6e 20 74 |. -> sub|3() in t|
|00004c50| 65 73 74 73 74 61 63 6b | 2e 63 28 38 30 29 0a 58 |eststack|.c(80).X|
|00004c60| 09 09 20 2d 3e 20 73 75 | 62 32 28 29 20 69 6e 20 |.. -> su|b2() in |
|00004c70| 74 65 73 74 73 74 61 63 | 6b 2e 63 28 36 35 29 0a |teststac|k.c(65).|
|00004c80| 58 09 09 20 2d 3e 20 6d | 61 69 6e 28 29 20 69 6e |X.. -> m|ain() in|
|00004c90| 20 74 65 73 74 73 74 61 | 63 6b 2e 63 28 32 37 29 | teststa|ck.c(27)|
|00004ca0| 0a 58 0a 58 09 4d 41 4c | 4c 4f 43 20 57 61 72 6e |.X.X.MAL|LOC Warn|
|00004cb0| 69 6e 67 20 66 72 6f 6d | 20 73 74 72 63 70 79 28 |ing from| strcpy(|
|00004cc0| 29 20 28 63 61 6c 6c 65 | 64 20 66 72 6f 6d 20 74 |) (calle|d from t|
|00004cd0| 65 73 74 73 74 61 63 6b | 2e 63 20 6c 69 6e 65 20 |eststack|.c line |
|00004ce0| 38 34 29 3a 0a 58 09 50 | 6f 69 6e 74 65 72 20 77 |84):.X.P|ointer w|
|00004cf0| 69 74 68 69 6e 20 6d 61 | 6c 6c 6f 63 20 72 65 67 |ithin ma|lloc reg|
|00004d00| 69 6f 6e 2c 20 62 75 74 | 20 6f 75 74 73 69 64 65 |ion, but| outside|
|00004d10| 20 6f 66 20 6d 61 6c 6c | 6f 63 20 64 61 74 61 20 | of mall|oc data |
|00004d20| 62 6f 75 6e 64 73 0a 58 | 09 54 68 69 73 20 65 72 |bounds.X|.This er|
|00004d30| 72 6f 72 20 69 73 20 2a | 70 72 6f 62 61 62 6c 79 |ror is *|probably|
|00004d40| 2a 20 61 73 73 6f 63 69 | 61 74 65 64 20 77 69 74 |* associ|ated wit|
|00004d50| 68 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |h the fo|llowing |
|00004d60| 61 6c 6c 6f 63 61 74 69 | 6f 6e 3a 0a 58 0a 58 09 |allocati|on:.X.X.|
|00004d70| 09 41 20 63 61 6c 6c 20 | 74 6f 20 6d 61 6c 6c 6f |.A call |to mallo|
|00004d80| 63 20 66 6f 72 20 31 20 | 62 79 74 65 73 20 69 6e |c for 1 |bytes in|
|00004d90| 20 74 65 73 74 73 74 61 | 63 6b 2e 63 20 6f 6e 20 | teststa|ck.c on |
|00004da0| 6c 69 6e 65 20 38 32 2e | 0a 58 09 09 54 68 69 73 |line 82.|.X..This|
|00004db0| 20 77 61 73 20 74 68 65 | 20 31 35 74 68 20 63 61 | was the| 15th ca|
|00004dc0| 6c 6c 20 74 6f 20 6d 61 | 6c 6c 6f 63 2e 0a 58 09 |ll to ma|lloc..X.|
|00004dd0| 09 53 74 61 63 6b 20 66 | 72 6f 6d 20 77 68 65 72 |.Stack f|rom wher|
|00004de0| 65 20 61 6c 6c 6f 63 61 | 74 65 64 3a 0a 58 09 09 |e alloca|ted:.X..|
|00004df0| 20 2d 3e 20 73 75 62 33 | 28 29 20 69 6e 20 74 65 | -> sub3|() in te|
|00004e00| 73 74 73 74 61 63 6b 2e | 63 28 38 30 29 0a 58 09 |ststack.|c(80).X.|
|00004e10| 09 20 2d 3e 20 6d 61 69 | 6e 28 29 20 69 6e 20 74 |. -> mai|n() in t|
|00004e20| 65 73 74 73 74 61 63 6b | 2e 63 28 32 37 29 0a 58 |eststack|.c(27).X|
|00004e30| 0a 58 09 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.X.*****|********|
|00004e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 20 44 75 |********|***** Du|
|00004e50| 6d 70 20 6f 66 20 4d 61 | 6c 6c 6f 63 20 43 68 61 |mp of Ma|lloc Cha|
|00004e60| 69 6e 20 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |in *****|********|
|00004e70| 2a 2a 2a 2a 2a 2e 2e 2e | 0a 58 09 50 4f 49 4e 54 |*****...|.X.POINT|
|00004e80| 45 52 20 20 20 20 20 46 | 49 4c 45 20 20 57 48 45 |ER F|ILE WHE|
|00004e90| 52 45 20 20 20 20 20 20 | 20 20 20 4c 49 4e 45 20 |RE | LINE |
|00004ea0| 20 20 20 20 20 41 4c 4c | 4f 43 20 20 20 20 20 20 | ALL|OC |
|00004eb0| 20 20 44 41 54 41 20 20 | 20 20 20 48 45 2e 2e 2e | DATA | HE...|
|00004ec0| 0a 58 09 54 4f 20 44 41 | 54 41 20 20 20 20 20 20 |.X.TO DA|TA |
|00004ed0| 41 4c 4c 4f 43 41 54 45 | 44 20 20 20 20 20 20 20 |ALLOCATE|D |
|00004ee0| 20 20 4e 55 4d 42 45 52 | 20 20 20 20 20 46 55 4e | NUMBER| FUN|
|00004ef0| 43 54 20 20 20 20 20 20 | 20 4c 45 4e 47 54 48 20 |CT | LENGTH |
|00004f00| 20 4f 46 20 42 2e 2e 2e | 0a 58 09 2d 2d 2d 2d 2d | OF B...|.X.-----|
|00004f10| 2d 2d 2d 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--- ----|--------|
|00004f20| 2d 2d 2d 2d 2d 2d 2d 2d | 20 2d 2d 2d 2d 2d 2d 2d |--------| -------|
|00004f30| 20 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 20 | -------|------- |
|00004f40| 2d 2d 2d 2d 2d 2d 2d 20 | 2d 2d 2d 2d 2d 2e 2e 2e |------- |-----...|
|00004f50| 0a 58 09 30 78 34 30 34 | 44 39 34 20 74 65 73 74 |.X.0x404|D94 test|
|00004f60| 73 74 61 63 6b 2e 63 20 | 20 20 20 20 20 20 20 20 |stack.c | |
|00004f70| 20 20 20 20 20 20 32 39 | 20 6d 61 6c 6c 6f 63 28 | 29| malloc(|
|00004f80| 32 29 20 20 20 20 20 20 | 20 20 20 20 20 31 30 20 |2) | 10 |
|00004f90| 30 31 30 31 30 2e 2e 2e | 0a 58 09 09 20 2d 3e 20 |01010...|.X.. -> |
|00004fa0| 6d 61 69 6e 28 29 20 69 | 6e 20 74 65 73 74 73 74 |main() i|n testst|
|00004fb0| 61 63 6b 2e 63 28 32 37 | 29 0a 58 09 30 78 34 30 |ack.c(27|).X.0x40|
|00004fc0| 34 44 45 38 20 74 65 73 | 74 73 74 61 63 6b 2e 63 |4DE8 tes|tstack.c|
|00004fd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 34 | | 4|
|00004fe0| 38 20 6d 61 6c 6c 6f 63 | 28 33 29 20 20 20 20 20 |8 malloc|(3) |
|00004ff0| 20 20 20 20 20 20 20 30 | 20 20 20 20 20 20 20 20 | 0| |
|00005000| 0a 58 09 09 20 2d 3e 20 | 73 75 62 31 28 29 20 69 |.X.. -> |sub1() i|
|00005010| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 28 34 36 |n testst|ack.c(46|
|00005020| 29 0a 58 09 09 20 2d 3e | 20 6d 61 69 6e 28 29 20 |).X.. ->| main() |
|00005030| 69 6e 20 74 65 73 74 73 | 74 61 63 6b 2e 63 28 32 |in tests|tack.c(2|
|00005040| 37 29 0a 58 09 30 78 34 | 30 34 45 33 34 20 74 65 |7).X.0x4|04E34 te|
|00005050| 73 74 73 74 61 63 6b 2e | 63 20 20 20 20 20 20 20 |ststack.|c |
|00005060| 20 20 20 20 20 20 20 20 | 36 37 20 6d 61 6c 6c 6f | |67 mallo|
|00005070| 63 28 34 29 20 20 20 20 | 20 20 20 20 20 20 20 20 |c(4) | |
|00005080| 30 20 20 20 20 20 20 20 | 0a 58 09 09 20 2d 3e 20 |0 |.X.. -> |
|00005090| 73 75 62 32 28 29 20 69 | 6e 20 74 65 73 74 73 74 |sub2() i|n testst|
|000050a0| 61 63 6b 2e 63 28 36 35 | 29 0a 58 09 09 20 2d 3e |ack.c(65|).X.. ->|
|000050b0| 20 73 75 62 31 28 29 20 | 69 6e 20 74 65 73 74 73 | sub1() |in tests|
|000050c0| 74 61 63 6b 2e 63 28 34 | 36 29 0a 58 09 09 20 2d |tack.c(4|6).X.. -|
|000050d0| 3e 20 6d 61 69 6e 28 29 | 20 69 6e 20 74 65 73 74 |> main()| in test|
|000050e0| 73 74 61 63 6b 2e 63 28 | 32 37 29 0a 58 09 30 78 |stack.c(|27).X.0x|
|000050f0| 34 30 34 45 38 30 20 74 | 65 73 74 73 74 61 63 6b |404E80 t|eststack|
|00005100| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00005110| 20 38 32 20 6d 61 6c 6c | 6f 63 28 35 29 20 20 20 | 82 mall|oc(5) |
|00005120| 20 20 20 20 20 20 20 20 | 20 31 20 33 31 20 20 20 | | 1 31 |
|00005130| 0a 58 09 09 20 2d 3e 20 | 73 75 62 33 28 29 20 69 |.X.. -> |sub3() i|
|00005140| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 28 38 30 |n testst|ack.c(80|
|00005150| 29 0a 58 09 09 20 2d 3e | 20 73 75 62 32 28 29 20 |).X.. ->| sub2() |
|00005160| 69 6e 20 74 65 73 74 73 | 74 61 63 6b 2e 63 28 36 |in tests|tack.c(6|
|00005170| 35 29 0a 58 09 09 20 2d | 3e 20 73 75 62 31 28 29 |5).X.. -|> sub1()|
|00005180| 20 69 6e 20 74 65 73 74 | 73 74 61 63 6b 2e 63 28 | in test|stack.c(|
|00005190| 34 36 29 0a 58 09 09 20 | 2d 3e 20 6d 61 69 6e 28 |46).X.. |-> main(|
|000051a0| 29 20 69 6e 20 74 65 73 | 74 73 74 61 63 6b 2e 63 |) in tes|tstack.c|
|000051b0| 28 32 37 29 0a 58 09 30 | 78 34 30 34 45 43 43 20 |(27).X.0|x404ECC |
|000051c0| 74 65 73 74 73 74 61 63 | 6b 2e 63 20 20 20 20 20 |teststac|k.c |
|000051d0| 20 20 20 20 20 20 20 20 | 20 20 37 31 20 6d 61 6c | | 71 mal|
|000051e0| 6c 6f 63 28 36 29 20 20 | 20 20 20 20 20 20 20 20 |loc(6) | |
|000051f0| 20 31 30 20 30 31 30 31 | 30 2e 2e 2e 0a 58 09 09 | 10 0101|0....X..|
|00005200| 20 2d 3e 20 73 75 62 32 | 28 29 20 69 6e 20 74 65 | -> sub2|() in te|
|00005210| 73 74 73 74 61 63 6b 2e | 63 28 36 35 29 0a 58 09 |ststack.|c(65).X.|
|00005220| 09 20 2d 3e 20 73 75 62 | 31 28 29 20 69 6e 20 74 |. -> sub|1() in t|
|00005230| 65 73 74 73 74 61 63 6b | 2e 63 28 34 36 29 0a 58 |eststack|.c(46).X|
|00005240| 09 09 20 2d 3e 20 6d 61 | 69 6e 28 29 20 69 6e 20 |.. -> ma|in() in |
|00005250| 74 65 73 74 73 74 61 63 | 6b 2e 63 28 32 37 29 0a |teststac|k.c(27).|
|00005260| 58 09 30 78 34 30 34 46 | 32 30 20 74 65 73 74 73 |X.0x404F|20 tests|
|00005270| 74 61 63 6b 2e 63 20 20 | 20 20 20 20 20 20 20 20 |tack.c | |
|00005280| 20 20 20 20 20 38 32 20 | 6d 61 6c 6c 6f 63 28 37 | 82 |malloc(7|
|00005290| 29 20 20 20 20 20 20 20 | 20 20 20 20 20 31 20 33 |) | 1 3|
|000052a0| 31 20 20 0a 58 09 09 20 | 2d 3e 20 73 75 62 33 28 |1 .X.. |-> sub3(|
|000052b0| 29 20 69 6e 20 74 65 73 | 74 73 74 61 63 6b 2e 63 |) in tes|tstack.c|
|000052c0| 28 38 30 29 0a 58 09 09 | 20 2d 3e 20 73 75 62 31 |(80).X..| -> sub1|
|000052d0| 28 29 20 69 6e 20 74 65 | 73 74 73 74 61 63 6b 2e |() in te|ststack.|
|000052e0| 63 28 34 36 29 0a 58 09 | 09 20 2d 3e 20 6d 61 69 |c(46).X.|. -> mai|
|000052f0| 6e 28 29 20 69 6e 20 74 | 65 73 74 73 74 61 63 6b |n() in t|eststack|
|00005300| 2e 63 28 32 37 29 0a 58 | 09 30 78 34 30 34 46 36 |.c(27).X|.0x404F6|
|00005310| 43 20 74 65 73 74 73 74 | 61 63 6b 2e 63 20 20 20 |C testst|ack.c |
|00005320| 20 20 20 20 20 20 20 20 | 20 20 20 20 36 37 20 6d | | 67 m|
|00005330| 61 6c 6c 6f 63 28 38 29 | 20 20 20 20 20 20 20 20 |alloc(8)| |
|00005340| 20 20 20 20 30 20 20 20 | 20 0a 58 09 09 20 2d 3e | 0 | .X.. ->|
|00005350| 20 73 75 62 32 28 29 20 | 69 6e 20 74 65 73 74 73 | sub2() |in tests|
|00005360| 74 61 63 6b 2e 63 28 36 | 35 29 0a 58 09 09 20 2d |tack.c(6|5).X.. -|
|00005370| 3e 20 73 75 62 31 28 29 | 20 69 6e 20 74 65 73 74 |> sub1()| in test|
|00005380| 73 74 61 63 6b 2e 63 28 | 34 36 29 0a 58 09 09 20 |stack.c(|46).X.. |
|00005390| 2d 3e 20 6d 61 69 6e 28 | 29 20 69 6e 20 74 65 73 |-> main(|) in tes|
|000053a0| 74 73 74 61 63 6b 2e 63 | 28 32 37 29 0a 58 09 30 |tstack.c|(27).X.0|
|000053b0| 78 34 30 34 46 42 38 20 | 74 65 73 74 73 74 61 63 |x404FB8 |teststac|
|000053c0| 6b 2e 63 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |k.c | |
|000053d0| 20 20 38 32 20 6d 61 6c | 6c 6f 63 28 39 29 20 20 | 82 mal|loc(9) |
|000053e0| 20 20 20 20 20 20 20 20 | 20 20 31 20 33 31 0a 58 | | 1 31.X|
|000053f0| 09 09 20 2d 3e 20 73 75 | 62 33 28 29 20 69 6e 20 |.. -> su|b3() in |
|00005400| 74 65 73 74 73 74 61 63 | 6b 2e 63 28 38 30 29 0a |teststac|k.c(80).|
|00005410| 58 09 09 20 2d 3e 20 73 | 75 62 32 28 29 20 69 6e |X.. -> s|ub2() in|
|00005420| 20 74 65 73 74 73 74 61 | 63 6b 2e 63 28 36 35 29 | teststa|ck.c(65)|
|00005430| 0a 58 09 09 20 2d 3e 20 | 73 75 62 31 28 29 20 69 |.X.. -> |sub1() i|
|00005440| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 28 34 36 |n testst|ack.c(46|
|00005450| 29 0a 58 09 09 20 2d 3e | 20 6d 61 69 6e 28 29 20 |).X.. ->| main() |
|00005460| 69 6e 20 74 65 73 74 73 | 74 61 63 6b 2e 63 28 32 |in tests|tack.c(2|
|00005470| 37 29 0a 58 09 30 78 34 | 30 35 30 30 34 20 74 65 |7).X.0x4|05004 te|
|00005480| 73 74 73 74 61 63 6b 2e | 63 20 20 20 20 20 20 20 |ststack.|c |
|00005490| 20 20 20 20 20 20 20 20 | 37 31 20 6d 61 6c 6c 6f | |71 mallo|
|000054a0| 63 28 31 30 29 20 20 20 | 20 20 20 20 20 20 20 31 |c(10) | 1|
|000054b0| 30 20 30 31 30 31 30 2e | 2e 2e 0a 58 09 09 20 2d |0 01010.|...X.. -|
|000054c0| 3e 20 73 75 62 32 28 29 | 20 69 6e 20 74 65 73 74 |> sub2()| in test|
|000054d0| 73 74 61 63 6b 2e 63 28 | 36 35 29 0a 58 09 09 20 |stack.c(|65).X.. |
|000054e0| 2d 3e 20 73 75 62 31 28 | 29 20 69 6e 20 74 65 73 |-> sub1(|) in tes|
|000054f0| 74 73 74 61 63 6b 2e 63 | 28 34 36 29 0a 58 09 09 |tstack.c|(46).X..|
|00005500| 20 2d 3e 20 6d 61 69 6e | 28 29 20 69 6e 20 74 65 | -> main|() in te|
|00005510| 73 74 73 74 61 63 6b 2e | 63 28 32 37 29 0a 58 09 |ststack.|c(27).X.|
|00005520| 30 78 34 30 35 30 35 38 | 20 74 65 73 74 73 74 61 |0x405058| teststa|
|00005530| 63 6b 2e 63 20 20 20 20 | 20 20 20 20 20 20 20 20 |ck.c | |
|00005540| 20 20 20 35 36 20 6d 61 | 6c 6c 6f 63 28 31 31 29 | 56 ma|lloc(11)|
|00005550| 20 20 20 20 20 20 20 20 | 20 20 31 30 20 30 31 30 | | 10 010|
|00005560| 31 30 2e 2e 2e 0a 58 09 | 09 20 2d 3e 20 73 75 62 |10....X.|. -> sub|
|00005570| 31 28 29 20 69 6e 20 74 | 65 73 74 73 74 61 63 6b |1() in t|eststack|
|00005580| 2e 63 28 34 36 29 0a 58 | 09 09 20 2d 3e 20 6d 61 |.c(46).X|.. -> ma|
|00005590| 69 6e 28 29 20 69 6e 20 | 74 65 73 74 73 74 61 63 |in() in |teststac|
|000055a0| 6b 2e 63 28 32 37 29 0a | 58 09 30 78 34 30 35 30 |k.c(27).|X.0x4050|
|000055b0| 41 43 20 74 65 73 74 73 | 74 61 63 6b 2e 63 20 20 |AC tests|tack.c |
|000055c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 36 37 20 | | 67 |
|000055d0| 6d 61 6c 6c 6f 63 28 31 | 32 29 20 20 20 20 20 20 |malloc(1|2) |
|000055e0| 20 20 20 20 20 30 20 20 | 20 0a 58 09 09 20 2d 3e | 0 | .X.. ->|
|000055f0| 20 73 75 62 32 28 29 20 | 69 6e 20 74 65 73 74 73 | sub2() |in tests|
|00005600| 74 61 63 6b 2e 63 28 36 | 35 29 0a 58 09 09 20 2d |tack.c(6|5).X.. -|
|00005610| 3e 20 6d 61 69 6e 28 29 | 20 69 6e 20 74 65 73 74 |> main()| in test|
|00005620| 73 74 61 63 6b 2e 63 28 | 32 37 29 0a 58 09 30 78 |stack.c(|27).X.0x|
|00005630| 34 30 35 30 46 38 20 74 | 65 73 74 73 74 61 63 6b |4050F8 t|eststack|
|00005640| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00005650| 20 38 32 20 6d 61 6c 6c | 6f 63 28 31 33 29 20 20 | 82 mall|oc(13) |
|00005660| 20 20 20 20 20 20 20 20 | 20 31 20 33 31 20 0a 58 | | 1 31 .X|
|00005670| 09 09 20 2d 3e 20 73 75 | 62 33 28 29 20 69 6e 20 |.. -> su|b3() in |
|00005680| 74 65 73 74 73 74 61 63 | 6b 2e 63 28 38 30 29 0a |teststac|k.c(80).|
|00005690| 58 09 09 20 2d 3e 20 73 | 75 62 32 28 29 20 69 6e |X.. -> s|ub2() in|
|000056a0| 20 74 65 73 74 73 74 61 | 63 6b 2e 63 28 36 35 29 | teststa|ck.c(65)|
|000056b0| 0a 58 09 09 20 2d 3e 20 | 6d 61 69 6e 28 29 20 69 |.X.. -> |main() i|
|000056c0| 6e 20 74 65 73 74 73 74 | 61 63 6b 2e 63 28 32 37 |n testst|ack.c(27|
|000056d0| 29 0a 58 09 30 78 34 30 | 35 31 34 34 20 74 65 73 |).X.0x40|5144 tes|
|000056e0| 74 73 74 61 63 6b 2e 63 | 20 20 20 20 20 20 20 20 |tstack.c| |
|000056f0| 20 20 20 20 20 20 20 37 | 31 20 6d 61 6c 6c 6f 63 | 7|1 malloc|
|00005700| 28 31 34 29 20 20 20 20 | 20 20 20 20 20 20 31 30 |(14) | 10|
|00005710| 20 30 31 30 31 30 2e 2e | 2e 0a 58 09 09 20 2d 3e | 01010..|..X.. ->|
|00005720| 20 73 75 62 32 28 29 20 | 69 6e 20 74 65 73 74 73 | sub2() |in tests|
|00005730| 74 61 63 6b 2e 63 28 36 | 35 29 0a 58 09 09 20 2d |tack.c(6|5).X.. -|
|00005740| 3e 20 6d 61 69 6e 28 29 | 20 69 6e 20 74 65 73 74 |> main()| in test|
|00005750| 73 74 61 63 6b 2e 63 28 | 32 37 29 0a 58 09 30 78 |stack.c(|27).X.0x|
|00005760| 34 30 35 31 39 38 20 74 | 65 73 74 73 74 61 63 6b |405198 t|eststack|
|00005770| 2e 63 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.c | |
|00005780| 20 38 32 20 6d 61 6c 6c | 6f 63 28 31 35 29 20 20 | 82 mall|oc(15) |
|00005790| 20 20 20 20 20 20 20 20 | 20 31 20 33 31 0a 58 09 | | 1 31.X.|
|000057a0| 09 20 2d 3e 20 73 75 62 | 33 28 29 20 69 6e 20 74 |. -> sub|3() in t|
|000057b0| 65 73 74 73 74 61 63 6b | 2e 63 28 38 30 29 0a 58 |eststack|.c(80).X|
|000057c0| 09 09 20 2d 3e 20 6d 61 | 69 6e 28 29 20 69 6e 20 |.. -> ma|in() in |
|000057d0| 74 65 73 74 73 74 61 63 | 6b 2e 63 28 32 37 29 0a |teststac|k.c(27).|
|000057e0| 58 0a 58 0a 58 54 68 65 | 20 69 74 65 6d 20 6f 66 |X.X.XThe| item of|
|000057f0| 20 69 6d 70 6f 72 74 61 | 6e 63 65 20 69 73 20 74 | importa|nce is t|
|00005800| 68 65 20 70 72 65 73 65 | 6e 63 65 20 6f 66 20 74 |he prese|nce of t|
|00005810| 68 65 20 73 74 61 63 6b | 20 69 6e 66 6f 72 6d 61 |he stack| informa|
|00005820| 74 69 6f 6e 20 6f 6e 20 | 74 68 65 0a 58 6c 69 6e |tion on |the.Xlin|
|00005830| 65 73 20 77 69 74 68 20 | 74 68 65 20 61 72 72 6f |es with |the arro|
|00005840| 77 73 20 28 2d 3e 29 2e | 0a 58 0a 45 4e 44 5f 4f |ws (->).|.X.END_O|
|00005850| 46 5f 46 49 4c 45 0a 69 | 66 20 74 65 73 74 20 32 |F_FILE.i|f test 2|
|00005860| 30 38 38 34 20 2d 6e 65 | 20 60 77 63 20 2d 63 20 |0884 -ne| `wc -c |
|00005870| 3c 27 52 45 41 44 4d 45 | 27 60 3b 20 74 68 65 6e |<'README|'`; then|
|00005880| 0a 20 20 20 20 65 63 68 | 6f 20 73 68 61 72 3a 20 |. ech|o shar: |
|00005890| 5c 22 27 52 45 41 44 4d | 45 27 5c 22 20 75 6e 70 |\"'READM|E'\" unp|
|000058a0| 61 63 6b 65 64 20 77 69 | 74 68 20 77 72 6f 6e 67 |acked wi|th wrong|
|000058b0| 20 73 69 7a 65 21 0a 66 | 69 0a 23 20 65 6e 64 20 | size!.f|i.# end |
|000058c0| 6f 66 20 27 52 45 41 44 | 4d 45 27 0a 66 69 0a 69 |of 'READ|ME'.fi.i|
|000058d0| 66 20 74 65 73 74 20 2d | 66 20 27 43 48 41 4e 47 |f test -|f 'CHANG|
|000058e0| 45 53 27 20 2d 61 20 22 | 24 7b 31 7d 22 20 21 3d |ES' -a "|${1}" !=|
|000058f0| 20 22 2d 63 22 20 3b 20 | 74 68 65 6e 20 0a 20 20 | "-c" ; |then . |
|00005900| 65 63 68 6f 20 73 68 61 | 72 3a 20 57 69 6c 6c 20 |echo sha|r: Will |
|00005910| 6e 6f 74 20 63 6c 6f 62 | 62 65 72 20 65 78 69 73 |not clob|ber exis|
|00005920| 74 69 6e 67 20 66 69 6c | 65 20 5c 22 27 43 48 41 |ting fil|e \"'CHA|
|00005930| 4e 47 45 53 27 5c 22 0a | 65 6c 73 65 0a 65 63 68 |NGES'\".|else.ech|
|00005940| 6f 20 73 68 61 72 3a 20 | 45 78 74 72 61 63 74 69 |o shar: |Extracti|
|00005950| 6e 67 20 5c 22 27 43 48 | 41 4e 47 45 53 27 5c 22 |ng \"'CH|ANGES'\"|
|00005960| 20 5c 28 31 35 30 35 32 | 20 63 68 61 72 61 63 74 | \(15052| charact|
|00005970| 65 72 73 5c 29 0a 73 65 | 64 20 22 73 2f 5e 58 2f |ers\).se|d "s/^X/|
|00005980| 2f 22 20 3e 27 43 48 41 | 4e 47 45 53 27 20 3c 3c |/" >'CHA|NGES' <<|
|00005990| 27 45 4e 44 5f 4f 46 5f | 46 49 4c 45 27 0a 58 24 |'END_OF_|FILE'.X$|
|000059a0| 49 64 3a 20 43 48 41 4e | 47 45 53 2c 76 20 31 2e |Id: CHAN|GES,v 1.|
|000059b0| 33 34 20 31 39 39 32 2f | 30 39 2f 30 33 20 32 32 |34 1992/|09/03 22|
|000059c0| 3a 32 34 3a 33 33 20 63 | 70 63 61 68 69 6c 20 45 |:24:33 c|pcahil E|
|000059d0| 78 70 20 24 0a 58 0a 58 | 70 61 74 63 68 6c 65 76 |xp $.X.X|patchlev|
|000059e0| 65 6c 20 31 34 0a 58 09 | 47 65 6e 65 72 61 6c 0a |el 14.X.|General.|
|000059f0| 58 09 09 2d 20 4d 61 6e | 79 20 63 6f 6e 66 69 67 |X..- Man|y config|
|00005a00| 75 72 61 74 69 6f 6e 20 | 63 68 61 6e 67 65 73 20 |uration |changes |
|00005a10| 66 72 6f 6d 20 4a 6f 6e | 61 74 68 61 6e 20 49 2e |from Jon|athan I.|
|00005a20| 20 4b 61 6d 65 6e 73 0a | 58 09 09 2d 20 61 64 64 | Kamens.|X..- add|
|00005a30| 65 64 20 63 6f 64 65 20 | 74 6f 20 73 75 70 70 6f |ed code |to suppo|
|00005a40| 72 74 20 62 65 74 74 65 | 72 20 72 65 61 6c 6c 6f |rt bette|r reallo|
|00005a50| 63 61 74 69 6f 6e 73 20 | 77 68 65 6e 20 6e 65 61 |cations |when nea|
|00005a60| 72 62 79 20 73 70 61 63 | 65 0a 58 09 09 20 20 69 |rby spac|e.X.. i|
|00005a70| 73 20 61 76 61 69 6c 61 | 62 6c 65 2e 0a 58 09 43 |s availa|ble..X.C|
|00005a80| 6f 6e 66 69 67 75 72 65 | 0a 58 09 09 2d 20 63 68 |onfigure|.X..- ch|
|00005a90| 61 6e 67 65 73 20 74 6f | 20 73 75 70 70 6f 72 74 |anges to| support|
|00005aa0| 20 6d 6f 72 65 20 73 79 | 73 74 65 6d 73 0a 58 09 | more sy|stems.X.|
|00005ab0| 66 69 6c 6c 2e 63 0a 58 | 09 09 2d 20 66 69 78 65 |fill.c.X|..- fixe|
|00005ac0| 64 20 62 75 67 20 74 68 | 61 74 20 63 61 75 73 65 |d bug th|at cause|
|00005ad0| 64 20 70 72 6f 62 6c 65 | 6d 20 77 68 65 6e 20 66 |d proble|m when f|
|00005ae0| 72 65 65 2d 66 69 6c 6c | 69 6e 67 20 77 61 73 20 |ree-fill|ing was |
|00005af0| 64 69 73 61 62 6c 65 64 | 0a 58 09 72 65 61 6c 6c |disabled|.X.reall|
|00005b00| 6f 63 2e 63 0a 58 09 09 | 2d 20 6e 6f 77 20 6c 6f |oc.c.X..|- now lo|
|00005b10| 6f 6b 73 20 66 6f 72 20 | 65 78 74 72 61 20 73 70 |oks for |extra sp|
|00005b20| 61 63 65 20 62 65 66 6f | 72 65 20 74 68 65 20 73 |ace befo|re the s|
|00005b30| 65 67 6d 65 6e 74 20 74 | 6f 20 62 65 20 72 65 61 |egment t|o be rea|
|00005b40| 6c 6c 6f 63 65 64 0a 58 | 09 09 2d 20 69 66 20 73 |lloced.X|..- if s|
|00005b50| 65 67 6d 65 6e 74 20 69 | 73 20 74 6f 20 62 65 20 |egment i|s to be |
|00005b60| 69 6e 63 72 65 61 73 65 | 64 20 61 6e 64 20 69 74 |increase|d and it|
|00005b70| 20 69 73 20 61 74 20 74 | 68 65 20 65 6e 64 20 6f | is at t|he end o|
|00005b80| 66 20 6d 65 6d 6f 72 79 | 2c 0a 58 09 09 20 20 6a |f memory|,.X.. j|
|00005b90| 75 73 74 20 73 62 72 6b | 20 65 78 74 72 61 20 72 |ust sbrk| extra r|
|00005ba0| 6f 6f 6d 20 6f 6e 74 6f | 20 74 68 65 20 61 72 72 |oom onto| the arr|
|00005bb0| 61 79 0a 58 09 6d 61 6c | 6c 6f 63 2e 63 20 0a 58 |ay.X.mal|loc.c .X|
|00005bc0| 09 09 2d 20 61 64 64 65 | 64 20 63 6f 64 65 20 74 |..- adde|d code t|
|00005bd0| 6f 20 73 75 70 70 6f 72 | 74 20 6a 6f 69 6e 69 6e |o suppor|t joinin|
|00005be0| 67 20 74 6f 20 70 72 65 | 76 69 6f 75 73 20 73 65 |g to pre|vious se|
|00005bf0| 67 6d 65 6e 74 0a 58 09 | 09 2d 20 61 64 64 65 64 |gment.X.|.- added|
|00005c00| 20 69 6e 69 74 69 61 6c | 69 7a 61 74 69 6f 6e 20 | initial|ization |
|00005c10| 6f 66 20 66 72 65 65 20 | 66 69 6c 65 20 70 6f 69 |of free |file poi|
|00005c20| 6e 74 65 72 0a 58 09 0a | 58 70 61 74 63 68 6c 65 |nter.X..|Xpatchle|
|00005c30| 76 65 6c 20 31 33 0a 58 | 09 2a 2a 2a 2a 2a 2a 49 |vel 13.X|.******I|
|00005c40| 4d 50 4f 52 54 41 4e 54 | 2a 2a 2a 2a 2a 2a 2a 0a |MPORTANT|*******.|
|00005c50| 58 09 09 2d 20 6d 61 6c | 6c 6f 63 5f 73 69 7a 65 |X..- mal|loc_size|
|00005c60| 28 29 20 66 75 6e 63 74 | 69 6f 6e 20 6e 61 6d 65 |() funct|ion name|
|00005c70| 20 63 68 61 6e 67 65 64 | 20 74 6f 20 6d 61 6c 6c | changed| to mall|
|00005c80| 6f 63 5f 69 6e 75 73 65 | 28 29 0a 58 09 09 2d 20 |oc_inuse|().X..- |
|00005c90| 6d 61 6c 6c 6f 70 74 28 | 29 20 66 75 6e 63 74 69 |mallopt(|) functi|
|00005ca0| 6f 6e 20 6e 61 6d 65 20 | 63 68 61 6e 67 65 64 20 |on name |changed |
|00005cb0| 74 6f 20 64 62 6d 61 6c | 6c 6f 70 74 28 29 0a 58 |to dbmal|lopt().X|
|00005cc0| 09 09 2d 20 6e 65 77 20 | 6d 61 6c 6c 6f 63 5f 73 |..- new |malloc_s|
|00005cd0| 69 7a 65 28 29 20 66 75 | 6e 63 74 69 6f 6e 20 77 |ize() fu|nction w|
|00005ce0| 69 74 68 20 64 69 66 66 | 65 72 65 6e 74 20 62 65 |ith diff|erent be|
|00005cf0| 68 61 76 69 6f 72 0a 58 | 09 09 2d 20 64 62 6d 61 |havior.X|..- dbma|
|00005d00| 6c 6c 6f 70 74 28 29 20 | 6e 6f 77 20 74 61 6b 65 |llopt() |now take|
|00005d10| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 74 |s a poin|ter to t|
|00005d20| 68 65 20 75 6e 69 6f 6e | 0a 58 09 43 6f 6e 66 69 |he union|.X.Confi|
|00005d30| 67 75 72 65 0a 58 09 09 | 2d 20 61 64 64 65 64 20 |gure.X..|- added |
|00005d40| 63 68 65 63 6b 20 74 6f | 20 75 73 65 20 73 74 72 |check to| use str|
|00005d50| 69 6e 67 2e 68 20 69 6e | 73 74 65 61 64 20 6f 66 |ing.h in|stead of|
|00005d60| 20 6d 65 6d 6f 72 79 2e | 68 0a 58 09 09 2d 20 63 | memory.|h.X..- c|
|00005d70| 68 61 6e 67 65 64 20 63 | 6f 64 65 20 74 6f 20 67 |hanged c|ode to g|
|00005d80| 75 65 73 73 20 61 74 20 | 73 65 74 74 69 6e 67 73 |uess at |settings|
|00005d90| 20 77 68 65 6e 20 74 68 | 65 79 20 63 6f 75 6c 64 | when th|ey could|
|00005da0| 6e 27 74 20 0a 58 09 09 | 20 20 62 65 20 64 65 74 |n't .X..| be det|
|00005db0| 65 72 6d 69 6e 65 64 0a | 58 09 09 2d 20 61 64 64 |ermined.|X..- add|
|00005dc0| 65 64 20 61 62 69 6c 69 | 74 79 20 74 6f 20 62 79 |ed abili|ty to by|
|00005dd0| 70 61 73 73 20 63 6f 6d | 70 69 6c 65 72 73 20 74 |pass com|pilers t|
|00005de0| 68 61 74 20 63 6f 75 6c | 64 6e 27 74 20 6d 61 6b |hat coul|dn't mak|
|00005df0| 65 0a 58 09 09 20 20 65 | 78 65 63 75 74 61 62 6c |e.X.. e|xecutabl|
|00005e00| 65 73 20 28 66 72 65 71 | 20 63 61 73 65 20 77 69 |es (freq| case wi|
|00005e10| 74 68 20 67 2b 2b 20 69 | 66 20 6c 69 62 67 2b 2b |th g++ i|f libg++|
|00005e20| 20 69 73 6e 27 74 20 61 | 76 61 69 6c 61 62 6c 65 | isn't a|vailable|
|00005e30| 29 0a 58 09 09 2d 20 61 | 64 64 65 64 20 41 53 4d |).X..- a|dded ASM|
|00005e40| 20 63 68 65 63 6b 73 20 | 66 6f 72 20 6f 6c 64 65 | checks |for olde|
|00005e50| 72 20 33 38 36 20 61 73 | 73 65 6d 62 6c 65 72 73 |r 386 as|semblers|
|00005e60| 0a 58 09 4d 61 6b 65 66 | 69 6c 65 0a 58 09 09 2d |.X.Makef|ile.X..-|
|00005e70| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 6e 65 77 20 | documen|ted new |
|00005e80| 55 53 45 5f 4e 4c 53 20 | 64 65 66 69 6e 69 74 69 |USE_NLS |definiti|
|00005e90| 6f 6e 0a 58 09 09 2d 20 | 6e 65 77 20 6d 65 6d 61 |on.X..- |new mema|
|00005ea0| 6c 69 67 6e 20 73 6f 75 | 72 63 65 2f 6f 62 6a 65 |lign sou|rce/obje|
|00005eb0| 63 74 0a 58 09 50 52 4f | 42 4c 45 4d 53 0a 58 09 |ct.X.PRO|BLEMS.X.|
|00005ec0| 09 2d 20 75 70 64 61 74 | 65 64 20 64 65 73 63 72 |.- updat|ed descr|
|00005ed0| 69 70 74 69 6f 6e 73 20 | 6f 66 20 70 61 72 61 6d |iptions |of param|
|00005ee0| 65 74 65 72 20 73 65 74 | 74 69 6e 67 73 0a 58 09 |eter set|tings.X.|
|00005ef0| 61 62 6f 72 74 2e 63 0a | 58 09 09 2d 20 6e 65 77 |abort.c.|X..- new|
|00005f00| 20 66 69 6c 65 20 63 6f | 6e 74 61 69 6e 69 6e 67 | file co|ntaining|
|00005f10| 20 6d 61 6c 6c 6f 63 5f | 61 62 6f 72 74 20 66 75 | malloc_|abort fu|
|00005f20| 6e 63 74 69 6f 6e 2e 0a | 58 09 63 63 74 65 73 74 |nction..|X.cctest|
|00005f30| 2e 63 0a 58 09 09 2d 20 | 61 64 64 65 64 20 73 75 |.c.X..- |added su|
|00005f40| 70 70 6f 72 74 20 66 6f | 72 20 6f 76 65 72 72 69 |pport fo|r overri|
|00005f50| 64 69 6e 67 20 69 6e 63 | 6c 75 73 69 6f 6e 20 6f |ding inc|lusion o|
|00005f60| 66 20 6d 65 6d 6f 72 79 | 2e 68 0a 58 09 64 61 74 |f memory|.h.X.dat|
|00005f70| 61 6d 63 2e 63 0a 58 09 | 09 2d 20 61 73 6d 20 63 |amc.c.X.|.- asm c|
|00005f80| 68 61 6e 67 65 73 20 66 | 6f 72 20 6f 6c 64 20 49 |hanges f|or old I|
|00005f90| 53 43 20 61 73 73 65 6d | 62 6c 65 72 0a 58 09 66 |SC assem|bler.X.f|
|00005fa0| 72 65 65 2e 63 20 0a 58 | 09 09 2d 20 61 64 64 65 |ree.c .X|..- adde|
|00005fb0| 64 20 77 61 72 6e 69 6e | 67 20 61 62 6f 75 74 20 |d warnin|g about |
|00005fc0| 66 72 65 65 69 6e 67 20 | 6d 61 72 6b 65 64 20 73 |freeing |marked s|
|00005fd0| 65 67 6d 65 6e 74 73 0a | 58 09 6c 65 61 6b 2e 63 |egments.|X.leak.c|
|00005fe0| 09 0a 58 09 09 2d 20 66 | 69 78 65 64 20 62 75 67 |..X..- f|ixed bug|
|00005ff0| 20 69 6e 20 6d 61 6c 6c | 6f 63 5f 73 69 7a 65 0a | in mall|oc_size.|
|00006000| 58 09 09 2d 20 63 68 61 | 6e 67 65 64 20 6e 61 6d |X..- cha|nged nam|
|00006010| 65 20 6f 66 20 6d 61 6c | 6c 6f 63 5f 73 69 7a 65 |e of mal|loc_size|
|00006020| 20 74 6f 20 6d 61 6c 6c | 6f 63 5f 69 6e 75 73 65 | to mall|oc_inuse|
|00006030| 20 73 69 6e 63 65 20 6d | 61 6c 6c 6f 63 5f 73 69 | since m|alloc_si|
|00006040| 7a 65 0a 58 09 09 20 20 | 63 6f 6c 6c 69 64 65 64 |ze.X.. |collided|
|00006050| 20 77 69 74 68 20 66 75 | 6e 74 69 6f 6e 20 6f 66 | with fu|ntion of|
|00006060| 20 73 61 6d 65 20 6e 61 | 6d 65 20 6f 6e 20 74 68 | same na|me on th|
|00006070| 65 20 4e 65 58 54 2e 0a | 58 09 6d 61 6c 69 67 6e |e NeXT..|X.malign|
|00006080| 2e 63 0a 58 09 09 2d 20 | 6e 65 77 20 66 69 6c 65 |.c.X..- |new file|
|00006090| 0a 58 09 09 2d 20 73 75 | 70 70 6f 72 74 20 66 75 |.X..- su|pport fu|
|000060a0| 6e 63 74 69 6f 6e 73 20 | 66 6f 72 20 61 6c 69 67 |nctions |for alig|
|000060b0| 6e 65 64 20 61 6c 6c 6f | 63 61 74 69 6f 6e 73 20 |ned allo|cations |
|000060c0| 28 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 |(compati|ble with|
|000060d0| 0a 58 09 09 20 20 53 56 | 52 34 20 6d 65 6d 61 6c |.X.. SV|R4 memal|
|000060e0| 69 67 6e 28 33 29 29 0a | 58 09 6d 61 6c 6c 6f 63 |ign(3)).|X.malloc|
|000060f0| 2e 33 0a 58 09 09 2d 20 | 63 68 61 6e 67 65 64 20 |.3.X..- |changed |
|00006100| 72 65 66 65 72 65 6e 63 | 65 73 20 74 6f 20 6d 61 |referenc|es to ma|
|00006110| 6c 6c 6f 63 5f 73 69 7a | 65 20 74 6f 20 6d 61 6c |lloc_siz|e to mal|
|00006120| 6c 6f 63 5f 69 6e 75 73 | 65 2e 0a 58 09 09 2d 20 |loc_inus|e..X..- |
|00006130| 72 65 6d 6f 76 65 64 20 | 76 61 6c 75 65 73 20 66 |removed |values f|
|00006140| 72 6f 6d 20 64 69 73 63 | 75 73 73 69 6f 6e 73 20 |rom disc|ussions |
|00006150| 6f 6e 20 23 64 65 66 69 | 6e 65 73 0a 58 09 09 2d |on #defi|nes.X..-|
|00006160| 20 63 68 61 6e 67 65 64 | 20 6d 61 6c 6c 6f 70 74 | changed| mallopt|
|00006170| 20 72 65 66 65 72 65 6e | 63 65 73 20 74 6f 20 64 | referen|ces to d|
|00006180| 62 6d 61 6c 6c 6f 70 74 | 0a 58 09 09 2d 20 61 64 |bmallopt|.X..- ad|
|00006190| 64 65 64 20 64 65 73 63 | 72 69 70 74 69 6f 6e 73 |ded desc|riptions|
|000061a0| 20 6f 66 20 74 68 65 20 | 64 65 66 61 75 6c 74 20 | of the |default |
|000061b0| 73 65 74 74 69 6e 67 73 | 20 66 6f 72 20 6f 70 74 |settings| for opt|
|000061c0| 69 6f 6e 73 0a 58 09 09 | 2d 20 61 64 64 65 64 20 |ions.X..|- added |
|000061d0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 6f 66 20 66 |descript|ion of f|
|000061e0| 72 65 65 6d 61 72 6b 20 | 6f 70 74 69 6f 6e 0a 58 |reemark |option.X|
|000061f0| 09 6d 61 6c 6c 6f 63 2e | 63 0a 58 09 09 2d 20 63 |.malloc.|c.X..- c|
|00006200| 68 61 6e 67 65 64 20 74 | 6f 20 63 61 6c 6c 20 6d |hanged t|o call m|
|00006210| 61 6c 6c 6f 63 5f 61 62 | 6f 72 74 0a 58 09 09 2d |alloc_ab|ort.X..-|
|00006220| 20 61 64 64 65 64 20 73 | 75 70 70 6f 72 74 20 66 | added s|upport f|
|00006230| 6f 72 20 6e 65 77 20 6f | 70 74 69 6f 6e 73 0a 58 |or new o|ptions.X|
|00006240| 09 09 2d 20 61 64 64 65 | 64 20 63 68 65 63 6b 20 |..- adde|d check |
|00006250| 66 6f 72 20 7a 65 72 6f | 20 62 79 74 65 20 61 6c |for zero| byte al|
|00006260| 6c 6f 63 61 74 69 6f 6e | 73 0a 58 09 6d 61 6c 6c |location|s.X.mall|
|00006270| 6f 63 2e 68 2e 6f 72 67 | 0a 58 09 09 2d 20 63 68 |oc.h.org|.X..- ch|
|00006280| 61 6e 67 65 64 20 72 65 | 66 65 72 65 6e 63 65 73 |anged re|ferences|
|00006290| 20 74 6f 20 6d 61 6c 6c | 6f 63 5f 73 69 7a 65 20 | to mall|oc_size |
|000062a0| 74 6f 20 6d 61 6c 6c 6f | 63 5f 69 6e 75 73 65 2e |to mallo|c_inuse.|
|000062b0| 0a 58 09 09 2d 20 63 68 | 61 6e 67 65 64 20 6d 61 |.X..- ch|anged ma|
|000062c0| 6c 6c 6f 70 74 20 72 65 | 66 65 72 65 6e 63 65 73 |llopt re|ferences|
|000062d0| 20 74 6f 20 64 62 6d 61 | 6c 6c 6f 70 74 0a 58 09 | to dbma|llopt.X.|
|000062e0| 09 2d 20 61 64 64 65 64 | 20 64 65 66 69 6e 69 74 |.- added| definit|
|000062f0| 69 6f 6e 73 20 66 6f 72 | 20 6d 61 6c 6c 6f 63 5f |ions for| malloc_|
|00006300| 6d 61 72 6b 20 61 6e 64 | 20 6e 65 77 20 6d 61 6c |mark and| new mal|
|00006310| 6c 6f 63 5f 73 69 7a 65 | 0a 58 09 6d 61 6c 6c 6f |loc_size|.X.mallo|
|00006320| 70 74 2e 63 0a 58 09 09 | 2d 20 63 68 61 6e 67 65 |pt.c.X..|- change|
|00006330| 64 20 6d 61 6c 6c 6f 70 | 74 20 74 6f 20 64 62 6d |d mallop|t to dbm|
|00006340| 61 6c 6c 6f 70 74 0a 58 | 09 09 2d 20 61 64 64 65 |allopt.X|..- adde|
|00006350| 64 20 73 75 70 70 6f 72 | 74 20 66 6f 72 20 66 72 |d suppor|t for fr|
|00006360| 65 65 6d 61 72 6b 20 6f | 70 74 69 6f 6e 0a 58 09 |eemark o|ption.X.|
|00006370| 72 65 61 6c 6c 6f 63 2e | 63 0a 58 09 09 2d 20 61 |realloc.|c.X..- a|
|00006380| 64 64 65 64 20 63 6f 64 | 65 20 74 6f 20 6d 61 6b |dded cod|e to mak|
|00006390| 65 20 73 75 72 65 20 6d | 61 72 6b 65 64 20 73 65 |e sure m|arked se|
|000063a0| 67 6d 65 6e 74 20 73 74 | 61 79 73 20 6d 61 72 6b |gment st|ays mark|
|000063b0| 65 64 2e 0a 58 09 73 69 | 7a 65 2e 63 0a 58 09 09 |ed..X.si|ze.c.X..|
|000063c0| 2d 20 6e 65 77 20 6d 61 | 6c 6c 6f 63 5f 73 69 7a |- new ma|lloc_siz|
|000063d0| 65 20 66 75 6e 63 74 69 | 6f 6e 0a 58 09 73 74 72 |e functi|on.X.str|
|000063e0| 69 6e 67 2e 63 0a 58 09 | 09 2d 20 66 69 78 65 64 |ing.c.X.|.- fixed|
|000063f0| 20 43 6f 6d 70 61 72 65 | 55 70 70 65 72 20 6d 61 | Compare|Upper ma|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.