php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36778 PHP CGI Crash After Expected Output Produced
Submitted: 2006-03-18 00:02 UTC Modified: 2006-03-26 01:00 UTC
From: daniel_stadelman at bio-rad dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5CVS-2006-03-17 (snap) OS: Windows x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: daniel_stadelman at bio-rad dot com
New email:
PHP Version: OS:

 

 [2006-03-18 00:02 UTC] 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() 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-18 13:08 UTC] edink@php.net
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.


 [2006-03-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 19:01:31 2024 UTC