<?xml version="1.0" encoding="utf-8"?>
<!--RSS generated by Flaimo.com RSS Builder [2024-10-06 03:06:51]-->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><docs>https://bugs.xdebug.org/</docs><link>https://bugs.xdebug.org/</link><description><![CDATA[MantisBT - Issues]]></description><title>MantisBT - Issues</title><image><title>MantisBT - Issues</title><url>https://bugs.xdebug.org/images/mantis_logo.png</url><link>https://bugs.xdebug.org/</link><description><![CDATA[MantisBT - Issues]]></description></image><language>en</language><category>All Projects</category><ttl>10</ttl><dc:language>en</dc:language><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><item><title>0002292: Apache2 mod_php  exit signal Segmentation fault (11) with Xdebug enabled</title><author></author><link>https://bugs.xdebug.org/view.php?id=2292</link><description><![CDATA[Hello, I'm a developer on the phpIPAM project and have encountered a bug using xdebug to test and develop the code.&lt;br /&gt;
&lt;br /&gt;
I am experiencing Segmentation faults with the Xdebug module enabled.&lt;br /&gt;
&lt;br /&gt;
I'm aware you would prefer a minimal php script to reproduce but the process to reproduce is complex. The code spawns a number of threads to ping the subnet, sends the data to the main process via IPC and then iterates over the results using NET/DNS2 to resolve DNS names of discovered hosts.&lt;br /&gt;
&lt;br /&gt;
Is there a way of obtaining additional debugging info from this Apache2 environment?]]></description><category>Uncategorized</category><pubDate>Sat, 05 Oct 2024 11:36:01 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2292</guid><comments>https://bugs.xdebug.org/view.php?id=2292#bugnotes</comments></item><item><title>0002291: function tracing doesn't work on Windows 10 with Nginx 1.9.4 and PHP 8.3.12</title><author></author><link>https://bugs.xdebug.org/view.php?id=2291</link><description><![CDATA[When adding xdebug_start_trace() and xdebug_stop_trace() to a function I want to trace, no trace file is generated.]]></description><category>Tracing</category><pubDate>Fri, 04 Oct 2024 18:56:53 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2291</guid><comments>https://bugs.xdebug.org/view.php?id=2291#bugnotes</comments></item><item><title>0002290: Process crash when used with php-cgi.exe</title><author></author><link>https://bugs.xdebug.org/view.php?id=2290</link><description><![CDATA[Environment:&lt;br /&gt;
Windows 11&lt;br /&gt;
IIS&lt;br /&gt;
Fast-CGI&lt;br /&gt;
PHP 8.1.30&lt;br /&gt;
Xdebug 3.3.2&lt;br /&gt;
Software: Symfony 5.4&lt;br /&gt;
Configuration: xdebug.mode=debug&lt;br /&gt;
&lt;br /&gt;
The php-cgi process crashes with this information in the event log:&lt;br /&gt;
  AppName php-cgi.exe &lt;br /&gt;
  AppVersion 8.1.30.0 &lt;br /&gt;
  AppTimeStamp 66f5ceef &lt;br /&gt;
  ModuleName php_xdebug.dll &lt;br /&gt;
  ModuleVersion 8.1.27.0 &lt;br /&gt;
  ModuleTimeStamp 66ffe7b0 &lt;br /&gt;
  ExceptionCode c0000005 &lt;br /&gt;
  FaultingOffset 000000000001cc3c &lt;br /&gt;
  ProcessId 0x2794 &lt;br /&gt;
  ProcessCreationTime 0x1db165ea4785bf1 &lt;br /&gt;
  AppPath c:\tools\php81\php-cgi.exe &lt;br /&gt;
  ModulePath c:\tools\php81\ext\php_xdebug.dll &lt;br /&gt;
  IntegratorReportId 0340253b-e616-4076-ab92-a3b2d7c25fe8 &lt;br /&gt;
  PackageFullName  &lt;br /&gt;
&lt;br /&gt;
I setup debug symbols and compiled xdebug myself to get a pdb file.&lt;br /&gt;
The stacktrace to the exception is:&lt;br /&gt;
&lt;br /&gt;
 	[Inline Frame] php_xdebug.dll!zend_string_equal_content(_zend_string *) Line 357	C&lt;br /&gt;
 	[Inline Frame] php_xdebug.dll!zend_string_equals(_zend_string * s1, _zend_string *) Line 362	C&lt;br /&gt;
&gt;	php_xdebug.dll!mark_fse_as_having_line_breakpoints(_function_stack_entry * fse) Line 573	C&lt;br /&gt;
 	[Inline Frame] php_xdebug.dll!handle_breakpoints(_function_stack_entry *) Line 591	C&lt;br /&gt;
 	php_xdebug.dll!xdebug_debugger_handle_breakpoints(_function_stack_entry * fse, int breakpoint_type, _zval_struct * return_value) Line 623	C&lt;br /&gt;
 	[Inline Frame] php_xdebug.dll!xdebug_execute_internal_end(_zend_execute_data *) Line 1004	C&lt;br /&gt;
 	php_xdebug.dll!xdebug_execute_internal(_zend_execute_data * current_execute_data, _zval_struct * return_value) Line 1028	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 1997	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!zend_generator_resume(_zend_generator * orig_generator) Line 756	C&lt;br /&gt;
 	php8.dll!zend_fe_fetch_object_helper_SPEC(_zend_execute_data * execute_data) Line 2766	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!zend_generator_resume(_zend_generator * orig_generator) Line 756	C&lt;br /&gt;
 	php8.dll!zend_generator_ensure_initialized(_zend_generator * generator) Line 809	C&lt;br /&gt;
 	php8.dll!zend_generator_rewind(_zend_generator * generator) Line 818	C&lt;br /&gt;
 	php8.dll!zend_fe_reset_iterator(_zval_struct * array_ptr, int by_ref, const _zend_op * opline, _zend_execute_data * execute_data) Line 4876	C&lt;br /&gt;
 	php8.dll!ZEND_FE_RESET_R_SPEC_VAR_HANDLER(_zend_execute_data * execute_data) Line 21815	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 2010	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!ZEND_INCLUDE_OR_EVAL_SPEC_OBSERVER_HANDLER(_zend_execute_data * execute_data) Line 4988	C&lt;br /&gt;
 	php8.dll!execute_ex(_zend_execute_data * ex) Line 55622	C&lt;br /&gt;
 	php8.dll!zend_execute(_zend_op_array * op_array, _zval_struct * return_value) Line 60190	C&lt;br /&gt;
 	php8.dll!zend_execute_scripts(int type, _zval_struct * retval, int file_count, ...) Line 1858	C&lt;br /&gt;
 	php8.dll!php_execute_script(_zend_file_handle * primary_file) Line 2551	C&lt;br /&gt;
 	php-cgi.exe!main(int argc, char * * argv) Line 2564	C&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It seems the executed_filename variable contains an invalid value, see the attached screenshot of Visual Studio.]]></description><category>Step Debugging</category><pubDate>Fri, 04 Oct 2024 17:05:25 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2290</guid><comments>https://bugs.xdebug.org/view.php?id=2290#bugnotes</comments></item><item><title>0002287: zend_mm_heap corrupted  in develop mode</title><author></author><link>https://bugs.xdebug.org/view.php?id=2287</link><description><![CDATA[Reflecting a class containing new php 8.4 features (property hooks / asymmetric-visibility) with `xdebug.mode = develop`   leads to&lt;br /&gt;
