MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001393XdebugUsage problems (Wrong Results)public2017-01-28 18:142017-01-28 21:13
ReporterJohnStevenson 
Assigned Toderick 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionno change required 
PlatformWindowsOS10OS Version
Product Version2.5.0 
Target VersionFixed in Version 
Summary0001393: Segfault when Composer restarts without xdebug and opcache is enabled
DescriptionIf xdebug if enabled, Composer restarts itself (via passthru) having commented out the zend_extension xdebug entry in the ini file. If opcache is enabled and opcache.enable_cli=1 then the restarted PHP process segfaults.

This does not happen on Linux platforms. On Windows it will not happen if opcache.enable_cli=0 (or either opcache or xdebug are not loaded).

This may or may not be an xdebug issue, but I thought I would ask here first before reporting it on the PHP bugtracker. Thanks.
Steps To Reproduce1. Download: https://getcomposer.org/download/1.3.1/composer.phar [^]

2. Config:
zend_extension=php_opcache.dll
opcache.enable_cli=1
zend_extension=php_xdebug-2.5.0-7.1-vc14....dll

3. Run:
php.exe composer.phar --version
Additional InformationBacktrace:
----------

ntdll.dll!@RtlFailFast2@8() Unknown
ntdll.dll!@RtlpHandleInvalidUserCallTarget@4() Unknown
ntdll.dll!RtlDispatchException() Unknown
ntdll.dll!_KiUserExceptionDispatcher@8() Unknown
ntdll.dll!_LdrpValidateUserCallTargetBitMapCheck@0() Unknown
php7ts.dll!execute_ex(_zend_execute_data * ex) Line 432 C
php7ts.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value) Line 475 C
php7ts.dll!zend_execute_scripts(int type, _zval_struct * retval, int file_count, ...) Line 1474 C
php7ts.dll!php_execute_script(_zend_file_handle * primary_file) Line 2537 C
php.exe!do_cli(int argc, char * * argv) Line 994 C
php.exe!main(int argc, char * * argv) Line 1384 C

Unhandled exception at 0x77B82CE0 (ntdll.dll) in php.exe: RangeChecks instrumentation code detected an out of range array access.
TagsNo tags attached.
Operating SystemWindows 10 x64
PHP Version7.1.0-7.1.4
Attached Files

- Relationships

-  Notes
(0004189)
derick (administrator)
2017-01-28 19:08

As there is no Xdebug in the back trace, and it only happens after composer restarts, I doubt this is an Xdebug problem.

I would check though if you can reproduce this on Linux with a ZTS build of PHP. (It's usually non zts on Linux and ZTS on windows).
(0004190)
JohnStevenson (reporter)
2017-01-28 20:19

Thanks for the fast reply. I realise that xdebug is not involved in any way in the restarted process, but wondered if it could be influencing what opcache caches in the parent process. However I have no idea how it works, so it was a bit of a long shot.

I'll submit a bug report on the PHP tracker. Thanks for your time.
(0004191)
derick (administrator)
2017-01-28 21:02

Jordi says that this should be fixed in Composer 1.3.2, but please still file this bug report.
(0004192)
JohnStevenson (reporter)
2017-01-28 21:13

Yes, we added a workaround.

- Issue History
Date Modified Username Field Change
2017-01-28 18:14 JohnStevenson New Issue
2017-01-28 19:08 derick Note Added: 0004189
2017-01-28 20:19 JohnStevenson Note Added: 0004190
2017-01-28 21:02 derick Note Added: 0004191
2017-01-28 21:02 derick Status new => resolved
2017-01-28 21:02 derick Resolution open => no change required
2017-01-28 21:02 derick Assigned To => derick
2017-01-28 21:13 JohnStevenson Note Added: 0004192


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker