Skip to content

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.

License

markus-perl/php-strace

Repository files navigation

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

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published