[php-src] Issue #8324: segmentation fault in 8.1.4

From: Date: Fri, 08 Apr 2022 07:03:57 +0000
Subject: [php-src] Issue #8324: segmentation fault in 8.1.4
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240792@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8324 Author: Endy-c ### Description The following code: ```zsh /usr/local/Cellar/php/8.1.4/bin/php /usr/local/bin/composer --version ``` Resulted in this output: ``` [1] 60691 segmentation fault /usr/local/Cellar/php/8.1.4/bin/php /usr/local/bin/composer --version ``` But I expected this output instead: ```zsh /usr/local/Cellar/php@8.0/8.0.17/bin/php /usr/local/bin/composer --version Composer 2.3.2 2022-03-30 20:45:25 ``` - I have 7.4.28, 8.0.17, 8.1.4 installed by brew on my mac, segfault occures under 8.1.4 only. - I have brew reinstalled 8.1.4 and the segfault still persists. - I have reinstalled 8.1.4 from compiling source code(must disable some module rather than default configure using brew), and --enable-debug, hope I can dump core and get stack trace, in this case, it doesn't crash anymore. - I reinstall it again (can't --enable-debug with brew) by brew, and the problem reappeared. - I install PHP8.1.4 by compiling source code with configure --enable-debug on CentOS7.9 VM, it works fine(no crash). - I install PHP8.1.4 by compiling source code without --enable-debug on CentOS7.x ECS, it runs with a segmentation fault after proper functioning(shows the result Composer 2.3.2 2022-03-30 20:45:25 and followed a segmentation fault like this: ```bash composer --version Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? yes Composer 2.3.2 2022-03-30 20:45:25 Segmentation fault ``` ### PHP Version PHP 8.1.4 ### Operating System macOS Monterey(Darwin Kernel Version 21.4.0)

« previous php.bugs (#240792) next »