From:             daniel_stadelman at bio-rad dot com
Operating system: Windows x64
PHP version:      5CVS-2006-03-17 (snap)
PHP Bug Type:     Reproducible crash
Bug description:  PHP CGI Crash After Expected Output Produced

Description:
------------
Windows x64 + Apache + PHP CGI

Using ODBC to access MSSQL database.

After running a script with many queries using PEAR DB_DataObject, PHP
crashes.  I do not believe any particular code snippet is causing the
problem, but it seems to involve the number of allocated objects. PHP
seems to be crashing after the entire script has been executed.  After
setting 

implicit_flush = On

in php.ini, the entire expected output is produced.  The call stack looks
like the crash is happening during decreasing the reference count of an
object ...?

The same code does not crash PHP 5.0.5.  It does seem to crash all 5.1.x
versions.


Actual result:
--------------
Unhandled exception at 0x10099bf7 (php5ts.dll) in php-cgi.exe: 0xC0000005:
Access violation writing location 0x02315350.
>       php5ts.dll!_zval_ptr_dtor(_zval_struct * * zval_ptr=0x023e52a4)  Line
393 + 0x6       C
        php5ts.dll!zend_hash_destroy(_hashtable * ht=0x023e5020)  Line 521 +
0x6     C
        php5ts.dll!_zval_dtor_func(_zval_struct * zvalue=0x023e4ff8)  Line 44   
C
        php5ts.dll!_zval_ptr_dtor(_zval_struct * * zval_ptr=0x023e5654)  Line
395 + 0xc       C
        php5ts.dll!zend_hash_destroy(_hashtable * ht=0x023e4cd8)  Line 521 +
0x6     C
        php5ts.dll!_zval_dtor_func(_zval_struct * zvalue=0x023e43e8)  Line 44   
C
        php5ts.dll!_zval_ptr_dtor(_zval_struct * * zval_ptr=0x023e39fc)  Line
395 + 0xc       C
        php5ts.dll!zend_hash_destroy(_hashtable * ht=0x023e37d0)  Line 521 +
0x6     C
        php5ts.dll!zend_objects_free_object_storage(_zend_object *
object=0x023e37a8, void * * * tsrm_ls=0x01b63df0)  Line 96      C
        php5ts.dll!zend_objects_store_free_object_storage(_zend_objects_store *
objects=0x01b686b4, void * * * tsrm_ls=0x01b63df0)  Line 85 + 0xb       C
        php5ts.dll!shutdown_executor(void * * * tsrm_ls=0xa988e850)  Line 281 +
0x13    C
        php5ts.dll!zend_deactivate(void * * * tsrm_ls=0xa988e850)  Line 856     
C
        php5ts.dll!php_request_shutdown(void * dummy=0xa988e850)  Line 1286     
C
        php-cgi.exe!main(int argc=0x850fc73b, char * * argv=0xa988e850)  Line
1636    C
        php-cgi.exe!mainCRTStartup()  Line 398 + 0xe    C
        kernel32.dll!7d4e6e1a() 

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

Reply via email to