View Issue Details

IDProjectCategoryView StatusLast Update
0002175XdebugUncategorizedpublic2023-04-17 08:28
Reporteralexander.willner Assigned To 
Status newResolutionopen 
PlatformPHP 8.2.5OSmacOSOS Version13.3.1
Product Version3.2.1 
Summary0002175: Crash with EXC_BAD_ACCESS in xdebug_str_create

Xdebug 3.2.1 crashes within PHP 8.2.5 by opening a self developed web application (based on Symfony). This happens on arm64/mac (I saw something similar on an amd64/linux machine, however, this issue report is specifically for the trace shown below).
Depending on the developer machine this happens with the Symfony debug mode on or off. In this case it has to be disabled to trigger the crash (APP_ENV=prod).

Steps To Reproduce
  1. Start the server: SSL=1 lldb -- php -d variables_order=EGPCS -S -t web web/router.php
  2. Open the page: curl http://localhost:8196
Additional Information

% SSL=1 lldb -- php -d variables_order=EGPCS -S -t web web/router.php
(lldb) target create "php"
Current executable set to 'php' (arm64).
(lldb) settings set -- "-d" "variables_order=EGPCS" "-S" "" "-t" "web" "web/router.php"
(lldb) run
Process 37543 launched: '/opt/homebrew/bin/php' (arm64)
[Mon Apr 17 10:19:32 2023] PHP 8.2.5 Development Server ( started
[Mon Apr 17 10:19:35 2023] Accepted
Process 37543 stopped

  • thread #1, queue = '', stop reason = EXC_BAD_ACCESS (code=1, address=0x50)
    frame #0: 0x00000001027f7fbc xdebug.soxdebug_lib_register_compiled_variables + 76 xdebug.soxdebug_lib_register_compiled_variables:
    -> 0x1027f7fbc <+76>: ldr x8, [x8]
    0x1027f7fc0 <+80>: add x0, x8, #0x18
    0x1027f7fc4 <+84>: ldr x1, [x8, #0x10]
    0x1027f7fc8 <+88>: bl 0x10281a340 ; symbol stub for: xdebug_str_create
    Target 0: (php) stopped.
Operating SystemmacOS 13.3.1 (22E261)
PHP Version8.2.0-8.2.9


There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2023-04-17 08:28 alexander.willner New Issue
2023-04-17 08:28 alexander.willner Tag Attached: crash