View Issue Details

IDProjectCategoryView StatusLast Update
0002383XdebugUncategorizedpublic2025-11-10 10:43
ReporterSunMar Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
Platformx86_64OSDebianOS VersionTrixie
Product Version3.4.6 
Summary0002383: Segmentation fault (8.3) / zend_mm_heap corrupted (8.4)
Description

Currently using XDebug 3.4.7 but this was not a selectable production version.

When running our test suite when using PHP 8.3.20+ or PHP 8.4.6+ with XDebug enabled, in the middle of the PHPUnit test suite it crashes with either Segmentation fault (PHP 8.3) or zend_mm_heap corrupted (PHP 8.4). If I set the environment variable XDEBUG_MODE="off" the issue disappears.

The crash happens both in my local where XDebug is running with mode "develop,debug" and in our pipeline where it's running with "coverage".

Steps To Reproduce

Although I can consistently reproduce the issue when I run the whole (large) PHPUnit test suite, running the individual tests where it crashes works.
Because of that I am unfortunately not able to create a snippet that reproduces the issue consistently. In the logs I see some reference to GC, so maybe it needs to do a lot of operations before the bug is triggered.

I have reproduced it using a debug build with "--enable-debug --enable-address-sanitizer --enable-undefined-sanitizer" and environment variables ASAN_OPTIONS="halt_on_error=0" and USE_ZEND_ALLOC=0.

If there is more information I can provide let me know and I'll happily spend some time collecting more details.

Additional Information

See attached log files with the output of both PHP 8.3 and PHP 8.4 after running the suite with the PHP debug build.

TagsNo tags attached.
Attached Files
php-8.4-heaperror.txt (24,571 bytes)   
=================================================================
==173==ERROR: AddressSanitizer: heap-use-after-free on address 0x50600619b564 at pc 0x61c838674fd8 bp 0x7ffe3baec600 sp 0x7ffe3baec5f8
READ of size 4 at 0x50600619b564 thread T0
    #0 0x61c838674fd7 in zend_gc_remove_root_tmpvars /usr/src/php/Zend/zend_gc.c:2209
    #1 0x61c83867126c in zend_gc_collect_cycles /usr/src/php/Zend/zend_gc.c:1921
    #2 0x61c8386603bf in gc_possible_root_when_full /usr/src/php/Zend/zend_gc.c:664
    #3 0x61c83866079e in gc_possible_root /usr/src/php/Zend/zend_gc.c:714
    #4 0x61c838626858 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:59304
    #5 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #6 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #7 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #8 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #9 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #10 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #11 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #12 0x61c8382cb114 in zend_call_function /usr/src/php/Zend/zend_execute_API.c:1000
    #13 0x61c8382ccd7f in zend_call_known_function /usr/src/php/Zend/zend_execute_API.c:1094
    #14 0x61c838836572 in zend_call_known_instance_method /usr/src/php/Zend/zend_API.h:860
    #15 0x61c8388365e7 in zend_call_known_instance_method_with_1_params /usr/src/php/Zend/zend_API.h:872
    #16 0x61c838838c99 in zend_std_call_getter /usr/src/php/Zend/zend_object_handlers.c:238
    #17 0x61c838841f43 in zend_std_read_property /usr/src/php/Zend/zend_object_handlers.c:921
    #18 0x61c8384185ce in ZEND_FETCH_OBJ_R_SPEC_TMPVAR_CONST_HANDLER /usr/src/php/Zend/zend_vm_execute.h:16336
    #19 0x61c83862f806 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:60870
    #20 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #21 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #22 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #23 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #24 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #25 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #26 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #27 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #28 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #29 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #30 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #31 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #32 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #33 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #34 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #35 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #36 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #37 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #38 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #39 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #40 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #41 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #42 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #43 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #44 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #45 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #46 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #47 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #48 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #49 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #50 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #51 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #52 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #53 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #54 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #55 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #56 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #57 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #58 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #59 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #60 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #61 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #62 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #63 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #64 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #65 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #66 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #67 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #68 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #69 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #70 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #71 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #72 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #73 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #74 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #75 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #76 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #77 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #78 0x61c838388e3f in ZEND_INCLUDE_OR_EVAL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:5386
    #79 0x61c83835f3d5 in ZEND_USER_OPCODE_SPEC_HANDLER /usr/src/php/Zend/zend_vm_execute.h:3351
    #80 0x61c8386246f6 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:59031
    #81 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #82 0x61c83864298b in zend_execute /usr/src/php/Zend/zend_vm_execute.h:64318
    #83 0x61c8389227fc in zend_execute_script /usr/src/php/Zend/zend.c:1934
    #84 0x61c837d9660f in php_execute_script_ex /usr/src/php/main/main.c:2577
    #85 0x61c837d96c2e in php_execute_script /usr/src/php/main/main.c:2617
    #86 0x61c83892b06c in do_cli /usr/src/php/sapi/cli/php_cli.c:935
    #87 0x61c83892ddaf in main /usr/src/php/sapi/cli/php_cli.c:1310
    #88 0x7b2f4a3f4ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #89 0x7b2f4a3f4d64 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #90 0x61c836605eb0 in _start (/usr/local/bin/php+0x3205eb0) (BuildId: 04633efbd5cdc9b42035c97a688fb8e8a6c6652d)

