1
$ ./xbt/mmalloc_test --log=root.fmt:%m%n
2
> Allocating a new heap
4
> 100 bytes allocated with offset 55000
5
> 200 bytes allocated with offset 56000
6
> 300 bytes allocated with offset 57000
7
> 400 bytes allocated with offset 57200
8
> 500 bytes allocated with offset 57400
9
> 600 bytes allocated with offset 58000
10
> 700 bytes allocated with offset 58400
11
> 800 bytes allocated with offset 58800
12
> 900 bytes allocated with offset 58c00
13
> 1000 bytes allocated with offset 59000
14
> 1100 bytes allocated with offset 5a000
15
> 1200 bytes allocated with offset 5a800
16
> 1300 bytes allocated with offset 5b000
17
> 1400 bytes allocated with offset 5b800
18
> 1500 bytes allocated with offset 5c000
19
> 1600 bytes allocated with offset 5c800
20
> 1700 bytes allocated with offset 5d000
21
> 1800 bytes allocated with offset 5d800
22
> 1900 bytes allocated with offset 5e000
23
> 2000 bytes allocated with offset 5e800
24
> 2100 bytes allocated with offset 5f000
25
> 2200 bytes allocated with offset 60000
26
> 2300 bytes allocated with offset 61000
27
> 2400 bytes allocated with offset 62000
28
> 2500 bytes allocated with offset 63000
29
> 2600 bytes allocated with offset 64000
30
> 2700 bytes allocated with offset 65000
31
> 2800 bytes allocated with offset 66000
32
> 2900 bytes allocated with offset 67000
33
> 3000 bytes allocated with offset 68000
34
> 3100 bytes allocated with offset 69000
35
> 3200 bytes allocated with offset 6a000
36
> 3300 bytes allocated with offset 6b000
37
> 3400 bytes allocated with offset 6c000
38
> 3500 bytes allocated with offset 6d000
39
> 3600 bytes allocated with offset 6e000
40
> 3700 bytes allocated with offset 6f000
41
> 3800 bytes allocated with offset 70000
42
> 3900 bytes allocated with offset 71000
43
> 4000 bytes allocated with offset 72000
44
> 4100 bytes allocated with offset 73000
45
> 4200 bytes allocated with offset 75000
46
> 4300 bytes allocated with offset 77000
47
> 4400 bytes allocated with offset 79000
48
> 4500 bytes allocated with offset 7b000
49
> 4600 bytes allocated with offset 7d000
50
> 4700 bytes allocated with offset 7f000
51
> 4800 bytes allocated with offset 81000
52
> 4900 bytes allocated with offset 83000
53
> 5000 bytes allocated with offset 85000
54
> 100 bytes allocated with offset 55080
55
> 200 bytes allocated with offset 56100
56
> 300 bytes allocated with offset 57600
57
> 400 bytes allocated with offset 57800
58
> 500 bytes allocated with offset 57a00
59
> 600 bytes allocated with offset 59400
60
> 700 bytes allocated with offset 59800
61
> 800 bytes allocated with offset 59c00
62
> 900 bytes allocated with offset 87000
63
> 1000 bytes allocated with offset 87400
64
> 1100 bytes allocated with offset 88000
65
> 1200 bytes allocated with offset 88800
66
> 1300 bytes allocated with offset 89000
67
> 1400 bytes allocated with offset 89800
68
> 1500 bytes allocated with offset 8a000
69
> 1600 bytes allocated with offset 8a800
70
> 1700 bytes allocated with offset 8b000
71
> 1800 bytes allocated with offset 8b800
72
> 1900 bytes allocated with offset 8c000
73
> 2000 bytes allocated with offset 8c800
74
> 2100 bytes allocated with offset 8d000
75
> 2200 bytes allocated with offset 8e000
76
> 2300 bytes allocated with offset 8f000
77
> 2400 bytes allocated with offset 90000
78
> 2500 bytes allocated with offset 91000
79
> 2600 bytes allocated with offset 92000
80
> 2700 bytes allocated with offset 93000
81
> 2800 bytes allocated with offset 94000
82
> 2900 bytes allocated with offset 95000
83
> 3000 bytes allocated with offset 96000
84
> 3100 bytes allocated with offset 97000
85
> 3200 bytes allocated with offset 98000
86
> 3300 bytes allocated with offset 99000
87
> 3400 bytes allocated with offset 9a000
88
> 3500 bytes allocated with offset 9b000
89
> 3600 bytes allocated with offset 9c000
90
> 3700 bytes allocated with offset 9d000
91
> 3800 bytes allocated with offset 9e000
92
> 3900 bytes allocated with offset 9f000
93
> 4000 bytes allocated with offset a0000
94
> 4100 bytes allocated with offset a1000
95
> 4200 bytes allocated with offset a3000
96
> 4300 bytes allocated with offset a5000
97
> 4400 bytes allocated with offset a7000
98
> 4500 bytes allocated with offset a9000
99
> 4600 bytes allocated with offset ab000
100
> 4700 bytes allocated with offset ad000
101
> 4800 bytes allocated with offset af000
102
> 4900 bytes allocated with offset b1000
103
> 5000 bytes allocated with offset b3000
104
> All blocks were correctly allocated. Free every second block
105
> Memset every second block to zero (yeah, they are not currently allocated :)
106
> Re-allocate every second block
107
> free all blocks (each one twice, to check that double free are correctly catched)
108
> free again all blocks (to really check that double free are correctly catched)
109
> Damnit, I cannot break mmalloc this time. That's SO disappointing.