Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67333 invoked from network); 13 Mar 2015 17:26:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2015 17:26:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:41992] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9C/2C-32208-7CD13055 for ; Fri, 13 Mar 2015 12:26:32 -0500 Received: (qmail 31784 invoked by uid 1009); 13 Mar 2015 18:26:27 +0100 Received: from 209.85.216.174 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/20187. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.216.174):. Processed in 0.272005 secs); 13 Mar 2015 17:26:27 -0000 X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.216.174):. Processed in 0.272005 secs Process 31770) Received: from mail-qc0-f174.google.com (gmail@bof.de@209.85.216.174) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 13 Mar 2015 18:26:27 +0100 Received: by qcvp6 with SMTP id p6so28319852qcv.1 for ; Fri, 13 Mar 2015 10:26:25 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.94.97 with SMTP id f88mr59776499qge.38.1426267585643; Fri, 13 Mar 2015 10:26:25 -0700 (PDT) Received: by 10.140.82.198 with HTTP; Fri, 13 Mar 2015 10:26:25 -0700 (PDT) Received: by 10.140.82.198 with HTTP; Fri, 13 Mar 2015 10:26:25 -0700 (PDT) In-Reply-To: References: <3961990.KljssxxPxS@rofl> Date: Fri, 13 Mar 2015 18:26:25 +0100 Message-ID: To: Jan Ehrhardt Cc: internals Content-Type: multipart/alternative; boundary=001a113a5eb4cc0b1a05112ecc1e Subject: Re: [PHP-DEV] Re: SAPI apache2handler + pipelined HTTP request core dumps From: php@bof.de (Patrick Schaaf) --001a113a5eb4cc0b1a05112ecc1e Content-Type: text/plain; charset=UTF-8 Am 13.03.2015 18:18 schrieb "Jan Ehrhardt" : > > >https://bugs.php.net/bug.php?id=68486 > > echo -e "GET /test.php HTTP/1.1\nHost: localhost\n\n \ > GET /test.php HTTP/1.1\nHost: localhost\n\n"|nc localhost 80 > > Are you running opcache? I tried to reproduce the bug on a Centos6 box, > Apache 2.4.12 with PHP 5.5.22 as mod_php and got a 'zend_mm_heap > corrupted' error when test.php contained phpinfo(); > > Bad enough, but no segfault. Happens with or without opcache, tried both lots of times. The exact point of crashing is different depending on compiler optimizations, opcache-or-not, and maybe other influences. (I tested also with PHP compiled with both GCC 4.8, 4.9, and all levels of optimization, while investigating, because I first thought it might be coming from one of those influences) The issue is definitely the apache/sapi_apache2 interaction. I know exactly what goes wrong (see the comments in the bug report); I'm just not sure what the all-encompassing fix would be, because I don't know what situations the parent_req / reentrancy parts of the code are trying to handle. best regards Patrick --001a113a5eb4cc0b1a05112ecc1e--