0x50600619b564 is located 4 bytes inside of 56-byte region [0x50600619b560,0x50600619b598)
freed by thread T0 here:
    #0 0x7b2f4baa68f8 in free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:52
    #1 0x61c838104768 in __zend_free /usr/src/php/Zend/zend_alloc.c:3322
    #2 0x61c8380ff355 in _efree /usr/src/php/Zend/zend_alloc.c:2750
    #3 0x61c8386aef19 in zend_array_destroy /usr/src/php/Zend/zend_hash.c:1873
    #4 0x61c8388f694a in rc_dtor_func /usr/src/php/Zend/zend_variables.c:57
    #5 0x61c838405fd0 in ZEND_FE_FREE_SPEC_TMPVAR_HANDLER /usr/src/php/Zend/zend_vm_execute.h:15189
    #6 0x61c83862ee7c in execute_ex /usr/src/php/Zend/zend_vm_execute.h:60760
    #7 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #8 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #9 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #10 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #11 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #12 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #13 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #14 0x61c8382cb114 in zend_call_function /usr/src/php/Zend/zend_execute_API.c:1000
    #15 0x61c8382ccd7f in zend_call_known_function /usr/src/php/Zend/zend_execute_API.c:1094
    #16 0x61c838836572 in zend_call_known_instance_method /usr/src/php/Zend/zend_API.h:860
    #17 0x61c8388365e7 in zend_call_known_instance_method_with_1_params /usr/src/php/Zend/zend_API.h:872
    #18 0x61c838838c99 in zend_std_call_getter /usr/src/php/Zend/zend_object_handlers.c:238
    #19 0x61c838841f43 in zend_std_read_property /usr/src/php/Zend/zend_object_handlers.c:921
    #20 0x61c8384185ce in ZEND_FETCH_OBJ_R_SPEC_TMPVAR_CONST_HANDLER /usr/src/php/Zend/zend_vm_execute.h:16336
    #21 0x61c83862f806 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:60870
    #22 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #23 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #24 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #25 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #26 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #27 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #28 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #29 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123

previously allocated by thread T0 here:
    #0 0x7b2f4baa7c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x61c838104611 in __zend_malloc /usr/src/php/Zend/zend_alloc.c:3294
    #2 0x61c8380ff207 in _emalloc /usr/src/php/Zend/zend_alloc.c:2740
    #3 0x61c838691afb in _zend_new_array /usr/src/php/Zend/zend_hash.c:291
    #4 0x61c83762cee0 in zim_SimpleXMLElement_getNamespaces /usr/src/php/ext/simplexml/simplexml.c:1501
    #5 0x61c8383432aa in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2144
    #6 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #7 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #8 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #9 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #10 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #11 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #12 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #13 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #14 0x61c8382cb114 in zend_call_function /usr/src/php/Zend/zend_execute_API.c:1000
    #15 0x61c8382ccd7f in zend_call_known_function /usr/src/php/Zend/zend_execute_API.c:1094
    #16 0x61c838836572 in zend_call_known_instance_method /usr/src/php/Zend/zend_API.h:860
    #17 0x61c8388365e7 in zend_call_known_instance_method_with_1_params /usr/src/php/Zend/zend_API.h:872
    #18 0x61c838838c99 in zend_std_call_getter /usr/src/php/Zend/zend_object_handlers.c:238
    #19 0x61c838841f43 in zend_std_read_property /usr/src/php/Zend/zend_object_handlers.c:921
    #20 0x61c8384185ce in ZEND_FETCH_OBJ_R_SPEC_TMPVAR_CONST_HANDLER /usr/src/php/Zend/zend_vm_execute.h:16336
    #21 0x61c83862f806 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:60870
    #22 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #23 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #24 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #25 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #26 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123
    #27 0x61c838623f28 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58941
    #28 0x7b2f462209bf in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20240924/xdebug.so+0x1b9bf) (BuildId: a97b29aa06169ea5b5069c4674ee221b538dfc95)
    #29 0x61c838342e09 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2123

