Bug #71982 [NEW]: Segmentation fault
| From: | s dot chernomor at gmail dot com | Date: | Thu, 07 Apr 2016 09:28:27 +0000 |
| Subject: | Bug #71982 [NEW]: Segmentation fault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200385@lists.php.net to get a copy of this message | ||
From: s dot chernomor at gmail dot com
Operating system: centos7
PHP version: 7.0.5
Package: PCRE related
Bug Type: Bug
Bug description:Segmentation fault
Description:
------------
I see many segmentation faults in apache's error_log. They come
periodically one after one. But no errors in logs on proxy (nginx) which
pass requests to apache. It's seems segfault occur when apache process
is shutting down.
# gdb /usr/sbin/httpd /tmp/core.8181
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7
This GDB was configured as "x86_64-redhat-linux-gnu".
Reading symbols from /usr/sbin/httpd...Reading symbols from
/usr/lib/debug/usr/sbin/httpd.debug...done.
done.
[New LWP 8181]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/sbin/httpd -DFOREGROUND'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007f5abf812d93 in sljit_remove_free_block
(free_block=0x7f5abfabc580, free_block=0x7f5abfabc580) at
sljit/sljitExecAllocator.c:165
165 free_block->next->prev = free_block->prev;
Missing separate debuginfos, use: debuginfo-install
apr-1.4.8-3.el7.x86_64 apr-util-1.5.2-6.el7.x86_64
aspell-0.60.6.1-9.el7.x86_64 bzip2-libs-1.0.6-13.el7.x86_64
cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 elfutils-libelf-0.163-3.el7.x86_64
elfutils-libs-0.163-3.el7.x86_64 enchant-1.6.0-8.el7.x86_64
expat-2.1.0-8.el7.x86_64 fontconfig-2.10.95-7.el7.x86_64
freetype-2.4.11-11.el7.x86_64 gd-sj-2.1.0-1.el7.centos.x86_64
glib2-2.42.2-5.el7.x86_64 glibc-2.17-106.el7_2.4.x86_64
jbigkit-libs-2.0-11.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64
krb5-libs-1.13.2-10.el7.x86_64 libX11-1.6.3-2.el7.x86_64
libXau-1.0.8-2.1.el7.x86_64 libXpm-3.5.11-3.el7.x86_64
libattr-2.4.46-12.el7.x86_64 libcap-2.22-8.el7.x86_64
libcom_err-1.42.9-7.el7.x86_64 libcurl-7.29.0-25.el7.centos.x86_64
libdb-5.3.21-19.el7.x86_64 libgcc-4.8.5-4.el7.x86_64
libgcrypt-1.5.3-12.el7_1.1.x86_64 libgpg-error-1.12-3.el7.x86_64
libicu-50.1.2-15.el7.x86_64 libidn-1.28-4.el7.x86_64
libjpeg-turbo-1.2.90-5.el7.x86_64 libpng-1.5.13-7.el7_2.x86_64
libselinux-2.2.2-6.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64
libstdc++-4.8.5-4.el7.x86_64 libtiff-4.0.3-14.el7.x86_64
libuuid-2.23.2-26.el7.x86_64 libxcb-1.11-4.el7.x86_64
libxml2-2.9.1-6.el7_2.2.x86_64 libxslt-1.1.28-5.el7.x86_64
mod_realdoc-0.0-20141020.1f9cbed.3.el7.centos.x86_64
nspr-4.10.8-2.el7_1.x86_64 nss-3.19.1-19.el7_2.x86_64
nss-softokn-freebl-3.16.2.3-13.el7_1.x86_64
nss-util-3.19.1-9.el7_2.x86_64 openldap-2.4.40-8.el7.x86_64
openssl-libs-1.0.1e-51.el7_2.4.x86_64 systemd-libs-219-19.el7_2.4.x86_64
xz-libs-5.1.2-12alpha.el7.x86_64 zlib-1.2.7-15.el7.x86_64
(gdb)
(gdb)
(gdb)
(gdb) where
#0 0x00007f5abf812d93 in sljit_remove_free_block
(free_block=0x7f5abfabc580, free_block=0x7f5abfabc580) at
sljit/sljitExecAllocator.c:165
#1 sljit_free_exec (ptr=0x7f5abfabb010) at
sljit/sljitExecAllocator.c:273
#2 0x00007f5abf82fd2a in sljit_free_code (code=<optimized out>) at
sljit/sljitLir.c:397
#3 _pcre_jit_free (executable_funcs=0x7f5ac0a7f370) at
pcre_jit_compile.c:8419
#4 0x00007f5abf83188c in pcre_free_study (extra=0x7f5ac0a7e9f0) at
pcre_study.c:1557
#5 0x00007f5ab94b7e53 in php_free_pcre_cache (data=<optimized out>) at
/usr/src/debug/php-7.0.5/ext/pcre/php_pcre.c:108
#6 0x00007f5ab97f4881 in zend_hash_destroy (ht=0x7f5aba115920
<pcre_globals>) at /usr/src/debug/php-7.0.5/Zend/zend_hash.c:1284
#7 0x00007f5ab97eaa49 in module_destructor
(module=module@entry=0x7f5ac07c0b00) at
/usr/src/debug/php-7.0.5/Zend/zend_API.c:2516
#8 0x00007f5ab97e35fc in module_destructor_zval (zv=<optimized out>) at
/usr/src/debug/php-7.0.5/Zend/zend.c:615
#9 0x00007f5ab97f53a8 in _zend_hash_del_el_ex (prev=<optimized out>,
p=<optimized out>, idx=<optimized out>, ht=<optimized out>) at
/usr/src/debug/php-7.0.5/Zend/zend_hash.c:1026
#10 _zend_hash_del_el (p=0x7f5ac07db830, idx=4, ht=0x7f5aba11c620
<module_registry>) at /usr/src/debug/php-7.0.5/Zend/zend_hash.c:1050
#11 zend_hash_graceful_reverse_destroy (ht=ht@entry=0x7f5aba11c620
<module_registry>) at /usr/src/debug/php-7.0.5/Zend/zend_hash.c:1502
#12 0x00007f5ab97e8e8c in zend_destroy_modules () at
/usr/src/debug/php-7.0.5/Zend/zend_API.c:1984
#13 0x00007f5ab97e4565 in zend_shutdown () at
/usr/src/debug/php-7.0.5/Zend/zend.c:840
#14 0x00007f5ab97893fb in php_module_shutdown () at
/usr/src/debug/php-7.0.5/main/main.c:2355
#15 0x00007f5ab97894b9 in php_module_shutdown_wrapper
(sapi_globals=<optimized out>) at
/usr/src/debug/php-7.0.5/main/main.c:2323
#16 0x00007f5ab986a1b1 in php_apache_child_shutdown (tmp=<optimized
out>) at
/usr/src/debug/php-7.0.5/sapi/apache2handler/sapi_apache2.c:399
#17 0x00007f5abe9691ae in apr_pool_destroy () from /lib64/libapr-1.so.0
#18 0x00007f5abb6d223c in clean_child_exit (code=code@entry=0) at
prefork.c:221
#19 0x00007f5abb6d26e7 in child_main
(child_num_arg=child_num_arg@entry=35) at prefork.c:728
#20 0x00007f5abb6d2a55 in make_child (s=0x7f5ac060d320, slot=35) at
prefork.c:810
#21 0x00007f5abb6d36ee in perform_idle_server_maintenance (p=<optimized
out>) at prefork.c:912
#22 prefork_run (_pconf=<optimized out>, plog=<optimized out>,
s=<optimized out>) at prefork.c:1100
#23 0x00007f5abfc965ae in ap_run_mpm (pconf=pconf@entry=0x7f5ac05e4138,
plog=0x7f5ac0611358, s=0x7f5ac060d320) at mpm_common.c:96
#24 0x00007f5abfc8fb36 in main (argc=2, argv=0x7ffdeb58b828) at
main.c:777
(gdb)
--
Edit bug report at https://bugs.php.net/bug.php?id=71982&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71982&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71982&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71982&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71982&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71982&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71982&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71982&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71982&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71982&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71982&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71982&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71982&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71982&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71982&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71982&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71982&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71982&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71982&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71982&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71982&r=mysqlcfg