Xdebug 3.3.0 crashes

Bug Summary

Local bundles xdebug 3.3.0 for PHP 8.3.x, which sometimes crashes. 3.1.1 and 3.3.2 fixed those.

Updating the bundled version is likely to fix it.

Steps to reproduce

  1. Set a site to use PHP 8.3.23 and apply the change.

  2. Use step debugging to go through some code until it crashes. I can’t tell exactly when it crashes and when it doesn’t, though. On Macs you can see the crash report by opening Console and then Crash Reports in the sidebar. The php-fpm entry will show something like:

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 xdebug.so 0x106750c54 fetch_zval_from_symbol_table + 1280
    1 xdebug.so 0x1067504f4 xdebug_get_php_symbol + 1412
    2 xdebug.so 0x10676511c add_variable_node + 40
    3 xdebug.so 0x106762628 xdebug_dbgp_handle_property_get + 1260
    4 xdebug.so 0x10675f368 xdebug_dbgp_cmdloop + 1472
    5 xdebug.so 0x10675e3b8 xdebug_dbgp_breakpoint + 1028
    6 xdebug.so 0x10675bf98 xdebug_debugger_statement_call + 704

  3. Switch to PHP 8.2.29, debug again and it works. It’ll probably work with PHP 8.4.x too, but I can’t test that right now.

Environment Info

  • Mac 15.6.1
  • PHP 8.3.23
  • Local 9.2.8+6882

Thanks for the report, @iandunn!

I have logged this with our team but don’t have a timeline for the update yet.

Current Xdebug versions in Local are these in case it helps pick for now:

PHP Xdebug
8.1 3.1.5
8.2 3.2.1
8.3 3.3.0
8.4 3.4.1
1 Like

Sounds good, thanks!