Open alvin0319 opened 1 year ago
That's odd. I've never seen this, and I'm using 8.2 with xdebug locally.
I wonder if this is a Windows-specific error, I've tried enabling Xdebug on Ubuntu 22.04 (on VM) and it worked fine. (and debugger connection was successful too)
To be honest, I think it's more likely this has something to do with xdebug/xdebug#878.
Is this issue still present with latest PHP binaries?
Wed_Sep_6-09.34.51-UTC_2023.log The issue still persists.
Apart from the crashing, my plugins that make external connections (127.0.0.1, or other external IPs) aren't established successfully. (My plugins block a main thread to wait for a successful connection. This makes the main thread blocked)
My investigation shows that every external (or, internal) connection (or socket?) PHP made doesn't establish whenever used with xdebug. This has been tested with:
Bump, The issue still happens on my PC. By the way, not sure if it's related, compiling PHP binary on my PC fails on xdebug compilation.
NMAKE : fatal error U1077: '"cl.exe" /D ZEND_COMPILE_DL_EXT=1 /D COMPILE_DL_XDEBUG /D XDEBUG_EXPORTS=1 /I ext\xdebug /I ext\xdebug/src /nologo /I . /I main /I Zend /I TSRM /I ext /D _WINDOWS /D WINDOWS=1 /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /D _USE_MATH_DEFINES /FD /wd4996 /Zc:inline /Gw /Zc:__cplusplus /d2FuncCache1 /Zc:wchar_t /MP /Zi /LD /MD /Ox /D NDebug /D NDEBUG /GF /D ZEND_DEBUG=0 /D ZTS=1 /I "C:\pocketmine-php-8.3.0-release\deps\include" /D FD_SETSIZE=256 /FoC:\pocketmine-php-8.3.0-release\php-src\x64\Release_TS\ext\xdebug\src\lib\ /FpC:\pocketmine-php-8.3.0-release\php-src\x64\Release_TS\ext\xdebug\src\lib\ /FRC:\pocketmine-php-8.3.0-release\php-src\x64\Release_TS\ext\xdebug\src\lib\ /FdC:\pocketmine-php-8.3.0-release\php-src\x64\Release_TS\ext\xdebug\src\lib\ /c ext\xdebug\src\lib\cmd_parser.c ext\xdebug\src\lib\compat.c ext\xdebug\src\lib\crc32.c ext\xdebug\src\lib\file.c ext\xdebug\src\lib\hash.c ext\xdebug\src\lib\headers.c ext\xdebug\src\lib\lib.c ext\xdebug\src\lib\llist.c ext\xdebug\src\lib\log.c ext\xdebug\src\lib\set.c ext\xdebug\src\lib\str.c ext\xdebug\src\lib\timing.c ext\xdebug\src\lib\usefulstuff.c ext\xdebug\src\lib\var.c ext\xdebug\src\lib\var_export_html.c ext\xdebug\src\lib\var_export_line.c ext\xdebug\src\lib\var_export_text.c ext\xdebug\src\lib\var_export_xml.c ext\xdebug\src\lib\xml.c' : '0x2' ȯ ڵ Դϴ .
Not sure why error message appears like that, and not sure how to fix it. (my editor is reading it as utf-8)
Full compile.log here: compile.log
Link to crashdump: https://pastebin.com/HmAFJ0QF
Additional comments (optional)
My php.ini setting:
No breakpoints (or checkpoints) have been made at this point, server just crashed without any plugins.