Bug #70818 [Fbk->Opn]: Segmentation fault $php_fpm_BIN --daemonize $php_opts

From: Date: Fri, 30 Oct 2015 23:21:23 +0000
Subject: Bug #70818 [Fbk->Opn]: Segmentation fault $php_fpm_BIN --daemonize $php_opts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196936@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70818&edit=1 ID: 70818 User updated by: nguyentu dot me at outlook dot com Reported by: nguyentu dot me at outlook dot com Summary: Segmentation fault $php_fpm_BIN --daemonize $php_opts -Status: Feedback +Status: Open Type: Bug Package: opcache Operating System: CentOS 6 PHP Version: 7.0.0RC6 Block user comment: N Private report: N New Comment: 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! Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2015-10-30 07:46:05] laruence@php.net looks like some building issue. make sure you rebuild the opcache then make install it to the right location. ------------------------------------------------------------------------ [2015-10-30 07:43:59] nguyentu dot me at outlook dot com With --enable-debug! # gdb /usr/local/php7/sbin/php-fpm /tmp/coredump-php-fpm.10495 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 /usr/local/php7/sbin/php-fpm...done. [New Thread 10495] Missing separate debuginfo for /usr/local/php7/lib/php/extensions/debug-non-zts-20151012/opcache.so Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/ac/7df85df073eaff15280f291903e52e4a278133 Missing separate debuginfo for Try: yum --enablerepo='*-debug*' install /usr/lib/debug/.build-id/4b/8e1260ccd7c3d8cc131e84001f7220651617ec Reading symbols from /lib64/libcrypt-2.12.so...Reading symbols from /usr/lib/debug/lib64/libcrypt-2.12.so.debug...done. done. Loaded symbols for /lib64/libcrypt-2.12.so Reading symbols from /lib64/libresolv-2.12.so...Reading symbols from /usr/lib/debug/lib64/libresolv-2.12.so.debug...done. done. Loaded symbols for /lib64/libresolv-2.12.so Reading symbols from /lib64/librt-2.12.so...Reading symbols from /usr/lib/debug/lib64/librt-2.12.so.debug...done. done. Loaded symbols for /lib64/librt-2.12.so Reading symbols from /lib64/libm-2.12.so...Reading symbols from /usr/lib/debug/lib64/libm-2.12.so.debug...done. done. Loaded symbols for /lib64/libm-2.12.so Reading symbols from /lib64/libdl-2.12.so...Reading symbols from /usr/lib/debug/lib64/libdl-2.12.so.debug...done. done. Loaded symbols for /lib64/libdl-2.12.so Reading symbols from /lib64/libnsl-2.12.so...Reading symbols from /usr/lib/debug/lib64/libnsl-2.12.so.debug...done. done. Loaded symbols for /lib64/libnsl-2.12.so Reading symbols from /usr/lib64/libxml2.so.2.7.6...Reading symbols from /usr/lib/debug/usr/lib64/libxml2.so.2.7.6.debug...done. done. Loaded symbols for /usr/lib64/libxml2.so.2.7.6 Reading symbols from /lib64/libz.so.1.2.3...Reading symbols from /usr/lib/debug/lib64/libz.so.1.2.3.debug...done. done. Loaded symbols for /lib64/libz.so.1.2.3 Reading symbols from /lib64/libc-2.12.so...Reading symbols from /usr/lib/debug/lib64/libc-2.12.so.debug...done. done. Loaded symbols for /lib64/libc-2.12.so Reading symbols from /lib64/libfreebl3.so...Reading symbols from /usr/lib/debug/lib64/libfreebl3.so.debug...done. done. Loaded symbols for /lib64/libfreebl3.so Reading symbols from /lib64/libpthread-2.12.so...Reading symbols from /usr/lib/debug/lib64/libpthread-2.12.so.debug...done. [Thread debugging using libthread_db enabled] done. Loaded symbols for /lib64/libpthread-2.12.so Reading symbols from /lib64/ld-2.12.so...Reading symbols from /usr/lib/debug/lib64/ld-2.12.so.debug...done. done. Loaded symbols for /lib64/ld-2.12.so Reading symbols from /usr/local/php7/lib/php/extensions/debug-non-zts-20151012/opcache.so...done. Loaded symbols for /usr/local/php7/lib/php/extensions/debug-non-zts-20151012/opcache.so Core was generated by `/usr/local/php7/sbin/php-fpm --daemonize --fpm-config /usr/local/php7/etc/php-f'. Program terminated with signal 11, Segmentation fault. #0 0x00007ff2c327f53f in do_lookup_x (new_hash=3286882123, old_hash=0x7fffd99d7ab8, ref=<value optimized out>, result=0x7fffd99d7aa0, scope=<value optimized out>, i=0, flags=1, skip=0x0, undef_map=0x30d6da0) at dl-lookup.c:232 232 & map->l_gnu_bitmask_idxbits]; (gdb) bt #0 0x00007ff2c327f53f in do_lookup_x (new_hash=3286882123, old_hash=0x7fffd99d7ab8, ref=<value optimized out>, result=0x7fffd99d7aa0, scope=<value optimized out>, i=0, flags=1, skip=0x0, undef_map=0x30d6da0) at dl-lookup.c:232 #1 0x00007ff2c327ff0a in _dl_lookup_symbol_x (undef_name=0x7ff2c13b0676 "_zend_hash_init", undef_map=0x30d6da0, ref=0x7fffd99d7b18, symbol_scope=0x30d70f8, version=0x0, type_class=1, flags=1, skip_map=0x0) at dl-lookup.c:747 #2 0x00007ff2c32840c0 in _dl_fixup (l=<value optimized out>, reloc_arg=<value optimized out>) at ../elf/dl-runtime.c:118 #3 0x00007ff2c328a8f5 in _dl_runtime_resolve () at ../sysdeps/x86_64/dl-trampoline.S:41 #4 0x00007ff2c13b937e in zend_accel_init_shm () at /usr/src/php-7.0.0RC6/ext/opcache/ZendAccelerator.c:2385 #5 0x00007ff2c13b9bbe in accel_startup (extension=0x30d73f0) at /usr/src/php-7.0.0RC6/ext/opcache/ZendAccelerator.c:2638 #6 0x000000000083c966 in zend_extension_startup (extension=0x30d73f0) at /usr/src/php-7.0.0RC6/Zend/zend_extensions.c:176 #7 0x0000000000817ce1 in zend_llist_apply_with_del (l=0x10975e0, func=0x83c93c <zend_extension_startup>) at /usr/src/php-7.0.0RC6/Zend/zend_llist.c:171 #8 0x000000000083c9d9 in zend_startup_extensions () at /usr/src/php-7.0.0RC6/Zend/zend_extensions.c:197 #9 0x0000000000799b17 in php_module_startup (sf=0x107c2c0, additional_modules=0x107c200, num_additional_modules=1) at /usr/src/php-7.0.0RC6/main/main.c:2197 #10 0x00000000009047d0 in php_cgi_startup (sapi_module=0x107c2c0) at /usr/src/php-7.0.0RC6/sapi/fpm/fpm/fpm_main.c:837 #11 0x0000000000906ea7 in main (argc=6, argv=0x7fffd99d83b8) at /usr/src/php-7.0.0RC6/sapi/fpm/fpm/fpm_main.c:1788 ------------------------------------------------------------------------ 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

« previous php.bugs (#196936) next »