View Issue Details

IDProjectCategoryView StatusLast Update
0001375XdebugStep Debuggingpublic2016-12-05 10:52
Reporterasgrim Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
PlatformLinuxOSUbuntuOS Version16.04
Product Version2.5.0RC1 
Summary0001375: SIGSEGV when step debugging
Description

Sorry 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 Reproduce
  1. 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 Information

PHP 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: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)

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!