View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001283 | Xdebug | public | 2016-03-04 20:05 | 2016-05-10 21:28 | |
Reporter | rudis1261 | Assigned To | derick | ||
Priority | high | Severity | block | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | Linux | OS | Debian | OS Version | 8 (Jessie) |
Product Version | 2.4.0 | ||||
Summary | 0001283: Docker PHP7 + xdebug dumping core | ||||
Description | I just can't get xdebug working with PHP7 in a docker file. It keeps core dumping. I have made sure that I build from the Github repository which is suppose to be on master and tagged 2.4.0, but it doesn't reflect in my php-info. It still shows up as 2.4.0RC3 How can I provide you guys with the information you would need to resolve this? docker logs -f php-fpm [04-Mar-2016 21:48:27] NOTICE: fpm is running, pid 42 As far as I can tell, as soon as it hits this singleton call it borks hard. This is a very standard piece of code:
| ||||
Steps To Reproduce | Since I use docker, steps to reproduce it would be to build the docker image: The Dockerfile in question is: To build it do this: | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | |||||
PHP Version | 7.0.0-7.0.4 | ||||
|
"It keeps core dumping. I have made sure that I build from the Github repository which is suppose to be on master and tagged 2.4.0, but it doesn't reflect in my php-info. It still shows up as 2.4.0RC3" That's a problem, as it really means you're not using 2.4.0. There is now a PECL package, please use that for installation. As to the docker stuff, I don't use it, and I don't to mess up my system with it either. Which means you need to do more work on this. First of all, make sure you don't compile Xdebug in an optimised mode. This removes useful information from backtraces. The easiest way probably is to change the "-O2" in the Makefile to "-O0 -ggdb3" after you ran ./configure, and before "make". I believe it's in two locations in the Makefile. Then, you need to come up with a command line script to run that shows the crash by running "php the-script-that-segfaults.php". Doing it through PHP-FPM is much much harder to debug with. The docker container should have additional tools installed, such as valgrind and gdb. Run the script that segfaults with the following commands on the bash shell (in the docker container). You should also install the php-debug debian package (or equivalent): export USE_ZEND_ALLOC=0 And then on the GDB prompt: and when it crashes, type: Please don't paste the output of all of this into the comment fields, but attach a file with all of it. |
|
Hi Derick, Thanks for all the info. I will try everything you mentioned starting with istalling the pecl directly. Although that what I tried before manually compiling it. I am very much a php dev, but I would love to get this resolved, so I will do what you ask. I will get back to you with the results. Cheers, |
|
Stupid question, can I edit the original issue? I can't seem to find where. I would like to remove the phpinfo() dump and rather upload a file with it. |
|
I don't think you can. I'll remove the dump and then you can upload it. |
|
Awesome thank you, I will update with details soon. |
|
It must have been timing, since I tried to install it on the day you release V2.4.0, and it must not have propagated to all the pecl repos. I would like to confirm XDEBUG is working!!!! PHP7 + 2.4.0. Hallleluuuyar! Thanks guys |
|
Perfect. Closing this out then :-) |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-03-04 20:05 | rudis1261 | New Issue | |
2016-03-04 20:49 | derick | Note Added: 0003556 | |
2016-03-04 20:49 | derick | Assigned To | => derick |
2016-03-04 20:49 | derick | Status | new => feedback |
2016-03-05 11:23 | rudis1261 | Note Added: 0003558 | |
2016-03-05 11:23 | rudis1261 | Status | feedback => assigned |
2016-03-05 12:09 | rudis1261 | Note Added: 0003559 | |
2016-03-05 13:35 | derick | Note Added: 0003560 | |
2016-03-05 13:36 | derick | Additional Information Updated | |
2016-03-05 13:37 | rudis1261 | Note Added: 0003561 | |
2016-03-05 13:38 | rudis1261 | File Added: phpinfo.pdf | |
2016-03-07 18:02 | rudis1261 | Note Added: 0003566 | |
2016-05-10 21:28 | derick | Note Added: 0003593 | |
2016-05-10 21:28 | derick | Status | assigned => resolved |
2016-05-10 21:28 | derick | Resolution | open => no change required |
2016-07-31 12:35 | derick | Category | Debug client (console) => debugclient (debugging tool) |
2016-07-31 12:35 | derick | Category | debugclient (debugging tool) => (No Category) |