Re: Re: Re was: [PHP-DEV] 5.0.5RC1 rolled
| From: | steve | Date: | Tue, 30 Aug 2005 23:07:47 +0000 |
| Subject: | Re: Re: Re was: [PHP-DEV] 5.0.5RC1 rolled | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18587@lists.php.net to get a copy of this message | ||
This was with:
/usr/bin/valgrind --tool=memcheck --leak-check=yes -v --trace-children=yes
And it didn't seem to add anything while the errorlog was being written.
# more log.pid17870
==17870== Memcheck, a memory error detector for x86-linux.
==17870== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==17870== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==17870== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==17870==
==17870== My PID = 17870, parent PID = 17869. Prog and args are:
==17870== /usr/local/apache2/fastcgi-bin/php505.fcgi
==17870==
==17870== Valgrind library directory: /usr/lib/valgrind
==17870== Command line
==17870== /usr/local/apache2/fastcgi-bin/php505.fcgi
==17870== Startup, with flags:
==17870== --tool=memcheck
==17870== --leak-check=yes
==17870== -v
==17870== --trace-children=yes
==17870== --log-file=/usr/local/apache2/fastcgi-bin/log
==17870== Contents of /proc/version:
==17870== Linux version 2.6.9-11.106.unsupportedsmp
(buildcentos@x8664-build) (gcc version 3.4.3 20050227 (Red Hat
3.4.3-22)) #1 SMP Wed Jun 8 22:05:04 CDT 2005
==17870== Reading syms from /usr/local/apache2/fastcgi-bin/php505.fcgi
(0x8048000)
==17870== Reading syms from /lib/ld-2.3.4.so (0x1B8E4000)
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==17870== Reading syms from /lib/ld-2.3.4.so (0xB1000000)
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7C9D000)
==17870== Reading syms from /lib/tls/libc-2.3.4.so (0xB7EC6000)
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/libdl-2.3.4.so (0xB7FF0000)
==17870== object doesn't have any debug info
==17870== Reading suppressions file: /usr/lib/valgrind/default.supp
==17870== REDIRECT soname:libc.so.6(__GI___errno_location) to
soname:libpthread.so.0(__errno_location)
==17870== REDIRECT soname:libc.so.6(__errno_location) to
soname:libpthread.so.0(__errno_location)
==17870== REDIRECT soname:libc.so.6(__GI___h_errno_location) to
soname:libpthread.so.0(__h_errno_location)
==17870== REDIRECT soname:libc.so.6(__h_errno_location) to
soname:libpthread.so.0(__h_errno_location)
==17870== REDIRECT soname:libc.so.6(__GI___res_state) to
soname:libpthread.so.0(__res_state)
==17870== REDIRECT soname:libc.so.6(__res_state) to
soname:libpthread.so.0(__res_state)
==17870== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==17870== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck..so*(strnlen)
==17870== REDIRECT soname:ld-linux.so.2(stpcpy) to
*vgpreload_memcheck.so*(stpcpy)
==17870== REDIRECT soname:ld-linux.so.2(strchr) to
*vgpreload_memcheck.so*(strchr)
==17870==
==17870== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FC000)
==17870== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B901000)
==17870== TRANSLATE: 0x1B8F5EE0 redirected to 0x1B904100
==17870== Reading syms from /lib/libcrypt-2.3.4.so (0xB3D000)
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/libpng12.so.0.1.2.7 (0xAFD000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/libz.so.1.2.1.2 (0xB97000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/libresolv-2.3.4.so (0x79D000)
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/tls/libm-2.3.4.so (0x5D8000)
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/libdl-2.3.4.so (0x5D2000)
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/libnsl-2.3.4.so (0x982000)
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/libssl.so.0.9.7a (0xBA9000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/libcrypto.so.0.9.7a (0x139000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/libgssapi_krb5.so.2.2 (0x9D5000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/libkrb5.so.3.2 (0x908000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /lib/libcom_err.so.2.1 (0x7B2000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/libk5crypto.so.3.0 (0x7FA000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/libxml2.so.2.6.16 (0x224000)
==17870== object doesn't have a symbol table
==17870== object doesn't have any debug info
==17870== Reading syms from /usr/lib/valgrind/libpthread.so (0x1B919000)
==17870== Reading syms from /lib/tls/libc-2.3.4.so (0x4A7000)
==17870== object doesn't have any debug info
==17870== TRANSLATE: 0x50AE80 redirected to 0x1B9048F8
==17870== TRANSLATE: 0x50ABA0 redirected to 0x1B905274
==17870== TRANSLATE: 0x1B8E47A0 redirected to 0x52BFF040
==17870== TRANSLATE: 0x508DB0 redirected to 0x1B904E24
==17870== TRANSLATE: 0x50B4C0 redirected to 0x1B905326
==17870== TRANSLATE: 0x511090 redirected to 0x1B9046F4
==17995== Reading syms from /lib/libnss_files-2.3.4.so (0x1C154000)
==17995== object doesn't have any debug info
==17995== Conditional jump or move depends on uninitialised value(s)
==17995== at 0xB9B1C7: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9881A: compress2 (in /usr/lib/libz.so.1.2.1.2)
==17995==
==17995== Conditional jump or move depends on uninitialised value(s)
==17995== at 0xB9B18E: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9881A: compress2 (in /usr/lib/libz.so.1.2.1.2)
==17995==
==17995== Process terminating with default action of signal 15 (SIGTERM)
==17995== at 0x56EA41: accept (in /lib/tls/libc-2.3.4.so)
==17995== by 0x821AAEC: OS_Accept (os_unix.c:1146)
==17995== by 0x8219C81: FCGX_Accept_r (fcgiapp.c:2210)
==17995== by 0x821BAA9: main (cgi_main.c:1662)
==17995==
==17995== ERROR SUMMARY: 66 errors from 2 contexts (suppressed: 30 from 2)
==17995==
==17995== 6 errors in context 1 of 2:
==17995== Conditional jump or move depends on uninitialised value(s)
==17995== at 0xB9B1C7: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9881A: compress2 (in /usr/lib/libz.so.1.2.1.2)
==17995==
==17995== 60 errors in context 2 of 2:
==17995== Conditional jump or move depends on uninitialised value(s)
==17995== at 0xB9B18E: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2)
==17995== by 0xB9881A: compress2 (in /usr/lib/libz.so.1.2.1.2)
--17995--
--17995-- supp: 2 _dl_relocate_object/dl_open_worker
--17995-- supp: 28 dl_relocate_object/dl_main
==17995==
==17995== IN SUMMARY: 66 errors from 2 contexts (suppressed: 30 from 2)
==17995==
==17995== malloc/free: in use at exit: 570156 bytes in 9647 blocks.
==17995== malloc/free: 794941 allocs, 785294 frees, 213330079 bytes allocated.
==17995==
==17995== searching for pointers to 9647 not-freed blocks.
==17870==
==17870== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 28 from 1)
--17870--
--17870-- supp: 28 dl_relocate_object/dl_main
==17870== malloc/free: in use at exit: 522130 bytes in 9485 blocks.
==17870== malloc/free: 10131 allocs, 646 frees, 585888 bytes allocated.
==17870==
==17870== searching for pointers to 9485 not-freed blocks.
got signal 15 in LWP 17870 (17870)
valgrind: vg_signals.c:1997 (vg_async_signalhandler): Assertion
`vgPlain_ksigismember(&uc->uc_sigmask, sigNo)' failed.
==17870== at 0xB002C005: vgPlain_skin_assert_fail (vg_mylibc.c:1137)
==17870== by 0xB002C004: assert_fail (vg_mylibc.c:1133)
==17870== by 0xB002C042: vgPlain_core_assert_fail (vg_mylibc.c:1144)
==17870== by 0xB0031F59: vg_async_signalhandler (vg_signals.c:1997)
sched status:
Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0
==17870== at 0x1B8FC9EA: _vgw(float, long double,...)(...)(long
double,...)(short) (vg_intercept.c:119)
==17870== by 0x5314F3: __GI__exit (in /lib/tls/libc-2.3.4.so)
==17870== by 0x821B48C: fastcgi_cleanup (cgi_main.c:935)
==17870== by 0x52BFEFFF: ???
Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.
If that doesn't help, please report this bug to: valgrind.kde.org
In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using. Thanks.
==17995== checked 10519468 bytes.
==17995==
==17995== LEAK SUMMARY:
==17995== definitely lost: 0 bytes in 0 blocks.
==17995== possibly lost: 0 bytes in 0 blocks.
==17995== still reachable: 569956 bytes in 9646 blocks.
==17995== suppressed: 200 bytes in 1 blocks.
==17995== Reachable blocks (those to which a pointer was found) are not shown.
==17995== To see them, rerun with: --show-reachable=yes
--17995-- TT/TC: 0 tc sectors discarded.
--17995-- 164887 tt_fast misses.
--17995-- translate: new 27502 (463623 -> 6555839; ratio 141:10)
--17995-- discard 2 (59 -> 840; ratio 142:10).
--17995-- chainings: 25350 chainings, 3 unchainings.
--17995-- dispatch: 379000000 jumps (bb entries); of them 57255834
(15%) unchained.
--17995-- 17488/1949962 major/minor sched events.
--17995-- reg-alloc: 4848 t-req-spill, 1208465+34207 orig+spill uis,
--17995-- 142099 total-reg-rank
--17995-- sanity: 12745 cheap, 510 expensive checks.
--17995-- ccalls: 138175 C calls, 55% saves+restores avoided (454052 bytes)
--17995-- 185964 args, avg 0.88 setup instrs each (43568 bytes)
--17995-- 0% clear the stack (414075 bytes)
--17995-- 43264 retvals, 30% of reg-reg movs avoided (25174 bytes)