Bug #78903 [NEW]: "Allowed memory size" and "bus error" crashes in 7.4 that do not appear in 7.3

From: Date: Tue, 03 Dec 2019 20:50:55 +0000
Subject: Bug #78903 [NEW]: "Allowed memory size" and "bus error" crashes in 7.4 that do not appear in 7.3
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224027@lists.php.net to get a copy of this message
From:             chartjes at grumpy-learning dot com
Operating system: macOS 10.15.1
PHP version:      7.4.0
Package:          Reproducible crash
Bug Type:         Bug
Bug description:"Allowed memory size" and "bus error" crashes in 7.4 that do not
appear in 7.3

Description:
------------
I have been testing out PHP 7.4 with OpenCFP
(https://github.com/opencfp/opencfp) and my test suite that uses PHPUnit
is crashing with "Allowed memory size" errors that do not occur when
using PHP 7.3.

I am using PHP 7.4.0 installed using Homebrew

Here are the modules that are installed

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
phpdbg_webhelper
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

My default memory_limit setting is 768M

I get the following error:

PHP Fatal error:  Allowed memory size of 805306368 bytes exhausted
(tried to allocate 20480 bytes)

If I change memory_limit to be 1024M I get "bus error" when running the
tests


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


Thread (13 messages)

« previous php.bugs (#224027) next »