1<?xml version="1.0"?> 2 3<valgrindoutput> 4 5<protocolversion>4</protocolversion> 6<protocoltool>memcheck</protocoltool> 7 8<preamble> 9 <line>...</line> 10 <line>...</line> 11 <line>...</line> 12 <line>...</line> 13</preamble> 14 15<pid>...</pid> 16<ppid>...</ppid> 17<tool>memcheck</tool> 18 19<args> 20 <vargv>...</vargv> 21 <argv> 22 <exe>./threadname</exe> 23 </argv> 24</args> 25 26<status> 27 <state>RUNNING</state> 28 <time>...</time> 29</status> 30 31<error> 32 <unique>0x........</unique> 33 <tid>...</tid> 34 <kind>InvalidWrite</kind> 35 <what>Invalid write of size 1</what> 36 <stack> 37 <frame> 38 <ip>0x........</ip> 39 <obj>...</obj> 40 <fn>bad_things</fn> 41 <dir>...</dir> 42 <file>threadname.c</file> 43 <line>...</line> 44 </frame> 45 <frame> 46 <ip>0x........</ip> 47 <obj>...</obj> 48 <fn>main</fn> 49 <dir>...</dir> 50 <file>threadname.c</file> 51 <line>...</line> 52 </frame> 53 </stack> 54 <auxwhat>Address 0x........ is 0 bytes after a block of size 1 alloc'd</auxwhat> 55 <stack> 56 <frame> 57 <ip>0x........</ip> 58 <obj>...</obj> 59 <fn>malloc</fn> 60 <dir>...</dir> 61 <file>vg_replace_malloc.c</file> 62 <line>...</line> 63 </frame> 64 <frame> 65 <ip>0x........</ip> 66 <obj>...</obj> 67 <fn>bad_things</fn> 68 <dir>...</dir> 69 <file>threadname.c</file> 70 <line>...</line> 71 </frame> 72 <frame> 73 <ip>0x........</ip> 74 <obj>...</obj> 75 <fn>main</fn> 76 <dir>...</dir> 77 <file>threadname.c</file> 78 <line>...</line> 79 </frame> 80 </stack> 81</error> 82 83<error> 84 <unique>0x........</unique> 85 <tid>...</tid> 86 <kind>InvalidWrite</kind> 87 <what>Invalid write of size 1</what> 88 <stack> 89 <frame> 90 <ip>0x........</ip> 91 <obj>...</obj> 92 <fn>bad_things</fn> 93 <dir>...</dir> 94 <file>threadname.c</file> 95 <line>...</line> 96 </frame> 97 <frame> 98 <ip>0x........</ip> 99 <obj>...</obj> 100 <fn>child_fn_0</fn> 101 <dir>...</dir> 102 <file>threadname.c</file> 103 <line>...</line> 104 </frame> 105 </stack> 106 <auxwhat>Address 0x........ is 0 bytes after a block of size 2 alloc'd</auxwhat> 107 <stack> 108 <frame> 109 <ip>0x........</ip> 110 <obj>...</obj> 111 <fn>malloc</fn> 112 <dir>...</dir> 113 <file>vg_replace_malloc.c</file> 114 <line>...</line> 115 </frame> 116 <frame> 117 <ip>0x........</ip> 118 <obj>...</obj> 119 <fn>bad_things</fn> 120 <dir>...</dir> 121 <file>threadname.c</file> 122 <line>...</line> 123 </frame> 124 <frame> 125 <ip>0x........</ip> 126 <obj>...</obj> 127 <fn>child_fn_0</fn> 128 <dir>...</dir> 129 <file>threadname.c</file> 130 <line>...</line> 131 </frame> 132 </stack> 133</error> 134 135<error> 136 <unique>0x........</unique> 137 <tid>...</tid> 138 <threadname>try1</threadname> 139 <kind>InvalidWrite</kind> 140 <what>Invalid write of size 1</what> 141 <stack> 142 <frame> 143 <ip>0x........</ip> 144 <obj>...</obj> 145 <fn>bad_things</fn> 146 <dir>...</dir> 147 <file>threadname.c</file> 148 <line>...</line> 149 </frame> 150 <frame> 151 <ip>0x........</ip> 152 <obj>...</obj> 153 <fn>child_fn_1</fn> 154 <dir>...</dir> 155 <file>threadname.c</file> 156 <line>...</line> 157 </frame> 158 </stack> 159 <auxwhat>Address 0x........ is 0 bytes after a block of size 3 alloc'd</auxwhat> 160 <stack> 161 <frame> 162 <ip>0x........</ip> 163 <obj>...</obj> 164 <fn>malloc</fn> 165 <dir>...</dir> 166 <file>vg_replace_malloc.c</file> 167 <line>...</line> 168 </frame> 169 <frame> 170 <ip>0x........</ip> 171 <obj>...</obj> 172 <fn>bad_things</fn> 173 <dir>...</dir> 174 <file>threadname.c</file> 175 <line>...</line> 176 </frame> 177 <frame> 178 <ip>0x........</ip> 179 <obj>...</obj> 180 <fn>child_fn_1</fn> 181 <dir>...</dir> 182 <file>threadname.c</file> 183 <line>...</line> 184 </frame> 185 </stack> 186</error> 187 188<clientmsg> 189 <tid>...</tid> 190 <threadname>try1</threadname> 191 <text>I am in child_fn_1 192 </text> 193</clientmsg> 194<error> 195 <unique>0x........</unique> 196 <tid>...</tid> 197 <threadname>012345678901234</threadname> 198 <kind>InvalidWrite</kind> 199 <what>Invalid write of size 1</what> 200 <stack> 201 <frame> 202 <ip>0x........</ip> 203 <obj>...</obj> 204 <fn>bad_things</fn> 205 <dir>...</dir> 206 <file>threadname.c</file> 207 <line>...</line> 208 </frame> 209 <frame> 210 <ip>0x........</ip> 211 <obj>...</obj> 212 <fn>child_fn_2</fn> 213 <dir>...</dir> 214 <file>threadname.c</file> 215 <line>...</line> 216 </frame> 217 </stack> 218 <auxwhat>Address 0x........ is 0 bytes after a block of size 4 alloc'd</auxwhat> 219 <stack> 220 <frame> 221 <ip>0x........</ip> 222 <obj>...</obj> 223 <fn>malloc</fn> 224 <dir>...</dir> 225 <file>vg_replace_malloc.c</file> 226 <line>...</line> 227 </frame> 228 <frame> 229 <ip>0x........</ip> 230 <obj>...</obj> 231 <fn>bad_things</fn> 232 <dir>...</dir> 233 <file>threadname.c</file> 234 <line>...</line> 235 </frame> 236 <frame> 237 <ip>0x........</ip> 238 <obj>...</obj> 239 <fn>child_fn_2</fn> 240 <dir>...</dir> 241 <file>threadname.c</file> 242 <line>...</line> 243 </frame> 244 </stack> 245</error> 246 247<error> 248 <unique>0x........</unique> 249 <tid>...</tid> 250 <kind>InvalidWrite</kind> 251 <what>Invalid write of size 1</what> 252 <stack> 253 <frame> 254 <ip>0x........</ip> 255 <obj>...</obj> 256 <fn>bad_things</fn> 257 <dir>...</dir> 258 <file>threadname.c</file> 259 <line>...</line> 260 </frame> 261 <frame> 262 <ip>0x........</ip> 263 <obj>...</obj> 264 <fn>main</fn> 265 <dir>...</dir> 266 <file>threadname.c</file> 267 <line>...</line> 268 </frame> 269 </stack> 270 <auxwhat>Address 0x........ is 0 bytes after a block of size 5 alloc'd</auxwhat> 271 <stack> 272 <frame> 273 <ip>0x........</ip> 274 <obj>...</obj> 275 <fn>malloc</fn> 276 <dir>...</dir> 277 <file>vg_replace_malloc.c</file> 278 <line>...</line> 279 </frame> 280 <frame> 281 <ip>0x........</ip> 282 <obj>...</obj> 283 <fn>bad_things</fn> 284 <dir>...</dir> 285 <file>threadname.c</file> 286 <line>...</line> 287 </frame> 288 <frame> 289 <ip>0x........</ip> 290 <obj>...</obj> 291 <fn>main</fn> 292 <dir>...</dir> 293 <file>threadname.c</file> 294 <line>...</line> 295 </frame> 296 </stack> 297</error> 298 299 300<status> 301 <state>FINISHED</state> 302 <time>...</time> 303</status> 304 305<errorcounts> 306 <pair> 307 <count>...</count> 308 <unique>0x........</unique> 309 </pair> 310 <pair> 311 <count>...</count> 312 <unique>0x........</unique> 313 </pair> 314 <pair> 315 <count>...</count> 316 <unique>0x........</unique> 317 </pair> 318 <pair> 319 <count>...</count> 320 <unique>0x........</unique> 321 </pair> 322 <pair> 323 <count>...</count> 324 <unique>0x........</unique> 325 </pair> 326</errorcounts> 327 328<suppcounts>...</suppcounts> 329 330</valgrindoutput> 331 332