Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23030 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93434 invoked by uid 1010); 29 Apr 2006 12:10:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93418 invoked from network); 29 Apr 2006 12:10:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Apr 2006 12:10:15 -0000 X-PHP-List-Original-Sender: nlopess@php.net X-Host-Fingerprint: 212.55.154.23 relay3.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.23:58636] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 18/0D-18514-5A753544 for ; Sat, 29 Apr 2006 08:10:14 -0400 Received: (qmail 15050 invoked by uid 0); 29 Apr 2006 12:10:11 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.156) by relay3 with SMTP; 29 Apr 2006 12:10:11 -0000 Received: (qmail 27747 invoked from network); 29 Apr 2006 12:10:10 -0000 X-AntiVirus: PTMail-AV 0.3.88 X-Virus-Status: Clean (0.01943 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.142.167]) (envelope-sender ) by mta6 (qmail-ldap-1.03) with SMTP for ; 29 Apr 2006 12:10:10 -0000 Message-ID: <00a201c66b85$d9e36a60$0100a8c0@pc07653> To: "PHPdev" Date: Sat, 29 Apr 2006 13:10:05 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_009F_01C66B8E.3B62B310" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: engine/streams problem in HEAD From: nlopess@php.net ("Nuno Lopes") ------=_NextPart_000_009F_01C66B8E.3B62B310 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit Hi, Today I was writing some new tests for tidy, but they aren't working because of some problem in the engine or the streams stuff that leads to memory corruption. The test is ext/tidy/tests/020.phpt. Attached is a nice valgrind log :) Nuno ------=_NextPart_000_009F_01C66B8E.3B62B310 Content-Type: text/plain; format=flowed; name="php_6_valgrind.txt"; reply-type=original Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="php_6_valgrind.txt" =3D=3D18294=3D=3D Memcheck, a memory error detector.=0A= =3D=3D18294=3D=3D Copyright (C) 2002-2005, and GNU GPL'd, by Julian = Seward et al.=0A= =3D=3D18294=3D=3D Using LibVEX rev 1575, a library for dynamic binary = translation.=0A= =3D=3D18294=3D=3D Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks = LLP.=0A= =3D=3D18294=3D=3D Using valgrind-3.1.1, a dynamic binary instrumentation = framework.=0A= =3D=3D18294=3D=3D Copyright (C) 2000-2005, and GNU GPL'd, by Julian = Seward et al.=0A= =3D=3D18294=3D=3D For more details, rerun with: -v=0A= =3D=3D18294=3D=3D =0A= =0A= Strict Standards: date(): It is not safe to rely on the system's = timezone settings. Please use the date.timezone setting, the TZ = environment variable or the date_default_timezone_set() function. In = case you used any of those methods and you are still getting this = warning, you most likely misspelled the timezone identifier. We selected = 'Europe/Paris' for 'WEST/1.0/DST' instead in /cvs/php-src/run-tests.php = on line 221=0A= =0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= CWD : /cvs/php-src=0A= PHP : ./sapi/cli/php =0A= PHP_SAPI : cli=0A= PHP_VERSION : 6.0.0-dev=0A= ZEND_VERSION: 3.0.0-dev=0A= PHP_OS : Linux - Linux linux.mshome.net 2.6.16.11 #1 PREEMPT Sat = Apr 29 12:05:38 WEST 2006 i686=0A= UNICODE : ON=0A= INI actual : /usr/local/lib/php.ini=0A= More .INIs : =0A= Extra dirs : =0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= Running selected tests.=0A= =3D=3D18294=3D=3D Conditional jump or move depends on uninitialised = value(s)=0A= =3D=3D18294=3D=3D at 0x44784C3: u_memchr_3_4 (ustring.c:247)=0A= =3D=3D18294=3D=3D by 0x826D130: php_stream_locate_eol (streams.c:912)=0A= =3D=3D18294=3D=3D by 0x826D22A: _php_stream_get_line (streams.c:969)=0A= =3D=3D18294=3D=3D by 0x81EDFB5: zif_fgets (file.c:1052)=0A= =3D=3D18294=3D=3D by 0x82C851C: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:209)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82A639F: zend_execute_scripts (zend.c:1561)=0A= =3D=3D18294=3D=3D by 0x825BB36: php_execute_script (main.c:1878)=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D Conditional jump or move depends on uninitialised = value(s)=0A= =3D=3D18294=3D=3D at 0x826D254: _php_stream_get_line (streams.c:975)=0A= =3D=3D18294=3D=3D by 0x81EDFB5: zif_fgets (file.c:1052)=0A= =3D=3D18294=3D=3D by 0x82C851C: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:209)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82A639F: zend_execute_scripts (zend.c:1561)=0A= =3D=3D18294=3D=3D by 0x825BB36: php_execute_script (main.c:1878)=0A= =3D=3D18294=3D=3D by 0x8362809: main (php_cli.c:1089)=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D Conditional jump or move depends on uninitialised = value(s)=0A= =3D=3D18294=3D=3D at 0x44795FB: u_countChar32_3_4 (ustring.c:1015)=0A= =3D=3D18294=3D=3D by 0x826D486: _php_stream_get_line (streams.c:1015)=0A= =3D=3D18294=3D=3D by 0x81EDFB5: zif_fgets (file.c:1052)=0A= =3D=3D18294=3D=3D by 0x82C851C: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:209)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82A639F: zend_execute_scripts (zend.c:1561)=0A= =3D=3D18294=3D=3D by 0x825BB36: php_execute_script (main.c:1878)=0A= =3D=3D18294=3D=3D by 0x8362809: main (php_cli.c:1089)=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D Conditional jump or move depends on uninitialised = value(s)=0A= =3D=3D18294=3D=3D at 0x4460FDE: ucnv_fromUnicode_UTF8_3_4 = (ucnv_u8.c:367)=0A= =3D=3D18294=3D=3D by 0x445647E: ucnv_fromUnicode_3_4 (ucnv.c:773)=0A= =3D=3D18294=3D=3D by 0x82975FC: zend_convert_from_unicode = (zend_unicode.c:304)=0A= =3D=3D18294=3D=3D by 0x8297A8C: zval_unicode_to_string = (zend_unicode.c:452)=0A= =3D=3D18294=3D=3D by 0x829A955: _convert_to_string_with_converter = (zend_operators.c:671)=0A= =3D=3D18294=3D=3D by 0x829AAA2: _convert_to_string = (zend_operators.c:655)=0A= =3D=3D18294=3D=3D by 0x82A7E8C: zend_parse_va_args (zend_API.c:407)=0A= =3D=3D18294=3D=3D by 0x82A8DB2: zend_parse_parameters (zend_API.c:937)=0A= =3D=3D18294=3D=3D by 0x80AFDCA: php_pcre_match (php_pcre.c:411)=0A= =3D=3D18294=3D=3D by 0x82C851C: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:209)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D Conditional jump or move depends on uninitialised = value(s)=0A= =3D=3D18294=3D=3D at 0x80ADBBC: php_pcre_exec (pcre_exec.c:3739)=0A= =3D=3D18294=3D=3D by 0x80B01C9: php_pcre_match (php_pcre.c:529)=0A= =3D=3D18294=3D=3D by 0x82C851C: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:209)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82C8100: zend_do_fcall_common_helper_SPEC = (zend_vm_execute.h:243)=0A= =3D=3D18294=3D=3D by 0x82C7E3B: execute (zend_vm_execute.h:92)=0A= =3D=3D18294=3D=3D by 0x82A639F: zend_execute_scripts (zend.c:1561)=0A= =3D=3D18294=3D=3D by 0x825BB36: php_execute_script (main.c:1878)=0A= =3D=3D18294=3D=3D by 0x8362809: main (php_cli.c:1089)=0A= BORK:N missing section --EXPECT--, --EXPECTF-- or --EXPECTREGEX-- = [ext/tidy/tests/020.phpt] =0A= BORK:U missing section --EXPECT--, --EXPECTF-- or --EXPECTREGEX-- = [ext/tidy/tests/020.phpt] =0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= Number of tests : 2 0=0A= Tests borked : 2 (100.0%) --------=0A= Tests skipped : 0 ( 0.0%) --------=0A= Tests warned : 0 ( 0.0%) ( 0.0%)=0A= Tests failed : 0 ( 0.0%) ( 0.0%)=0A= Tests passed : 0 ( 0.0%) ( 0.0%)=0A= ---------------------------------------------------------------------=0A= Time taken : 0 seconds=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= =0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= BORKED TEST SUMMARY=0A= ---------------------------------------------------------------------=0A= N:missing section --EXPECT--, --EXPECTF-- or --EXPECTREGEX-- = [ext/tidy/tests/020.phpt]=0A= U:missing section --EXPECT--, --EXPECTF-- or --EXPECTREGEX-- = [ext/tidy/tests/020.phpt]=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D ERROR SUMMARY: 1246 errors from 5 contexts = (suppressed: 65 from 1)=0A= =3D=3D18294=3D=3D malloc/free: in use at exit: 196,200 bytes in 2,533 = blocks.=0A= =3D=3D18294=3D=3D malloc/free: 44,805 allocs, 42,272 frees, 3,651,936 = bytes allocated.=0A= =3D=3D18294=3D=3D For counts of detected errors, rerun with: -v=0A= =3D=3D18294=3D=3D searching for pointers to 2,533 not-freed blocks.=0A= =3D=3D18294=3D=3D checked 1,460,896 bytes.=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D 24 bytes in 1 blocks are possibly lost in loss record = 2 of 14=0A= =3D=3D18294=3D=3D at 0x401CC8F: realloc (in = /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)=0A= =3D=3D18294=3D=3D by 0x8297498: zend_convert_to_unicode = (zend_unicode.c:259)=0A= =3D=3D18294=3D=3D by 0x827EFD8: zend_convert_scanner_output = (zend_language_scanner.l:633)=0A= =3D=3D18294=3D=3D by 0x8285524: lex_scan (zend_language_scanner.l:419)=0A= =3D=3D18294=3D=3D by 0x8291816: zendlex (zend_compile.c:4237)=0A= =3D=3D18294=3D=3D by 0x8279F7D: zendparse = (zend_language_parser.c:2768)=0A= =3D=3D18294=3D=3D by 0x8280F6C: compile_file = (zend_language_scanner.l:810)=0A= =3D=3D18294=3D=3D by 0x82A6360: zend_execute_scripts (zend.c:1553)=0A= =3D=3D18294=3D=3D by 0x825BB36: php_execute_script (main.c:1878)=0A= =3D=3D18294=3D=3D by 0x8362809: main (php_cli.c:1089)=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D 2,872 (144 direct, 2,728 indirect) bytes in 1 blocks = are definitely lost in loss record 5 of 14=0A= =3D=3D18294=3D=3D at 0x401B511: malloc (in = /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)=0A= =3D=3D18294=3D=3D by 0x8280EF7: compile_file = (zend_language_scanner.l:780)=0A= =3D=3D18294=3D=3D by 0x82A6360: zend_execute_scripts (zend.c:1553)=0A= =3D=3D18294=3D=3D by 0x825BB36: php_execute_script (main.c:1878)=0A= =3D=3D18294=3D=3D by 0x8362809: main (php_cli.c:1089)=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D 148,428 bytes in 1 blocks are possibly lost in loss = record 14 of 14=0A= =3D=3D18294=3D=3D at 0x401CC8F: realloc (in = /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)=0A= =3D=3D18294=3D=3D by 0x8299499: pass_two (zend_opcode.c:374)=0A= =3D=3D18294=3D=3D by 0x8280FAA: compile_file = (zend_language_scanner.l:823)=0A= =3D=3D18294=3D=3D by 0x82A6360: zend_execute_scripts (zend.c:1553)=0A= =3D=3D18294=3D=3D by 0x825BB36: php_execute_script (main.c:1878)=0A= =3D=3D18294=3D=3D by 0x8362809: main (php_cli.c:1089)=0A= =3D=3D18294=3D=3D =0A= =3D=3D18294=3D=3D LEAK SUMMARY:=0A= =3D=3D18294=3D=3D definitely lost: 144 bytes in 1 blocks.=0A= =3D=3D18294=3D=3D indirectly lost: 2,728 bytes in 76 blocks.=0A= =3D=3D18294=3D=3D possibly lost: 148,452 bytes in 2 blocks.=0A= =3D=3D18294=3D=3D still reachable: 25,432 bytes in 1,194 blocks.=0A= =3D=3D18294=3D=3D suppressed: 19,444 bytes in 1,260 blocks.=0A= =3D=3D18294=3D=3D Reachable blocks (those to which a pointer was found) = are not shown.=0A= =3D=3D18294=3D=3D To see them, rerun with: --show-reachable=3Dyes=0A= ------=_NextPart_000_009F_01C66B8E.3B62B310--