View Issue Details

IDProjectCategoryView StatusLast Update
0002254XdebugStep Debuggingpublic2024-03-28 16:57
Reportervtsykun Assigned Toderick  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionduplicate 
Product Version3.3.1 
Summary0002254: Segmentation fault in mark_fse_as_having_line_breakpoints on php-fpm 8.1.27
Description

I got segmentation fault on the last xDebug version 3.3.1. This bug does not reproduce on 3.2, probably introduced in this PR https://github.com/xdebug/xdebug/pull/915

Program received signal SIGSEGV, Segmentation fault.
mark_fse_as_having_line_breakpoints (fse=0x55efe5a3a910) at /opt/build/xdebug/src/debugger/debugger.c:573
573 } else if (!zend_string_equals(extra_brk_info->filename, executed_filename)) {
(gdb) bt
#0 mark_fse_as_having_line_breakpoints (fse=0x55efe5a3a910) at /opt/build/xdebug/src/debugger/debugger.c:573
#1 handle_breakpoints (return_value=0x7faaf3417090, breakpoint_type=8, fse=0x55efe5a3a910) at /opt/build/xdebug/src/debugger/debugger.c:591
0000002 xdebug_debugger_handle_breakpoints (fse=fse@entry=0x55efe5a3a910, breakpoint_type=breakpoint_type@entry=8, return_value=return_value@entry=0x7faaf3417090) at /opt/build/xdebug/src/debugger/debugger.c:623
0000003 0x00007faaf5652140 in xdebug_execute_internal_end (current_execute_data=<optimized out>, return_value=0x7faaf3417090) at /opt/build/xdebug/src/base/base.c:998
0000004 xdebug_execute_internal (current_execute_data=<optimized out>, return_value=0x7faaf3417090) at /opt/build/xdebug/src/base/base.c:1022
0000005 0x000055efe09be095 in ?? ()
0000006 0x000055efe09beacb in ?? ()
0000007 0x000055efe09be000 in ?? ()
0000008 0x000055efe09beacb in ?? ()
0000009 0x000055efe09be000 in ?? ()
0000010 0x000055efe09beacb in ?? ()
0000011 0x000055efe09be000 in ?? ()
0000012 0x000055efe09beacb in ?? ()
0000013 0x000055efe09be000 in ?? ()
0000014 0x000055efe09beacb in ?? ()
0000015 0x000055efe09be000 in ?? ()
0000016 0x000055efe09beacb in ?? ()
0000017 0x000055efe09be000 in ?? ()
0000018 0x000055efe09beacb in ?? ()
0000019 0x000055efe09be000 in ?? ()
0000020 0x000055efe09beacb in ?? ()
0000021 0x000055efe09be000 in ?? ()
0000022 0x000055efe09beacb in ?? ()
0000023 0x000055efe09be000 in ?? ()
0000024 0x000055efe09beacb in ?? ()
0000025 0x000055efe09be000 in ?? ()
0000026 0x000055efe09beacb in ?? ()
0000027 0x000055efe09be000 in ?? ()
0000028 0x000055efe09beacb in ?? ()
0000029 0x000055efe09be000 in ?? ()
0000030 0x000055efe09beacb in ?? ()
0000031 0x000055efe09be000 in ?? ()
0000032 0x000055efe09beacb in ?? ()
0000033 0x000055efe09be000 in ?? ()
0000034 0x000055efe09beacb in ?? ()
#35 0x000055efe09be000 in ?? ()
0000036 0x000055efe09beacb in ?? ()
0000037 0x000055efe09be000 in ?? ()
0000038 0x000055efe09beacb in ?? ()
0000039 0x000055efe09be000 in ?? ()
0000040 0x000055efe09beacb in ?? ()
0000041 0x000055efe09be000 in ?? ()
0000042 0x000055efe09beacb in ?? ()
0000043 0x000055efe09be000 in ?? ()
0000044 0x000055efe09beacb in ?? ()
0000045 0x000055efe09be000 in ?? ()
0000046 0x000055efe09beacb in ?? ()
0000047 0x000055efe0bf83a9 in zend_execute ()
0000048 0x000055efe0b883f0 in zend_execute_scripts ()
#49 0x000055efe0b230ba in php_execute_script ()
0000050 0x000055efe09c9c7f in ?? ()
#51 0x00007faaf5c29d90 in libc_start_call_main (main=main@entry=0x55efe09c8cd0, argc=argc@entry=4, argv=argv@entry=0x7ffe86f29588) at ../sysdeps/nptl/libc_start_call_main.h:58
0000052 0x00007faaf5c29e40 in
libc_start_main_impl (main=0x55efe09c8cd0, argc=4, argv=0x7ffe86f29588, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe86f29578) at ../csu/libc-start.c:392
0000053 0x000055efe09cba45 in _start ()
(gdb) set print pretty on
(gdb) p executed_filename
$1 = (zend_string ) 0x3338313a7068702e
(gdb) print
$1
Cannot access memory at address 0x3338313a7068702e
(gdb) p extra_brk_info
$2 = (xdebug_brk_info ) 0x55efe1e425d0
(gdb) print
$2
$3 = {
id = 3750001,
brk_type = 1,
resolved = 0,
classname = 0x0,
functionname = 0x0,
exceptionname = 0x0,
function_break_type = 0,
filename = 0x7faaf3456180,
original_lineno = 34,
resolved_lineno = 34,
condition = 0x0,
disabled = 0,
temporary = 0,
hit_count = 0,
hit_value = 0,
hit_condition = 0
}

Steps To Reproduce

Occurs when debugging a Symfony application.

TagsNo tags attached.
Operating SystemLinux 6.5.0
PHP Version8.1.10-8.1.19

Relationships

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

Activities

derick

2024-03-28 16:57

administrator   ~0006871

Likely a duplicate of 0002252

Issue History

Date Modified Username Field Change
2024-03-22 00:28 vtsykun New Issue
2024-03-28 16:57 derick Assigned To => derick
2024-03-28 16:57 derick Status new => resolved
2024-03-28 16:57 derick Resolution open => duplicate
2024-03-28 16:57 derick Note Added: 0006871
2024-03-28 16:57 derick Relationship added duplicate of 0002252