&lt;br /&gt;
zend_mm_heap corrupted&lt;br /&gt;
Abort trap: 6]]></description><category>Uncategorized</category><pubDate>Fri, 04 Oct 2024 14:33:02 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2287</guid><comments>https://bugs.xdebug.org/view.php?id=2287#bugnotes</comments></item><item><title>0002288: PHP 8.4.0RC1 Zend engine version vs XDebug 3.4.0alpha1</title><author></author><link>https://bugs.xdebug.org/view.php?id=2288</link><description><![CDATA[When used with PHP 8.4.0RC1, Xdebug reports the following:&lt;br /&gt;
Xdebug requires Zend Engine API version 420230831.&lt;br /&gt;
The Zend Engine API version 420240924 which is installed, is newer.&lt;br /&gt;
Contact Derick Rethans at &lt;a href=&quot;https://xdebug.org/docs/faq#api&quot; rel=&quot;noopener&quot;&gt;https://xdebug.org/docs/faq#api&lt;/a&gt; for a later version of Xdebug.&lt;br /&gt;
&lt;br /&gt;
In &lt;a href=&quot;https://xdebug.org/announcements/2024-05-31&quot; rel=&quot;noopener&quot;&gt;https://xdebug.org/announcements/2024-05-31&lt;/a&gt; it says that Xdebug 3.4.0alpha1 is a preliminary release with PHP 8.4 support, but it is not possible to test it as for now.]]></description><category>Uncategorized</category><pubDate>Fri, 04 Oct 2024 14:31:31 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2288</guid><comments>https://bugs.xdebug.org/view.php?id=2288#bugnotes</comments></item><item><title>0002289: Cant not access an array's keys</title><author></author><link>https://bugs.xdebug.org/view.php?id=2289</link><description><![CDATA[I want to access the $_FILES array. When I watch it with just $_FILES it shows it exists and you can see whats inside. However, when I type $_FILES['card_image'] it shows can not get property, even though it does and I can see it if I expand the $_FILES array. To fix this I assigned another variable to $_FILES and tried to access 'card_image' through it and guess what it worked. Why is this happening?]]></description><category>Step Debugging</category><pubDate>Tue, 01 Oct 2024 07:40:32 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2289</guid><comments>https://bugs.xdebug.org/view.php?id=2289#bugnotes</comments></item><item><title>0002286: Changing xdebug parameters in PHP Pool changes parameters values but has no effect on affected Xdebug Features</title><author></author><link>https://bugs.xdebug.org/view.php?id=2286</link><description><![CDATA[Changing xdebug parameters in PHP Pool configuration files changes the parameters value but does not change Xdebug features afected.&lt;br /&gt;
&lt;br /&gt;
What you expected to happen.&lt;br /&gt;
&lt;br /&gt;
I configured 'xdebug.mode=off' in /etc/php/8.2/fpm/conf.d/20-xdebug.ini&lt;br /&gt;
to default no debugging and reduce overhead and then changed xdebug.mode from 'off' to 'debug' for a specific website through 'PHP Pool' configuration file and expected the 'Step Debugger' feature to toggle from disabled to enabled.&lt;br /&gt;
&lt;br /&gt;
What happened instead.&lt;br /&gt;
&lt;br /&gt;
xdebug_info() shows the value of xdebug.mode changed to 'debug' but the 'Step Debugger' remains disabled.&lt;br /&gt;
&lt;br /&gt;
If I swith xdebug.mode to 'debug' in the /etc/php/8.2/fpm/conf.d/20-xdebug.ini file the 'Step Debugger' gets enabled.&lt;br /&gt;
&lt;br /&gt;
XDEBUG Version 3.3.2&lt;br /&gt;
PHP Version 8.1.29&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;mailto:root@srv1&quot;&gt;root@srv1&lt;/a&gt;:/# php -v&lt;br /&gt;
PHP 8.1.29 (cli) (built: Jun  6 2024 16:53:25) (NTS)&lt;br /&gt;
Copyright (c) The PHP Group&lt;br /&gt;
Zend Engine v4.1.29, Copyright (c) Zend Technologies&lt;br /&gt;
    with Zend OPcache v8.1.29, Copyright (c), by Zend Technologies&lt;br /&gt;
    with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans&lt;br /&gt;
