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
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
Alternative in a debug build.
Probably one can receive more info by attaching gdb (or another debugger) to the PHP process:
now hit PHP a few times
(gdb) bt [dumps system stack trace] (gdb) zbacktrace [dumps PHP-level stack trace, gdb macro defined in gdbinit loaded above]