Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89910 invoked by uid 1010); 30 Aug 2005 23:07:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89894 invoked from network); 30 Aug 2005 23:07:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2005 23:07:50 -0000 X-Host-Fingerprint: 64.233.184.195 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.195:49371] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D0/F1-15098-5C6E4134 for ; Tue, 30 Aug 2005 19:07:50 -0400 Received: by wproxy.gmail.com with SMTP id i36so886070wra for ; Tue, 30 Aug 2005 16:07:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DsA04GIuudI1bNPvOPNQRxw1fewsVibYYF6eME84yKCs6URE52en9/MUoEdr6Iq4AwXkvJiinHrDsiDfIj03xH14yvR8pYTX0IkXM+n67vna03s9nK06KP+gni8at2nTfPZhG+z5FEjkLryaq3GnbnuhWgZyZ3jV8WbzPV1Mgjs= Received: by 10.54.33.43 with SMTP id g43mr7556891wrg; Tue, 30 Aug 2005 16:07:47 -0700 (PDT) Received: by 10.54.107.8 with HTTP; Tue, 30 Aug 2005 16:07:47 -0700 (PDT) Message-ID: <57792e8505083016074f253917@mail.gmail.com> Date: Tue, 30 Aug 2005 16:07:47 -0700 To: Marcus Boerger Cc: internals@lists.php.net In-Reply-To: <57792e85050830160454f50319@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5.1.0.14.2.20050822134257.05e07c60@localhost> <57792e8505082914244b23a4df@mail.gmail.com> <1115917991.20050830000559@marcus-boerger.de> <57792e85050830123275779038@mail.gmail.com> <1279281695.20050830215401@marcus-boerger.de> <57792e8505083014323f86ac6@mail.gmail.com> <915210870.20050830234417@marcus-boerger.de> <57792e85050830160454f50319@mail.gmail.com> Subject: Re: [PHP-DEV] Re: Re was: [PHP-DEV] 5.0.5RC1 rolled From: iamstever@gmail.com (steve) This was with: /usr/bin/valgrind --tool=3Dmemcheck --leak-check=3Dyes -v --trace-children= =3Dyes And it didn't seem to add anything while the errorlog was being written. # more log.pid17870 =3D=3D17870=3D=3D Memcheck, a memory error detector for x86-linux. =3D=3D17870=3D=3D Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward = et al. =3D=3D17870=3D=3D Using valgrind-2.2.0, a program supervision framework for= x86-linux. =3D=3D17870=3D=3D Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward = et al. =3D=3D17870=3D=3D =3D=3D17870=3D=3D My PID =3D 17870, parent PID =3D 17869. Prog and args ar= e: =3D=3D17870=3D=3D /usr/local/apache2/fastcgi-bin/php505.fcgi =3D=3D17870=3D=3D =3D=3D17870=3D=3D Valgrind library directory: /usr/lib/valgrind =3D=3D17870=3D=3D Command line =3D=3D17870=3D=3D /usr/local/apache2/fastcgi-bin/php505.fcgi =3D=3D17870=3D=3D Startup, with flags: =3D=3D17870=3D=3D --tool=3Dmemcheck =3D=3D17870=3D=3D --leak-check=3Dyes =3D=3D17870=3D=3D -v =3D=3D17870=3D=3D --trace-children=3Dyes =3D=3D17870=3D=3D --log-file=3D/usr/local/apache2/fastcgi-bin/log =3D=3D17870=3D=3D Contents of /proc/version: =3D=3D17870=3D=3D 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 =3D=3D17870=3D=3D Reading syms from /usr/local/apache2/fastcgi-bin/php505.f= cgi (0x8048000) =3D=3D17870=3D=3D Reading syms from /lib/ld-2.3.4.so (0x1B8E4000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/valgrind/stage2 (0xB0000000) =3D=3D17870=3D=3D Reading syms from /lib/ld-2.3.4.so (0xB1000000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0= xB7C9D000) =3D=3D17870=3D=3D Reading syms from /lib/tls/libc-2.3.4.so (0xB7EC6000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/libdl-2.3.4.so (0xB7FF0000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading suppressions file: /usr/lib/valgrind/default.supp =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(__GI___errno_location) to soname:libpthread.so.0(__errno_location) =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(__errno_location) to soname:libpthread.so.0(__errno_location) =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(__GI___h_errno_location) to soname:libpthread.so.0(__h_errno_location) =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(__h_errno_location) to soname:libpthread.so.0(__h_errno_location) =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(__GI___res_state) to soname:libpthread.so.0(__res_state) =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(__res_state) to soname:libpthread.so.0(__res_state) =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.= so*(stpcpy) =3D=3D17870=3D=3D REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck= .so*(strnlen) =3D=3D17870=3D=3D REDIRECT soname:ld-linux.so.2(stpcpy) to *vgpreload_memcheck.so*(stpcpy) =3D=3D17870=3D=3D REDIRECT soname:ld-linux.so.2(strchr) to *vgpreload_memcheck.so*(strchr) =3D=3D17870=3D=3D =3D=3D17870=3D=3D Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FC= 000) =3D=3D17870=3D=3D Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so= (0x1B901000) =3D=3D17870=3D=3D TRANSLATE: 0x1B8F5EE0 redirected to 0x1B904100 =3D=3D17870=3D=3D Reading syms from /lib/libcrypt-2.3.4.so (0xB3D000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/libpng12.so.0.1.2.7 (0xAFD000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/libz.so.1.2.1.2 (0xB97000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/libresolv-2.3.4.so (0x79D000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/tls/libm-2.3.4.so (0x5D8000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/libdl-2.3.4.so (0x5D2000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/libnsl-2.3.4.so (0x982000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/libssl.so.0.9.7a (0xBA9000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/libcrypto.so.0.9.7a (0x139000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/libgssapi_krb5.so.2.2 (0x9D500= 0) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/libkrb5.so.3.2 (0x908000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /lib/libcom_err.so.2.1 (0x7B2000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/libk5crypto.so.3.0 (0x7FA000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/libxml2.so.2.6.16 (0x224000) =3D=3D17870=3D=3D object doesn't have a symbol table =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D Reading syms from /usr/lib/valgrind/libpthread.so (0x1B91= 9000) =3D=3D17870=3D=3D Reading syms from /lib/tls/libc-2.3.4.so (0x4A7000) =3D=3D17870=3D=3D object doesn't have any debug info =3D=3D17870=3D=3D TRANSLATE: 0x50AE80 redirected to 0x1B9048F8 =3D=3D17870=3D=3D TRANSLATE: 0x50ABA0 redirected to 0x1B905274 =3D=3D17870=3D=3D TRANSLATE: 0x1B8E47A0 redirected to 0x52BFF040 =3D=3D17870=3D=3D TRANSLATE: 0x508DB0 redirected to 0x1B904E24 =3D=3D17870=3D=3D TRANSLATE: 0x50B4C0 redirected to 0x1B905326 =3D=3D17870=3D=3D TRANSLATE: 0x511090 redirected to 0x1B9046F4 =3D=3D17995=3D=3D Reading syms from /lib/libnss_files-2.3.4.so (0x1C154000) =3D=3D17995=3D=3D object doesn't have any debug info =3D=3D17995=3D=3D Conditional jump or move depends on uninitialised value(s= ) =3D=3D17995=3D=3D at 0xB9B1C7: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9881A: compress2 (in /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D =3D=3D17995=3D=3D Conditional jump or move depends on uninitialised value(s= ) =3D=3D17995=3D=3D at 0xB9B18E: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9881A: compress2 (in /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D =3D=3D17995=3D=3D Process terminating with default action of signal 15 (SIG= TERM) =3D=3D17995=3D=3D at 0x56EA41: accept (in /lib/tls/libc-2.3.4.so) =3D=3D17995=3D=3D by 0x821AAEC: OS_Accept (os_unix.c:1146) =3D=3D17995=3D=3D by 0x8219C81: FCGX_Accept_r (fcgiapp.c:2210) =3D=3D17995=3D=3D by 0x821BAA9: main (cgi_main.c:1662) =3D=3D17995=3D=3D =3D=3D17995=3D=3D ERROR SUMMARY: 66 errors from 2 contexts (suppressed: 30 = from 2) =3D=3D17995=3D=3D =3D=3D17995=3D=3D 6 errors in context 1 of 2: =3D=3D17995=3D=3D Conditional jump or move depends on uninitialised value(s= ) =3D=3D17995=3D=3D at 0xB9B1C7: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9881A: compress2 (in /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D =3D=3D17995=3D=3D 60 errors in context 2 of 2: =3D=3D17995=3D=3D Conditional jump or move depends on uninitialised value(s= ) =3D=3D17995=3D=3D at 0xB9B18E: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9C06F: (within /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D by 0xB9A505: deflate (in /usr/lib/libz.so.1.2.1.2) =3D=3D17995=3D=3D 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 =3D=3D17995=3D=3D =3D=3D17995=3D=3D IN SUMMARY: 66 errors from 2 contexts (suppressed: 30 fro= m 2) =3D=3D17995=3D=3D =3D=3D17995=3D=3D malloc/free: in use at exit: 570156 bytes in 9647 blocks. =3D=3D17995=3D=3D malloc/free: 794941 allocs, 785294 frees, 213330079 bytes= allocated. =3D=3D17995=3D=3D =3D=3D17995=3D=3D searching for pointers to 9647 not-freed blocks. =3D=3D17870=3D=3D =3D=3D17870=3D=3D ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 28 f= rom 1) --17870-- --17870-- supp: 28 dl_relocate_object/dl_main =3D=3D17870=3D=3D malloc/free: in use at exit: 522130 bytes in 9485 blocks. =3D=3D17870=3D=3D malloc/free: 10131 allocs, 646 frees, 585888 bytes alloca= ted. =3D=3D17870=3D=3D =3D=3D17870=3D=3D 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. =3D=3D17870=3D=3D at 0xB002C005: vgPlain_skin_assert_fail (vg_mylibc.c:1= 137) =3D=3D17870=3D=3D by 0xB002C004: assert_fail (vg_mylibc.c:1133) =3D=3D17870=3D=3D by 0xB002C042: vgPlain_core_assert_fail (vg_mylibc.c:1= 144) =3D=3D17870=3D=3D by 0xB0031F59: vg_async_signalhandler (vg_signals.c:19= 97) sched status: Thread 1: status =3D Runnable, associated_mx =3D 0x0, associated_cv =3D 0x0 =3D=3D17870=3D=3D at 0x1B8FC9EA: _vgw(float, long double,...)(...)(long double,...)(short) (vg_intercept.c:119) =3D=3D17870=3D=3D by 0x5314F3: __GI__exit (in /lib/tls/libc-2.3.4.so) =3D=3D17870=3D=3D by 0x821B48C: fastcgi_cleanup (cgi_main.c:935) =3D=3D17870=3D=3D 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. =3D=3D17995=3D=3D checked 10519468 bytes. =3D=3D17995=3D=3D =3D=3D17995=3D=3D LEAK SUMMARY: =3D=3D17995=3D=3D definitely lost: 0 bytes in 0 blocks. =3D=3D17995=3D=3D possibly lost: 0 bytes in 0 blocks. =3D=3D17995=3D=3D still reachable: 569956 bytes in 9646 blocks. =3D=3D17995=3D=3D suppressed: 200 bytes in 1 blocks. =3D=3D17995=3D=3D Reachable blocks (those to which a pointer was found) are= not shown. =3D=3D17995=3D=3D To see them, rerun with: --show-reachable=3Dyes --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 byt= es) --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 byte= s)