&lt;br /&gt;
OS Ubuntu 22.04.4 LTS&lt;br /&gt;
&lt;br /&gt;
My question is if I should be able to make xdebug.ini changes through PHP Pool Configuration files and expect XDebug Features to change accordingly or must I make changes only in the main PHP XDEBUG configuration file that applies to all websites in server using the specific version of PHP.]]></description><category>Installation</category><pubDate>Tue, 03 Sep 2024 20:01:49 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2286</guid><comments>https://bugs.xdebug.org/view.php?id=2286#bugnotes</comments></item><item><title>0002283: SoapClient usage causes segfault with codecoverage</title><author></author><link>https://bugs.xdebug.org/view.php?id=2283</link><description><![CDATA[using the soapclient like this:&lt;br /&gt;
&lt;br /&gt;
        // we fake the soap client to return our prerecorded xml response and have it decoded via the SoapClient&lt;br /&gt;
        $client = new class ( __DIR__ . '/StationList.wsdl', ['trace' =&gt; true]) extends SoapClient {&lt;br /&gt;
            public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): string&lt;br /&gt;
            {&lt;br /&gt;
                return \file_get_contents(__DIR__ . '/Result.xml') ?: throw new RuntimeException('missing PointListRequestResult');&lt;br /&gt;
            }&lt;br /&gt;
        };&lt;br /&gt;
&lt;br /&gt;
        $client-&gt;getTheStationListFull();&lt;br /&gt;
&lt;br /&gt;
will cause a segfault, see provided github repository for a small reproducer.&lt;br /&gt;
&lt;br /&gt;
(gdb) bt&lt;br /&gt;
#0  call_end_observers (return_value=0x0, execute_data=0x5574df430000) at ./Zend/zend_observer.c:265&lt;br /&gt;
#1  zend_observer_fcall_end_all () at ./Zend/zend_observer.c:293&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=2&quot;&gt;0000002&lt;/a&gt;  0x00005574eae024d9 in php_request_shutdown (&lt;a href=&quot;mailto:dummy=dummy@entry&quot;&gt;dummy=dummy@entry&lt;/a&gt;=0x0) at ./main/main.c:1849&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=3&quot;&gt;0000003&lt;/a&gt;  0x00005574eaf59ace in do_cli (argc=3, argv=0x5574f7a43520) at ./sapi/cli/php_cli.c:1136&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=4&quot;&gt;0000004&lt;/a&gt;  0x00005574eac959c6 in main (argc=3, argv=0x5574f7a43520) at ./sapi/cli/php_cli.c:1340&lt;br /&gt;
&lt;br /&gt;
full backtrace here: &lt;a href=&quot;https://github.com/verfriemelt-dot-org/xdebug-soap-segfault/blob/main/backtrace.log&quot; rel=&quot;noopener&quot;&gt;https://github.com/verfriemelt-dot-org/xdebug-soap-segfault/blob/main/backtrace.log&lt;/a&gt;]]></description><category>Code Coverage</category><pubDate>Sun, 01 Sep 2024 18:45:06 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2283</guid><comments>https://bugs.xdebug.org/view.php?id=2283#bugnotes</comments></item><item><title>0002252: Running phpunit in coverage triggers segfault in xdebug_branch_info_mark_reached</title><author></author><link>https://bugs.xdebug.org/view.php?id=2252</link><description><![CDATA[When using php 8.2.17 and xdebug 3.3.1 on phpunit 9 coverage test triggers a segfault]]></description><category>Code Coverage</category><pubDate>Fri, 30 Aug 2024 09:29:34 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2252</guid><comments>https://bugs.xdebug.org/view.php?id=2252#bugnotes</comments></item><item><title>0002285: php 8.3.10 oops @ object cache flush if Xdebug enabled</title><author></author><link>https://bugs.xdebug.org/view.php?id=2285</link><description><![CDATA[on&lt;br /&gt;
```&lt;br /&gt;
distro&lt;br /&gt;
	Name: Fedora Linux 40 (Forty)&lt;br /&gt;
	Version: 40&lt;br /&gt;
	Codename:&lt;br /&gt;
&lt;br /&gt;
uname -rm&lt;br /&gt;
	6.10.3-200.fc40.x86_64 x86_64&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
with&lt;br /&gt;
```&lt;br /&gt;
rpm -qa | grep -E &quot;php-common|php-fpm|php-redis&quot;&lt;br /&gt;
	php-common-8.3.10-1.fc40.remi.x86_64&lt;br /&gt;
	php-fpm-8.3.10-1.fc40.remi.x86_64&lt;br /&gt;
	php-pecl-redis6-6.1.0~RC1-1.fc40.remi.8.3.x86_64&lt;br /&gt;
&lt;br /&gt;
php -v&lt;br /&gt;
	PHP 8.3.10 (cli) (built: Jul 30 2024 13:44:37) (NTS gcc x86_64)&lt;br /&gt;
	Copyright (c) The PHP Group&lt;br /&gt;
	Zend Engine v4.3.10, Copyright (c) Zend Technologies&lt;br /&gt;
	    with Zend OPcache v8.3.10, Copyright (c), by Zend Technologies&lt;br /&gt;
	    with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans&lt;br /&gt;
&lt;br /&gt;
php-fpm -v&lt;br /&gt;
	PHP 8.3.10 (fpm-fcgi) (built: Jul 30 2024 13:44:37)&lt;br /&gt;
	Copyright (c) The PHP Group&lt;br /&gt;
	Zend Engine v4.3.10, Copyright (c) Zend Technologies&lt;br /&gt;
	    with Zend OPcache v8.3.10, Copyright (c), by Zend Technologies&lt;br /&gt;
	    with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
