Bug #79190 [NEW]: Segfault in zm_activate_date
| From: | l dot lotz at reply dot de | Date: | Wed, 29 Jan 2020 10:48:50 +0000 |
| Subject: | Bug #79190 [NEW]: Segfault in zm_activate_date | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225213@lists.php.net to get a copy of this message | ||
From: l dot lotz at reply dot de
Operating system: Ubuntu 16.04
PHP version: 7.2.27
Package: Date/time related
Bug Type: Bug
Bug description:Segfault in zm_activate_date
Description:
------------
I'm using the ondrej-ppa packages. This bug is triggered in a production
setup with many requests and it does not seem to be triggered by
specific requests. This is triggered in php-fpm and does not seem to be
connected to a specific request.
We get the segfaults every few hours. I can imagine this bug gets
triggered because RSHUTDOWN is not run, since this would set the
DATEG(tzcache) = NULL; and thus not trigger the if condition in
zm_activate_date:
if (DATEG(timezone)) {
efree(DATEG(timezone));
}
Extensions loaded:
mysqlnd.so
opcache.so
pdo.so
xml.so
apcu.so
calendar.so
ctype.so
curl.so
dom.so
exif.so
fileinfo.so
ftp.so
gd.so
geoip.so
gettext.so
iconv.so
igbinary.so
intl.so
json.so
mbstring.so
mysqli.so
pdo_mysql.so
phar.so
posix.so
readline.so
redis.so
shmop.so
simplexml.so
sockets.so
sysvmsg.so
sysvsem.so
sysvshm.so
tideways.so
tokenizer.so
wddx.so
xmlreader.so
xmlwriter.so
xsl.so
zip.so
apc.so
Expected result:
----------------
No segfault
Actual result:
--------------
GDB Backtrace:
#0 zend_mm_free_heap (ptr=0x7fcab4135270, heap=0x7fcacd400040) at
./Zend/zend_alloc.c:1388
#1 _efree (ptr=0x7fcab4135270) at ./Zend/zend_alloc.c:2456
#2 0x000055b8b5a60795 in zm_activate_date (type=<optimized out>,
module_number=<optimized out>) at ./ext/date/php_date.c:729
#3 0x000055b8b5c1b7b0 in zend_activate_modules () at
./Zend/zend_API.c:2600
#4 0x000055b8b5bae7e6 in php_request_startup () at ./main/main.c:1694
#5 0x000055b8b5a5f870 in main (argc=<optimized out>, argv=<optimized
out>) at ./sapi/fpm/fpm/fpm_main.c:1927
--
Edit bug report at https://bugs.php.net/bug.php?id=79190&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79190&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79190&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79190&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79190&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79190&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79190&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79190&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79190&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79190&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79190&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79190&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79190&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79190&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79190&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79190&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79190&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79190&r=mysqlcfg