Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16171 invoked from network); 21 Dec 2012 08:41:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2012 08:41:25 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.ollikainen@mmd.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.ollikainen@mmd.net; 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:60532] helo=smtp.pronetko.fi) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/14-20281-3B024D05 for ; Fri, 21 Dec 2012 03:41:24 -0500 Received: from [10.0.0.7] (k7.pronetko.fi [::ffff:10.0.0.7]) (AUTH: PLAIN bestis@pronetko.fi, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by smtp.pronetko.fi with ESMTPSA; Fri, 21 Dec 2012 10:32:07 +0200 id 000000000109800E.50D41E87.0000604F Message-ID: <50D420D7.7030203@mmd.net> Date: Fri, 21 Dec 2012 10:41:59 +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> <50D30656.8090207@mmd.net> <50D35BA0.5010301@sugarcrm.com> <5952719.MaJMSR3yMW@rofl> In-Reply-To: <5952719.MaJMSR3yMW@rofl> 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) Hi, On 21.12.2012 8:15, Patrick Schaaf wrote: > APC takes a LOCK_EX in exactly one place, apc_bin_dumpfile(), which does not > look to me like it's related to "include". The usage there is fishy anyway, > not exactly sure, but I think the open that happens before taking LOCK_EX, > will have truncated the file already, leading to the same type of problem as > discussed above wrt concurrent readers. Usage is fishy, but it's small and can reproduce the error. Don't really know what code hits that in my production environment or is it even the same problem but it seems to have similar backtrace. > So, my conclusion would be that it is the code snippet above, and not any part > of PHP or the kernel, that is at fault. Oh? Did I understand you correctly? If you can code PHP that crashes PHP, it's that codes fault not PHP's fault? I've always thought PHP to be high level programming language where PHP handles things for you and you can't code anything that crashes it like that with bus error? I think that it should at least gracefully exit, log error, what caused what and where. Better option would be that it just works. And if you don't see anything to be done in PHP, I think then at least documentation of include/require should have big warning explaining that PHP doesn't guarantee include/require not to crash PHP itself.