in an app instance (Wordpress 6.6.1), exec of an Object Cache flush results in&lt;br /&gt;
```&lt;br /&gt;
Aug 13 11:44:49 test kernel: php-fpm[9241]: segfault at 23e00000070 ip 00005563d19807ab sp 00007ffddf340250 error 4 in php-fpm[3037ab,5563d16ab000+33c000] likely on CPU 14 (core 6, socket 0)&lt;br /&gt;
Aug 13 11:44:49 test kernel: Code: e8 01 00 00 48 89 45 c8 48 85 db 0f 84 9b 00 00 00 4c 8d 35 eb 76 1d 00 0f 1f 80 00 00 00 00 49 89 9d e8 01 00 00 48 8b 53 18 &lt;48&gt; 8b 42 38 a8 01 74 12 48 8d 0d 06 21 1d 00 48 8b 89 e0 01 00 00&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
@ core dump&lt;br /&gt;
```&lt;br /&gt;
gdb /usr/sbin/php-fpm /var/lib/systemd/coredump/core.9241&lt;br /&gt;
(gdb) set pagination off&lt;br /&gt;
(gdb) bt full&lt;br /&gt;
&lt;br /&gt;
(gdb) bt full&lt;br /&gt;
	#0  call_end_observers (execute_data=0x5563cd6db840, return_value=0x0)&lt;br /&gt;
	    at /usr/src/debug/php-8.3.10-1.fc40.remi.x86_64/Zend/zend_observer.c:265&lt;br /&gt;
	        func = 0x23e00000038&lt;br /&gt;
	        handler = &lt;optimized out&gt;&lt;br /&gt;
	        possible_handlers_end = &lt;optimized out&gt;&lt;br /&gt;
	#1  zend_observer_fcall_end_all () at /usr/src/debug/php-8.3.10-1.fc40.remi.x86_64/Zend/zend_observer.c:293&lt;br /&gt;
	        execute_data = 0x5563cd6db840&lt;br /&gt;
	        original_execute_data = 0x0&lt;br /&gt;
	&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=2&quot;&gt;0000002&lt;/a&gt;  0x00005563d1866850 in php_request_shutdown (&lt;a href=&quot;mailto:dummy=dummy@entry&quot;&gt;dummy=dummy@entry&lt;/a&gt;=0x0)&lt;br /&gt;
	    at /usr/src/debug/php-8.3.10-1.fc40.remi.x86_64/main/main.c:1862&lt;br /&gt;
	        report_memleaks = true&lt;br /&gt;
	&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=3&quot;&gt;0000003&lt;/a&gt;  0x00005563d16f517e in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;)&lt;br /&gt;
	    at /usr/src/debug/php-8.3.10-1.fc40.remi.x86_64/sapi/fpm/fpm/fpm_main.c:1970&lt;br /&gt;
	        primary_script = &lt;optimized out&gt;&lt;br /&gt;
	        __orig_bailout = &lt;optimized out&gt;&lt;br /&gt;
	        __bailout = {{__jmpbuf = {10, -6812356180845851385, 6, 93887207390336, 0, 93887208458776,&lt;br /&gt;
	              -6812356180952806137, -843938314294326009}, __mask_was_saved = 0, __saved_mask = {__val = {&lt;br /&gt;
	                140660866771648, 63, 18446744073709551072, 0, 4222461064, 140728348183984, 140660865462146, 0,&lt;br /&gt;
	                140660865924268, 93887539638944, 1024, 0, 0, 140728348184192, 140660865304512, 22}}}}&lt;br /&gt;
	        exit_status = &lt;optimized out&gt;&lt;br /&gt;
	        cgi = 0&lt;br /&gt;
	        c = &lt;optimized out&gt;&lt;br /&gt;
	        use_extended_info = &lt;optimized out&gt;&lt;br /&gt;
	        file_handle = {handle = {fp = 0x0, stream = {handle = 0x0, isatty = 0, reader = 0x0, fsizer = 0x0,&lt;br /&gt;
	              closer = 0x0}}, filename = 0x0, opened_path = 0x0, type = 0 '\000', primary_script = true,&lt;br /&gt;
	          in_list = false, buf = 0x0, len = 0}&lt;br /&gt;
	        orig_optind = 1&lt;br /&gt;
	        orig_optarg = 0x0&lt;br /&gt;
	        ini_builder = {value = 0x0, length = 0}&lt;br /&gt;
	        max_requests = 200&lt;br /&gt;
	        requests = &lt;optimized out&gt;&lt;br /&gt;
	        fcgi_fd = &lt;optimized out&gt;&lt;br /&gt;
	        request = 0x5563e5b3aa80&lt;br /&gt;
	        fpm_config = &lt;optimized out&gt;&lt;br /&gt;
	        fpm_prefix = &lt;optimized out&gt;&lt;br /&gt;
	        fpm_pid = &lt;optimized out&gt;&lt;br /&gt;
	        test_conf = 0&lt;br /&gt;
	        force_daemon = &lt;optimized out&gt;&lt;br /&gt;
	        force_stderr = &lt;optimized out&gt;&lt;br /&gt;
	        php_information = &lt;optimized out&gt;&lt;br /&gt;
	        php_allow_to_run_as_root = &lt;optimized out&gt;&lt;br /&gt;
	        __func__ = &quot;main&quot;&lt;br /&gt;
	        ret = &lt;optimized out&gt;&lt;br /&gt;
	        __orig_bailout = &lt;optimized out&gt;&lt;br /&gt;
	        __bailout = &lt;optimized out&gt;&lt;br /&gt;
	        __str = &lt;optimized out&gt;&lt;br /&gt;
	(gdb)&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
