|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-10-19 16:50 UTC] jani@php.net
  [2009-11-30 10:18 UTC] m dot moeller at bigpoint dot net
  [2011-09-02 10:38 UTC] rojaro at gmail dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ if apache receives a shutdown signal, php occasionally triggers a segfault. #2 0x00007f5c4ea35268 in destroy_op_array (op_array=0x1670790) at /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_opcode.c:230 #3 0x00007f5c4ea49488 in zend_hash_destroy (ht=0x14b8910) at /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_hash.c:717 #4 0x00007f5c4ea3eb3a in zend_shutdown () at /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend.c:816 #5 0x00007f5c4e9f8975 in php_module_shutdown () at /tmp/buildd/php5-5.2.6.dfsg.1/main/main.c:1908 #6 0x00007f5c4e9f8a19 in php_module_shutdown_wrapper (sapi_globals=0x0) at /tmp/buildd/php5-5.2.6.dfsg.1/main/main.c:1879 #7 0x00007f5c4eab2a21 in php_apache_child_shutdown (tmp=0x0) at /tmp/buildd/php5-5.2.6.dfsg.1/sapi/apache2handler/sapi_apache2.c:362 #8 0x00007f5c55e31a5c in ?? () from /usr/lib/libapr-1.so.0 #9 0x00007f5c55e30ca3 in apr_pool_destroy () from /usr/lib/libapr-1.so.0 #10 0x000000000044d8de in clean_child_exit (code=0) at /build/buildd-apache2_2.2.9-10+lenny4-amd64-wTiRUQ/apache2-2.2.9/server/mpm/prefork/prefork.c:198 #11 0x000000000044e00b in just_die (sig=<value optimized out>) at /build/buildd-apache2_2.2.9-10+lenny4-amd64-wTiRUQ/apache2-2.2.9/server/mpm/prefork/prefork.c:330 #12 <signal handler called> #2 0x00007f5c4ea35268 in destroy_op_array (op_array=0x1670790) at /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_opcode.c:230 230 /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_opcode.c: No such file or directory. in /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_opcode.c (gdb) print op_array->refcount $1 = (zend_uint *) 0x7f5c4cbdb908 (gdb) print *op_array->refcount Cannot access memory at address 0x7f5c4cbdb908 Reproduce code: --------------- while true; do curl http://localhost/testpage.php & apachectl restart done Expected result: ---------------- clear error log Actual result: -------------- segfault