View Issue Details

IDProjectCategoryView StatusLast Update
0002247XdebugUncategorizedpublic2024-04-15 13:46
Reporterjeroenboersma Assigned Toderick  
PrioritynormalSeveritycrashReproducibilitysometimes
Status feedbackResolutionopen 
Product Version3.3.0 
Summary0002247: Xdebug 3.3.0/3.3.1 in PHP 8.1/8.2/8.3 segfaults
Description

Hi all,

I build the following docker images with PHP and xdebug enabled, I always install the latest xdebug via PECL.

So, last week I triggered a build because of sec updates in core PHP which also resulted in xdebug 3.3.1 being installed.

After that fpm crashes (segfaults) started to appear running behind nginx.

The message in fpm was not useful, my syslog also popped a message.

Feb 21 09:18:52 pop-os kernel: [43485.637469] traps: php-fpm[642189] general protection fault ip:***** sp:***** error:0 in libc
.so.6[703a2fc32000+155000]

Googled it and it send me to a memcheck (which I did, thought my laptop was broken) but the next day someone else notified me of the same problem. Which meant it was not a me problem :)

I tried to do a rebuild, downgrade of php (thought it was PHP) and then started disabling modules.
When I disabled the xdebug extension the problem disappeared, so I was onto something.

What I did, downgraded xdebug to 3.2.2 for PHP 8.1 and PHP 8.2 and that also works fine, so happy community again.

PHP 8.3 is still running with the new version 3.3.1 and is throwing the segfaults...

Steps To Reproduce

I have a simple Laravel project running in docker (maybe it's docker related)

  • nginx
  • fpm
  • nodb

PHP 8.3.3 (cli) (built: Feb 16 2024 21:02:14) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies
with Zend OPcache v8.3.3, Copyright (c), by Zend Technologies
with Xdebug v3.3.1, Copyright (c) 2002-2023, by Derick Rethans
with blackfire v1.92.10~linux-x64-non_zts83, https://blackfire.io, by Blackfire

Additional Information

PHP 8.3 logs

development-php83-1  | [22-Feb-2024 14:56:18] WARNING: [pool www] child 10 exited on signal 11 (SIGSEGV - core dumped) after 2925.848081 seconds from start

/var/log/syslog

Feb 22 15:57:47 pop-os kernel: [46500.194420] traps: php-fpm[754130] general protection fault ip:**** sp:**** error:0 in libc.so.6[703a2fc32000+155000]
TagsNo tags attached.
Operating SystemPop!_OS 22.04 LTS
PHP Version8.2.0-8.2.9

Activities

derick

2024-04-15 13:46

administrator   ~0006910

I have released Xdebug 3.3.1, which could have fixed this issue. Can you please try it? It specifically addresses an issue with Blackfire.

Issue History

Date Modified Username Field Change
2024-02-22 15:00 jeroenboersma New Issue
2024-04-15 13:46 derick Assigned To => derick
2024-04-15 13:46 derick Status new => feedback
2024-04-15 13:46 derick Note Added: 0006910