if edit -&gt; DISABLE Xdebug&lt;br /&gt;
```&lt;br /&gt;
/usr/local/etc/php8/conf.d/xdebug.ini&lt;br /&gt;
-	xdebug.mode = on&lt;br /&gt;
+	xdebug.mode = off&lt;br /&gt;
```&lt;br /&gt;
, and restart, it *does not* segfault on exec of the in-WP ObjectCache flush (in &lt;a href=&quot;https://bugs.xdebug.org/view.php?id=17#c10&quot; class=&quot;resolved&quot;&gt;0000017:0000010&lt;/a&gt; attempts, so far)&lt;br /&gt;
&lt;br /&gt;
turn it back on, and immediately segfaults on the flush, as above.&lt;br /&gt;
&lt;br /&gt;
not sure, yet, how to 'simply' reproduce this from cli ...]]></description><category>Uncategorized</category><pubDate>Tue, 13 Aug 2024 18:54:13 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2285</guid><comments>https://bugs.xdebug.org/view.php?id=2285#bugnotes</comments></item><item><title>0001964: WSL UNC paths don't have needed prefix</title><author></author><link>https://bugs.xdebug.org/view.php?id=1964</link><description><![CDATA[I just ran into an issue where Xdebug is presenting a UNC path in such way I cannot map it back to original.&lt;br /&gt;
&lt;br /&gt;
I executed a script from an UNC path \\WSL$\UBUNTU\home\zobo\php\test1.php&lt;br /&gt;
&lt;br /&gt;
Looking at phpinfo() output, php is OK with it:&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
...&lt;br /&gt;
$_SERVER['PHP_SELF'] =&gt; \\wsl$\Ubuntu\home\zobo\php\test1.php&lt;br /&gt;
$_SERVER['SCRIPT_NAME'] =&gt; \\wsl$\Ubuntu\home\zobo\php\test1.php&lt;br /&gt;
$_SERVER['SCRIPT_FILENAME'] =&gt; \\wsl$\Ubuntu\home\zobo\php\test1.php&lt;br /&gt;
$_SERVER['PATH_TRANSLATED'] =&gt; \\wsl$\Ubuntu\home\zobo\php\test1.php&lt;br /&gt;
...&lt;br /&gt;
$_SERVER['argv'] =&gt; Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&gt; \\wsl$\Ubuntu\home\zobo\php\test1.php&lt;br /&gt;
)&lt;br /&gt;
...&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
However Xdebug presents the files as:&lt;br /&gt;
```&lt;br /&gt;
[50452] [Step Debug] -&gt; &lt;init xmlns=&quot;urn:debugger_protocol_v1&quot; xmlns:xdebug=&quot;&lt;a href=&quot;https://xdebug.org/dbgp/xdebug&quot;&quot; rel=&quot;noopener&quot;&gt;https://xdebug.org/dbgp/xdebug&quot;&lt;/a&gt; fileuri=&quot;&lt;a href=&quot;file://WSL%24/UBUNTU/home/zobo/php/test1.php&quot;&quot; rel=&quot;noopener&quot;&gt;file://WSL%24/UBUNTU/home/zobo/php/test1.php&quot;&lt;/a&gt; language=&quot;PHP&quot; xdebug:language_version=&quot;8.0.4RC1&quot; protocol_version=&quot;1.0&quot; appid=&quot;50452&quot;&gt;&lt;engine version=&quot;3.0.4&quot;&gt;&lt;![CDATA[Xdebug]]&gt;&lt;/engine&gt;&lt;author&gt;&lt;![CDATA[Derick Rethans]]&gt;&lt;/author&gt;&lt;url&gt;&lt;![CDATA[&lt;a href=&quot;https://xdebug.org&quot; rel=&quot;noopener&quot;&gt;https://xdebug.org&lt;/a&gt;]]&gt;&lt;/url&gt;&lt;copyright&gt;&lt;![CDATA[Copyright (c) 2002-2021 by Derick Rethans]]&gt;&lt;/copyright&gt;&lt;/init&gt;&lt;br /&gt;
 ```&lt;br /&gt;
