View Issue Details

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

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 0.0.0.0:8196 -t web web/router.php
  2. Open the page: curl http://localhost:8196
Additional Information

% SSL=1 lldb -- php -d variables_order=EGPCS -S 0.0.0.0:8196 -t web web/router.php
(lldb) target create "php"
Current executable set to 'php' (arm64).
(lldb) settings set -- target.run-args "-d" "variables_order=EGPCS" "-S" "0.0.0.0:8196" "-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 (http://0.0.0.0:8196) started
[Mon Apr 17 10:19:35 2023] 127.0.0.1:54752 Accepted
Process 37543 stopped

  • thread #1, queue = 'com.apple.main-thread', 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.
    (lldb)
Tagscrash
Operating SystemmacOS 13.3.1 (22E261)
PHP Version8.2.0-8.2.9

Activities

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