View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001254 | Xdebug | Uncategorized | public | 2016-01-16 03:16 | 2021-04-14 16:10 |
Reporter | trivivium | Assigned To | derick | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | unable to reproduce | ||
Platform | Linux | OS | Ubuntu | OS Version | 12.04.03 LTS |
Product Version | 2.4.0rc3 | ||||
Summary | 0001254: Segmentation fault with PHP 7, xdebug and native spl_autoload() | ||||
Description | When using the native spl_autoload() implementation with xdebug a segmentation fault is produced. This happens on a vagrant environment (both Virtual-box and Hyper-V as provider) with Ubuntu 12.04.3 installed. I have compiled PHP-7.0 from source (github repository). Then I have installed xdebug by using the instructions from the documentation on installing from source (used: http://xdebug.org/files/xdebug-2.4.0rc3.tgz). | ||||
Steps To Reproduce | I have included a small zip-compressed folder with the minimum required code to reproduce the segmentation fault. My observations are that the segmentation fault happens with (what seems to me) some very weird reasons. In the file library/request/Factory.php I have left a comment before the code, which triggers the bug in the library/response/Factory::build() method. I have used the command: 'php -d xdebug.auto_trace=ON /index.php' to trace the segmentation fault and have gotton some inconsistent results. It appears the fault happens at different places when a object is instantiated directly in the parameter list. The instantiation must be the 2+ argument. | ||||
Additional Information | This has been tested on 3 different computers with the same end result. | ||||
Tags | PHP7 | ||||
Attached Files | |||||
Operating System | Ubuntu 12.04.03 LTS | ||||
PHP Version | 7.0.0-7.0.4 | ||||
|
It should also be said that if xdebug is disabled (zend_extension line removed from php.ini) the segmentation fault disappears. |
|
When I run your code, I get: derick@whisky:/tmp/xdebug-segmentation-fault-reproduce $ php -dxdebug.collect_params=4 -dxdebug.auto_trace=ON index.php Fatal error: Uncaught LogicException: Class request\Factory could not be loaded in /tmp/xdebug-segmentation-fault-reproduce/index.php on line 5 LogicException: Class request\Factory could not be loaded in /tmp/xdebug-segmentation-fault-reproduce/index.php on line 5 Call Stack: Is that what you expect as output? If I look at strace, it wants to look up things by the lower case filename "factory.php" only, which of course does not exist (only Factory.php does). |
|
Even though the file name is converted into lowercase and every file is renamed to all lowercase the issue persist. If I run the same command as you the output is: TRACE START [2016-02-10 15:58:14] (Line at: 0.0036 and 0.0072 has been shortened) I have now tried renaming all files and classes defined lowercase with no success. The issue Hope this can help. I didn't know about class/file names being lowercased by the SPL autoloader, but I have |
|
Is this issue still relevant to you? |
|
Closing this, as it is missing requested feedback. |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-01-16 03:16 | trivivium | New Issue | |
2016-01-16 03:17 | trivivium | File Added: xdebug-segmentation-fault-reproduce.zip | |
2016-01-16 03:17 | trivivium | Tag Attached: PHP7 | |
2016-01-16 03:20 | trivivium | Note Added: 0003421 | |
2016-02-09 18:48 | derick | Note Added: 0003472 | |
2016-02-09 18:48 | derick | Assigned To | => derick |
2016-02-09 18:48 | derick | Status | new => feedback |
2016-02-10 16:12 | trivivium | Note Added: 0003476 | |
2016-02-10 16:12 | trivivium | Status | feedback => assigned |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2016-12-04 15:16 | derick | Status | assigned => acknowledged |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |
2021-03-17 09:39 | derick | Status | acknowledged => feedback |
2021-03-17 09:39 | derick | Note Added: 0005771 | |
2021-04-14 16:10 | derick | Status | feedback => closed |
2021-04-14 16:10 | derick | Resolution | open => unable to reproduce |
2021-04-14 16:10 | derick | Note Added: 0005845 |