Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64387 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45317 invoked from network); 20 Dec 2012 18:40:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Dec 2012 18:40:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.143 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.143 smtp143.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.143] ([67.192.241.143:32939] helo=smtp143.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/9A-20281-4AB53D05 for ; Thu, 20 Dec 2012 13:40:37 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp24.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 727BE180A47; Thu, 20 Dec 2012 13:40:33 -0500 (EST) X-Virus-Scanned: OK Received: by smtp24.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 144A8180A48; Thu, 20 Dec 2012 13:40:32 -0500 (EST) Message-ID: <50D35BA0.5010301@sugarcrm.com> Date: Thu, 20 Dec 2012 10:40:32 -0800 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Jani Ollikainen CC: "internals@lists.php.net" References: <50D1D9B9.4060505@mmd.net> <50D22321.5040808@sugarcrm.com> <50D2291F.4040402@mmd.net> <50D30656.8090207@mmd.net> In-Reply-To: <50D30656.8090207@mmd.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Crashes in lex_scan at Zend/zend_language_scanner.c / BUG #52752 From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > if ($argv[1] > 0) { > while ($argv[1]--) file_put_contents('test.tpl', " #".str_repeat('A', mt_rand(4000, 5000))." ?>\n", LOCK_EX); > } else { > $p2 = popen("sapi/cli/php -n test3.php 100", "r"); > while (1) include 'test.tpl'; > } > ?> Yes, I can now reproduce this on my machine too. Not sure what I did wrong last time, but now I get bus error. I suspect there's some race condition between mmap and rewriting the file that creates the problem. The error seems to happen at offset exactly 0x1000 from the start of the map, which leads me to thinking that maybe the problem is that the page needs to be loaded, but since the file is not there, being overwritten, it can not be loaded anymore. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227