|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-12-10 13:03 UTC] felipe@php.net
[2009-12-18 01:00 UTC] php-bugs at lists dot php dot net
[2010-03-11 12:53 UTC] proforg at maloletka dot ru
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
Description: ------------ if apache receives a shutdown signal, php occasionally triggers a segfault, because the refcount pointer of an op_array points to an invalid address. Program terminated with signal 11, Segmentation fault. [New process 1475] #0 0x00007f801f93f390 in ?? () (gdb) bt #0 0x00007f801f93f390 in ?? () #1 <signal handler called> #2 destroy_op_array (op_array=0x1c5fde0) at /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/Zend/zend_opcode.c:232 #3 0x00007f8023642088 in zend_hash_destroy (ht=0x1928a00) at /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/Zend/zend_hash.c:717 #4 0x00007f802363779a in zend_shutdown () at /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/Zend/zend.c:816 #5 0x00007f80235f0df5 in php_module_shutdown () at /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/main/main.c:1921 #6 0x00007f80235f0e99 in php_module_shutdown_wrapper (sapi_globals=0x0) at /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/main/main.c:1892 #7 0x00007f80236ac2b1 in php_apache_child_shutdown (tmp=0x0) at /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/sapi/apache2handler/sapi_apache2.c:362 #8 0x00007f80284bb4fb in ?? () from /usr/lib/libapr-1.so.0 #9 0x00007f80284ba401 in apr_pool_destroy () from /usr/lib/libapr-1.so.0 #10 0x0000000000450d3e in clean_child_exit (code=0) at /root/apache2-backport/httpd-2.2.14/server/mpm/prefork/prefork.c:196 #11 0x000000000045140b in just_die (sig=<value optimized out>) at /root/apache2-backport/httpd-2.2.14/server/mpm/prefork/prefork.c:328 #12 <signal handler called> #13 0x00007f8027ffe190 in __connect_nocancel () from /lib/libc.so.6 #14 0x00007f801bfc65b5 in ?? () #15 0x0000000001c26458 in ?? () #16 0x0000000001b3f528 in ?? () #17 0x00007f801c30e940 in ?? () #18 0x0000000000000015 in ?? () #19 0x0000000001c26458 in ?? () #20 0x0000000001b3f528 in ?? () #21 0x00007f801c30e940 in ?? () #22 0x0000000001b41300 in ?? () #23 0x00007fff41c64dc0 in ?? () #24 0x00007f801bfc7142 in ?? () #25 0x0000000100000001 in ?? () #26 0x000000004b20862f in ?? () #27 0x3020302000000035 in ?? () #28 0x0000000000000000 in ?? () (gdb) frame 2 #2 destroy_op_array (op_array=0x1c5fde0) at /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/Zend/zend_opcode.c:232 232 /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/Zend/zend_opcode.c: No such file or directory. in /home/custompackages/tmp/build/php5_5.2.11.dfsg.1-1.dsc.17103/build/Zend/zend_opcode.c (gdb) print *op_array->refcount Cannot access memory at address 0x7f801fb5da28 [reopened http://bugs.php.net/bug.php?id=49922 with current php ver] Reproduce code: --------------- while true; do curl http://localhost/testpage.php & apachectl restart done Expected result: ---------------- clear error log Actual result: -------------- segfault