php-src
php-src copied to clipboard
segmentation fault in 8.1.4
Description
The following code:
/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:
/usr/local/Cellar/[email protected]/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:25and followed asegmentation faultlike this:
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)
run phpmd on my mac also provides this problem.
# this works because php version is 8.0.17, when I switch version to 8.1.4, segfault shows.
phpmd --version
PHPMD 2.11.1snapshot202112171127
Let us know when you can get that backtrace?
I found that extension causes crash, not php src, sorry.