View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001490||Xdebug||Uncategorized||public||2017-11-12 21:34||2017-11-13 11:37|
|Summary||0001490: Segfault on PHP 7.2 + 2.6.0-dev in Travis CI|
Since today one of our CI builds on Travis started segfaulting consistently. Unfortunately I cannot reproduce it locally, but on Travis it is consistent. All other versions work so it seems to be Xdebug 2.6.0-dev with PHP 7.2RC6 related. Tests work with vanilla 7.2RC6.
|Steps To Reproduce|
See https://travis-ci.org/omines/datatables-bundle/jobs/300949483, all code and commands are there.
Following should work with 7.2RC6 + Xdebug.dev:
git clone email@example.com:omines/datatables-bundle.git
|Tags||No tags attached.|
Mantis is incorrectly joining a comma in the link, it is https://travis-ci.org/omines/datatables-bundle/jobs/300949483
PHPUnit 6.4.4 by Sebastian Bergmann and contributors.
/home/travis/.travis/job_stages: line 57: 2890 Segmentation fault (core dumped) ./vendor/bin/phpunit -v --coverage-text --coverage-clover=coverage.clover
I tried reproducing this with:
$ git clone firstname.lastname@example.org:omines/datatables-bundle.git
But I get an application error:
Fatal error: Uncaught Error: Class 'Tests\Fixtures\AppKernel' not found in /tmp/datatables-bundle/tests/phpunit-bootstrap.php on line 26
Error: Class 'Tests\Fixtures\AppKernel' not found in /tmp/datatables-bundle/tests/phpunit-bootstrap.php on line 26
sh: 0: getcwd() failed: No such file or directory
Please provide steps so that I can at least run the tests.
Annoyingly, it seems that running the tests, also made it remove its own directory:
derick@singlemalt:/tmp/datatables-bundle $ ls
I will not be running these tests again, unless I have a small reproducible case and not something that downloads 4MB of code through composer.
My apologies, you have run into the most obscure edge case - the tests use /tmp/datatables-bundle for stateful temporary storage, and clean them up during bootstrap. So that's just about the only folder the tests can't work from.
If you clone into a different folder it'll work fine.
Fixed the dependency on global test folders: https://github.com/omines/datatables-bundle/commit/2b60b4149011a79739e9732908621682d0a4405a
Issue still reproduces: https://travis-ci.org/omines/datatables-bundle/jobs/301323324
I could indeed reproduce the segfault with an old Xdebug 2.6.0-dev, but not with the one from last night. I expect this to be a duplicate of 0001486, which I believe fixes this problem.
Thank you, I will leave the tests at allow_fail and monitor whether they are automatically fixed the coming week.
|2017-11-12 21:34||curry684||New Issue|
|2017-11-12 21:37||curry684||Note Added: 0004457|
|2017-11-13 10:15||derick||Note Added: 0004458|
|2017-11-13 10:15||derick||Assigned To||=> derick|
|2017-11-13 10:15||derick||Status||new => feedback|
|2017-11-13 10:17||derick||Note Added: 0004459|
|2017-11-13 10:24||curry684||Note Added: 0004460|
|2017-11-13 10:24||curry684||Status||feedback => assigned|
|2017-11-13 10:37||curry684||Note Added: 0004461|
|2017-11-13 10:59||derick||Note Added: 0004462|
|2017-11-13 10:59||derick||Relationship added||duplicate of 0001486|
|2017-11-13 10:59||derick||Status||assigned => resolved|
|2017-11-13 10:59||derick||Resolution||open => duplicate|
|2017-11-13 11:37||curry684||Note Added: 0004463|
|2020-03-12 16:35||derick||Category||Usage problems (Wrong Results) => Variable Display|
|2020-03-12 16:38||derick||Category||Variable Display => Uncategorized|