Re: PHP CLI + Valgrind = FAIL
| From: | Rasmus Lerdorf | Date: | Tue, 08 Nov 2011 06:43:51 +0000 |
| Subject: | Re: PHP CLI + Valgrind = FAIL | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56142@lists.php.net to get a copy of this message | ||
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