Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56172 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1205 invoked from network); 8 Nov 2011 17:47:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2011 17:47:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.213.42 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:56159] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/81-28203-44B69BE4 for ; Tue, 08 Nov 2011 12:47:49 -0500 Received: by ywb26 with SMTP id 26so879661ywb.29 for ; Tue, 08 Nov 2011 09:47:46 -0800 (PST) Received: by 10.68.33.42 with SMTP id o10mr2412485pbi.52.1320774465825; Tue, 08 Nov 2011 09:47:45 -0800 (PST) Received: from [192.168.200.5] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id p10sm5841243pbd.15.2011.11.08.09.47.44 (version=SSLv3 cipher=OTHER); Tue, 08 Nov 2011 09:47:45 -0800 (PST) Message-ID: <4EB96B3F.9060705@lerdorf.com> Date: Tue, 08 Nov 2011 09:47:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Stas Malyshev CC: PHP Internals References: <4EB8BCC2.6040900@sugarcrm.com> <4EB8F8E2.3010208@anderiasch.de> <4EB904B4.2060504@lerdorf.com> <4EB96A04.2040703@sugarcrm.com> In-Reply-To: <4EB96A04.2040703@sugarcrm.com> X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP CLI + Valgrind = FAIL From: rasmus@lerdorf.com (Rasmus Lerdorf) On 11/08/2011 09:42 AM, Stas Malyshev wrote: > Hi! > >> On 11/08/2011 01:39 AM, Florian Anderiasch wrote: >>> So it looks like only FPM uses it for more than the default behaviour of >>> "terminate", from a quick glance. >> Not deferring SIGUSR2 just because valgrind on OSX doesn't like it isn't >> really an option here. We could make debug builds on OSX not defer it, I >> suppose. > > Why it isn't an option? I.e. suppose by some reason - valgrind, > debugger, profiler, etc. - sigaction fails and we can't defer certain > signals. 99.9% of cases of running PHP never need it, why we much have > E_ERROR in this case? I understand that removing the override altogether > would be pointless, but why we can't just avoid hard failure there? > Would anything break (except theoretical race condition) there? Like I said, we can't remove it, but I am ok changing that E_ERROR to an E_WARNING. Valgrind should also have a way to turn off grabbing SIGUSR2. What if you are valgrinding something that actually needs it for something real? Are you out of luck? -Rasmus