View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001283||Xdebug||(No Category)||public||2016-03-04 20:05||2016-05-10 21:28|
|Status||resolved||Resolution||no change required|
|Platform||Linux||OS||Debian||OS Version||8 (Jessie)|
|Target Version||Fixed in Version|
|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
[04-Mar-2016 21:48:27] NOTICE: ready to handle connections
[04-Mar-2016 21:52:56] WARNING: [pool www] child 43 exited on signal 11 (SIGSEGV - core dumped) after 269.243916 seconds from start
[04-Mar-2016 21:52:56] NOTICE: [pool www] child 45 started
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:
public static function getConfig()
self::$me = new Config();
|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:
chmod +x install.sh start.sh
./install.sh # Answer yes for the prompts
./start.sh #to start all the containers if they didn't
|Tags||No tags attached.|
"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):
valgrind php the-script-that-segfaults.php
gdb --args php the-script-that-segfaults.php
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.
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.
||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.|
phpinfo.pdf (369,955 bytes)
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 :-)|
|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||View Revisions|
|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)|