View Issue Details

IDProjectCategoryView StatusLast Update
0001653XdebugInstallationpublic2021-04-14 16:06
Reporteremmexx Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version2.7.0 
Summary0001653: php-fpm72 crashes at start when loading xdebug.so
Description

If I add
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
to /opt/alt/php-fpm72/usr/php/php.ini
php-fpm72 stops working.
From the command line
/opt/alt/php-fpm72/usr/sbin/php-fpm with any of -v -t -i gives no output and no error.

If I start php-fpm as a service I get the following output:
php-fpm72.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php-fpm72.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-04-05 08:23:58 UTC; 24min ago
Process: 27896 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
Process: 19346 ExecStart=/opt/alt/php-fpm72/usr/sbin/php-fpm --nodaemonize --fpm-config /opt/alt/php-fpm72/usr/etc/php-fpm.conf (code=exited, status=254)
Main PID: 19346 (code=exited, status=254)

Apr 05 08:23:58 vps3.fiab-onlus.it systemd[1]: Started The PHP FastCGI Process Manager.
Apr 05 08:23:58 vps3.fiab-onlus.it systemd[1]: php-fpm72.service: main process exited, code=exited, status=254/n/a
Apr 05 08:23:58 vps3.fiab-onlus.it systemd[1]: Unit php-fpm72.service entered failed state.
Apr 05 08:23:58 vps3.fiab-onlus.it systemd[1]: php-fpm72.service failed.

Steps To Reproduce

pecl install xdebug

edit /opt/alt/php-fpm72/usr/php/php.ini and add at the end:
[xdebug]
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20170718/xdebug.so
xdebug.remote_port=9001

restart php-fpm 7.2 service

Additional Information

CentOS Linux release 7.6.1810 (Core)
PHP version: 7.2.15

Tagscrash
Operating SystemLinux Kernel Version: 3.10.0-957.5.1.el7.x86_64
PHP Version7.2.10-7.2.14

Activities

derick

2019-04-05 10:53

administrator   ~0004984

Hi,

I'm going to need some more information, as Xdebug works fine with PHP-FPM for me.

Can you provide the following information:

  • The contents of the PHP-FPM log file, the output from systemd's service tools does not say anything besides "it didn't work"
  • Check whether the output of "sudo dmesg" just after trying to start PHP-FPM says something about a Segmentation Fault
  • What does running the command by hand say on the shell as root say? This one: /opt/alt/php-fpm72/usr/sbin/php-fpm --nodaemonize --fpm-config /opt/alt/php-fpm72/usr/etc/php-fpm.conf

cheers,
Derick

emmexx

2019-04-05 11:45

reporter   ~0004986

  • nothing in /opt/alt/php-fpm72/usr/var/log/php-fpm.log

  • /var/log/messages:

Apr 5 08:23:58 vps systemd: Started The PHP FastCGI Process Manager.
Apr 5 08:23:58 vps systemd: php-fpm72.service: main process exited, code=exited, status=254/n/a
Apr 5 08:23:58 vps systemd: Unit php-fpm72.service entered failed state.
Apr 5 08:23:58 vps systemd: php-fpm72.service failed.

  • sudo dmesh: nothing relvant to php-fpm, php or xdebug.

  • zend_extension commented out and php-fpm service started:
    /opt/alt/php-fpm72/usr/sbin/php-fpm --nodaemonize --fpm-config /opt/alt/php-fpm72/usr/etc/php-fpm.conf
    [05-Apr-2019 11:29:40] ERROR: An another FPM instance seems to already listen on /opt/alt/php-fpm72/usr/var/sockets/cwpsvc.sock
    [05-Apr-2019 11:29:40] ERROR: FPM initialization failed

zend_extension uncommented and php-fpm stopped:

/opt/alt/php-fpm72/usr/sbin/php-fpm --nodaemonize --fpm-config /opt/alt/php-fpm72/usr/etc/php-fpm.conf

No output as it happens when using -i, -v, -t or any other option.

Thank you
maxx

derick

2021-03-17 09:34

administrator   ~0005757

Is this issue still relevant to you?

derick

2021-04-14 16:06

administrator   ~0005836

Closing this, as it is missing requested feedback.

Issue History

Date Modified Username Field Change
2019-04-05 08:55 emmexx New Issue
2019-04-05 08:55 emmexx Tag Attached: crash
2019-04-05 10:53 derick Assigned To => derick
2019-04-05 10:53 derick Status new => feedback
2019-04-05 10:53 derick Note Added: 0004984
2019-04-05 11:45 emmexx Note Added: 0004986
2019-04-05 11:45 emmexx Status feedback => assigned
2021-03-17 09:34 derick Status assigned => feedback
2021-03-17 09:34 derick Note Added: 0005757
2021-04-14 16:06 derick Status feedback => closed
2021-04-14 16:06 derick Resolution open => unable to reproduce
2021-04-14 16:06 derick Note Added: 0005836