Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52907 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62773 invoked from network); 5 Jun 2011 01:18:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 01:18:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:63543] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/0C-14012-D59DAED4 for ; Sat, 04 Jun 2011 21:18:21 -0400 Received: by pzk37 with SMTP id 37so1430857pzk.29 for ; Sat, 04 Jun 2011 18:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=EE2jO1oxzGTWWbCOg01MIsvCHlHuiphAOw22aO2+zRE=; b=KI1HfFQN7Hzc3jG8dndmnO9yvr/E4bFvZlZ6h7eQ+SXM9L6WRxZZz3sjIU4RB5NMlx Um8nrW/ZnjI7FLSxEybUeuIiDFlrS+DuHqoLyZVcClfNNxZvtIsXDgP7SdGBmZLMcd6J 9Qnrnp7se8Lylpdb0KtQbgBJR8F6Kt6u78qKI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=njjId40eAlVWQEbNCR4W8WH4vHfWcJ3B0FSHbQyvGxHsqDxANmIGp6vupnFZKsYv0R HJq/ICqllMMUlwERe98Lu2pr44ZRf5CsIJZ8ouNzkFxy9GnUkaigRh0CacE2Zb4nzpjk fLPwxLknJe4hASL7TFTGIu4KIJnag6MUAaU8c= Received: by 10.142.248.27 with SMTP id v27mr481807wfh.404.1307236698133; Sat, 04 Jun 2011 18:18:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.246.21 with HTTP; Sat, 4 Jun 2011 18:17:58 -0700 (PDT) In-Reply-To: References: <4DE80C77.1010109@no-surprises.co.uk> Date: Sat, 4 Jun 2011 22:17:58 -0300 Message-ID: To: Ilia Alshanetsky Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=00504502cb1607953504a4ecc3f3 Subject: Re: [PHP-DEV] RFC: Zend Signal Handling From: felipensp@gmail.com (Felipe Pena) --00504502cb1607953504a4ecc3f3 Content-Type: text/plain; charset=UTF-8 Fixed invalid sigaction() call passing NSIG as signal number. - for (signo = 1; signo <= NSIG; ++signo) { + for (signo = 1; signo < NSIG; ++signo) { Detected by Valgrind: ==4577== Warning: bad signal number 65 in sigaction() 2011/6/3 Ilia Alshanetsky > The crash is now fixed as well. > > On Fri, Jun 3, 2011 at 2:41 AM, Felipe Pena wrote: > > 2011/6/2 Felipe Pena > > > >> Hi, > >> > >> 2011/6/2 Michael Maclean > >> > >>> On 02/06/11 18:20, Gustavo Lopes wrote: > >>> > >>>> Em Thu, 02 Jun 2011 18:10:50 +0100, Ilia Alshanetsky < > ilia@prohost.org> > >>>> escreveu: > >>>> > >>>> Killing TSRMLS_FETCH is a noble goal, but let's keep it to once patch > >>>>> at a time please ;-) And for the record I am all for killing > >>>>> TSRMLS_FETCH. > >>>>> > >>>>> > >>>> Is there any advantage in killing it as opposed to simply not use it? > >>>> > >>> > >>> I think he meant just replacing it in this patch. > >>> > >>> > >> Just to inform, with the patched applied in trunk we have 4 SIGSEGVs > with > >> ext/pcntl tests: > >> > >> pcntl_alarm() [ext/pcntl/tests/pcntl_alarm.phpt] > >> pcntl_signal() [ext/pcntl/tests/pcntl_signal.phpt] > >> pcnt_signal_dispatch() [ext/pcntl/tests/pcntl_signal_dispatch.phpt] > >> Closures as a signal handler > [ext/pcntl/tests/signal_closure_handler.phpt] > >> > >> And 1 test hanging: > >> ext/pcntl/tests/002.phpt > >> > > > > > > Ok, already fixed. There is only a test failing due a behavior change: > > > > $ cat ext/pcntl/tests/pcntl_signal.diff > > 009+ Fatal error: Error installing signal handler for -1 in > > /home/felipe/dev/phptrunk/ext/pcntl/tests/pcntl_signal.php on line 10 > > 009- Warning: pcntl_signal(): Error assigning signal %s > > 010- bool(false) > > 011- > > 012- Warning: pcntl_signal(): Error assigning signal %s > > 013- bool(false) > > 014- > > 015- Warning: pcntl_signal(): not callable is not a callable function > name > > error in %s > > 016- bool(false) > > 017- ok > > > > -- > > Regards, > > Felipe Pena > > > -- Regards, Felipe Pena --00504502cb1607953504a4ecc3f3--