Environment:
Windows 11
IIS
Fast-CGI
PHP 8.1.30
Xdebug 3.3.2
Software: Symfony 5.4
Configuration: xdebug.mode=debug
The php-cgi process crashes with this information in the event log:
AppName php-cgi.exe
AppVersion 8.1.30.0
AppTimeStamp 66f5ceef
ModuleName php_xdebug.dll
ModuleVersion 8.1.27.0
ModuleTimeStamp 66ffe7b0
ExceptionCode c0000005
FaultingOffset 000000000001cc3c
ProcessId 0x2794
ProcessCreationTime 0x1db165ea4785bf1
AppPath c:\tools\php81\php-cgi.exe
ModulePath c:\tools\php81\ext\php_xdebug.dll
IntegratorReportId 0340253b-e616-4076-ab92-a3b2d7c25fe8
PackageFullName
I setup debug symbols and compiled xdebug myself to get a pdb file.
The stacktrace to the exception is:
[Inline Frame] php_xdebug.dll!zend_string_equal_content(_zend_string *) Line 357 C
[Inline Frame] php_xdebug.dll!zend_string_equals(_zend_string * s1, _zend_string *) Line 362 C
php_xdebug.dll!mark_fse_as_having_line_breakpoints(_function_stack_entry fse) Line 573 C
[Inline Frame] php_xdebug.dll!handle_breakpoints(_function_stack_entry ) Line 591 C
php_xdebug.dll!xdebug_debugger_handle_breakpoints(_function_stack_entry fse, int breakpoint_type, _zval_struct return_value) Line 623 C
[Inline Frame] php_xdebug.dll!xdebug_execute_internal_end(_zend_execute_data ) Line 1004 C
php_xdebug.dll!xdebug_execute_internal(_zend_execute_data current_execute_data, _zval_struct return_value) Line 1028 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 1997 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!zend_generator_resume(_zend_generator orig_generator) Line 756 C
php8.dll!zend_fe_fetch_object_helper_SPEC(_zend_execute_data execute_data) Line 2766 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!zend_generator_resume(_zend_generator orig_generator) Line 756 C
php8.dll!zend_generator_ensure_initialized(_zend_generator generator) Line 809 C
php8.dll!zend_generator_rewind(_zend_generator generator) Line 818 C
php8.dll!zend_fe_reset_iterator(_zval_struct array_ptr, int by_ref, const _zend_op opline, _zend_execute_data execute_data) Line 4876 C
php8.dll!ZEND_FE_RESET_R_SPEC_VAR_HANDLER(_zend_execute_data execute_data) Line 21815 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 2010 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!ZEND_INCLUDE_OR_EVAL_SPEC_OBSERVER_HANDLER(_zend_execute_data execute_data) Line 4988 C
php8.dll!execute_ex(_zend_execute_data ex) Line 55622 C
php8.dll!zend_execute(_zend_op_array op_array, _zval_struct return_value) Line 60190 C
php8.dll!zend_execute_scripts(int type, _zval_struct retval, int file_count, ...) Line 1858 C
php8.dll!php_execute_script(_zend_file_handle primary_file) Line 2551 C
php-cgi.exe!main(int argc, char argv) Line 2564 C
It seems the executed_filename variable contains an invalid value, see the attached screenshot of Visual Studio. |