| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<valgrindoutput> |
| 4 |
|
| 5 |
<protocolversion>5</protocolversion> |
| 6 |
<protocoltool>none</protocoltool> |
| 7 |
|
| 8 |
<preamble> |
| 9 |
<line>Nulgrind, the minimal Valgrind tool</line> |
| 10 |
<line>Copyright...</line> |
| 11 |
<line>Using Valgrind...</line> |
| 12 |
<line>Command: ./file_dclose</line> |
| 13 |
</preamble> |
| 14 |
|
| 15 |
<pid>...</pid> |
| 16 |
<ppid>...</ppid> |
| 17 |
<tool>none</tool> |
| 18 |
|
| 19 |
<args> |
| 20 |
<vargv> |
| 21 |
<exe>...</exe> |
| 22 |
<arg>--command-line-only=yes</arg> |
| 23 |
<arg>--memcheck:leak-check=no</arg> |
| 24 |
<arg>--tool=none</arg> |
| 25 |
<arg>-q</arg> |
| 26 |
<arg>--track-fds=yes</arg> |
| 27 |
<arg>--xml=yes</arg> |
| 28 |
<arg>--xml-fd=2</arg> |
| 29 |
</vargv> |
| 30 |
<argv> |
| 31 |
<exe>...</exe> |
| 32 |
</argv> |
| 33 |
</args> |
| 34 |
|
| 35 |
<status> |
| 36 |
<state>RUNNING</state> |
| 37 |
<time>...</time> |
| 38 |
</status> |
| 39 |
|
| 40 |
close 3 |
| 41 |
time passes and we close 3 again |
| 42 |
<error> |
| 43 |
<unique>0x........</unique> |
| 44 |
<tid>...</tid> |
| 45 |
<kind>FdBadClose</kind> |
| 46 |
<fd>3</fd> |
| 47 |
<path>...</path> |
| 48 |
<what>...</what> |
| 49 |
<stack> |
| 50 |
<frame> |
| 51 |
<ip>0x........</ip> |
| 52 |
<obj>...</obj> |
| 53 |
<fn>closefile</fn> |
| 54 |
<dir>...</dir> |
| 55 |
<file>file_dclose.c</file> |
| 56 |
<line>17</line> |
| 57 |
</frame> |
| 58 |
</stack> |
| 59 |
<auxwhat>Previously closed</auxwhat> |
| 60 |
<stack> |
| 61 |
<frame> |
| 62 |
<ip>0x........</ip> |
| 63 |
<obj>...</obj> |
| 64 |
<fn>main</fn> |
| 65 |
<dir>...</dir> |
| 66 |
<file>file_dclose.c</file> |
| 67 |
<line>31</line> |
| 68 |
</frame> |
| 69 |
</stack> |
| 70 |
<auxwhat>Originally opened</auxwhat> |
| 71 |
<stack> |
| 72 |
<frame> |
| 73 |
<ip>0x........</ip> |
| 74 |
<obj>...</obj> |
| 75 |
<fn>openfile</fn> |
| 76 |
<dir>...</dir> |
| 77 |
<file>file_dclose.c</file> |
| 78 |
<line>11</line> |
| 79 |
</frame> |
| 80 |
</stack> |
| 81 |
</error> |
| 82 |
|
| 83 |
|
| 84 |
<status> |
| 85 |
<state>FINISHED</state> |
| 86 |
<time>...</time> |
| 87 |
</status> |
| 88 |
|
| 89 |
<errorcounts> |
| 90 |
<pair> |
| 91 |
<count>1</count> |
| 92 |
<unique>0x........</unique> |
| 93 |
</pair> |
| 94 |
</errorcounts> |
| 95 |
|
| 96 |
|
| 97 |
</valgrindoutput> |
| 98 |
|