Bug #79513 [NEW]: php coredumps upon restart yet runs normally
| From: | jason at aventia dot pw | Date: | Thu, 23 Apr 2020 12:01:59 +0000 |
| Subject: | Bug #79513 [NEW]: php coredumps upon restart yet runs normally | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-226740@lists.php.net to get a copy of this message | ||
From: jason at aventia dot pw
Operating system: FreeBSD 11.3p7
PHP version: 7.3.17
Package: OpenSSL related
Bug Type: Bug
Bug description:php coredumps upon restart yet runs normally
Description:
------------
hey there,
I've noticed on two similarly configured FreeBSD 11.3 (not any of my
12.1 boxes similarly configured using openssl1.1.1base) servers;
php-fpm core dumps upon restarting since openssl updated to 1.1.1d. It
does not prevent php from working, just core dumps on startup. Openssl
just released some info which may require some action on php's side
https://www.openssl.org/news/secadv/20200421.txt
this issue seems to now reside with php, perhaps something was built
against an earlier version of openssl... Just a sysadmin not a
programmer
This remains valid even from back in April 1st 2020 (no joke)
on FreeBSD 11.3p7
#/usr/local/bin/openssl version
OpenSSL 1.1.1e 17 Mar 2020
# php -v
PHP 7.3.16 (cli) (built: Mar 27 2020 08:49:41) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.16, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.16, Copyright (c) 1999-2018, by Zend
Technologies
Segmentation fault (core dumped)
# service php-fpm restart
Performing sanity check on php-fpm configuration:
[28-Mar-2020 13:09:07] NOTICE: configuration file
/usr/local/etc/php-fpm.conf test is successful
Stopping php_fpm.
Waiting for PIDS: 64904.
Performing sanity check on php-fpm configuration:
[28-Mar-2020 13:09:08] NOTICE: configuration file
/usr/local/etc/php-fpm.conf test is successful
Starting php_fpm.
Segmentation fault (core dumped)
/usr/local/etc/rc.d/php-fpm: WARNING: failed to start php_fpm
# gdb /usr/local/bin/php php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging
symbols found)...
Core was generated by `php -v'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libelf.so.2...Reading symbols from
/usr/lib/debug//lib/libelf.so.2.debug...done.
done.
Loaded symbols for /lib/libelf.so.2
Reading symbols from /lib/libcrypt.so.5...Reading symbols from
/usr/lib/debug//lib/libcrypt.so.5.debug...done.
done.
Loaded symbols for /lib/libcrypt.so.5
Reading symbols from /usr/local/lib/libargon2.so.0...done.
Loaded symbols for /usr/local/lib/libargon2.so.0
Reading symbols from /lib/libm.so.5...Reading symbols from
/usr/lib/debug//lib/libm.so.5.debug...done.
done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /lib/libthr.so.3...Reading symbols from
/usr/lib/debug//lib/libthr.so.3.debug...done.
done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /usr/local/lib/libxml2.so.2...done.
Loaded symbols for /usr/local/lib/libxml2.so.2
Reading symbols from /lib/libz.so.6...Reading symbols from
/usr/lib/debug//lib/libz.so.6.debug...done.
done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/lib/liblzma.so.5...Reading symbols from
/usr/lib/debug//usr/lib/liblzma.so.5.debug...done.
done.
Loaded symbols for /usr/lib/liblzma.so.5
Reading symbols from /usr/local/lib/libpcre2-8.so.0...done.
Loaded symbols for /usr/local/lib/libpcre2-8.so.0
Reading symbols from /lib/libc.so.7...Reading symbols from
/usr/lib/debug//lib/libc.so.7.debug...done.
done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/libssl.so.11...done.
Loaded symbols for /usr/local/lib/libssl.so.11
Reading symbols from /usr/local/lib/libcrypto.so.11...done.
Loaded symbols for /usr/local/lib/libcrypto.so.11
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libiconv.so.2...done.
Loaded symbols for /usr/local/lib/libiconv.so.2
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libpcre.so.1...done.
Loaded symbols for /usr/local/lib/libpcre.so.1
Reading symbols from /libexec/ld-elf.so.1...Reading symbols from
/usr/lib/debug//libexec/ld-elf.so.1.debug...done.
done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x00000008049a8482 in OPENSSL_LH_doall_arg () from
/usr/local/lib/libcrypto.so.11
--
Edit bug report at https://bugs.php.net/bug.php?id=79513&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79513&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79513&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79513&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79513&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79513&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79513&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79513&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79513&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79513&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79513&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79513&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79513&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79513&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79513&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79513&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79513&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79513&r=mysqlcfg