View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001643 | Xdebug | Step Debugging | public | 2019-03-04 14:45 | 2019-12-08 07:36 |
Reporter | Bob Albrecht | Assigned To | derick | ||
Priority | urgent | Severity | crash | Reproducibility | sometimes |
Status | resolved | Resolution | no change required | ||
Platform | php-fpm | OS | Linux | OS Version | 3.10.0-957.1.3. |
Product Version | 2.7.0RC2 | ||||
Summary | 0001643: Segfault in ZEND_SEND_VAR_EX_SPEC_CV_QUICK_HANDLER | ||||
Description | xdebug is crashing php-fpm with a segmentation fault. This only happens with very certain code triggered by an Ajax request. The application is large and we are working on a minimal example to reproduce it. The crash only occurs when xdebug is installed. When zend_extension=xdebug.so is commented out it never occurs. We do have a gdb backtrace for the issue: GDB Trace | ||||
Steps To Reproduce | Working on test program. More to come... | ||||
Tags | No tags attached. | ||||
Operating System | CentOS Linux release 7.6.1810 | ||||
PHP Version | 7.3.0-7.3.1 | ||||
|
I have some code to reproduce this every time with php 7.3.1. <?php |
|
PHP 7.3.1 (cli) (built: Jan 8 2019 13:55:51) ( NTS ) |
|
I can't reproduce this:
Can you show the output of <code>php --ri Xdebug</code> ? |
|
My php-fpm config is stock except that I have disabled all of the extensions other than opcache and xdebug. If opcache is not configured it does not happen. If xdebug is not configured it does not happen This is reproducible every time: curl "http://YOURBOXIP/crash3.php" |
|
php --ri Xdebug xdebug xdebug support => enabled Supported protocols Directive => Local Value => Master Value |
|
opcache.optimization_level=0xFFFFFBFF makes the problem go away |
|
That's odd, as Xdebug should turn that off for you. Can you at the top of your script (right after the <?php) put: Alternatively, upgrade to PHP 7.3.2 which should have this bug in OPcache fixed fixed. |
|
We are using 7.3.2 now |
|
Going back to my box that has php 7.3.1, and checking the opcache settings: <pre class='xdebug-var-dump' dir='ltr'> Looks like the ini settings are not changed. Maybe the order has something to do with it. Let me know if you need anything else; if not I am going to recycle the 7.3.1 VM. |
|
Hi - if it all works in PHP 7.3.2, I think we can just consider this closed? |
|
This seems fixed since PHP 7.3.2 and an earlier version of Xdebug. I'm closing this because I believe this is addressed, and the requested feedback wasn't provided. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-03-04 14:45 | Bob Albrecht | New Issue | |
2019-03-08 16:47 | Bob Albrecht | Note Added: 0004943 | |
2019-03-08 16:49 | Bob Albrecht | Note Added: 0004944 | |
2019-03-08 17:07 | derick | Assigned To | => derick |
2019-03-08 17:07 | derick | Status | new => feedback |
2019-03-08 17:07 | derick | Note Added: 0004946 | |
2019-03-08 18:13 | Bob Albrecht | Note Added: 0004947 | |
2019-03-08 18:13 | Bob Albrecht | Status | feedback => assigned |
2019-03-08 18:15 | Bob Albrecht | Note Added: 0004948 | |
2019-03-08 20:00 | Bob Albrecht | Note Added: 0004949 | |
2019-03-10 16:46 | derick | Note Added: 0004952 | |
2019-03-10 17:17 | derick | Status | assigned => feedback |
2019-03-12 18:19 | Bob Albrecht | Note Added: 0004960 | |
2019-03-12 18:19 | Bob Albrecht | Status | feedback => assigned |
2019-03-12 18:24 | Bob Albrecht | Note Added: 0004961 | |
2019-03-21 14:12 | derick | Note Added: 0004974 | |
2019-12-08 07:36 | derick | Status | assigned => resolved |
2019-12-08 07:36 | derick | Resolution | open => no change required |
2019-12-08 07:36 | derick | Note Added: 0005201 | |
2020-03-12 16:33 | derick | Category | Remote Debugging => Step Debugging |