WIth xdebug enabled and Blackfire enabled there is a PHP crash which causes a 502 Bad Gateway error on nginx on each page reload.
After checking the logs it is linked to the fact that Blackfire Probe receives a SIGSEBV coming from XDEBUG.
Docker version 24.0.7, build afdd53b
php image: php-8.3-fpm-bullseye
php -v
PHP 8.3.1 (cli) (built: Jan 11 2024 07:09:50) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.1, Copyright (c) Zend Technologies
with Zend OPcache v8.3.1, Copyright (c), by Zend Technologies
with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans
with blackfire v1.92.7~linux-x64-non_zts83, https://blackfire.io, by Blackfire
php log:
10.5.1.10 - 12/Jan/2024:15:12:45 +0100 "GET /skeleton/index.php" 200
Fri Jan 12 15:12:45 2024 (271): [Fatal Error] Blackfire Probe received a SIGSEGV
Fri Jan 12 15:12:45 2024 (271): [Error] C backtrace :
Fri Jan 12 15:12:45 2024 (271): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/blackfire.so(+0x152c7) [0x7f00f64962c7]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /lib/x86_64-linux-gnu/libc.so.6(+0x38d60) [0x7f00f92bad60]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /lib/x86_64-linux-gnu/libc.so.6(+0x16eae4) [0x7f00f93f0ae4]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/xdebug.so(xdebug_str_addl+0x63) [0x7f00f68304f3]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/xdebug.so(xdebug_log_ex+0x2f2) [0x7f00f682e6a2]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/xdebug.so(+0x19b5b) [0x7f00f6828b5b]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(zend_llist_apply_with_argument+0x22) [0x55d83c7669e2]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(+0x2357da) [0x55d83c4357da]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(+0x23df52) [0x55d83c43df52]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/blackfire.so(+0x2d690) [0x7f00f64ae690]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(zend_execute+0x143) [0x55d83c7e6a83]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/blackfire.so(bf_load_embedded_code+0xe0) [0x7f00f64ce640]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/blackfire.so(zm_activate_blackfire+0x1f8) [0x7f00f64b49c8]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(zend_activate_modules+0x30) [0x55d83c77aba0]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(php_request_startup+0x18f) [0x55d83c70741f]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(+0x2492ca) [0x55d83c4492ca]
Fri Jan 12 15:12:45 2024 (271): [Error] [] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f00f92a5d0a]
Fri Jan 12 15:12:45 2024 (271): [Error] [] php-fpm: pool www(_start+0x2a) [0x55d83c44a7ca]
Fri Jan 12 15:12:45 2024 (271): [Error] PHP backtrace :
[12-Jan-2024 15:12:45] WARNING: [pool www] child 271 exited on signal 11 (SIGSEGV - core dumped) after 782.003837 seconds from start
[12-Jan-2024 15:12:45] NOTICE: [pool www] child 307 started
Fri Jan 12 15:12:45 2024 (272): [Fatal Error] Blackfire Probe received a SIGSEGV
Fri Jan 12 15:12:45 2024 (272): [Error] C backtrace :
Fri Jan 12 15:12:45 2024 (272): [Error] [] /usr/local/lib/php/extensions/no-debug-non-zts-20230831/blackfire.so(+0x152c7) [0x7f00f64962c7]
Fri Jan 12 15:12:45 2024 (272): [Error] [] /lib/x86_64-linux-gnu/libc.so.6(+0x38d60) [0x7f00f92bad60]
Fri Jan 12 15:12:45 2024 (272): [Error] [*] /lib/x86_64-linux-gnu/libc.so.6(+0x16eae4) [0x7f00f93f0ae4] |