View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001346 | Xdebug | Stacktraces | public | 2016-09-08 09:35 | 2016-12-04 17:05 |
Reporter | johnhunt | Assigned To | derick | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | Mac | OS | OS X | OS Version | 10.11.6 |
Product Version | 2.4.0 | ||||
Summary | 0001346: Segfault during handshake with phpstorm 10.0.3 | ||||
Description | PHP and xdebug installed via homebrew: homebrew/php/php71-xdebug php --version: | ||||
Steps To Reproduce | Configure xdebug to connect to localhost PHPstorm: cat /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini: Set phpstorm to listen. Then execute a simple script: john@Johns-MacBook-Pro:/Volumes/projects/api/public (master)$ php test.php boom!! So I looked into this further. Instead of running phpstorm on port 9000 I ran netcat, and discovered that there are no crashes. So then I ran a stack trace and had a look at the traffic with wireshark. Turns out that Xdebug (or PHP) dies horribly during some kind of network 'handshake': write(0x3, "504\0", 0x1FD) = 509 0 (the big 'hello' XML thing from xdebug) Most of the other requests I didn't recognise, and I forgot to save the dump. Some of them were showing the pointer to the line in the php file. | ||||
Additional Information | The problem only occured with php7.1 and not the php 7.0 packages which I downgraded to. It's probably something fairly simple, but I'm no C developer so not sure I can help any more than this. I just assumed I'd done something wrong hence all the digging. | ||||
Tags | No tags attached. | ||||
Operating System | OS X | ||||
PHP Version | 7.1-dev | ||||
|
Just noticed in the xdebug config: xdebug_remote_server localhost Was missing an = symbol.. unlikely that this was the cause but worth noting. |
|
Instead of wireshark, could you install gdb, and run the PHP script with: gdb --args php test.php then on the gdb prompt: run and when it crashes: bt full And attach the output as a file here. I would also suggest you upgrade or try out Xdebug 2.5.0RC1 first as well. |
|
I just tried the XDebug RC with php7-1 and PhpStorm. It's working well. |
|
Perfect, let me close this then. |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-09-08 09:35 | johnhunt | New Issue | |
2016-09-08 09:58 | johnhunt | Note Added: 0003698 | |
2016-11-16 21:25 | derick | Note Added: 0003756 | |
2016-11-16 21:25 | derick | Assigned To | => derick |
2016-11-16 21:25 | derick | Status | new => feedback |
2016-11-25 11:54 | raheja.rohan | Note Added: 0003792 | |
2016-12-04 17:05 | derick | Note Added: 0003921 | |
2016-12-04 17:05 | derick | Status | feedback => resolved |
2016-12-04 17:05 | derick | Resolution | open => no change required |