ID: 36778 Updated by: [EMAIL PROTECTED] Reported By: daniel_stadelman at bio-rad dot com -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Windows x64 PHP Version: 5CVS-2006-03-17 (snap) New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2006-03-18 00:02:50] daniel_stadelman at bio-rad dot com 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 this bug report at http://bugs.php.net/?id=36778&edit=1