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 | ==26138== Memcheck, a memory error detector
==26138== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==26138== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==26138== Command: /usr/bin/make
==26138== Parent PID: 23910
==26138==
--26138--
--26138-- Valgrind options:
--26138-- -v
--26138-- --tool=memcheck
--26138-- --leak-check=full
--26138-- --num-callers=40
--26138-- --log-file=valgrind.log
--26138-- Contents of /proc/version:
--26138-- Linux version 3.19.0-25-generic (buildd@lgw01-20) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015
--26138--
--26138-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-avx
--26138-- Page sizes: currently 4096, max supported 4096
--26138-- Valgrind library directory: /usr/lib/valgrind
--26138-- Reading syms from /usr/bin/make
--26138-- object doesn't have a symbol table
--26138-- Reading syms from /lib/x86_64-linux-gnu/ld-2.21.so
--26138-- Considering /lib/x86_64-linux-gnu/ld-2.21.so ..
--26138-- .. CRC mismatch (computed 2cbc325f wanted e7382063)
--26138-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.21.so ..
--26138-- .. CRC is valid
--26138-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
--26138-- Considering /usr/lib/valgrind/memcheck-amd64-linux ..
--26138-- .. CRC mismatch (computed cd34a87b wanted 936d30dc)
--26138-- object doesn't have a symbol table
--26138-- object doesn't have a dynamic symbol table
--26138-- Scheduler: using generic scheduler lock implementation.
--26138-- Reading suppressions file: /usr/lib/valgrind/default.supp
==26138== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-26138-by-root-on-???
==26138== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-26138-by-root-on-???
==26138== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-26138-by-root-on-???
==26138==
==26138== TO CONTROL THIS PROCESS USING vgdb (which you probably
==26138== don't want to do, unless you know exactly what you're doing,
==26138== or are doing some strange experiment):
==26138== /usr/lib/valgrind/../../bin/vgdb --pid=26138 ...command...
==26138==
==26138== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==26138== /path/to/gdb /usr/bin/make
==26138== and then give GDB the following command
==26138== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=26138
==26138== --pid is optional if only one valgrind process is running
==26138==
--26138-- REDIR: 0x401adc0 (ld-linux-x86-64.so.2:strlen) redirected to 0x3809e1b1 (???)
--26138-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
--26138-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
--26138-- .. CRC mismatch (computed 1c3ef3cc wanted d1ae2653)
--26138-- object doesn't have a symbol table
--26138-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
--26138-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
--26138-- .. CRC mismatch (computed 6e6e6f70 wanted ea7b69f1)
--26138-- object doesn't have a symbol table
==26138== WARNING: new redirection conflicts with existing -- ignoring it
--26138-- old: 0x0401adc0 (strlen ) R-> (0000.0) 0x3809e1b1 ???
--26138-- new: 0x0401adc0 (strlen ) R-> (2007.0) 0x04c2f060 strlen
--26138-- REDIR: 0x401ab20 (ld-linux-x86-64.so.2:index) redirected to 0x4c2ec00 (index)
--26138-- REDIR: 0x401ad40 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c30110 (strcmp)
--26138-- REDIR: 0x401bab0 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c33330 (mempcpy)
--26138-- Reading syms from /lib/x86_64-linux-gnu/libdl-2.21.so
--26138-- Considering /lib/x86_64-linux-gnu/libdl-2.21.so ..
--26138-- .. CRC mismatch (computed 4d495342 wanted 190afd15)
--26138-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libdl-2.21.so ..
--26138-- .. CRC is valid
--26138-- Reading syms from /lib/x86_64-linux-gnu/libc-2.21.so
--26138-- Considering /lib/x86_64-linux-gnu/libc-2.21.so ..
--26138-- .. CRC mismatch (computed db109af6 wanted 753a651f)
--26138-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.21.so ..
--26138-- .. CRC is valid
--26138-- REDIR: 0x50cb910 (libc.so.6:strcasecmp) redirected to 0x4a26730 (_vgnU_ifunc_wrapper)
--26138-- REDIR: 0x50cdc00 (libc.so.6:strncasecmp) redirected to 0x4a26730 (_vgnU_ifunc_wrapper)
--26138-- REDIR: 0x50cb090 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a26730 (_vgnU_ifunc_wrapper)
--26138-- REDIR: 0x50c9330 (libc.so.6:rindex) redirected to 0x4c2e8e0 (rindex)
--26138-- REDIR: 0x50c5c10 (libc.so.6:__GI_strcmp) redirected to 0x4c30020 (__GI_strcmp)
--26138-- REDIR: 0x50c7630 (libc.so.6:strlen) redirected to 0x4c2efa0 (strlen)
--26138-- REDIR: 0x50c59b0 (libc.so.6:__GI_strchr) redirected to 0x4c2ea40 (__GI_strchr)
--26138-- REDIR: 0x50c07b0 (libc.so.6:free) redirected to 0x4c2cdc0 (free)
--26138-- REDIR: 0x50c0400 (libc.so.6:malloc) redirected to 0x4c2bb60 (malloc)
--26138-- REDIR: 0x50d0350 (libc.so.6:__GI_memcpy) redirected to 0x4c30b60 (__GI_memcpy)
--26138-- REDIR: 0x50c0f40 (libc.so.6:calloc) redirected to 0x4c2dae0 (calloc)
--26138-- REDIR: 0x50c7a50 (libc.so.6:strncmp) redirected to 0x4a26730 (_vgnU_ifunc_wrapper)
--26138-- REDIR: 0x5181240 (libc.so.6:__strncmp_sse42) redirected to 0x4c2f830 (__strncmp_sse42)
--26138-- REDIR: 0x50c77f0 (libc.so.6:strnlen) redirected to 0x4c2ef20 (strnlen)
--26138-- REDIR: 0x50d02e0 (libc.so.6:memcpy@@GLIBC_2.14) redirected to 0x4a26730 (_vgnU_ifunc_wrapper)
--26138-- REDIR: 0x50dbeb0 (libc.so.6:__memcpy_sse2_unaligned) redirected to 0x4c30500 (memcpy@@GLIBC_2.14)
--26138-- REDIR: 0x50c5980 (libc.so.6:index) redirected to 0x4a26730 (_vgnU_ifunc_wrapper)
--26138-- REDIR: 0x50caf10 (libc.so.6:__GI_memmove) redirected to 0x4c32860 (__GI_memmove)
--26138-- REDIR: 0x50cb2c0 (libc.so.6:__GI_mempcpy) redirected to 0x4c33060 (__GI_mempcpy)
==26138== Invalid read of size 1
==26138== at 0x4C2EFA2: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26138== by 0x50C737D: strdup (strdup.c:41)
==26138== by 0x418328: xstrdup (in /usr/bin/make)
==26138== by 0x423312: define_variable_in_set (in /usr/bin/make)
==26138== by 0x406A3E: main (in /usr/bin/make)
==26138== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26138==
==26138==
==26138== Process terminating with default action of signal 11 (SIGSEGV)
==26138== Access not within mapped region at address 0x0
==26138== at 0x4C2EFA2: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26138== by 0x50C737D: strdup (strdup.c:41)
==26138== by 0x418328: xstrdup (in /usr/bin/make)
==26138== by 0x423312: define_variable_in_set (in /usr/bin/make)
==26138== by 0x406A3E: main (in /usr/bin/make)
==26138== If you believe this happened as a result of a stack
==26138== overflow in your program's main thread (unlikely but
==26138== possible), you can try to increase the size of the
==26138== main thread stack using the --main-stacksize= flag.
==26138== The main thread stack size used in this run was 18446744073709551615.
==26138==
==26138== HEAP SUMMARY:
==26138== in use at exit: 90,253 bytes in 76 blocks
==26138== total heap usage: 85 allocs, 9 frees, 192,880 bytes allocated
==26138==
==26138== Searching for pointers to 76 not-freed blocks
==26138== Checked 178,416 bytes
==26138==
==26138== LEAK SUMMARY:
==26138== definitely lost: 0 bytes in 0 blocks
==26138== indirectly lost: 0 bytes in 0 blocks
==26138== possibly lost: 0 bytes in 0 blocks
==26138== still reachable: 90,253 bytes in 76 blocks
==26138== suppressed: 0 bytes in 0 blocks
==26138== Reachable blocks (those to which a pointer was found) are not shown.
==26138== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==26138==
==26138== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==26138==
==26138== 1 errors in context 1 of 1:
==26138== Invalid read of size 1
==26138== at 0x4C2EFA2: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26138== by 0x50C737D: strdup (strdup.c:41)
==26138== by 0x418328: xstrdup (in /usr/bin/make)
==26138== by 0x423312: define_variable_in_set (in /usr/bin/make)
==26138== by 0x406A3E: main (in /usr/bin/make)
==26138== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==26138==
==26138== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
|