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.
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
puppet Vagrant Machine Upgrade Feb 17, 2015
readme.files License and Readme file Dec 9, 2012
scripts Vagrant Machine Upgrade Feb 17, 2015
src Vagrant Machine Upgrade Feb 17, 2015
tests Vagrant Machine Upgrade Feb 17, 2015
.gitignore Add usage to enable pcntl functions Feb 17, 2015
LICENSE License and Readme file Dec 9, 2012
README.md v.03 readme Jun 13, 2013
Vagrantfile Vagrant Machine Upgrade Feb 17, 2015
build.xml License and Readme file Dec 9, 2012
composer.json Vagrant Machine Upgrade Feb 17, 2015
php-strace initial commit Nov 30, 2012
php-strace.php initial commit Nov 30, 2012
phpunit.xml initial commit Nov 30, 2012

README.md

php-strace

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.

php-strace workflow

Requirements

  • Linux
  • PHP 5.3.3 or later
  • strace installed
  • root access

Installation and Downloads

Download latest version and extract it to any folder

Usage

$ sudo ./php-strace

Commandline options

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

Development

  • Checkout repository

  • Install vagrant and then run

    $ vagrant up $ vagrant ssh $ ./php-strace

Testing

To run the tests ssh to your vagrant machine and enter:

$ /vagrant/scripts/phpunit

Contact