View Issue Details

IDProjectCategoryView StatusLast Update
0002271XdebugUncategorizedpublic2024-06-17 23:32
Reporterjfox97 Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
PlatformDocker - arm64v8/ubuntuOSmacOSOS VersionVentura 13.6.7
Product Version3.3.2 
Summary0002271: Segmentation fault whenever php8.1-xdebug extension is enabled
Description

We're getting segmentation faults from php-fpm whenever the php8.1-xdebug extension is enabled. This issue occurs consistently within our docker container built on the arm64v8/ubuntu base image. The docker engine is running on a macOS Ventura host. We get the following stack trace from the core dump:

Reading symbols from /usr/sbin/php-fpm8.1...
(No debugging symbols found in /usr/sbin/php-fpm8.1)
[New LWP 781]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
Core was generated by `php-fpm: pool www '.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000ffffa84f9190 in zend_string_equal_content (s2=0x6c70736964207463, s1=0xffffa8257de0) at /usr/include/php/20210902/Zend/zend_string.h:357

warning: Source file is more recent than executable.
357 return ZSTR_LEN(s1) == ZSTR_LEN(s2) && zend_string_equal_val(s1, s2);

(gdb) bt
#0 0x0000ffffa84f9190 in zend_string_equal_content (s2=0x6c70736964207463, s1=0xffffa8257de0) at /usr/include/php/20210902/Zend/zend_string.h:357
#1 zend_string_equals (s2=0x6c70736964207463, s1=0xffffa8257de0) at /usr/include/php/20210902/Zend/zend_string.h:362
0000002 mark_fse_as_having_line_breakpoints (fse=0xaaaab8d88e70) at ./build-8.1/src/debugger/debugger.c:573
0000003 handle_breakpoints (return_value=0xffffe10e1c08, breakpoint_type=8, fse=0xaaaab8d88e70) at ./build-8.1/src/debugger/debugger.c:591
0000004 xdebug_debugger_handle_breakpoints (fse=fse@entry=0xaaaab8d88e70, breakpoint_type=breakpoint_type@entry=8, return_value=return_value@entry=0xffffe10e1c08) at ./build-8.1/src/debugger/debugger.c:623
0000005 0x0000ffffa84e1e38 in xdebug_execute_internal_end (current_execute_data=<optimized out>, return_value=0xffffe10e1c08) at ./build-8.1/src/base/base.c:1004
0000006 xdebug_execute_internal (current_execute_data=<optimized out>, return_value=0xffffe10e1c08) at ./build-8.1/src/base/base.c:1028
0000007 0x0000aaaaaeab38e8 in ?? ()
0000008 0x0000aaaaaecfaa68 in execute_ex ()

Additional Information

The issue does not occur on php 8.3 with the php8.3-xdebug extension. We have not tested on php 8.2.

I have the full core dump file, but am unable to attach it to the bug report due to its size.

TagsNo tags attached.
Operating System
PHP Version8.1.10-8.1.19

Activities

derick

2024-06-17 23:32

administrator   ~0006979

How can I reproduce this?

Your ticket does not mention anything about this.

Issue History

Date Modified Username Field Change
2024-06-11 21:34 jfox97 New Issue
2024-06-17 23:32 derick Assigned To => derick
2024-06-17 23:32 derick Status new => feedback
2024-06-17 23:32 derick Note Added: 0006979