SUMMARY: AddressSanitizer: heap-use-after-free /usr/src/php/Zend/zend_gc.c:2209 in zend_gc_remove_root_tmpvars
Shadow bytes around the buggy address:
  0x50600619b280: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x50600619b300: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x50600619b380: fa fa fa fa fa fa fa fa fa fa fa fa fd fd fd fd
  0x50600619b400: fd fd fd fd fa fa fa fa 00 00 00 00 00 00 00 fa
  0x50600619b480: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
=>0x50600619b500: fa fa fa fa fa fa fa fa fa fa fa fa[fd]fd fd fd
  0x50600619b580: fd fd fd fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x50600619b600: fa fa fa fa 00 00 00 00 00 00 00 fa fa fa fa fa
  0x50600619b680: fd fd fd fd fd fd fd fd fa fa fa fa fd fd fd fd
  0x50600619b700: fd fd fd fd fa fa fa fa fd fd fd fd fd fd fd fa
  0x50600619b780: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==173==ABORTING
Script vendor/bin/phpunit --configuration /opt/app/tests/phpunit.xml --testdox handling the phpunit-tests event returned with error code 1

=================================================================
==167==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7839ca72ac57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7839c9189334 in getaddrinfo (/lib/x86_64-linux-gnu/libc.so.6+0x13b334) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7839ca72ac57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7839c4aba740  (<unknown module>)
    #2 0x7839c4abcee1  (<unknown module>)
    #3 0x7839c4abf205  (<unknown module>)
    #4 0x7839c4abf342  (<unknown module>)
    #5 0x7839c4abf379  (<unknown module>)
    #6 0x7839c4ad63f6  (<unknown module>)
    #7 0x7839c4bb67a0  (/usr/local/bin/php+0xb5df7a0)
    #8 0x5a1d68b2ca44 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2446
    #9 0x5a1d68b2cbd1 in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2461
    #10 0x5a1d690b37e6 in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2092
    #11 0x5a1d68b2f38b in zend_startup_modules /usr/src/php/Zend/zend_API.c:2584
    #12 0x5a1d6879457a in php_module_startup /usr/src/php/main/main.c:2289
    #13 0x5a1d693273d7 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:397
    #14 0x5a1d6932db69 in main /usr/src/php/sapi/cli/php_cli.c:1277
    #15 0x7839c9077ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x7839ca72ac57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7839c4aba740  (<unknown module>)
    #2 0x7839c4ad695e  (<unknown module>)
    #3 0x7839c4abf34a  (<unknown module>)
    #4 0x7839c4abf379  (<unknown module>)
    #5 0x7839c4ad63f6  (<unknown module>)
    #6 0x7839c4bb67a0  (/usr/local/bin/php+0xb5df7a0)
    #7 0x5a1d68b2ca44 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2446
    #8 0x5a1d68b2cbd1 in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2461
    #9 0x5a1d690b37e6 in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2092
    #10 0x5a1d68b2f38b in zend_startup_modules /usr/src/php/Zend/zend_API.c:2584
    #11 0x5a1d6879457a in php_module_startup /usr/src/php/main/main.c:2289
    #12 0x5a1d693273d7 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:397
    #13 0x5a1d6932db69 in main /usr/src/php/sapi/cli/php_cli.c:1277
    #14 0x7839c9077ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Indirect leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x7839ca72ac57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7839c90f77a9 in strdup (/lib/x86_64-linux-gnu/libc.so.6+0xa97a9) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

SUMMARY: AddressSanitizer: 136 byte(s) leaked in 4 allocation(s).

