View Issue Details

IDProjectCategoryView StatusLast Update
0001375XdebugRemote Debuggingpublic2016-12-05 10:52
ReporterasgrimAssigned Toderick 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
PlatformLinuxOSUbuntuOS Version16.04
Product Version2.5.0RC1 
Target VersionFixed in Version 
Summary0001375: SIGSEGV when step debugging
DescriptionSorry I couldn't make a more reproducible case, but I couldn't pinpoint exactly what the issue is here (I thought it may've been related to try/catch in the call stack, but doesn't seem related). When using xdebug to perform step debugging in PhpStorm, PHP is segfaulting on some breakpoints.
Steps To Reproduce1. git clone git@github.com:Roave/BetterReflection.git
2. cd BetterReflection
3. git checkout xdebug-branch
4. composer up
5. Create project in PhpStorm
6. Find the test PhpInternalSourceLocatorTest#testCanFetchInternalLocatedSource
7. Set breakpoint on L41: $reflection = $locator->locateIdentifier(
8. Ctrl+Click through to AbstractSourceLocator#locateIdentifier
9. Set breakpoint on L42: if (!($locatedSource = $this->createLocatedSource($identifier))) {
10. Start debugging the test PhpInternalSourceLocatorTest#testCanFetchInternalLocatedSource
11. Stops fine on the first breakpoint, press resume (F9)
12. Notice it stops momentarily on the second breakpoint, but the debugging session ends. In the console, can see:

/usr/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1 /home/james/workspace/better-reflection/vendor/phpunit/phpunit/phpunit --configuration /home/james/workspace/better-reflection/phpunit.xml.dist --filter "/::testCanFetchInternalLocatedSource( .*)?$/" BetterReflectionTest\SourceLocator\Type\PhpInternalSourceLocatorTest /home/james/workspace/better-reflection/test/unit/SourceLocator/Type/PhpInternalSourceLocatorTest.php --teamcity
Testing started at 15:33 ...
PHPUnit 5.6.7 by Sebastian Bergmann and contributors.


Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
Additional InformationPHP version is not 7.1-dev, it's:

PHP 7.1.0-1+deb.sury.org~xenial+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.1.0-1+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.5.0rc1, Copyright (c) 2002-2016, by Derick Rethans
TagsNo tags attached.
Operating SystemUbuntu 16.04
PHP Version7.1-dev

Activities

asgrim

2016-12-03 15:48

reporter  

xdebug.log (34,724 bytes)

asgrim

2016-12-03 15:50

reporter   ~0003888

Added the crash report from Ubuntu, but not sure if it's any use (I also don't know how to read it, nor if it's useful in the slightest)

asgrim

2016-12-03 15:51

reporter  

_usr_bin_php7.1.1000.crash (4,058,895 bytes)

derick

2016-12-03 23:10

administrator   ~0003889

I'm pretty sure I've fixed this in Git already (yesterday). Can you please try again from latest master?

asgrim

2016-12-05 08:55

reporter   ~0003938

Yep, I just built 2.5.0 (150336d1) and it works fine now. Confirm fixed. Thanks Derick!

Issue History

Date Modified Username Field Change
2016-12-03 15:48 asgrim New Issue
2016-12-03 15:48 asgrim File Added: xdebug.log
2016-12-03 15:50 asgrim Note Added: 0003888
2016-12-03 15:52 asgrim File Added: _usr_bin_php7.1.1000.crash
2016-12-03 23:10 derick Note Added: 0003889
2016-12-03 23:10 derick Assigned To => derick
2016-12-03 23:10 derick Status new => feedback
2016-12-05 08:55 asgrim Note Added: 0003938
2016-12-05 08:55 asgrim Status feedback => assigned
2016-12-05 10:52 derick Status assigned => resolved
2016-12-05 10:52 derick Resolution open => no change required