PHP CLI + Valgrind = FAIL
| From: | Stas Malyshev | Date: | Tue, 08 Nov 2011 05:23:14 +0000 |
| Subject: | PHP CLI + Valgrind = FAIL | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-56141@lists.php.net to get a copy of this message | ||
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 ValgrindSo 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. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227