Project

General

Profile

Bug #2876 » lighttpd-valgrind.txt

arekm, 2018-03-15 18:44

 
==5096== Memcheck, a memory error detector
==5096== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==5096== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==5096== Command: lighttpd -D -f /etc/lighttpd/lighttpd.conf
==5096== Parent PID: 3934
==5096==
--5096--
--5096-- Valgrind options:
--5096-- --tool=memcheck
--5096-- -v
--5096-- --log-file=lighttpd
--5096-- --num-callers=8
--5096-- Contents of /proc/version:
--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
--5096--
--5096-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-sse3
--5096-- Page sizes: currently 4096, max supported 4096
--5096-- Valgrind library directory: /usr/lib64/valgrind
--5096-- Reading syms from /usr/sbin/lighttpd
--5096-- Considering /usr/lib/debug/.build-id/cc/5497280e56bccea502a03afa2b56f4c005b7fd.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /lib64/ld-2.27.so
--5096-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux
--5096-- object doesn't have a symbol table
--5096-- object doesn't have a dynamic symbol table
--5096-- Scheduler: using generic scheduler lock implementation.
--5096-- Reading suppressions file: /usr/lib64/valgrind/default.supp
==5096== embedded gdbserver: reading from /root/tmp/vgdb-pipe-from-vgdb-to-5096-by-root-on-rt
==5096== embedded gdbserver: writing to /root/tmp/vgdb-pipe-to-vgdb-from-5096-by-root-on-rt
==5096== embedded gdbserver: shared mem /root/tmp/vgdb-pipe-shared-mem-vgdb-5096-by-root-on-rt
==5096==
==5096== TO CONTROL THIS PROCESS USING vgdb (which you probably
==5096== don't want to do, unless you know exactly what you're doing,
==5096== or are doing some strange experiment):
==5096== /usr/lib64/valgrind/../../bin/vgdb --pid=5096 ...command...
==5096==
==5096== TO DEBUG THIS PROCESS USING GDB: start GDB like this
==5096== /path/to/gdb lighttpd
==5096== and then give GDB the following command
==5096== target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=5096
==5096== --pid is optional if only one valgrind process is running
==5096==
--5096-- REDIR: 0x401c740 (ld-linux-x86-64.so.2:strlen) redirected to 0x58061498 (???)
--5096-- REDIR: 0x401c520 (ld-linux-x86-64.so.2:index) redirected to 0x580614b2 (???)
--5096-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so
--5096-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
==5096== WARNING: new redirection conflicts with existing -- ignoring it
--5096-- old: 0x0401c740 (strlen ) R-> (0000.0) 0x58061498 ???
--5096-- new: 0x0401c740 (strlen ) R-> (2007.0) 0x04c2fe60 strlen
--5096-- REDIR: 0x401a7b0 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c30f90 (strcmp)
--5096-- REDIR: 0x401cc80 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c345a0 (mempcpy)
--5096-- Reading syms from /lib64/libpcre.so.1.2.9
--5096-- object doesn't have a symbol table
--5096-- Reading syms from /lib64/libdl-2.27.so
--5096-- object doesn't have a symbol table
--5096-- Reading syms from /lib64/libattr.so.1.1.2448
--5096-- object doesn't have a symbol table
--5096-- Reading syms from /lib64/libcrypto.so.1.0.0
--5096-- object doesn't have a symbol table
--5096-- Reading syms from /lib64/libpthread-2.27.so
--5096-- Reading syms from /lib64/libc-2.27.so
--5096-- object doesn't have a symbol table
--5096-- Reading syms from /lib64/libz.so.1.2.11
--5096-- object doesn't have a symbol table
--5096-- REDIR: 0x5bb5310 (libc.so.6:memmove) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
==5096== Preferring higher priority redirection:
--5096-- old: 0x05bce1e0 (memcpy ) R-> (2018.0) 0x04c31750 memcpy
--5096-- new: 0x05bce1e0 (memcpy ) R-> (2018.1) 0x04c33790 memmove
--5096-- REDIR: 0x5bb4530 (libc.so.6:strncpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb55f0 (libc.so.6:strcasecmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb3f60 (libc.so.6:strcat) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb4560 (libc.so.6:rindex) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb6c00 (libc.so.6:rawmemchr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb5480 (libc.so.6:mempcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb52b0 (libc.so.6:bcmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb44f0 (libc.so.6:strncmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb3fd0 (libc.so.6:strcmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb53e0 (libc.so.6:memset) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bcedf0 (libc.so.6:wcschr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb4490 (libc.so.6:strnlen) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb4050 (libc.so.6:strcspn) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb5640 (libc.so.6:strncasecmp) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb4020 (libc.so.6:strcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb5780 (libc.so.6:memcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb4590 (libc.so.6:strpbrk) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb3f90 (libc.so.6:index) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb4460 (libc.so.6:strlen) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bbb430 (libc.so.6:memrchr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb5690 (libc.so.6:strcasecmp_l) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb5280 (libc.so.6:memchr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bcfbb0 (libc.so.6:wcslen) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb4840 (libc.so.6:strspn) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb55c0 (libc.so.6:stpncpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb5590 (libc.so.6:stpcpy) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb6c30 (libc.so.6:strchrnul) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bb56e0 (libc.so.6:strncasecmp_l) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- REDIR: 0x5bc40b0 (libc.so.6:???) redirected to 0x4c2f7e0 (rindex)
--5096-- REDIR: 0x5bc43a0 (libc.so.6:???) redirected to 0x4c2fda0 (strlen)
--5096-- REDIR: 0x5bbcbf0 (libc.so.6:???) redirected to 0x4c30e50 (strcmp)
--5096-- REDIR: 0x5bb14e0 (libc.so.6:calloc) redirected to 0x4c2eb20 (calloc)
--5096-- REDIR: 0x5bb07b0 (libc.so.6:malloc) redirected to 0x4c2cb50 (malloc)
--5096-- REDIR: 0x5bce1e0 (libc.so.6:memcpy) redirected to 0x4c33790 (memmove)
--5096-- REDIR: 0x5bc3c80 (libc.so.6:???) redirected to 0x4c2fa00 (index)
--5096-- REDIR: 0x5bb0e60 (libc.so.6:free) redirected to 0x4c2dd80 (free)
--5096-- REDIR: 0x5bb0f80 (libc.so.6:realloc) redirected to 0x4c2ed60 (realloc)
--5096-- REDIR: 0x5bce1c0 (libc.so.6:???) redirected to 0x4c341e0 (mempcpy)
--5096-- REDIR: 0x5c8b9b0 (libc.so.6:???) redirected to 0x4c32eb0 (bcmp)
--5096-- REDIR: 0x5bbe6f0 (libc.so.6:???) redirected to 0x4c31030 (memchr)
--5096-- REDIR: 0x5bce5f0 (libc.so.6:???) redirected to 0x4c33680 (memset)
--5096-- Reading syms from /usr/lib64/lighttpd/mod_indexfile.so
--5096-- Considering /usr/lib/debug/.build-id/a4/5d4d3cedd6c10aec80d5a1888fbdaaba994ddf.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_redirect.so
--5096-- Considering /usr/lib/debug/.build-id/d6/3ebcd763e8f3c637be0d4148387895fc03bf2a.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_access.so
--5096-- Considering /usr/lib/debug/.build-id/58/f9950297bbd4381ca9c078fd4980c69c914026.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_alias.so
--5096-- Considering /usr/lib/debug/.build-id/35/cf0b81767036366af12d1ef6525f2516ab8133.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_fastcgi.so
--5096-- Considering /usr/lib/debug/.build-id/0a/2aee289d805fa17fd9ed3fd2e2d28834ddefef.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_openssl.so
--5096-- Considering /usr/lib/debug/.build-id/63/55765ec806c6c8bfd03c7fa16ee71441be951e.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /lib64/libssl.so.1.0.0
--5096-- object doesn't have a symbol table
--5096-- REDIR: 0x5c34f30 (libc.so.6:__memcpy_chk) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- Reading syms from /usr/lib64/lighttpd/mod_expire.so
--5096-- Considering /usr/lib/debug/.build-id/a4/2007a546eb818edf93e56ecc8d6b49f461508c.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_compress.so
--5096-- Considering /usr/lib/debug/.build-id/4e/5adcdac5e4ed77db7f8a4820275b599534e392.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /lib64/libbz2.so.1.0.0
--5096-- object doesn't have a symbol table
--5096-- REDIR: 0x5bb51b0 (libc.so.6:strstr) redirected to 0x4a27710 (_vgnU_ifunc_wrapper)
--5096-- Reading syms from /usr/lib64/lighttpd/mod_accesslog.so
--5096-- Considering /usr/lib/debug/.build-id/bf/a6305c68dabd88ff9b8b71b78261ddb998b327.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_dirlisting.so
--5096-- Considering /usr/lib/debug/.build-id/aa/1c8ede0670dab1a70e565a68d235fc3baeebff.debug ..
--5096-- .. build-id is valid
--5096-- Reading syms from /usr/lib64/lighttpd/mod_staticfile.so
--5096-- Considering /usr/lib/debug/.build-id/29/9878bb86c0be05e9aa0804405383d06fc44b0e.debug ..
--5096-- .. build-id is valid
--5096-- REDIR: 0x5bca8d0 (libc.so.6:???) redirected to 0x4c33010 (stpcpy)
--5096-- REDIR: 0x5bc98f0 (libc.so.6:???) redirected to 0x4c30060 (strncpy)
--5096-- REDIR: 0x5c83a90 (libc.so.6:???) redirected to 0x4c30780 (strncasecmp)
--5096-- REDIR: 0x5c80f00 (libc.so.6:???) redirected to 0x4c304a0 (strncmp)
--5096-- REDIR: 0x5bc3ea0 (libc.so.6:???) redirected to 0x4c340d0 (strchrnul)
--5096-- REDIR: 0x5bc92c0 (libc.so.6:???) redirected to 0x4c2fe80 (strcpy)
--5096-- REDIR: 0x5bce1d0 (libc.so.6:???) redirected to 0x4c34690 (__memcpy_chk)
--5096-- Reading syms from /lib64/libnss_files-2.27.so
--5096-- object doesn't have a symbol table
==5096== Invalid read of size 1
==5096== at 0x4323E8: sock_addr_from_str_hints (sock_addr.c:385)
==5096== by 0x41EF4D: gw_proc_sockaddr_init.isra.18 (gw_backend.c:391)
==5096== by 0x4216C2: gw_set_defaults_backend (gw_backend.c:1495)
==5096== by 0x710F5C0: mod_fastcgi_set_defaults (mod_fastcgi.c:80)
==5096== by 0x424EA5: plugins_call_set_defaults (plugin.c:384)
==5096== by 0x4095DE: server_main (server.c:1430)
==5096== by 0x40811E: main (server.c:2055)
==5096== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5096==
==5096==
==5096== Process terminating with default action of signal 11 (SIGSEGV)
==5096== Access not within mapped region at address 0x0
==5096== at 0x4323E8: sock_addr_from_str_hints (sock_addr.c:385)
==5096== by 0x41EF4D: gw_proc_sockaddr_init.isra.18 (gw_backend.c:391)
==5096== by 0x4216C2: gw_set_defaults_backend (gw_backend.c:1495)
==5096== by 0x710F5C0: mod_fastcgi_set_defaults (mod_fastcgi.c:80)
==5096== by 0x424EA5: plugins_call_set_defaults (plugin.c:384)
==5096== by 0x4095DE: server_main (server.c:1430)
==5096== by 0x40811E: main (server.c:2055)
==5096== If you believe this happened as a result of a stack
==5096== overflow in your program's main thread (unlikely but
==5096== possible), you can try to increase the size of the
==5096== main thread stack using the --main-stacksize= flag.
==5096== The main thread stack size used in this run was 8388608.
--5096-- Discarding syms at 0x83be370-0x83c484f in /lib64/libnss_files-2.27.so due to munmap()
==5096==
==5096== HEAP SUMMARY:
==5096== in use at exit: 895,259 bytes in 16,694 blocks
==5096== total heap usage: 31,897 allocs, 15,203 frees, 3,088,882 bytes allocated
==5096==
==5096== Searching for pointers to 16,694 not-freed blocks
==5096== Checked 818,856 bytes
==5096==
==5096== LEAK SUMMARY:
==5096== definitely lost: 0 bytes in 0 blocks
==5096== indirectly lost: 0 bytes in 0 blocks
==5096== possibly lost: 0 bytes in 0 blocks
==5096== still reachable: 895,259 bytes in 16,694 blocks
==5096== suppressed: 0 bytes in 0 blocks
==5096== Rerun with --leak-check=full to see details of leaked memory
==5096==
==5096== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==5096==
==5096== 1 errors in context 1 of 1:
==5096== Invalid read of size 1
==5096== at 0x4323E8: sock_addr_from_str_hints (sock_addr.c:385)
==5096== by 0x41EF4D: gw_proc_sockaddr_init.isra.18 (gw_backend.c:391)
==5096== by 0x4216C2: gw_set_defaults_backend (gw_backend.c:1495)
==5096== by 0x710F5C0: mod_fastcgi_set_defaults (mod_fastcgi.c:80)
==5096== by 0x424EA5: plugins_call_set_defaults (plugin.c:384)
==5096== by 0x4095DE: server_main (server.c:1430)
==5096== by 0x40811E: main (server.c:2055)
==5096== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==5096==
==5096== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==5096== could not unlink /root/tmp/vgdb-pipe-from-vgdb-to-5096-by-root-on-rt
==5096== could not unlink /root/tmp/vgdb-pipe-to-vgdb-from-5096-by-root-on-rt
==5096== could not unlink /root/tmp/vgdb-pipe-shared-mem-vgdb-5096-by-root-on-rt
(2-2/2)