-
Notifications
You must be signed in to change notification settings - Fork 0
/
memcheck.log
294 lines (294 loc) · 18.2 KB
/
memcheck.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
==13049== Memcheck, a memory error detector
==13049== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==13049== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==13049== Command: a.out
==13049== Parent PID: 19687
==13049==
--13049--
--13049-- Valgrind options:
--13049-- --tool=memcheck
--13049-- --leak-check=full
--13049-- --verbose
--13049-- --log-file=memcheck.log
--13049-- --tool=memcheck
--13049-- --leak-check=full
--13049-- --verbose
--13049-- --log-file=memcheck.log
--13049-- Contents of /proc/version:
--13049-- Linux version 2.6.32-504.8.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-9) (GCC) ) #1 SMP Fri Dec 19 12:09:25 EST 2014
--13049-- Arch and hwcaps: AMD64, amd64-sse3-cx16
--13049-- Page sizes: currently 4096, max supported 4096
--13049-- Valgrind library directory: /usr/lib64/valgrind
--13049-- TT/TC: VG_(init_tt_tc) (startup of code management)
--13049-- TT/TC: cache: 8 sectors of 27597024 bytes each = 220776192 total
--13049-- TT/TC: table: 524168 total entries, max occupancy 340704 (65%)
==13049== Adding active redirection:
--13049-- new: 0xffffffffff600000 (??? ) R-> (0000.0) 0x38049533 ???
==13049== Adding active redirection:
--13049-- new: 0xffffffffff600400 (??? ) R-> (0000.0) 0x3804953d ???
==13049== Adding active redirection:
--13049-- new: 0xffffffffff600800 (??? ) R-> (0000.0) 0x38049547 ???
--13049-- Reading syms from /home/shay/a/iflegman/368/Project2/a.out
--13049-- svma 0x0000400570, avma 0x0000400570
--13049-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux
--13049-- svma 0x0038000000, avma 0x0038000000
--13049-- object doesn't have a dynamic symbol table
--13049-- Reading syms from /lib64/ld-2.12.so
--13049-- svma 0x3767600b00, avma 0x3767600b00
--13049-- Considering /usr/lib/debug/.build-id/5b/eb2450b75e84ff317c65f22af8b8112c25df63.debug ..
--13049-- .. build-id is valid
--13049-- summarise_context(loc_start = 0x10): cannot summarise(why=1):
0x362: [0]={ 56(r3) { u u u c-56 u u u u u u u u u u u u c-8 u u u }
--13049-- summarise_context(loc_start = 0x369): cannot summarise(why=1):
0x442: [0]={ 56(r3) { u u u c-56 u u u u u u u u u u u u c-8 u u u }
--13049-- summarise_context(loc_start = 0x447): cannot summarise(why=1):
0x4d0: [0]={ 56(r3) { u u u c-56 u u u u u u u u u u u u c-8 u u u }
--13049-- summarise_context(loc_start = 0x4d7): cannot summarise(why=1):
0x558: [0]={ 56(r3) { u u u c-56 u u u u u u u u u u u u c-8 u u u }
--13049-- summarise_context(loc_start = 0x2d): cannot summarise(why=1):
0x4a: [0]={ 0(r5) { u u u c0 u u r9 r8 u u u u c16 c24 c32 c40 r1 u u u }
==13049== Adding active redirection:
--13049-- new: 0x37676176d0 (strlen ) R-> (0000.0) 0x38049551 vgPlain_amd64_linux_REDIR_FOR_strlen
--13049-- Scheduler: using generic scheduler lock implementation.
--13049-- Reading suppressions file: /usr/lib64/valgrind/default.supp
==13049== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-13049-by-iflegman-on-ecegrid-thin1.ecn.purdue.edu
==13049== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-13049-by-iflegman-on-ecegrid-thin1.ecn.purdue.edu
==13049== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-13049-by-iflegman-on-ecegrid-thin1.ecn.purdue.edu
==13049==
==13049== TO CONTROL THIS PROCESS USING vgdb (which you probably
==13049== don't want to do, unless you know exactly what you're doing,
==13049== or are doing some strange experiment):
==13049== /usr/lib64/valgrind/../../bin/vgdb --pid=13049 ...command...
==13049==
==13049== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==13049== /path/to/gdb a.out
==13049== and then give GDB the following command
==13049== target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=13049
==13049== --pid is optional if only one valgrind process is running
==13049==
--13049-- TT/TC: initialise sector 0
--13049-- REDIR: 0x37676176d0 (strlen) redirected to 0x38049551 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--13049-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so
--13049-- svma 0x0000000490, avma 0x0004801490
--13049-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
--13049-- svma 0x0000002cb0, avma 0x0004a04cb0
==13049== Adding active redirection:
--13049-- new: 0x37676174e0 (index ) R-> (2002.0) 0x04a07c30 index
==13049== Ignoring duplicate redirection:
--13049-- old: 0x37676174e0 (index ) R-> (2002.0) 0x04a07c30 index
--13049-- new: 0x37676174e0 (index ) R-> (2002.0) 0x04a07c00 strchr
==13049== Adding active redirection:
--13049-- new: 0x3767617560 (strcmp ) R-> (2016.0) 0x04a08570 strcmp
==13049== Adding active redirection:
--13049-- new: 0x3767618600 (stpcpy ) R-> (2020.0) 0x04a09980 stpcpy
--13049-- REDIR: 0x37676174e0 (index) redirected to 0x4a07c30 (index)
--13049-- REDIR: 0x3767617560 (strcmp) redirected to 0x4a08570 (strcmp)
--13049-- Reading syms from /lib64/libm-2.12.so
--13049-- svma 0x3767e03e70, avma 0x3767e03e70
--13049-- Considering /usr/lib/debug/.build-id/a5/f11596a3c6c24c2304a996de37a1736c5715f9.debug ..
--13049-- .. build-id is valid
--13049-- Reading syms from /lib64/libc-2.12.so
--13049-- svma 0x3767a1eaa0, avma 0x3767a1eaa0
--13049-- Considering /usr/lib/debug/.build-id/22/aa38cca59a5df6cf07b8fc1778e2ee0384508e.debug ..
--13049-- .. build-id is valid
--13049-- summarise_context(loc_start = 0x33): cannot summarise(why=1):
0x50: [0]={ 0(r5) { u u u c0 u u r9 r8 u u u u c16 c24 c32 c40 r1 u u u }
--13049-- summarise_context(loc_start = 0x35): cannot summarise(why=1):
0x7d: [0]={ 0(r5) { u u u c128 u u c120 c160 u u u u c72 c80 c88 c96 c168 u u u }
--13049-- summarise_context(loc_start = 0x1): cannot summarise(why=2):
0x25: [0]={ 0(r7) { u u u u u u u u u u u u u u u u r5 u u u }
--13049-- summarise_context(loc_start = 0x25): cannot summarise(why=2):
0x4f: [0]={ 8(r7) { u u u u u u u u u u u u u u u u r5 u u u }
--13049-- summarise_context(loc_start = 0x7e): cannot summarise(why=1):
0x9b: [0]={ 0(r5) { u u u c0 u u r9 r8 u u u u c16 c24 c32 c40 r1 u u u }
==13049== Adding active redirection:
--13049-- new: 0x3767a350e0 (putenv ) W-> (0000.0) 0x04a0a740 putenv
==13049== Adding active redirection:
--13049-- new: 0x3767a351f0 (unsetenv ) W-> (0000.0) 0x04a0a690 unsetenv
==13049== Adding active redirection:
--13049-- new: 0x3767a35770 (setenv ) W-> (0000.0) 0x04a0a560 setenv
==13049== Adding active redirection:
--13049-- new: 0x3767a75ad0 (malloc_usable_size ) R-> (1017.0) 0x04a0533d malloc_usable_size
==13049== Adding active redirection:
--13049-- new: 0x3767a76a90 (malloc_set_state ) R-> (1018.0) 0x04a06f16 malloc_set_state
==13049== Adding active redirection:
--13049-- new: 0x3767a76fd0 (mallinfo ) R-> (1020.0) 0x04a05033 mallinfo
==13049== Adding active redirection:
--13049-- new: 0x3767a77e70 (malloc_stats ) R-> (1019.0) 0x04a04df4 malloc_stats
==13049== Adding active redirection:
--13049-- new: 0x3767a780b0 (mallopt ) R-> (1014.0) 0x04a04dc8 mallopt
==13049== Adding active redirection:
--13049-- new: 0x3767a7a280 (calloc ) R-> (1007.0) 0x04a05717 calloc
==13049== Adding active redirection:
--13049-- new: 0x3767a7a640 (malloc ) R-> (1001.0) 0x04a069ac malloc
==13049== Adding active redirection:
--13049-- new: 0x3767a7a870 (malloc_get_state ) R-> (1018.0) 0x04a06f28 malloc_get_state
==13049== Adding active redirection:
--13049-- new: 0x3767a7ac90 (pvalloc ) R-> (1018.0) 0x04a06f3a pvalloc
==13049== Adding active redirection:
--13049-- new: 0x3767a7af50 (valloc ) R-> (1012.0) 0x04a07a1a valloc
==13049== Adding active redirection:
--13049-- new: 0x3767a7b1e0 (memalign ) R-> (1011.0) 0x04a054db memalign
==13049== Adding active redirection:
--13049-- new: 0x3767a7b4b0 (posix_memalign ) R-> (1016.0) 0x04a055fb posix_memalign
==13049== Adding active redirection:
--13049-- new: 0x3767a7b520 (free ) R-> (1005.0) 0x04a063a9 free
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a7b520 (free ) R-> (1005.0) 0x04a063a9 free
--13049-- new: 0x3767a7b520 (free ) R-> (1005.0) 0x04a061e7 cfree
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a7b520 (free ) R-> (1005.0) 0x04a063a9 free
--13049-- new: 0x3767a7b520 (free ) R-> (1005.0) 0x04a061e7 cfree
==13049== Adding active redirection:
--13049-- new: 0x3767a7ba10 (realloc ) R-> (1009.0) 0x04a06b57 realloc
==13049== Adding active redirection:
--13049-- new: 0x3767a7c7c0 (malloc_trim ) R-> (1015.0) 0x04a04dde malloc_trim
==13049== Adding active redirection:
--13049-- new: 0x3767a7f470 (strcat ) R-> (2003.0) 0x04a07c60 strcat
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a7f470 (strcat ) R-> (2003.0) 0x04a07c60 strcat
--13049-- new: 0x3767a7f470 (strcat ) R-> (2003.0) 0x04a07d40 __GI_strcat
==13049== Adding active redirection:
--13049-- new: 0x3767a7f630 (index ) R-> (2002.0) 0x04a07b40 index
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a7f630 (index ) R-> (2002.0) 0x04a07b40 index
--13049-- new: 0x3767a7f630 (index ) R-> (2002.0) 0x04a07b10 strchr
==13049== Adding active redirection:
--13049-- new: 0x3767a7f660 (__GI_strchr ) R-> (2002.0) 0x04a07b70 __GI_strchr
==13049== Adding active redirection:
--13049-- new: 0x3767a7f6e0 (strcmp ) R-> (2016.0) 0x04a084d0 strcmp
==13049== Adding active redirection:
--13049-- new: 0x3767a7f720 (__GI_strcmp ) R-> (2016.0) 0x04a08520 __GI_strcmp
==13049== Adding active redirection:
--13049-- new: 0x3767a80b70 (strcpy ) R-> (2008.0) 0x04a07fd0 strcpy
==13049== Adding active redirection:
--13049-- new: 0x3767a80ba0 (__GI_strcpy ) R-> (2008.0) 0x04a080a0 __GI_strcpy
==13049== Adding active redirection:
--13049-- new: 0x3767a80c80 (strcspn ) R-> (2033.0) 0x04a0a2e0 strcspn
==13049== Adding active redirection:
--13049-- new: 0x3767a81120 (strlen ) R-> (2007.0) 0x04a07f90 strlen
==13049== Adding active redirection:
--13049-- new: 0x3767a81160 (__GI_strlen ) R-> (2007.0) 0x04a07fb0 __GI_strlen
==13049== Adding active redirection:
--13049-- new: 0x3767a81240 (strnlen ) R-> (2006.0) 0x04a07f30 strnlen
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a81240 (strnlen ) R-> (2006.0) 0x04a07f30 strnlen
--13049-- new: 0x3767a81240 (strnlen ) R-> (2006.0) 0x04a07f60 __GI_strnlen
==13049== Adding active redirection:
--13049-- new: 0x3767a812b0 (strncat ) R-> (2004.0) 0x04a07e20 strncat
==13049== Adding active redirection:
--13049-- new: 0x3767a81350 (strncmp ) R-> (2011.0) 0x04a08410 strncmp
==13049== Adding active redirection:
--13049-- new: 0x3767a81390 (__GI_strncmp ) R-> (2011.0) 0x04a08470 __GI_strncmp
==13049== Adding active redirection:
--13049-- new: 0x3767a82be0 (strncpy ) R-> (2009.0) 0x04a08170 strncpy
==13049== Adding active redirection:
--13049-- new: 0x3767a82c10 (rindex ) R-> (2001.0) 0x04a07a80 rindex
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a82c10 (rindex ) R-> (2001.0) 0x04a07a80 rindex
--13049-- new: 0x3767a82c10 (rindex ) R-> (2001.0) 0x04a07a50 strrchr
==13049== Adding active redirection:
--13049-- new: 0x3767a82c40 (__GI_strrchr ) R-> (2001.0) 0x04a07ab0 __GI_strrchr
==13049== Adding active redirection:
--13049-- new: 0x3767a82ce0 (strpbrk ) R-> (2032.0) 0x04a0a280 strpbrk
==13049== Adding active redirection:
--13049-- new: 0x3767a83080 (strspn ) R-> (2034.0) 0x04a0a350 strspn
==13049== Adding active redirection:
--13049-- new: 0x3767a83350 (memchr ) R-> (2017.0) 0x04a08610 memchr
==13049== Adding active redirection:
--13049-- new: 0x3767a833d0 (bcmp ) R-> (2019.0) 0x04a09670 bcmp
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a833d0 (bcmp ) R-> (2019.0) 0x04a09670 bcmp
--13049-- new: 0x3767a833d0 (bcmp ) R-> (2019.0) 0x04a09620 memcmp
==13049== Adding active redirection:
--13049-- new: 0x3767a83800 (memmove ) R-> (2018.1) 0x04a09af0 memmove
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a83800 (memmove ) R-> (2018.1) 0x04a09af0 memmove
--13049-- new: 0x3767a83800 (memmove ) R-> (2018.1) 0x04a09d20 __GI_memmove
==13049== Adding active redirection:
--13049-- new: 0x3767a839a0 (memset ) R-> (2021.0) 0x04a09a50 memset
==13049== Adding active redirection:
--13049-- new: 0x3767a84500 (mempcpy ) R-> (2029.0) 0x04a0a020 mempcpy
==13049== Adding active redirection:
--13049-- new: 0x3767a84960 (bcopy ) R-> (2023.0) 0x04a09f50 bcopy
==13049== Adding active redirection:
--13049-- new: 0x3767a84b50 (stpcpy ) R-> (2020.0) 0x04a09710 stpcpy
==13049== Adding active redirection:
--13049-- new: 0x3767a84b80 (__GI_stpcpy ) R-> (2020.0) 0x04a097e0 __GI_stpcpy
==13049== Adding active redirection:
--13049-- new: 0x3767a84c90 (strcasecmp_l ) R-> (2014.0) 0x04a0b220 strcasecmp_l
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a84c90 (strcasecmp_l ) R-> (2014.0) 0x04a0b220 strcasecmp_l
--13049-- new: 0x3767a84c90 (strcasecmp_l ) R-> (2014.0) 0x04a0b1a0 __GI_strcasecmp_l
==13049== Adding active redirection:
--13049-- new: 0x3767a84cd0 (strcasecmp ) R-> (2012.0) 0x04a0aae0 strcasecmp
==13049== Adding active redirection:
--13049-- new: 0x3767a84d20 (__GI___strcasecmp_l ) R-> (2014.0) 0x04a0b120 __GI___strcasecmp_l
==13049== Adding active redirection:
--13049-- new: 0x3767a86f50 (strncasecmp_l ) R-> (2015.0) 0x04a0b050 strncasecmp_l
==13049== Ignoring duplicate redirection:
--13049-- old: 0x3767a86f50 (strncasecmp_l ) R-> (2015.0) 0x04a0b050 strncasecmp_l
--13049-- new: 0x3767a86f50 (strncasecmp_l ) R-> (2015.0) 0x04a0af80 __GI_strncasecmp_l
==13049== Adding active redirection:
--13049-- new: 0x3767a86f90 (strncasecmp ) R-> (2013.0) 0x04a0a990 strncasecmp
==13049== Adding active redirection:
--13049-- new: 0x3767a86fe0 (__GI___strncasecmp_l) R-> (2015.0) 0x04a0aeb0 __GI___strncasecmp_l
==13049== Adding active redirection:
--13049-- new: 0x3767a89660 (__memcpy_chk ) R-> (2030.0) 0x04a0ac70 __memcpy_chk
==13049== Adding active redirection:
--13049-- new: 0x3767a89670 (memcpy ) R-> (2018.0) 0x04a08b60 memcpy
==13049== Adding active redirection:
--13049-- new: 0x3767a8aa70 (rawmemchr ) R-> (2026.0) 0x04a09fe0 rawmemchr
==13049== Adding active redirection:
--13049-- new: 0x3767a8aaa0 (__GI___rawmemchr ) R-> (2026.0) 0x04a0a000 __GI___rawmemchr
==13049== Adding active redirection:
--13049-- new: 0x3767a8aaf0 (strchrnul ) R-> (2025.0) 0x04a09fb0 strchrnul
==13049== Adding active redirection:
--13049-- new: 0x3767a8da10 (memrchr ) R-> (2036.0) 0x04a08640 memrchr
==13049== Adding active redirection:
--13049-- new: 0x3767a8dde0 (__GI_strncpy ) R-> (2009.0) 0x04a082c0 __GI_strncpy
==13049== Adding active redirection:
--13049-- new: 0x3767a8e4c0 (strstr ) R-> (2031.0) 0x04a0a200 strstr
==13049== Adding active redirection:
--13049-- new: 0x3767a8ee10 (strcasestr ) R-> (2035.0) 0x04a0a7f0 strcasestr
==13049== Adding active redirection:
--13049-- new: 0x3767a90aa0 (wcschr ) R-> (2040.0) 0x04a0a500 wcschr
==13049== Adding active redirection:
--13049-- new: 0x3767a90ac0 (wcscmp ) R-> (2038.0) 0x04a0a3e0 wcscmp
==13049== Adding active redirection:
--13049-- new: 0x3767a90af0 (wcscpy ) R-> (2039.0) 0x04a0a430 wcscpy
==13049== Adding active redirection:
--13049-- new: 0x3767a90bc0 (wcslen ) R-> (2037.0) 0x04a0a3c0 wcslen
==13049== Adding active redirection:
--13049-- new: 0x3767a90f40 (wcsrchr ) R-> (2041.0) 0x04a0a530 wcsrchr
==13049== Adding active redirection:
--13049-- new: 0x3767afef50 (__memmove_chk ) R-> (2024.0) 0x04a0ae20 __memmove_chk
==13049== Adding active redirection:
--13049-- new: 0x3767aff110 (__stpcpy_chk ) R-> (2028.0) 0x04a0ad80 __stpcpy_chk
==13049== Adding active redirection:
--13049-- new: 0x3767aff2d0 (__strcpy_chk ) R-> (2027.0) 0x04a0add0 __strcpy_chk
--13049-- REDIR: 0x3767a84cd0 (strcasecmp) redirected to 0x480155c (_vgnU_ifunc_wrapper)
==13049== Adding active redirection:
--13049-- new: 0x3767b2b340 (__strcasecmp_sse42 ) R-> (2012.0) 0x04a0aae0 strcasecmp
--13049-- REDIR: 0x3767a86f90 (strncasecmp) redirected to 0x480155c (_vgnU_ifunc_wrapper)
==13049== Adding active redirection:
--13049-- new: 0x3767b2cfe0 (__strncasecmp_sse42 ) R-> (2013.0) 0x04a0a990 strncasecmp
--13049-- REDIR: 0x3767a82c40 (__GI_strrchr) redirected to 0x4a07ab0 (__GI_strrchr)
--13049-- REDIR: 0x3767a81160 (__GI_strlen) redirected to 0x4a07fb0 (__GI_strlen)
--13049-- REDIR: 0x3767a84500 (mempcpy) redirected to 0x4a0a020 (mempcpy)
--13049-- REDIR: 0x3767a8aaf0 (strchrnul) redirected to 0x4a09fb0 (strchrnul)
--13049-- REDIR: 0x3767a7b520 (free) redirected to 0x4a063a9 (free)
--13049-- Caught __NR_exit; running __libc_freeres()
==13049==
==13049== HEAP SUMMARY:
==13049== in use at exit: 0 bytes in 0 blocks
==13049== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==13049==
==13049== All heap blocks were freed -- no leaks are possible
==13049==
==13049== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)
--13049--
--13049-- used_suppression: 4 U1004-ARM-_dl_relocate_object
--13049-- used_suppression: 2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a
==13049==
==13049== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)