View Issue Details

IDProjectCategoryView StatusLast Update
0002290XdebugStep Debuggingpublic2024-11-27 16:00
ReporterJorrit Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionduplicate 
PlatformWindowsOSWindowsOS Version11
Product Version3.3.2 
Summary0002290: Process crash when used with php-cgi.exe
Description

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.

TagsNo tags attached.
Attached Files
debug value.png (102,290 bytes)   
debug value.png (102,290 bytes)   
Operating SystemWindows
PHP Version8.1.30-8.1.39

Relationships

duplicate of 0002252 acknowledgedderick Running phpunit in coverage triggers segfault in xdebug_branch_info_mark_reached 

Activities

Jorrit

2024-10-04 17:05

reporter   ~0007054

Debugging PHP or any other native code is new to me. As you can see, I've got it setup pretty well, so if you need any more information please let me know how I can help.

derick

2024-10-08 15:26

administrator   ~0007065

I think it's the same issue as https://bugs.xdebug.org/view.php?id=2229 — but I've not managed to nail down the problem here.

Issue History

Date Modified Username Field Change
2024-10-04 13:22 Jorrit New Issue
2024-10-04 13:22 Jorrit File Added: debug value.png
2024-10-04 17:05 Jorrit Note Added: 0007054
2024-10-08 15:26 derick Note Added: 0007065
2024-11-27 15:59 derick Assigned To => derick
2024-11-27 15:59 derick Status new => resolved
2024-11-27 15:59 derick Resolution open => duplicate
2024-11-27 15:59 derick Relationship added duplicate of 0002259
2024-11-27 16:00 derick Relationship deleted 0002259
2024-11-27 16:00 derick Relationship added duplicate of 0002252