View Issue Details

IDProjectCategoryView StatusLast Update
0002237XdebugUncategorizedpublic2024-01-16 16:32
Reporterdogierdenis Assigned Toderick  
PriorityhighSeveritymajorReproducibilityalways
Status resolvedResolutionduplicate 
PlatformDockerOSDebianOS VersionBullseye
Product Version3.3.1 
Summary0002237: Blackfire Probe received a SIGSEGV
Description

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]

Additional Information
  • Everything works correctly if i disable Xdebug
  • Everything works correctly with php 8.2 and xdebug 3.2.2, but switching to php 8.3 requires switching to xdebug 3.3.x
TagsNo tags attached.
Operating System
PHP Version8.3-dev

Relationships

duplicate of 0002230 closedderick Crash when xdebug and blackfire extensions are active 

Activities

derick

2024-01-15 16:45

administrator   ~0006778

Do things work correctly if you disable blackfire? The problem could lay there as well.

derick

2024-01-15 16:46

administrator   ~0006779

This also looks the same (including same backtrace) as 0002230.

derick

2024-01-16 10:58

administrator   ~0006782

Duplicate of 0002230, for which is a fix on the way: https://github.com/xdebug/xdebug/pull/948

dogierdenis

2024-01-16 16:32

reporter   ~0006785

Good new! Thanks.

Issue History

Date Modified Username Field Change
2024-01-12 14:58 dogierdenis New Issue
2024-01-15 16:45 derick Assigned To => derick
2024-01-15 16:45 derick Status new => feedback
2024-01-15 16:45 derick Note Added: 0006778
2024-01-15 16:46 derick Note Added: 0006779
2024-01-16 10:58 derick Status feedback => resolved
2024-01-16 10:58 derick Resolution open => duplicate
2024-01-16 10:58 derick Note Added: 0006782
2024-01-16 10:58 derick Relationship added duplicate of 0002230
2024-01-16 16:32 dogierdenis Note Added: 0006785