php-strace helps to track down segfaults in running php processes. It starts a new strace instance for every running php5-cgi or php-fpm process to monitor whether a segfault happened. If a segfault occurs, it will display the strace output of the faulty process.
- Linux
- PHP 5.3.3 or later
- strace installed
- root access
Download latest version and extract it to any folder
$ sudo ./php-strace
Usage: ./php-strace [ options ]
-h|--help show this help
-l|--lines <integer> output the last N lines of a stacktrace. Default: 100
--process-name <string> name of running php processes. Default: autodetect
--live search while running for new upcoming pid's
-
Checkout repository
-
Install vagrant and then run
$ vagrant up $ vagrant ssh $ ./php-strace
To run the tests ssh to your vagrant machine and enter:
$ /vagrant/scripts/phpunit
- Github: http://www.github.com/markus-perl/php-strace
- E-Mail: markus open-mmx.de