From:             j dot henge-ernst at interexa dot de
Operating system: linux
PHP version:      5.0.1
PHP Bug Type:     Zend Engine 2 problem
Bug description:  SEGFAULT with apache2 on shutdown-child

Description:
------------
PHP 5.0.1 is segfaulting after every request has been processed with our
application. Disabling all register_shutdown_functions or custom-error
handlers didn't help. Simple pages as phpinfo just work fine.

The commandline is not seg-faulting

Using SuSE 9.1 with apache2handler and PHP 5.0.1 self-compiled. Also tried
the current CVS, but that also fails on the same point

If you need additional information to track that down, ask

Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076980544 (LWP 31715)]
0x4061043f in zend_hash_apply (ht=Variable "ht" is not available.
) at /home/hernst/src/php-5.0.1/Zend/zend_hash.c:664
664                     if (apply_func(p->pData TSRMLS_CC)) {
(gdb) where
#0  0x4061043f in zend_hash_apply (ht=Variable "ht" is not available.
) at /home/hernst/src/php-5.0.1/Zend/zend_hash.c:664
#1  0x40601a80 in shutdown_executor () at
/home/hernst/src/php-5.0.1/Zend/zend_execute_API.c:248
#2  0x40609a96 in zend_deactivate () at
/home/hernst/src/php-5.0.1/Zend/zend.c:819
#3  0x405d2679 in php_request_shutdown (dummy=0x0) at
/home/hernst/src/php-5.0.1/main/main.c:1212
#4  0x4063c82e in php_handler (r=0x826b1f0) at
/home/hernst/src/php-5.0.1/sapi/apache2handler/sapi_apache2.c:435
#5  0x08069288 in ap_run_handler ()
#6  0x0000003b in ?? ()
#7  0x00000000 in ?? ()
#8  0x0809a36c in __JCR_LIST__ ()
#9  0x0826b1f0 in ?? ()
#10 0x0826b1f0 in ?? ()
#11 0xbfffd518 in ?? ()
#12 0x0806c8a7 in ap_invoke_handler ()

Using the CVS-version of 5.0
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076980544 (LWP 29322)]
0x4061176f in zend_hash_apply (ht=Variable "ht" is not available.
) at /home/hernst/src/php-src/Zend/zend_hash.c:664
664                     if (apply_func(p->pData TSRMLS_CC)) {
(gdb) where
#0  0x4061176f in zend_hash_apply (ht=Variable "ht" is not available.
) at /home/hernst/src/php-src/Zend/zend_hash.c:664
#1  0x406024e0 in shutdown_executor () at
/home/hernst/src/php-src/Zend/zend_execute_API.c:251
#2  0x4060a8c6 in zend_deactivate () at
/home/hernst/src/php-src/Zend/zend.c:818
#3  0x405d3159 in php_request_shutdown (dummy=0x0) at
/home/hernst/src/php-src/main/main.c:1212
#4  0x4063dd7e in php_handler (r=0x8265e10) at
/home/hernst/src/php-src/sapi/apache2handler/sapi_apache2.c:435
#5  0x08069288 in ap_run_handler ()
#6  0x0000003b in ?? ()
#7  0x00000000 in ?? ()
#8  0x0809a36c in __JCR_LIST__ ()
#9  0x08265e10 in ?? ()
#10 0x08265e10 in ?? ()
#11 0xbfffd508 in ?? ()
#12 0x0806c8a7 in ap_invoke_handler ()
Previous frame inner to this frame (corrupt stack?)


-- 
Edit bug report at http://bugs.php.net/?id=30196&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30196&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30196&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30196&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30196&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30196&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30196&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30196&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30196&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30196&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30196&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30196&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30196&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30196&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30196&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30196&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30196&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30196&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30196&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30196&r=mysqlcfg

Reply via email to