=================================================================
==161==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7d2a03624c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7d2a02083334 in getaddrinfo (/lib/x86_64-linux-gnu/libc.so.6+0x13b334) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7d2a03624c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7d29fd92e740  (/usr/local/bin/php+0xb5b0740)
    #2 0x7d29fd930ee1  (/usr/local/bin/php+0xb5b2ee1)
    #3 0x7d29fd933205  (/usr/local/bin/php+0xb5b5205)
    #4 0x7d29fd933342  (/usr/local/bin/php+0xb5b5342)
    #5 0x7d29fd933379  (/usr/local/bin/php+0xb5b5379)
    #6 0x7d29fd94a3f6  (/usr/local/bin/php+0xb5cc3f6)
    #7 0x7d29fda2a7a0  (<unknown module>)
    #8 0x59a94072ca44 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2446
    #9 0x59a94072cbd1 in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2461
    #10 0x59a940cb37e6 in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2092
    #11 0x59a94072f38b in zend_startup_modules /usr/src/php/Zend/zend_API.c:2584
    #12 0x59a94039457a in php_module_startup /usr/src/php/main/main.c:2289
    #13 0x59a940f273d7 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:397
    #14 0x59a940f2db69 in main /usr/src/php/sapi/cli/php_cli.c:1277
    #15 0x7d2a01f71ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x7d2a03624c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7d29fd92e740  (/usr/local/bin/php+0xb5b0740)
    #2 0x7d29fd94a95e  (/usr/local/bin/php+0xb5cc95e)
    #3 0x7d29fd93334a  (/usr/local/bin/php+0xb5b534a)
    #4 0x7d29fd933379  (/usr/local/bin/php+0xb5b5379)
    #5 0x7d29fd94a3f6  (/usr/local/bin/php+0xb5cc3f6)
    #6 0x7d29fda2a7a0  (<unknown module>)
    #7 0x59a94072ca44 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2446
    #8 0x59a94072cbd1 in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2461
    #9 0x59a940cb37e6 in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2092
    #10 0x59a94072f38b in zend_startup_modules /usr/src/php/Zend/zend_API.c:2584
    #11 0x59a94039457a in php_module_startup /usr/src/php/main/main.c:2289
    #12 0x59a940f273d7 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:397
    #13 0x59a940f2db69 in main /usr/src/php/sapi/cli/php_cli.c:1277
    #14 0x7d2a01f71ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Indirect leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x7d2a03624c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7d2a01ff17a9 in strdup (/lib/x86_64-linux-gnu/libc.so.6+0xa97a9) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

SUMMARY: AddressSanitizer: 136 byte(s) leaked in 4 allocation(s).
make: *** [Makefile:99: integration-processors] Error 1
php-8.4-heaperror.txt (24,571 bytes)   
php-8.3-segfault.txt (24,255 bytes)   
=================================================================
==161==ERROR: AddressSanitizer: heap-use-after-free on address 0x5060062f7bc4 at pc 0x5d2f063e2558 bp 0x7fff5fdc0af0 sp 0x7fff5fdc0ae8
READ of size 4 at 0x5060062f7bc4 thread T0
    #0 0x5d2f063e2557 in zend_gc_remove_root_tmpvars /usr/src/php/Zend/zend_gc.c:2099
    #1 0x5d2f063de3ee in zend_gc_collect_cycles /usr/src/php/Zend/zend_gc.c:1787
    #2 0x5d2f063cdeaa in gc_possible_root_when_full /usr/src/php/Zend/zend_gc.c:644
    #3 0x5d2f063ce289 in gc_possible_root /usr/src/php/Zend/zend_gc.c:694
    #4 0x5d2f0635ef94 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57606
    #5 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #6 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #7 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #8 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #9 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #10 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #11 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #12 0x5d2f05ecf750 in zend_call_function /usr/src/php/Zend/zend_execute_API.c:961
    #13 0x5d2f05ed13bb in zend_call_known_function /usr/src/php/Zend/zend_execute_API.c:1055
    #14 0x5d2f06456082 in zend_call_known_instance_method /usr/src/php/Zend/zend_API.h:853
    #15 0x5d2f064560f7 in zend_call_known_instance_method_with_1_params /usr/src/php/Zend/zend_API.h:865
    #16 0x5d2f06458362 in zend_std_call_getter /usr/src/php/Zend/zend_object_handlers.c:206
    #17 0x5d2f0645f0f0 in zend_std_read_property /usr/src/php/Zend/zend_object_handlers.c:739
    #18 0x5d2f0615a2b6 in ZEND_FETCH_OBJ_R_SPEC_TMPVAR_CONST_HANDLER /usr/src/php/Zend/zend_vm_execute.h:15816
    #19 0x5d2f063675ff in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58858
    #20 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #21 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #22 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #23 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #24 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #25 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #26 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #27 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #28 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #29 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #30 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #31 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #32 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #33 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #34 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #35 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #36 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #37 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #38 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #39 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #40 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #41 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #42 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #43 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #44 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #45 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #46 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #47 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #48 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #49 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #50 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #51 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #52 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #53 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #54 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #55 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #56 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #57 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #58 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #59 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #60 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #61 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #62 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #63 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #64 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #65 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #66 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #67 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #68 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #69 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #70 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #71 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #72 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #73 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #74 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #75 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #76 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #77 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #78 0x5d2f060cdcf7 in ZEND_INCLUDE_OR_EVAL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:5135
    #79 0x5d2f060ababf in ZEND_USER_OPCODE_SPEC_HANDLER /usr/src/php/Zend/zend_vm_execute.h:3316
    #80 0x5d2f0635d1f8 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57393
    #81 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #82 0x5d2f0637951c in zend_execute /usr/src/php/Zend/zend_vm_execute.h:61665
    #83 0x5d2f05f4a992 in zend_execute_scripts /usr/src/php/Zend/zend.c:1895
    #84 0x5d2f05c3b5e9 in php_execute_script /usr/src/php/main/main.c:2531
    #85 0x5d2f0675ea70 in do_cli /usr/src/php/sapi/cli/php_cli.c:966
    #86 0x5d2f06761719 in main /usr/src/php/sapi/cli/php_cli.c:1341
    #87 0x751c40412ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #88 0x751c40412d64 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #89 0x5d2f04805ce0 in _start (/usr/local/bin/php+0x2e05ce0) (BuildId: b7fee958813818e16616c83ac3636f71cd4df66e)

0x5060062f7bc4 is located 4 bytes inside of 56-byte region [0x5060062f7bc0,0x5060062f7bf8)
freed by thread T0 here:
    #0 0x751c41ac48f8 in free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:52
    #1 0x5d2f05e0ed8a in _efree_custom /usr/src/php/Zend/zend_alloc.c:2503
    #2 0x5d2f05e0f0ba in _efree /usr/src/php/Zend/zend_alloc.c:2623
    #3 0x5d2f05fcaa41 in zend_array_destroy /usr/src/php/Zend/zend_hash.c:1874
    #4 0x5d2f05f3689d in rc_dtor_func /usr/src/php/Zend/zend_variables.c:57
    #5 0x5d2f06148a3a in ZEND_FE_FREE_SPEC_TMPVAR_HANDLER /usr/src/php/Zend/zend_vm_execute.h:14705
    #6 0x5d2f06366d0f in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58770
    #7 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #8 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #9 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #10 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #11 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #12 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #13 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #14 0x5d2f05ecf750 in zend_call_function /usr/src/php/Zend/zend_execute_API.c:961
    #15 0x5d2f05ed13bb in zend_call_known_function /usr/src/php/Zend/zend_execute_API.c:1055
    #16 0x5d2f06456082 in zend_call_known_instance_method /usr/src/php/Zend/zend_API.h:853
    #17 0x5d2f064560f7 in zend_call_known_instance_method_with_1_params /usr/src/php/Zend/zend_API.h:865
    #18 0x5d2f06458362 in zend_std_call_getter /usr/src/php/Zend/zend_object_handlers.c:206
    #19 0x5d2f0645f0f0 in zend_std_read_property /usr/src/php/Zend/zend_object_handlers.c:739
    #20 0x5d2f0615a2b6 in ZEND_FETCH_OBJ_R_SPEC_TMPVAR_CONST_HANDLER /usr/src/php/Zend/zend_vm_execute.h:15816
    #21 0x5d2f063675ff in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58858
    #22 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #23 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #24 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #25 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #26 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #27 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #28 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #29 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052

