Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16661 invoked from network); 19 Dec 2012 20:53:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Dec 2012 20:53:10 -0000 Authentication-Results: pb1.pair.com header.from=jani.ollikainen@mmd.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jani.ollikainen@mmd.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mmd.net from 80.83.1.197 cause and error) X-PHP-List-Original-Sender: jani.ollikainen@mmd.net X-Host-Fingerprint: 80.83.1.197 dyn-197.hel.mmd.net Received: from [80.83.1.197] ([80.83.1.197:57383] helo=smtp.pronetko.fi) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/B6-04341-33922D05 for ; Wed, 19 Dec 2012 15:53:08 -0500 Received: from [10.0.254.129] (wlan.purkki.org [::ffff:195.218.78.41]) (AUTH: PLAIN bestis@pronetko.fi, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by smtp.pronetko.fi with ESMTPSA; Wed, 19 Dec 2012 22:43:51 +0200 id 000000000109800B.50D22708.00001EF5 Message-ID: <50D2291F.4040402@mmd.net> Date: Wed, 19 Dec 2012 22:52:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: internals@lists.php.net References: <50D1D9B9.4060505@mmd.net> <50D22321.5040808@sugarcrm.com> In-Reply-To: <50D22321.5040808@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Crashes in lex_scan at Zend/zend_language_scanner.c / BUG #52752 From: jani.ollikainen@mmd.net (Jani Ollikainen) On 19.12.2012 22:27, Stas Malyshev wrote: >> https://bugs.php.net/bug.php?id=52752 > Just tried to reproduce it on Centos 6.2 install (without APC), works > just fine for me. I suspect it's some APC issue, does it reproduce for > you without APC loaded? Yes, as I mentioned in previous message and in the comments of that bug. I'll hilight the relevant backtrace in this message. Did you tried to run it couple of times? In my tests in one machine it seemed sometimes run without any problems but then ctrl-c and running again got the sigbus. Copy&Paste from bugs.php.net: 5.3.19: Core was generated by `sapi/cli/php test3.php'. Program terminated with signal 7, Bus error. #0 lex_scan (zendlval=) at Zend/zend_language_scanner.l:1709 1709 switch (*YYCURSOR++) { (gdb) list 1704 } 1705 1706 1707 "#"|"//" { 1708 while (YYCURSOR < YYLIMIT) { 1709 switch (*YYCURSOR++) { 1710 case '\r': 1711 if (*YYCURSOR == '\n') { 1712 YYCURSOR++; 1713 } #0 lex_scan (zendlval=) at Zend/zend_language_scanner.l:1709 #1 0x0000000000636640 in zendlex (zendlval=0x7fff2476cb90) at /root/php-5.3.19/Zend/zend_compile.c:4975 #2 0x0000000000620e66 in zendparse () at /root/php-5.3.19/Zend/zend_language_parser.c:3285 #3 0x000000000062bb52 in compile_file (file_handle=0x7fff2476ce80, type=) at Zend/zend_language_scanner.l:364 #4 0x00000000005362d1 in phar_compile_file (file_handle=0x7fff2476ce80, type=2) at /root/php-5.3.19/ext/phar/phar.c:3394 #5 0x000000000062b3de in compile_filename (type=2, filename=0x185ac58) at Zend/zend_language_scanner.l:407 #6 0x000000000067c63e in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER ( execute_data=0x7fe9b5916050) at /root/php-5.3.19/Zend/zend_vm_execute.h:1967 #7 0x0000000000675a30 in execute (op_array=0x184f358) at /root/php-5.3.19/Zend/zend_vm_execute.h:107 #8 0x000000000064f86f in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php-5.3.19/Zend/zend.c:1259 #9 0x00000000005fcd67 in php_execute_script (primary_file=0x7fff24770780) at /root/php-5.3.19/main/main.c:2316 #10 0x00000000006da002 in main (argc=2, argv=0x7fff24770a18) at /root/php-5.3.19/sapi/cli/php_cli.c:1189 Test file was also in that bugs comments, which i modified a little to get it to use version that i did compile. # cat test3.php 0) { while ($argv[1]--) file_put_contents('test.tpl', "\n", LOCK_EX); } else { $p2 = popen("sapi/cli/php test3.php 100", "r"); while (1) include 'test.tpl'; } ?>