Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56142 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7456 invoked from network); 8 Nov 2011 06:43:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2011 06:43:57 -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.210.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:53374] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/53-17624-CAFC8BE4 for ; Tue, 08 Nov 2011 01:43:56 -0500 Received: by iakc1 with SMTP id c1so251609iak.29 for ; Mon, 07 Nov 2011 22:43:53 -0800 (PST) Received: by 10.42.161.132 with SMTP id t4mr23616444icx.16.1320734633487; Mon, 07 Nov 2011 22:43:53 -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 dd36sm849286ibb.7.2011.11.07.22.43.51 (version=SSLv3 cipher=OTHER); Mon, 07 Nov 2011 22:43:52 -0800 (PST) Message-ID: <4EB8CFA7.3090804@lerdorf.com> Date: Mon, 07 Nov 2011 22:43:51 -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> In-Reply-To: <4EB8BCC2.6040900@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/07/2011 09:23 PM, Stas Malyshev wrote: > Hi! > > I've noticed that if I run PHP 5.4 under Valgrind on my Mac, I get this: > > Fatal error: Error installing signal handler for 31 in Unknown on line 0 > Could not startup. > > Indeed, valgrind says: > ==47112== Warning: ignored attempt to set SIGUSR2 handler in sigaction(); > ==47112== the SIGUSR2 signal is used internally by Valgrind > > So it looks like it won't allow PHP to override signal handlers. The > questions here are - does anybody sees same problem (on Mac or other > systems) and should PHP really fail in this scenario? Not having the > possibility to run PHP under valgrind kind of sucks. That seems like a problem unique to OSX then. I've been using Valgrind on 5.4 CLI for months without any issues on Linux and I just tested it again now on the current code and I don't see that problem. Or perhaps it is unique to your version of Valgrind? Mine is valgrind-3.6.1-Debian -Rasmus