MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001528XdebugCode Coveragepublic2018-02-22 11:512018-03-03 12:00
Reporterasystance 
Assigned Toderick 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionno change required 
PlatformLinuxOSUbuntuOS Version17.10
Product Version2.6.0 
Target VersionFixed in Version 
Summary0001528: Segmentation fault when getting test coverage
DescriptionThis may be similar to bug 0001382.

The setup is as follows:
 - PHPUnit runs selenium tests
 - PHP-CLI server (php -S) runs code and dumps coverage (using https://github.com/giorgiosironi/phpunit-selenium [^]) to file system
 - At the end of a test, PHPUnit collects coverage data through the php server using https://github.com/giorgiosironi/phpunit-selenium/blob/master/PHPUnit/Extensions/SeleniumCommon/phpunit_coverage.php [^]

One particular test runs fine, but when it's time to collect coverage, the CLI server always segfaults. There's a particular spot in the test where, if I skip the rest, everything works fine. The next step causes a form submission, which in turn makes the server run quite a bit of code.

Strangely, if I try to get the coverage information manually (through the server), it works fine. Maybe PHPUnit-Selenium sets

I'm running PHP-CLI (7.1.11-1-ubuntu0.17.10.1 and 7.1.14 built from source) and have tried xdebug 2.6.0, 2.5.5 and current master. I've had segfaults like these before after upgrading PHP, but up until now upgrading to the latest version of xdebug fixed that. Not this time, however.

How can I help debugging this? I can't create a minimal test case, but I am willing to set up an environment where we can run the code that causes the segfault.
TagsNo tags attached.
Operating SystemUbuntu 17.10
PHP Version7.1.10-7.1.14
Attached Files

- Relationships

-  Notes
(0004597)
asystance (reporter)
2018-02-23 10:51

My apologies, xdebug isn't at fault at all here. If I start the CLI server without xdebug, it still segfaults.

Please close this bug while I hang my head in shame.
(0004602)
derick (administrator)
2018-03-03 12:00

That's okay, no worries. Please do file a bug for the PHP project at https://bugs.php.net [^] though if you haven't yet!

- Issue History
Date Modified Username Field Change
2018-02-22 11:51 asystance New Issue
2018-02-23 10:51 asystance Note Added: 0004597
2018-03-03 12:00 derick Note Added: 0004602
2018-03-03 12:00 derick Status new => resolved
2018-03-03 12:00 derick Resolution open => no change required
2018-03-03 12:00 derick Assigned To => derick


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker