ARTICLE AD BOX
When running a PHP CLI command like:
php bin/magento cache:flush
We get a segmentation fault at the end, when the script finishes.
# php bin/magento cache:flush Flushed cache types: config layout block_html collections reflection db_ddl compiled_config eav customer_notification config_integration config_integration_api graphql_query_resolver_result full_page config_webservice translate Segmentation fault <------------------------------<<<I'm not sure what's causing this?
The script is running successfully.
Only Cli is affected, web sites working just fine.
Our setup is:
FreeBSD-RELEASE 15.0-P5
PHP 8.3.30
OPCache for Cli: disabled
GDB Back Trace
Reading symbols from /usr/local/bin/php... (No debugging symbols found in /usr/local/bin/php) [New LWP 100537] Core was generated by `php: /usr/local/bin/php /usr/local/www/webroot/bin/magento c'. Program terminated with signal SIGSEGV, Segmentation fault. Address not mapped to object. #0 0x000000082759a8fd in ?? () from /lib/libc.so.7 (gdb) bt #0 0x000000082759a8fd in ?? () from /lib/libc.so.7 #1 0x000000082759196d in ?? () from /lib/libc.so.7 #2 0x0000000825e24cd8 in xmlHashFree () from /usr/local/lib/libxml2.so.16 #3 0x000000085d1eae0e in xsltCleanupGlobals () from /usr/local/lib/libxslt.so.1 #4 0x000000085bac5549 in zm_shutdown_xsl () from /usr/local/lib/php/20230831/xsl.so #5 0x00000000005ddeda in ?? () #6 0x00000000005eac45 in zend_hash_graceful_reverse_destroy () #7 0x00000000005d2b18 in ?? () #8 0x00000000005619d9 in php_module_shutdown () #9 0x00000000006c18fa in ?? () #10 0x000000082749f37f in __libc_start1 () from /lib/libc.so.7 #11 0x00000000003f08c4 in _start () (gdb)