View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001313 | Xdebug | Uncategorized | public | 2016-06-13 20:53 | 2016-12-17 15:35 |
Reporter | stringerbell | Assigned To | derick | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | 86_64 x86_64 x86_64 GNU/Linux | OS | CentOS | OS Version | 6.7 |
Product Version | 2.4.0 | ||||
Target Version | 2.5.1 | Fixed in Version | 2.5.1 | ||
Summary | 0001313: Segfault on centos when xdebug.collect_params != 1 | ||||
Description | I'm getting a segfault when running phpspec. I initially thought this was a PHP or phpspec problem, but after uninstalling, and reinstalling PHP, I noticed my xdebug install settings were missing. After adding them back one by one, I was able to consistently get PHP to segfault when using My full settings are [xdebug] | ||||
Steps To Reproduce |
(minimal repro case) | ||||
Additional Information | Backtrace with gdb (sorry I'm unsure which bits are relevant, but I'm happy to provide more info as needed): #0 0x00007f3c9e8866bf in __strlen_sse42 () from /lib64/libc.so.6 | ||||
Tags | No tags attached. | ||||
Operating System | CentOS 6.7 | ||||
PHP Version | 7.0.5-7.0.9 | ||||
|
I tried reproducing this, but when I put the three files from your https://github.com/phpspec/phpspec/issues/890#issuecomment-201492582 into one directory, and installing phpspec with "composer require phpspec/phpspec", and running it, I only get: derick@whisky:/tmp/1312 $ php vendor/bin/phpspec run -v |
|
Sorry about that! I'll take a look and see if I can get more complete instructions. |
|
I created a repo here: https://github.com/stringerbell/xdebug-bug If you clone it, and then run composer install You should be able to get the bug to show up. Thanks very much! |
|
Hi, I tried this with your reproduce case - instead of "phpspec run" I had to use "bin/phpspec run" to make it work. However, it works fine here, without any crashes, or without any valgrind warnings. And that's with Xdebug 2.4.0 too (2.5.0 is latest). I can't test right now with PHP 7.0.7, but didn't think that using 7.0.12/.13 would make a difference. If you can test that, that'd be good though. However, I am not quite sure what "Skipped installation of bin bin/phpspec for package phpspec/phpspec: name conflicts with an existing file" means: derick@whisky:~ $ pe 7.0dev derick@whisky:~ $ php -v derick@whisky:~ $ git clone https://github.com/stringerbell/xdebug-bug [PHP: 7.0.13-dev ] [GIT: master][PHP: 7.0.13-dev ]
[GIT: master][PHP: 7.0.13-dev ]
1 specs [GIT: master][PHP: 7.0.13-dev ] [GIT: master][PHP: 7.0.13-dev USE_ZEND_ALLOC=0]
1 specs ==18780== So I'm not sure what to do now... |
|
Sorry for the delay. Hmm, not sure what's different. Out of curiosity, I updated my php version to the latest yum package, to 7.0.14. Hopefully that makes it easier to reproduce. Here's my terminal: [vagrant@i3ballot ~]$ php -v [vagrant@i3ballot ~]$ git clone https://github.com/stringerbell/xdebug-bug [vagrant@i3ballot ~]$ cd xdebug-bug/
[vagrant@i3ballot xdebug-bug]$ bin/phpspec run I'm unable to reproduce it if my /etc/php.d/xdebug.ini file doesn't have xdebug.collect_params = 1. (I get the same results as above when that setting isn't present) Is there anything I can do to make your job easier, or info I can give you that would help? |
|
I ran it with a debug build. I can try that. |
|
I can reproduce this now, with a no-debug build and Xdebug 2.4.0 and 2.5.0. |
|
fantastic! Let me know if you need anything from me. Thank you. |
|
I think I've fixed this in Git (the master and xdebug_2_5 branches) |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-06-13 20:53 | stringerbell | New Issue | |
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 16:04 | derick | Note Added: 0003912 | |
2016-12-04 16:04 | derick | Assigned To | => derick |
2016-12-04 16:04 | derick | Status | new => feedback |
2016-12-07 15:24 | stringerbell | Note Added: 0003962 | |
2016-12-07 15:24 | stringerbell | Status | feedback => assigned |
2016-12-07 15:57 | stringerbell | Note Added: 0003963 | |
2016-12-08 21:25 | derick | Note Added: 0003964 | |
2016-12-08 21:25 | derick | Status | assigned => feedback |
2016-12-14 16:01 | stringerbell | Note Added: 0004069 | |
2016-12-14 16:01 | stringerbell | Status | feedback => assigned |
2016-12-14 16:15 | derick | Note Added: 0004070 | |
2016-12-14 16:22 | derick | Note Added: 0004071 | |
2016-12-14 16:24 | stringerbell | Note Added: 0004072 | |
2016-12-15 12:03 | derick | Target Version | => 2.5.1 |
2016-12-17 15:35 | derick | Note Added: 0004078 | |
2016-12-17 15:35 | derick | Status | assigned => closed |
2016-12-17 15:35 | derick | Resolution | open => fixed |
2016-12-17 15:35 | derick | Fixed in Version | => 2.5.1 |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |