Edit report at https://bugs.php.net/bug.php?id=70818&edit=1
ID: 70818
Comment by: pei dot greet at qq dot com
Reported by: nguyentu dot me at outlook dot com
Summary: Segmentation fault $php_fpm_BIN --daemonize
$php_opts
Status: Open
Type: Bug
Package: opcache
Operating System: CentOS 6
PHP Version: 7.0.0RC6
Block user comment: N
Private report: N
New Comment:
Reading symbols from /usr/lib64/libsmime3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libsmime3.so
Reading symbols from /usr/lib64/libnss3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libnss3.so
Reading symbols from /usr/lib64/libnssutil3.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libnssutil3.so
Reading symbols from /lib64/libplds4.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libplds4.so
Reading symbols from /lib64/libplc4.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libplc4.so
Reading symbols from /lib64/libnspr4.so...(no debugging symbols found)...done.
Loaded symbols for /lib64/libnspr4.so
Reading symbols from /usr/lib64/libssh2.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libssh2.so.1
Reading symbols from /lib64/liblber-2.4.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/liblber-2.4.so.2
more info with gdb
--------------------------------
Reading symbols from /usr/lib64/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libsasl2.so.2
Reading symbols from /lib64/libkrb5support.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib64/libkrb5support.so.0
Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libkeyutils.so.1
Reading symbols from /lib64/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib64/libselinux.so.1
Reading symbols from /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so...done.
Loaded symbols for /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/opcache.so
Reading symbols from /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/yaf.so...done.
Loaded symbols for /opt/php7/lib/php/extensions/no-debug-non-zts-20151012/yaf.so
Core was generated by `/opt/php7/sbin/php-fpm --daemonize --fpm-config /opt/php7/etc/php-fpm.conf
--pi'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000033f0729008 in __strcmp_sse42 () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64
freetype-2.3.11-15.el6_6.1.x86_64 glibc-2.12-1.149.el6_6.7.x86_64 keyutils-libs-1.4-5.el6.x86_64
krb5-libs-1.10.3-37.el6_6.x86_64 libcom_err-1.41.12-21.el6.x86_64 libcurl-7.19.7-40.el6_6.4.x86_64
libidn-1.18-2.el6.x86_64 libjpeg-turbo-1.2.1-3.el6_5.x86_64 libpng-1.2.49-1.el6_2.x86_64
libselinux-2.0.94-5.8.el6.x86_64 libssh2-1.4.2-1.el6.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64
libxml2-2.7.6-17.el6_6.1.x86_64 nspr-4.10.0-1.el6.x86_64 nss-3.15.1-15.el6.x86_64
nss-softokn-freebl-3.14.3-22.el6_6.x86_64 nss-util-3.15.1-3.el6.x86_64 openldap-2.4.39-8.el6.x86_64
openssl-1.0.1e-30.el6.8.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt
#0 0x00000033f0729008 in __strcmp_sse42 () from /lib64/libc.so.6
#1 0x00007ffdba9422a9 in accel_find_sapi (extension=<value optimized out>)
at /data/src/php-src-php-7.0.0RC6/ext/opcache/ZendAccelerator.c:2355
#2 accel_startup (extension=<value optimized out>) at
/data/src/php-src-php-7.0.0RC6/ext/opcache/ZendAccelerator.c:2613
#3 0x0000000000814d41 in zend_extension_startup (extension=0x203a5f0) at
/data/src/php-src-php-7.0.0RC6/Zend/zend_extensions.c:176
#4 0x00000000007fe6b3 in zend_llist_apply_with_del (l=0x11621a0, func=0x814d30
<zend_extension_startup>)
at /data/src/php-src-php-7.0.0RC6/Zend/zend_llist.c:171
#5 0x0000000000814d27 in zend_startup_extensions () at
/data/src/php-src-php-7.0.0RC6/Zend/zend_extensions.c:197
#6 0x00000000007adeda in php_module_startup (sf=<value optimized out>,
additional_modules=<value optimized out>,
num_additional_modules=<value optimized out>) at
/data/src/php-src-php-7.0.0RC6/main/main.c:2197
#7 0x00000000008a70d5 in php_cgi_startup (sapi_module=<value optimized out>)
at /data/src/php-src-php-7.0.0RC6/sapi/fpm/fpm/fpm_main.c:837
#8 0x00000000008a794e in main (argc=6, argv=0x7fff549397c8) at
/data/src/php-src-php-7.0.0RC6/sapi/fpm/fpm/fpm_main.c:1788
Previous Comments:
------------------------------------------------------------------------
[2015-11-02 08:30:10] pei dot greet at qq dot com
I got the same error in CentOs6.5
------------------------
gdb /opt/php7/sbin/php-fpm /var/log/php-fpm.core.33381
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /opt/php7/sbin/php-fpm...done.
BFD: Warning: /var/log/php-fpm.core.33381 is truncated: expected core file size >= 6447104,
found: 1130496.
[New Thread 33381]
Cannot access memory at address 0x33f0421168
Cannot access memory at address 0x33f0421168
Cannot access memory at address 0x33f0421168
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Failed to read a valid object file image from memory.
Core was generated by `/opt/php7/sbin/php-fpm --daemonize --fpm-config /opt/php7/etc/php-fpm.conf
--pi'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000033f0729008 in ?? ()
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.149.el6_6.7.x86_64
---------------------------------
------------------------------------------------------------------------
[2015-10-30 23:21:23] nguyentu dot me at outlook dot com
Hi,
I use the services of DigitalOcean" vs VULTR. I've rebuilt the VPS several times to test
it again, but all failed.
If you want I'm very pleased to send you a VPS with SSH root account. Thank you!
------------------------------------------------------------------------
[2015-10-30 17:30:45] kalle@php.net
Hi
Can you try to do a completely fresh build, as in rebuilding from scratch and clearing all temp
files and make sure paths are clean?
The backtraces are rather strange, and like Xinchen mentions, this seems like a build issue.
Especially the first (non debug bt) is rather odd, as it should not be able to fail at all, and then
later in the debug build, it passes that point with no problem. The second bt tells me there is a
symbol loading issue, which should not be possible as the zend_hash_init function and co, are
already imported from an include in zend.h
------------------------------------------------------------------------
[2015-10-30 12:08:36] nguyentu dot me at outlook dot com
Hi,
I just build it on Ubuntu 12.04 and it worked fine, but it does not work on CentOS 6.
Screenshot: http://prntscr.com/8x0y54
Please help!
------------------------------------------------------------------------
[2015-10-30 07:50:57] nguyentu dot me at outlook dot com
The extensions like gd.so, mbstring.so, mcrypt.so... is working fine except opcache.so.
All of them in /usr/local/php7/lib/php/extensions/debug-non-zts-xxxxxxx
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=70818
--
Edit this bug report at https://bugs.php.net/bug.php?id=70818&edit=1