previously allocated by thread T0 here:
    #0 0x751c41ac5c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x5d2f05e13f41 in __zend_malloc /usr/src/php/Zend/zend_alloc.c:3142
    #2 0x5d2f05e0ebe4 in _malloc_custom /usr/src/php/Zend/zend_alloc.c:2494
    #3 0x5d2f05e0efea in _emalloc /usr/src/php/Zend/zend_alloc.c:2613
    #4 0x5d2f05fad79a in _zend_new_array /usr/src/php/Zend/zend_hash.c:291
    #5 0x5d2f0550aff0 in zim_SimpleXMLElement_getNamespaces /usr/src/php/ext/simplexml/simplexml.c:1548
    #6 0x5d2f0608f2ea in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2086
    #7 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #8 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #9 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #10 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #11 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #12 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #13 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #14 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #15 0x5d2f05ecf750 in zend_call_function /usr/src/php/Zend/zend_execute_API.c:961
    #16 0x5d2f05ed13bb in zend_call_known_function /usr/src/php/Zend/zend_execute_API.c:1055
    #17 0x5d2f06456082 in zend_call_known_instance_method /usr/src/php/Zend/zend_API.h:853
    #18 0x5d2f064560f7 in zend_call_known_instance_method_with_1_params /usr/src/php/Zend/zend_API.h:865
    #19 0x5d2f06458362 in zend_std_call_getter /usr/src/php/Zend/zend_object_handlers.c:206
    #20 0x5d2f0645f0f0 in zend_std_read_property /usr/src/php/Zend/zend_object_handlers.c:739
    #21 0x5d2f0615a2b6 in ZEND_FETCH_OBJ_R_SPEC_TMPVAR_CONST_HANDLER /usr/src/php/Zend/zend_vm_execute.h:15816
    #22 0x5d2f063675ff in execute_ex /usr/src/php/Zend/zend_vm_execute.h:58858
    #23 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #24 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #25 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #26 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)
    #27 0x5d2f0608ea13 in ZEND_DO_FCALL_SPEC_OBSERVER_HANDLER /usr/src/php/Zend/zend_vm_execute.h:2052
    #28 0x5d2f0635ca40 in execute_ex /usr/src/php/Zend/zend_vm_execute.h:57317
    #29 0x751c3c367971 in xdebug_execute_ex (/usr/local/lib/php/extensions/debug-non-zts-20230831/xdebug.so+0x1b971) (BuildId: 488577085cd5dae145a7b62b07584dab74e2495a)

SUMMARY: AddressSanitizer: heap-use-after-free /usr/src/php/Zend/zend_gc.c:2099 in zend_gc_remove_root_tmpvars
Shadow bytes around the buggy address:
  0x5060062f7900: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  0x5060062f7980: fd fd fd fd fd fd fd fd fa fa fa fa 00 00 00 00
  0x5060062f7a00: 00 00 00 fa fa fa fa fa 00 00 00 00 00 00 00 fa
  0x5060062f7a80: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  0x5060062f7b00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x5060062f7b80: fa fa fa fa fa fa fa fa[fd]fd fd fd fd fd fd fa
  0x5060062f7c00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x5060062f7c80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x5060062f7d00: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x5060062f7d80: fa fa fa fa fd fd fd fd fd fd fd fd fa fa fa fa
  0x5060062f7e00: 00 00 00 00 00 00 00 fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==161==ABORTING
Script vendor/bin/phpunit --configuration /opt/app/tests/phpunit.xml --testdox handling the phpunit-tests event returned with error code 1