&lt;br /&gt;
Also true for stack:&lt;br /&gt;
```&lt;br /&gt;
[50452] [Step Debug] &lt;- stack_get -i 4&lt;br /&gt;
[50452] [Step Debug] -&gt; &lt;response xmlns=&quot;urn:debugger_protocol_v1&quot; xmlns:xdebug=&quot;&lt;a href=&quot;https://xdebug.org/dbgp/xdebug&quot;&quot; rel=&quot;noopener&quot;&gt;https://xdebug.org/dbgp/xdebug&quot;&lt;/a&gt; command=&quot;stack_get&quot; transaction_id=&quot;4&quot;&gt;&lt;stack where=&quot;{main}&quot; level=&quot;0&quot; type=&quot;file&quot; filename=&quot;&lt;a href=&quot;file://WSL%24/UBUNTU/home/zobo/php/test1.php&quot;&quot; rel=&quot;noopener&quot;&gt;file://WSL%24/UBUNTU/home/zobo/php/test1.php&quot;&lt;/a&gt; lineno=&quot;3&quot;&gt;&lt;/stack&gt;&lt;/response&gt; &lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
I am not sure if this is true in case of network mapped UNC paths, but I have a strong suspicion it is. See: &lt;a href=&quot;https://github.com/xdebug/vscode-php-debug/issues/546&quot; rel=&quot;noopener&quot;&gt;https://github.com/xdebug/vscode-php-debug/issues/546&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
In case it's a normal &quot;windows path&quot; the url becomes `&lt;a href=&quot;file:///C:/&quot; rel=&quot;noopener&quot;&gt;file:///C:/...&lt;/a&gt;`. So in theory I could infer that it should be prefixed with `\\`, but I'd rather not...&lt;br /&gt;
&lt;br /&gt;
Was this already encountered?]]></description><category>Step Debugging</category><pubDate>Mon, 12 Aug 2024 13:58:02 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=1964</guid><comments>https://bugs.xdebug.org/view.php?id=1964#bugnotes</comments></item><item><title>0002268: xDebug 3.3.1 or 3.3.2 crash on NGINX+Docker and PHP8.1.27</title><author></author><link>https://bugs.xdebug.org/view.php?id=2268</link><description><![CDATA[The error I get when xDebug is &lt;br /&gt;
&lt;br /&gt;
2024/03/20 14:43:47 [error] 4053#0: *3184 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.0.3, server: testdomain.dev, request: &quot;GET /SmartSpending HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/var/run/php-fpm/php-fpm.sock:&quot;, host: &quot;site1.testdomain.dev&quot;, referrer: &quot;&lt;a href=&quot;https://site1.testdomain.dev/SmartSpending&quot;&quot; rel=&quot;noopener&quot;&gt;https://site1.testdomain.dev/SmartSpending&quot;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It seems that xDebug resets the connection each time I enable the web plugin and try to test a breakpoint. However on my site2. it works perfectly.&lt;br /&gt;
&lt;br /&gt;
Attached logs.&lt;br /&gt;
&lt;br /&gt;
Local env conf:&lt;br /&gt;
&lt;br /&gt;
centos7/alma-linux on the docker container&lt;br /&gt;
PHP 8.1.27 with php-fpm 8.1.27, nginx and xdebug 3.3.1]]></description><category>Step Debugging</category><pubDate>Thu, 08 Aug 2024 11:17:58 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2268</guid><comments>https://bugs.xdebug.org/view.php?id=2268#bugnotes</comments></item><item><title>0002257: xdebug is base64 encoding long strings, resulting in code fault</title><author></author><link>https://bugs.xdebug.org/view.php?id=2257</link><description><![CDATA[I have a very long string in hexadecimal format, convert it with `hex2bin` at this point Xdebug on Sublime Text is showing me the variable base64 encoded for some reason, if I `echo` the variable it prints correctly, if I try to `$r=json_decode($r, true);` it returns null, because it assumed the variable is really its base64 encoded representation.]]></description><category>Uncategorized</category><pubDate>Wed, 07 Aug 2024 19:37:17 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2257</guid><comments>https://bugs.xdebug.org/view.php?id=2257#bugnotes</comments></item><item><title>0002276: Custom error handler return true will stop Exception handlers from breaking - returning false will write to PHP error log though</title><author></author><link>https://bugs.xdebug.org/view.php?id=2276</link><description><![CDATA[When using a custom error handler, I can `return true;` to avoid it bubbling up to PHP's native error handler (or any system defined handlers for that matter)*&lt;br /&gt;
This will obviously prevent xdebug breaking on the exception (assuming there is a PHP Exception breakpoint set up)&lt;br /&gt;
&lt;br /&gt;
Therefore, one must return false to make xdebug work - that's fine.&lt;br /&gt;
The problem though is, that this (xdebug) will then bubble it up to the native PHP error handler and the error ends up in the PHP error log specified.&lt;br /&gt;
&lt;br /&gt;
There needs to be a way to tell xdebug to NOT bubble up the error to PHP's native error handler, to prevent errors ending up in the error log.&lt;br /&gt;
&lt;br /&gt;
e.g. xdebug_disable_next_error_bubble(); to skip bubbling of the next or xdebug_disable_error_bubble(); to disable it altogether; or possible a ini setting?&lt;br /&gt;
&lt;br /&gt;
*see &lt;a href=&quot;https://www.php.net/manual/en/function.set-error-handler.php#:~:text=It%20is%20important%20to%20remember%20that%20the%20standard%20PHP%20error%20handler%20is%20completely%20bypassed%20for%20the%20error%20types%20specified%20by%20error_levels%20unless%20the%20callback%20function%20returns%20false&quot; rel=&quot;noopener&quot;&gt;https://www.php.net/manual/en/function.set-error-handler.php#:~:text=It%20is%20important%20to%20remember%20that%20the%20standard%20PHP%20error%20handler%20is%20completely%20bypassed%20for%20the%20error%20types%20specified%20by%20error_levels%20unless%20the%20callback%20function%20returns%20false&lt;/a&gt;]]></description><category>Step Debugging</category><pubDate>Wed, 07 Aug 2024 15:22:18 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2276</guid><comments>https://bugs.xdebug.org/view.php?id=2276#bugnotes</comments></item><item><title>0002275: xdebug.start_with_request=no does not allow starting step debugging with xdebug_break() despite docs saying so</title><author></author><link>https://bugs.xdebug.org/view.php?id=2275</link><description><![CDATA[&lt;a href=&quot;https://xdebug.org/docs/all_settings#start_with_request&quot; rel=&quot;noopener&quot;&gt;https://xdebug.org/docs/all_settings#start_with_request&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&gt;no&lt;br /&gt;
&gt;The functionality does not get activated when the request starts.&lt;br /&gt;
&gt;You can still start ... Step Debugging with xdebug_break(),&lt;br /&gt;
&lt;br /&gt;
However, in practice this does not work (but only works when it's set to e.g. &quot;trigger&quot;)]]></description><category>Step Debugging</category><pubDate>Wed, 07 Aug 2024 14:20:55 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2275</guid><comments>https://bugs.xdebug.org/view.php?id=2275#bugnotes</comments></item><item><title>0002259: Does not stop on breakpoints when files are located on a UNC path drive</title><author></author><link>https://bugs.xdebug.org/view.php?id=2259</link><description><![CDATA[When the files to be debugged are located on an UNC drive like \\NAS\\xyz, instead of a local drive, the breakpoints are never hit and they are marked as unverified. Also using a network attached drive does not help, because the IIS file location configuration is set to the UNC drive.]]></description><category>Step Debugging</category><pubDate>Wed, 07 Aug 2024 13:49:35 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2259</guid><comments>https://bugs.xdebug.org/view.php?id=2259#bugnotes</comments></item><item><title>0002161: Breakpoints not updated when process is running</title><author></author><link>https://bugs.xdebug.org/view.php?id=2161</link><description><![CDATA[When a PHP is process is already running and you add a new breakpoint, it will never be triggered unless a script is restarted.&lt;br /&gt;
&lt;br /&gt;
With the rise of popularity of Swoole, RoadRunner, AmPHP and related tools like Laravel Octane, this becomes increasingly more of a problem because debugging gets much harder. In case of Swoole, they've recently added support for XDebug, but it's still hard to actually make use of it because of having to constantly restart the server to make it reload the breakpoints.&lt;br /&gt;
&lt;br /&gt;
There are workarounds for that, but all are suboptimal: &lt;br /&gt;
 - you can either run php-fpm alongside Swoole solely for debugging (which makes it unnecessarily complex and sometimes doesn't allow reproducing the problem the same way as in Swoole)&lt;br /&gt;
 - or you can reload Swoole every time you add a breakpoint, which kills the developer experience&lt;br /&gt;
&lt;br /&gt;
Are there any possible workarounds XDebug can implement to address this issue?]]></description><category>Step Debugging</category><pubDate>Wed, 07 Aug 2024 13:41:58 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2161</guid><comments>https://bugs.xdebug.org/view.php?id=2161#bugnotes</comments></item><item><title>0002265: Refletion consumes an exorbitating amount of resources if var_display_max_children and similars are unlimited or very high</title><author></author><link>https://bugs.xdebug.org/view.php?id=2265</link><description><![CDATA[Reflection is used, for instance, on DI containers with autowiring.&lt;br /&gt;
&lt;br /&gt;
For the DI Container to autowire, it needs to call ReflectionMethod($class, '__construct') to get an instance of the constructor.&lt;br /&gt;
&lt;br /&gt;
This call becomes extremely expensive if Xdebug is active on &quot;develop&quot; mode and &quot;var_display_max_children&quot; is unlimited or very high, as per screenshot attached.]]></description><category>Stacktraces</category><pubDate>Wed, 07 Aug 2024 13:39:54 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2265</guid><comments>https://bugs.xdebug.org/view.php?id=2265#bugnotes</comments></item><item><title>0002256: general protection fault leading Apache to report 503</title><author></author><link>https://bugs.xdebug.org/view.php?id=2256</link><description><![CDATA[Setting a breakpoint on my chrome leads to a GPF, no idea what I should do to try and deal with this.]]></description><category>Step Debugging</category><pubDate>Wed, 07 Aug 2024 13:38:59 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2256</guid><comments>https://bugs.xdebug.org/view.php?id=2256#bugnotes</comments></item><item><title>0002222: Xdebug holds a reference to objects in the stack trace of a caught exception</title><author></author><link>https://bugs.xdebug.org/view.php?id=2222</link><description><![CDATA[I think relating to the 3.3.0 release which fixed some issues with exception.&lt;br /&gt;
&lt;br /&gt;
I am now seeing in a Drupal context that objects are not getting their destructor called sometimes when they should. With Xdebug disabled it calls them normally at the end of the method that created them when their variable goes out of scope.&lt;br /&gt;
&lt;br /&gt;
I think it's related to exceptions being rethrown in some cases perhaps it is &quot;capturing&quot; a reference in a stack and then preventing it from destructing.]]></description><category>Tracing</category><pubDate>Wed, 07 Aug 2024 13:34:47 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2222</guid><comments>https://bugs.xdebug.org/view.php?id=2222#bugnotes</comments></item><item><title>0002284: PHP 8.2 does not work with ioncube and xdebug on Windows</title><author></author><link>https://bugs.xdebug.org/view.php?id=2284</link><description><![CDATA[524 / 5.000&lt;br /&gt;
If a PHP script that is encrypted is executed with xdebug active, the following error occurs&lt;br /&gt;
&lt;br /&gt;
Error: Secure connection failed&lt;br /&gt;
An error occurred while connecting to localhost. PR_CONNECT_RESET_ERROR&lt;br /&gt;
Error code: PR_CONNECT_RESET_ERROR&lt;br /&gt;
&lt;br /&gt;
The website cannot be displayed because the authenticity of the received data could not be verified.&lt;br /&gt;
Please contact the owner of the website to inform him of this problem.&lt;br /&gt;
&lt;br /&gt;
Scrpt runs with xdebug or ioncube alone.]]></description><category>Uncategorized</category><pubDate>Wed, 07 Aug 2024 10:45:45 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2284</guid><comments>https://bugs.xdebug.org/view.php?id=2284#bugnotes</comments></item><item><title>0002282: XDebug crashes with XDEBUG_SESSION cookie</title><author></author><link>https://bugs.xdebug.org/view.php?id=2282</link><description><![CDATA[Like I said in previous issues, there seem to be some issue with debugging with Xdebug when triggering it using a `XDEBUG_SESSION` cookie. When the cookie is set and set with the request Nginx returns:&lt;br /&gt;
&lt;br /&gt;
502 Bad Gateway&lt;br /&gt;
nginx/1.25.2&lt;br /&gt;
&lt;br /&gt;
After some checking it looks like it only happens with &quot;web&quot; requests as calling `php` in CLI with xdebug arguments properly triggers it and step debugging is working without crash.&lt;br /&gt;
&lt;br /&gt;
So it appears that it may be a problem with Nginx/php-cgi.exe. Unfortunately I don't have much experience with debugging C errors, so I would gladly listen how to create some debug logs for it.]]></description><category>Step Debugging</category><pubDate>Tue, 23 Jul 2024 09:22:05 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2282</guid><comments>https://bugs.xdebug.org/view.php?id=2282#bugnotes</comments></item><item><title>0002271: Segmentation fault whenever php8.1-xdebug extension is enabled</title><author></author><link>https://bugs.xdebug.org/view.php?id=2271</link><description><![CDATA[We're getting segmentation faults from php-fpm whenever the php8.1-xdebug extension is enabled. This issue occurs consistently within our docker container built on the arm64v8/ubuntu base image. The docker engine is running on a macOS Ventura host. We get the following stack trace from the core dump:&lt;br /&gt;
&lt;br /&gt;
Reading symbols from /usr/sbin/php-fpm8.1...&lt;br /&gt;
(No debugging symbols found in /usr/sbin/php-fpm8.1)&lt;br /&gt;
[New LWP 781]&lt;br /&gt;
[Thread debugging using libthread_db enabled]&lt;br /&gt;
Using host libthread_db library &quot;/lib/aarch64-linux-gnu/libthread_db.so.1&quot;.&lt;br /&gt;
Core was generated by `php-fpm: pool www                      '.&lt;br /&gt;
Program terminated with signal SIGSEGV, Segmentation fault.&lt;br /&gt;
#0  0x0000ffffa84f9190 in zend_string_equal_content (s2=0x6c70736964207463, s1=0xffffa8257de0) at /usr/include/php/20210902/Zend/zend_string.h:357&lt;br /&gt;
&lt;br /&gt;
warning: Source file is more recent than executable.&lt;br /&gt;
357             return ZSTR_LEN(s1) == ZSTR_LEN(s2) &amp;&amp; zend_string_equal_val(s1, s2);&lt;br /&gt;
&lt;br /&gt;
(gdb) bt&lt;br /&gt;
#0  0x0000ffffa84f9190 in zend_string_equal_content (s2=0x6c70736964207463, s1=0xffffa8257de0) at /usr/include/php/20210902/Zend/zend_string.h:357&lt;br /&gt;
#1  zend_string_equals (s2=0x6c70736964207463, s1=0xffffa8257de0) at /usr/include/php/20210902/Zend/zend_string.h:362&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=2&quot;&gt;0000002&lt;/a&gt;  mark_fse_as_having_line_breakpoints (fse=0xaaaab8d88e70) at ./build-8.1/src/debugger/debugger.c:573&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=3&quot;&gt;0000003&lt;/a&gt;  handle_breakpoints (return_value=0xffffe10e1c08, breakpoint_type=8, fse=0xaaaab8d88e70) at ./build-8.1/src/debugger/debugger.c:591&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=4&quot;&gt;0000004&lt;/a&gt;  xdebug_debugger_handle_breakpoints (&lt;a href=&quot;mailto:fse=fse@entry&quot;&gt;fse=fse@entry&lt;/a&gt;=0xaaaab8d88e70, &lt;a href=&quot;mailto:breakpoint_type=breakpoint_type@entry&quot;&gt;breakpoint_type=breakpoint_type@entry&lt;/a&gt;=8, &lt;a href=&quot;mailto:return_value=return_value@entry&quot;&gt;return_value=return_value@entry&lt;/a&gt;=0xffffe10e1c08) at ./build-8.1/src/debugger/debugger.c:623&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=5&quot;&gt;0000005&lt;/a&gt;  0x0000ffffa84e1e38 in xdebug_execute_internal_end (current_execute_data=&lt;optimized out&gt;, return_value=0xffffe10e1c08) at ./build-8.1/src/base/base.c:1004&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=6&quot;&gt;0000006&lt;/a&gt;  xdebug_execute_internal (current_execute_data=&lt;optimized out&gt;, return_value=0xffffe10e1c08) at ./build-8.1/src/base/base.c:1028&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=7&quot;&gt;0000007&lt;/a&gt;  0x0000aaaaaeab38e8 in ?? ()&lt;br /&gt;
&lt;a href=&quot;https://bugs.xdebug.org/view.php?id=8&quot;&gt;0000008&lt;/a&gt;  0x0000aaaaaecfaa68 in execute_ex ()]]></description><category>Uncategorized</category><pubDate>Thu, 18 Jul 2024 13:36:59 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2271</guid><comments>https://bugs.xdebug.org/view.php?id=2271#bugnotes</comments></item><item><title>0002277: Segfault Sigsegv for throw in callable/closure</title><author></author><link>https://bugs.xdebug.org/view.php?id=2277</link><description><![CDATA[In search I found &lt;a href=&quot;https://bugs.xdebug.org/view.php?id=2222&quot; rel=&quot;noopener&quot;&gt;https://bugs.xdebug.org/view.php?id=2222&lt;/a&gt; which seems to be tangentially related, however in my case there is no `__desctruct` method in the object, as well as that xdebug crashes in the middle of the application, which is worse than that issue.&lt;br /&gt;
&lt;br /&gt;
&gt; WARNING: [pool www] child 1457777 exited on signal 11 (SIGSEGV - core dumped)&lt;br /&gt;
&lt;br /&gt;
xdebug 3.3.2&lt;br /&gt;
PHP 8.3.8 (php-fpm sapi)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
`xdebug.mode=debug,develop`&lt;br /&gt;
&lt;br /&gt;
- removing &quot;develop&quot; fixes the problem&lt;br /&gt;
- this issue happens even if no debug session is active and no develop functions have been called either&lt;br /&gt;
- memory limit is 4096M, php memory_get_usage() reports memory consumption of between 40-180M (depending on how the issue is reproduced) in the line directly before it segfaults&lt;br /&gt;
- the code that segfaults is a `throw` that is caught with a try/catch&lt;br /&gt;
- the issue doesn't happen on the first occurrence/invokation of this throw, but after x calls to the throw it suddenly segfaults (might be another cause, just an observation)&lt;br /&gt;
- it seems that this is related to throw inside a closure and/or method invoked on a dynamic object (e.g. new $foo()), but again, this is just an observation&lt;br /&gt;
- there is no loop/recursion]]></description><category>Step Debugging</category><pubDate>Thu, 18 Jul 2024 13:36:28 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2277</guid><comments>https://bugs.xdebug.org/view.php?id=2277#bugnotes</comments></item><item><title>0002253: xDebug 3.3.1 crash on NGINX+Docker and PHP8.1.27</title><author></author><link>https://bugs.xdebug.org/view.php?id=2253</link><description><![CDATA[The error I get when xDebug is &lt;br /&gt;
&lt;br /&gt;
2024/03/20 14:43:47 [error] 4053#0: *3184 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.0.3, server: testdomain.dev, request: &quot;GET /SmartSpending HTTP/1.1&quot;, upstream: &quot;fastcgi://unix:/var/run/php-fpm/php-fpm.sock:&quot;, host: &quot;site1.testdomain.dev&quot;, referrer: &quot;&lt;a href=&quot;https://site1.testdomain.dev/SmartSpending&quot;&quot; rel=&quot;noopener&quot;&gt;https://site1.testdomain.dev/SmartSpending&quot;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
It seems that xDebug resets the connection each time I enable the web plugin and try to test a breakpoint. However on my site2. it works perfectly.&lt;br /&gt;
&lt;br /&gt;
Attached logs.&lt;br /&gt;
&lt;br /&gt;
Local env conf:&lt;br /&gt;
&lt;br /&gt;
centos7 on docker container&lt;br /&gt;
PHP 8.1.27 with php-fpm 8.1.27, nginx and xdebug 3.3.1]]></description><category>Step Debugging</category><pubDate>Thu, 18 Jul 2024 13:35:47 +0000</pubDate><guid>https://bugs.xdebug.org/view.php?id=2253</guid><comments>https://bugs.xdebug.org/view.php?id=2253#bugnotes</comments></item></channel></rss>
