From:             
Operating system: Fedora 14 x64
PHP version:      5.3.6
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Crash when using mongodb or couchdb database adapters

Description:
------------
PHP crash either as a httpd module or as cli with `zend_mm_heap
corrupted`.



Please see https://bugzilla.redhat.com/show_bug.cgi?id=694630



This was initially thought as a fedora packaging bug, but even a compiled
from 

source php is producing the same error.



Test script:
---------------
Please see https://bugzilla.redhat.com/show_bug.cgi?id=694630 for a simple
script.







Actual result:
--------------
Tested is using a 2 different virtual machines both running Fedora 14 x64.
One 

with php from yum, the other compiled.



gdb reports no backtrace and says there is `no stack`.



Apache 2.2 crashes, running php-cli too.



relevant strace output:



  array(0) {

  }

}

                </div>

        </div>

</body>

</html>) = 1681

write(2, "zend_mm_heap corrupted\n", 23zend_mm_heap corrupted

) = 23

exit_group(1)                           = ?



Another one with sessions:

pwrite(3, "cart|a:1:{s:2:\"id\";C:7:\"MongoId\""..., 63, 0) = 63

close(3)                                = 0

close(4)                                = 0

write(2, "zend_mm_heap corrupted\n", 23zend_mm_heap corrupted

) = 23

exit_group(1)





It appears php is crashing at the end of the request just before delivering
the 

content, when a database of some sort is used.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=54491&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=54491&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=54491&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=54491&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=54491&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=54491&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=54491&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=54491&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=54491&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=54491&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=54491&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=54491&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=54491&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=54491&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=54491&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54491&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54491&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=54491&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=54491&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=54491&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=54491&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=54491&r=mysqlcfg

Reply via email to