=================================================================
==155==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x746aad83bc57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x746aac29a334 in getaddrinfo (/lib/x86_64-linux-gnu/libc.so.6+0x13b334) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x746aad83bc57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x746aa7b21740  (<unknown module>)
    #2 0x746aa7b23ee1  (<unknown module>)
    #3 0x746aa7b26205  (<unknown module>)
    #4 0x746aa7b26342  (<unknown module>)
    #5 0x746aa7b26379  (<unknown module>)
    #6 0x746aa7b3d3f6  (<unknown module>)
    #7 0x746aa7c1d789  (<unknown module>)
    #8 0x63cf01f72c11 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2324
    #9 0x63cf01f72d9e in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2339
    #10 0x63cf01fcf30e in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2093
    #11 0x63cf01f75558 in zend_startup_modules /usr/src/php/Zend/zend_API.c:2462
    #12 0x63cf01c3958e in php_module_startup /usr/src/php/main/main.c:2249
    #13 0x63cf0275b5e3 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:410
    #14 0x63cf027614d8 in main /usr/src/php/sapi/cli/php_cli.c:1308
    #15 0x746aac188ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x746aad83bc57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x746aa7b21740  (<unknown module>)
    #2 0x746aa7b3d95e  (<unknown module>)
    #3 0x746aa7b2634a  (<unknown module>)
    #4 0x746aa7b26379  (<unknown module>)
    #5 0x746aa7b3d3f6  (<unknown module>)
    #6 0x746aa7c1d789  (<unknown module>)
    #7 0x63cf01f72c11 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2324
    #8 0x63cf01f72d9e in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2339
    #9 0x63cf01fcf30e in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2093
    #10 0x63cf01f75558 in zend_startup_modules /usr/src/php/Zend/zend_API.c:2462
    #11 0x63cf01c3958e in php_module_startup /usr/src/php/main/main.c:2249
    #12 0x63cf0275b5e3 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:410
    #13 0x63cf027614d8 in main /usr/src/php/sapi/cli/php_cli.c:1308
    #14 0x746aac188ca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Indirect leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x746aad83bc57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x746aac2087a9 in strdup (/lib/x86_64-linux-gnu/libc.so.6+0xa97a9) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

SUMMARY: AddressSanitizer: 136 byte(s) leaked in 4 allocation(s).

=================================================================
==149==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x708a3e670c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x708a3d0cf334 in getaddrinfo (/lib/x86_64-linux-gnu/libc.so.6+0x13b334) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x708a3e670c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x708a388cb740  (<unknown module>)
    #2 0x708a388cdee1  (<unknown module>)
    #3 0x708a388d0205  (<unknown module>)
    #4 0x708a388d0342  (<unknown module>)
    #5 0x708a388d0379  (<unknown module>)
    #6 0x708a388e73f6  (<unknown module>)
    #7 0x708a3900b789  (<unknown module>)
    #8 0x614b2db72c11 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2324
    #9 0x614b2db72d9e in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2339
    #10 0x614b2dbcf30e in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2093
    #11 0x614b2db75558 in zend_startup_modules /usr/src/php/Zend/zend_API.c:2462
    #12 0x614b2d83958e in php_module_startup /usr/src/php/main/main.c:2249
    #13 0x614b2e35b5e3 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:410
    #14 0x614b2e3614d8 in main /usr/src/php/sapi/cli/php_cli.c:1308
    #15 0x708a3cfbdca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Direct leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x708a3e670c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x708a388cb740  (<unknown module>)
    #2 0x708a388e795e  (<unknown module>)
    #3 0x708a388d034a  (<unknown module>)
    #4 0x708a388d0379  (<unknown module>)
    #5 0x708a388e73f6  (<unknown module>)
    #6 0x708a3900b789  (<unknown module>)
    #7 0x614b2db72c11 in zend_startup_module_ex /usr/src/php/Zend/zend_API.c:2324
    #8 0x614b2db72d9e in zend_startup_module_zval /usr/src/php/Zend/zend_API.c:2339
    #9 0x614b2dbcf30e in zend_hash_apply /usr/src/php/Zend/zend_hash.c:2093
    #10 0x614b2db75558 in zend_startup_modules /usr/src/php/Zend/zend_API.c:2462
    #11 0x614b2d83958e in php_module_startup /usr/src/php/main/main.c:2249
    #12 0x614b2e35b5e3 in php_cli_startup /usr/src/php/sapi/cli/php_cli.c:410
    #13 0x614b2e3614d8 in main /usr/src/php/sapi/cli/php_cli.c:1308
    #14 0x708a3cfbdca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

Indirect leak of 12 byte(s) in 1 object(s) allocated from:
    #0 0x708a3e670c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x708a3d03d7a9 in strdup (/lib/x86_64-linux-gnu/libc.so.6+0xa97a9) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

SUMMARY: AddressSanitizer: 136 byte(s) leaked in 4 allocation(s).
php-8.3-segfault.txt (24,255 bytes)   
Operating System
PHP Version8.4.10-8.4.19

Activities

Issue History

Date Modified Username Field Change
2025-11-10 10:43 SunMar New Issue
2025-11-10 10:43 SunMar File Added: php-8.4-heaperror.txt
2025-11-10 10:43 SunMar File Added: php-8.3-segfault.txt