php-src icon indicating copy to clipboard operation
php-src copied to clipboard

segmentation fault in 8.1.4

Open Endy-c opened this issue 4 years ago • 3 comments

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:25 and followed a segmentation fault like 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)

Endy-c avatar Apr 08 '22 07:04 Endy-c

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

Endy-c avatar Apr 08 '22 07:04 Endy-c

Let us know when you can get that backtrace?

damianwadley avatar Apr 08 '22 07:04 damianwadley

I found that extension causes crash, not php src, sorry.

Endy-c avatar Apr 11 '22 08:04 Endy-c