Project

General

Profile

Bug #2876 » lighttpd-valgrind.txt

arekm, 2018-03-15 18:44

 
1
==5096== Memcheck, a memory error detector
2
==5096== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
3
==5096== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
4
==5096== Command: lighttpd -D -f /etc/lighttpd/lighttpd.conf
5
==5096== Parent PID: 3934
6
==5096== 
7
--5096-- 
8
--5096-- Valgrind options:
9
--5096--    --tool=memcheck
10
--5096--    -v
11
--5096--    --log-file=lighttpd
12
--5096--    --num-callers=8
13
--5096-- Contents of /proc/version:
14
--5096--   Linux version 4.9.86-1 (builder@ymir-builder) (gcc version 7.3.0 20180125 (release) (PLD-Linux) ) #1 SMP Tue Mar 6 21:27:02 CET 2018
15
--5096-- 
16
--5096-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-sse3
17
--5096-- Page sizes: currently 4096, max supported 4096
18
--5096-- Valgrind library directory: /usr/lib64/valgrind
19
--5096-- Reading syms from /usr/sbin/lighttpd
20
--5096--   Considering /usr/lib/debug/.build-id/cc/5497280e56bccea502a03afa2b56f4c005b7fd.debug ..
21
--5096--   .. build-id is valid
22
--5096-- Reading syms from /lib64/ld-2.27.so
23
--5096-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux
24
--5096--    object doesn't have a symbol table
25
--5096--    object doesn't have a dynamic symbol table
26
--5096-- Scheduler: using generic scheduler lock implementation.
27
--5096-- Reading suppressions file: /usr/lib64/valgrind/default.supp
28
==5096== embedded gdbserver: reading from /root/tmp/vgdb-pipe-from-vgdb-to-5096-by-root-on-rt
29
==5096== embedded gdbserver: writing to   /root/tmp/vgdb-pipe-to-vgdb-from-5096-by-root-on-rt
30
==5096== embedded gdbserver: shared mem   /root/tmp/vgdb-pipe-shared-mem-vgdb-5096-by-root-on-rt
31
==5096== 
32
==5096== TO CONTROL THIS PROCESS USING vgdb (which you probably
33
==5096== don't want to do, unless you know exactly what you're doing,
34
==5096== or are doing some strange experiment):
35
==5096==   /usr/lib64/valgrind/../../bin/vgdb --pid=5096 ...command...
36
==5096== 
37
==5096== TO DEBUG THIS PROCESS USING GDB: start GDB like this
38
==5096==   /path/to/gdb lighttpd
39
==5096== and then give GDB the following command
40
==5096==   target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=5096
41
==5096== --pid is optional if only one valgrind process is running
42
==5096== 
43
--5096-- REDIR: 0x401c740 (ld-linux-x86-64.so.2:strlen) redirected to 0x58061498 (???)
44
--5096-- REDIR: 0x401c520 (ld-linux-x86-64.so.2:index) redirected to 0x580614b2 (???)
45
--5096-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so
46
--5096-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
47
==5096== WARNING: new redirection conflicts with existing -- ignoring it
48
--5096--     old: 0x0401c740 (strlen              ) R-> (0000.0) 0x58061498 ???
49
--5096--     new: 0x0401c740 (strlen              ) R-> (2007.0) 0x04c2fe60 strlen
50
--5096-- REDIR: 0x401a7b0 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c30f90 (strcmp)
51
--5096-- REDIR: 0x401cc80 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c345a0 (mempcpy)
52
--5096-- Reading syms from /lib64/libpcre.so.1.2.9
53
--5096--    object doesn't have a symbol table
54
--5096-- Reading syms from /lib64/libdl-2.27.so
55
--5096--    object doesn't have a symbol table
56
--5096-- Reading syms from /lib64/libattr.so.1.1.2448
57
--5096--    object doesn't have a symbol table
58
--5096-- Reading syms from /lib64/libcrypto.so.1.0.0
59
--5096--    object doesn't have a symbol table
60
--5096-- Reading syms from /lib64/libpthread-2.27.so
61
--5096-- Reading syms from /lib64/libc-2.27.so
62
--5096--    object doesn't have a symbol table
63
--5096-- Reading syms from /lib64/libz.so.1.2.11
64
--5096--    object doesn't have a symbol table
65
--5096-- REDIR: 0x5bb5310 (libc.so.6:memmove) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
66
==5096== Preferring higher priority redirection:
67
--5096--     old: 0x05bce1e0 (memcpy              ) R-> (2018.0) 0x04c31750 memcpy
68
--5096--     new: 0x05bce1e0 (memcpy              ) R-> (2018.1) 0x04c33790 memmove
69
--5096-- REDIR: 0x5bb4530 (libc.so.6:strncpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
70
--5096-- REDIR: 0x5bb55f0 (libc.so.6:strcasecmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
71
--5096-- REDIR: 0x5bb3f60 (libc.so.6:strcat) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
72
--5096-- REDIR: 0x5bb4560 (libc.so.6:rindex) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
73
--5096-- REDIR: 0x5bb6c00 (libc.so.6:rawmemchr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
74
--5096-- REDIR: 0x5bb5480 (libc.so.6:mempcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
75
--5096-- REDIR: 0x5bb52b0 (libc.so.6:bcmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
76
--5096-- REDIR: 0x5bb44f0 (libc.so.6:strncmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
77
--5096-- REDIR: 0x5bb3fd0 (libc.so.6:strcmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
78
--5096-- REDIR: 0x5bb53e0 (libc.so.6:memset) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
79
--5096-- REDIR: 0x5bcedf0 (libc.so.6:wcschr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
80
--5096-- REDIR: 0x5bb4490 (libc.so.6:strnlen) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
81
--5096-- REDIR: 0x5bb4050 (libc.so.6:strcspn) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
82
--5096-- REDIR: 0x5bb5640 (libc.so.6:strncasecmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
83
--5096-- REDIR: 0x5bb4020 (libc.so.6:strcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
84
--5096-- REDIR: 0x5bb5780 (libc.so.6:memcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
85
--5096-- REDIR: 0x5bb4590 (libc.so.6:strpbrk) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
86
--5096-- REDIR: 0x5bb3f90 (libc.so.6:index) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
87
--5096-- REDIR: 0x5bb4460 (libc.so.6:strlen) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
88
--5096-- REDIR: 0x5bbb430 (libc.so.6:memrchr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
89
--5096-- REDIR: 0x5bb5690 (libc.so.6:strcasecmp_l) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
90
--5096-- REDIR: 0x5bb5280 (libc.so.6:memchr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
91
--5096-- REDIR: 0x5bcfbb0 (libc.so.6:wcslen) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
92
--5096-- REDIR: 0x5bb4840 (libc.so.6:strspn) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
93
--5096-- REDIR: 0x5bb55c0 (libc.so.6:stpncpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
94
--5096-- REDIR: 0x5bb5590 (libc.so.6:stpcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
95
--5096-- REDIR: 0x5bb6c30 (libc.so.6:strchrnul) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
96
--5096-- REDIR: 0x5bb56e0 (libc.so.6:strncasecmp_l) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
97
--5096-- REDIR: 0x5bc40b0 (libc.so.6:???) redirected to 0x4c2f7e0 (rindex)
98
--5096-- REDIR: 0x5bc43a0 (libc.so.6:???) redirected to 0x4c2fda0 (strlen)
99
--5096-- REDIR: 0x5bbcbf0 (libc.so.6:???) redirected to 0x4c30e50 (strcmp)
100
--5096-- REDIR: 0x5bb14e0 (libc.so.6:calloc) redirected to 0x4c2eb20 (calloc)
101
--5096-- REDIR: 0x5bb07b0 (libc.so.6:malloc) redirected to 0x4c2cb50 (malloc)
102
--5096-- REDIR: 0x5bce1e0 (libc.so.6:memcpy) redirected to 0x4c33790 (memmove)
103
--5096-- REDIR: 0x5bc3c80 (libc.so.6:???) redirected to 0x4c2fa00 (index)
104
--5096-- REDIR: 0x5bb0e60 (libc.so.6:free) redirected to 0x4c2dd80 (free)
105
--5096-- REDIR: 0x5bb0f80 (libc.so.6:realloc) redirected to 0x4c2ed60 (realloc)
106
--5096-- REDIR: 0x5bce1c0 (libc.so.6:???) redirected to 0x4c341e0 (mempcpy)
107
--5096-- REDIR: 0x5c8b9b0 (libc.so.6:???) redirected to 0x4c32eb0 (bcmp)
108
--5096-- REDIR: 0x5bbe6f0 (libc.so.6:???) redirected to 0x4c31030 (memchr)
109
--5096-- REDIR: 0x5bce5f0 (libc.so.6:???) redirected to 0x4c33680 (memset)
110
--5096-- Reading syms from /usr/lib64/lighttpd/mod_indexfile.so
111
--5096--   Considering /usr/lib/debug/.build-id/a4/5d4d3cedd6c10aec80d5a1888fbdaaba994ddf.debug ..
112
--5096--   .. build-id is valid
113
--5096-- Reading syms from /usr/lib64/lighttpd/mod_redirect.so
114
--5096--   Considering /usr/lib/debug/.build-id/d6/3ebcd763e8f3c637be0d4148387895fc03bf2a.debug ..
115
--5096--   .. build-id is valid
116
--5096-- Reading syms from /usr/lib64/lighttpd/mod_access.so
117
--5096--   Considering /usr/lib/debug/.build-id/58/f9950297bbd4381ca9c078fd4980c69c914026.debug ..
118
--5096--   .. build-id is valid
119
--5096-- Reading syms from /usr/lib64/lighttpd/mod_alias.so
120
--5096--   Considering /usr/lib/debug/.build-id/35/cf0b81767036366af12d1ef6525f2516ab8133.debug ..
121
--5096--   .. build-id is valid
122
--5096-- Reading syms from /usr/lib64/lighttpd/mod_fastcgi.so
123
--5096--   Considering /usr/lib/debug/.build-id/0a/2aee289d805fa17fd9ed3fd2e2d28834ddefef.debug ..
124
--5096--   .. build-id is valid
125
--5096-- Reading syms from /usr/lib64/lighttpd/mod_openssl.so
126
--5096--   Considering /usr/lib/debug/.build-id/63/55765ec806c6c8bfd03c7fa16ee71441be951e.debug ..
127
--5096--   .. build-id is valid
128
--5096-- Reading syms from /lib64/libssl.so.1.0.0
129
--5096--    object doesn't have a symbol table
130
--5096-- REDIR: 0x5c34f30 (libc.so.6:__memcpy_chk) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
131
--5096-- Reading syms from /usr/lib64/lighttpd/mod_expire.so
132
--5096--   Considering /usr/lib/debug/.build-id/a4/2007a546eb818edf93e56ecc8d6b49f461508c.debug ..
133
--5096--   .. build-id is valid
134
--5096-- Reading syms from /usr/lib64/lighttpd/mod_compress.so
135
--5096--   Considering /usr/lib/debug/.build-id/4e/5adcdac5e4ed77db7f8a4820275b599534e392.debug ..
136
--5096--   .. build-id is valid
137
--5096-- Reading syms from /lib64/libbz2.so.1.0.0
138
--5096--    object doesn't have a symbol table
139
--5096-- REDIR: 0x5bb51b0 (libc.so.6:strstr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
140
--5096-- Reading syms from /usr/lib64/lighttpd/mod_accesslog.so
141
--5096--   Considering /usr/lib/debug/.build-id/bf/a6305c68dabd88ff9b8b71b78261ddb998b327.debug ..
142
--5096--   .. build-id is valid
143
--5096-- Reading syms from /usr/lib64/lighttpd/mod_dirlisting.so
144
--5096--   Considering /usr/lib/debug/.build-id/aa/1c8ede0670dab1a70e565a68d235fc3baeebff.debug ..
145
--5096--   .. build-id is valid
146
--5096-- Reading syms from /usr/lib64/lighttpd/mod_staticfile.so
147
--5096--   Considering /usr/lib/debug/.build-id/29/9878bb86c0be05e9aa0804405383d06fc44b0e.debug ..
148
--5096--   .. build-id is valid
149
--5096-- REDIR: 0x5bca8d0 (libc.so.6:???) redirected to 0x4c33010 (stpcpy)
150
--5096-- REDIR: 0x5bc98f0 (libc.so.6:???) redirected to 0x4c30060 (strncpy)
151
--5096-- REDIR: 0x5c83a90 (libc.so.6:???) redirected to 0x4c30780 (strncasecmp)
152
--5096-- REDIR: 0x5c80f00 (libc.so.6:???) redirected to 0x4c304a0 (strncmp)
153
--5096-- REDIR: 0x5bc3ea0 (libc.so.6:???) redirected to 0x4c340d0 (strchrnul)
154
--5096-- REDIR: 0x5bc92c0 (libc.so.6:???) redirected to 0x4c2fe80 (strcpy)
155
--5096-- REDIR: 0x5bce1d0 (libc.so.6:???) redirected to 0x4c34690 (__memcpy_chk)
156
--5096-- Reading syms from /lib64/libnss_files-2.27.so
157
--5096--    object doesn't have a symbol table
158
==5096== Invalid read of size 1
159
==5096==    at 0x4323E8: sock_addr_from_str_hints (sock_addr.c:385)
160
==5096==    by 0x41EF4D: gw_proc_sockaddr_init.isra.18 (gw_backend.c:391)
161
==5096==    by 0x4216C2: gw_set_defaults_backend (gw_backend.c:1495)
162
==5096==    by 0x710F5C0: mod_fastcgi_set_defaults (mod_fastcgi.c:80)
163
==5096==    by 0x424EA5: plugins_call_set_defaults (plugin.c:384)
164
==5096==    by 0x4095DE: server_main (server.c:1430)
165
==5096==    by 0x40811E: main (server.c:2055)
166
==5096==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
167
==5096== 
168
==5096== 
169
==5096== Process terminating with default action of signal 11 (SIGSEGV)
170
==5096==  Access not within mapped region at address 0x0
171
==5096==    at 0x4323E8: sock_addr_from_str_hints (sock_addr.c:385)
172
==5096==    by 0x41EF4D: gw_proc_sockaddr_init.isra.18 (gw_backend.c:391)
173
==5096==    by 0x4216C2: gw_set_defaults_backend (gw_backend.c:1495)
174
==5096==    by 0x710F5C0: mod_fastcgi_set_defaults (mod_fastcgi.c:80)
175
==5096==    by 0x424EA5: plugins_call_set_defaults (plugin.c:384)
176
==5096==    by 0x4095DE: server_main (server.c:1430)
177
==5096==    by 0x40811E: main (server.c:2055)
178
==5096==  If you believe this happened as a result of a stack
179
==5096==  overflow in your program's main thread (unlikely but
180
==5096==  possible), you can try to increase the size of the
181
==5096==  main thread stack using the --main-stacksize= flag.
182
==5096==  The main thread stack size used in this run was 8388608.
183
--5096-- Discarding syms at 0x83be370-0x83c484f in /lib64/libnss_files-2.27.so due to munmap()
184
==5096== 
185
==5096== HEAP SUMMARY:
186
==5096==     in use at exit: 895,259 bytes in 16,694 blocks
187
==5096==   total heap usage: 31,897 allocs, 15,203 frees, 3,088,882 bytes allocated
188
==5096== 
189
==5096== Searching for pointers to 16,694 not-freed blocks
190
==5096== Checked 818,856 bytes
191
==5096== 
192
==5096== LEAK SUMMARY:
193
==5096==    definitely lost: 0 bytes in 0 blocks
194
==5096==    indirectly lost: 0 bytes in 0 blocks
195
==5096==      possibly lost: 0 bytes in 0 blocks
196
==5096==    still reachable: 895,259 bytes in 16,694 blocks
197
==5096==         suppressed: 0 bytes in 0 blocks
198
==5096== Rerun with --leak-check=full to see details of leaked memory
199
==5096== 
200
==5096== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
201
==5096== 
202
==5096== 1 errors in context 1 of 1:
203
==5096== Invalid read of size 1
204
==5096==    at 0x4323E8: sock_addr_from_str_hints (sock_addr.c:385)
205
==5096==    by 0x41EF4D: gw_proc_sockaddr_init.isra.18 (gw_backend.c:391)
206
==5096==    by 0x4216C2: gw_set_defaults_backend (gw_backend.c:1495)
207
==5096==    by 0x710F5C0: mod_fastcgi_set_defaults (mod_fastcgi.c:80)
208
==5096==    by 0x424EA5: plugins_call_set_defaults (plugin.c:384)
209
==5096==    by 0x4095DE: server_main (server.c:1430)
210
==5096==    by 0x40811E: main (server.c:2055)
211
==5096==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
212
==5096== 
213
==5096== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
214
==5096== could not unlink /root/tmp/vgdb-pipe-from-vgdb-to-5096-by-root-on-rt
215
==5096== could not unlink /root/tmp/vgdb-pipe-to-vgdb-from-5096-by-root-on-rt
216
==5096== could not unlink /root/tmp/vgdb-pipe-shared-mem-vgdb-5096-by-root-on-rt
(2-2/2)