View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001233 | Xdebug | Uncategorized | public | 2015-12-14 04:32 | 2016-11-22 23:28 |
Reporter | allansun | Assigned To | derick | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu | OS Version | 14.04 |
Product Version | 2.4.0rc3 | ||||
Summary | 0001233: Segmentation fault with PHPUnit 5.1.3 (Dockerized environment) | ||||
Description | I created a docker file with latest PHP7 GA installation, PHPUnit 5.1.3 is the latest version available now. PHPUnit 5.1.3 by Sebastian Bergmann and contributors. Runtime: PHP 7.0.0-5+deb.sury.org~trusty+1 with Xdebug 2.4.0RC3 Segmentation fault ============= | ||||
Steps To Reproduce | Create Docker file from Additional Information under /www/Dockerfilecd /www/ | ||||
Additional Information | FROM phusion/baseimage:latest CMD ["/sbin/my_init"] Install base packagesENV DEBIAN_FRONTEND noninteractive Add our crontab file#ADD crons.conf /root/crons.conf Use the crontab file#RUN crontab /root/crons.conf php.ini settingsRUN sed -ie 's/\;date.timezone\ \=/date.timezone\ \=\ Europe\/London/g' /etc/php/7.0/apache2/php.ini && \
Configure /app folder with sample appADD ApacheConfig.conf /etc/apache2/sites-enabled/000-default.conf Add configsADD apache2.conf /etc/apache2/apache2.conf Add startup scriptsRUN mkdir /etc/service/apache2 Set ports and workdirEXPOSE 80 Additional for development envRUN apt-get update && \ Install PHPUnitRUN composer global require "phpunit/phpunit=5.*" && \ Install xDebugRUN wget http://xdebug.org/files/xdebug-2.4.0rc3.tgz && \ php.ini settingsADD php_extra.ini /etc/php/7.0/php_extra.ini RUN ln -s /etc/php/7.0/php_extra.ini /etc/php/7.0/apache2/conf.d/99-php_extra.ini && \ Clean apt-get cache to shrink image sizeRUN apt-get clean && \ RUN APP_ENVIRONMENT=development | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | |||||
PHP Version | 7.0.0-7.0.4 | ||||
|
last step should be : |
|
I have the same issue - example output from fpm process: |
|
An update to this issue - it still occurs with php 7.0.1 using the official php docker image as base. See https://hub.docker.com/r/spira/docker-phpfpm/~/dockerfile/ |
|
I have updated to RC4 and the problem still exists. Valgrind dump has been attached. Apparently the problem occurs in CodeCoverage. ==882== Process terminating with default action of signal 11 (SIGSEGV) Really hope this problem can be solved in an urgent matter |
|
I do not have docker, so I can not try it with that. Please provide a reproducible case without docker. I can also not reproduce your problem with either 2.4.0RC3 or RC4 on PHP 7.0.2. |
|
Can you please provide a reproducible case that does not depend on docker? |
|
It is not reproducible without docker... |
|
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. 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. |
|
Ping? |
|
The problem appears to be fixed for me. Not sure though what fixed it. I updated my machine to the Ubuntu 16.04; Docker version 1.11.1, build 5604cbe; PHP Version 7.0.6-1~dotdeb+8.1 with Xdebug v2.4.0. |
|
Allansun, is it fixed for you too? |
|
Close as reported fixed, and no reply from original reporter. |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-12-14 04:32 | allansun | New Issue | |
2015-12-14 04:34 | allansun | Note Added: 0003339 | |
2015-12-21 01:10 | zak | Note Added: 0003369 | |
2016-01-04 02:30 | zak | Note Added: 0003383 | |
2016-01-04 02:37 | zak | Note Edited: 0003383 | |
2016-01-30 17:58 | allansun | File Added: valgrind.log.zip | |
2016-01-30 18:00 | allansun | Note Added: 0003436 | |
2016-02-08 19:49 | derick | Note Added: 0003449 | |
2016-02-08 19:49 | derick | Assigned To | => derick |
2016-02-08 19:49 | derick | Status | new => feedback |
2016-02-27 16:00 | derick | Note Added: 0003527 | |
2016-02-27 16:03 | allansun | Note Added: 0003532 | |
2016-02-27 16:03 | allansun | Status | feedback => assigned |
2016-02-27 16:04 | allansun | Note Edited: 0003532 | |
2016-03-04 20:51 | derick | Note Added: 0003557 | |
2016-03-04 20:51 | derick | Status | assigned => feedback |
2016-05-10 22:24 | derick | Note Added: 0003594 | |
2016-05-12 21:08 | vladas | Note Added: 0003603 | |
2016-05-29 08:10 | derick | Note Added: 0003616 | |
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-11-22 23:28 | derick | Note Added: 0003780 | |
2016-11-22 23:28 | derick | Status | feedback => closed |
2016-11-22 23:28 | derick | Resolution | open => fixed |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |