Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fhferreira/486785a5c33b77a7146d24bc11bf8a32 to your computer and use it in GitHub Desktop.
Save fhferreira/486785a5c33b77a7146d24bc11bf8a32 to your computer and use it in GitHub Desktop.
Debugging PHP-FPM segfaults

Assuming PHP is compiled with debug enabled.

$ gdb /usr/sbin/php-fpm

Then:

r --nodaemonize --fpm-config /etc/php7/fpm/php-fpm.conf

Make the request... then collect the stacktrace:

bt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment