Bug #81607 [NEW]: Segmentation fault for opcache.enable_cli=1

From: Date: Wed, 10 Nov 2021 22:36:35 +0000
Subject: Bug #81607 [NEW]: Segmentation fault for opcache.enable_cli=1
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237672@lists.php.net to get a copy of this message
From:             mails at thomasbley dot de
Operating system: linux
PHP version:      8.1.0RC5
Package:          opcache
Bug Type:         Bug
Bug description:Segmentation fault for opcache.enable_cli=1

Description:
------------
php -dopcache.enable_cli=1 psalm --config=psalm.xml.dist --no-cache
--threads=8
Scanning files...
Segmentation fault

php -v
PHP 8.1.0RC5 (cli) (built: Nov  4 2021 14:57:53) (NTS)

php -r "echo implode(',', get_loaded_extensions());"
Core,date,libxml,openssl,pcre,zlib,filter,hash,json,pcntl,Reflection,SPL,session,standard,sodium,mysqlnd,PDO,xml,apcu,calendar,ctype,curl,dom,mbstring,FFI,fileinfo,ftp,gettext,iconv,intl,exif,mysqli,pcov,pdo_mysql,Phar,posix,readline,shmop,SimpleXML,soap,sockets,sysvmsg,sysvsem,sysvshm,tokenizer,xmlreader,xmlwriter,xsl,zip,Zend
OPcache

Test script:
---------------
error case:

git clone --depth=1 git@github.com:vimeo/psalm.git
cd psalm/
composer install
php -dopcache.enable_cli=1 psalm --config=psalm.xml.dist --no-cache
--threads=8
Scanning files...
Segmentation fault

ok case:
php -dopcache.enable_cli=0 psalm --config=psalm.xml.dist --no-cache
--threads=8
php -dopcache.enable_cli=1 psalm --config=psalm.xml.dist --no-cache
--threads=1

Expected result:
----------------
no segfault

Actual result:
--------------
Segmentation fault

-- 
Edit bug report at https://bugs.php.net/bug.php?id=81607&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81607&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81607&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81607&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81607&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81607&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81607&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81607&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81607&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81607&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81607&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81607&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81607&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81607&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81607&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81607&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81607&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81607&r=mysqlcfg


Thread (13 messages)

« previous php.bugs (#237672) next »