php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62530 The FastCGI process exited unexpectedly
Submitted: 2012-07-11 11:17 UTC Modified: 2013-02-18 00:35 UTC
From: ralph at alletha dot nl Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.4.4 OS: Windows Server 2008 R2 Standard
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-07-11 11:17 UTC] ralph at alletha dot nl
Description:
------------
Our Server is: Windows Server 2008 R2 Standard
Running: 
- IIS 7.5
- MSSQL 2008 R2
- php-5.4.4-Win32-VC9-x86

We narrowed the error down to a select query we perform.
Query ex. = SELECT [ID], [NAME], [THUMBNAILPHOTO] FROM [DBNAME]

When we include a text field ([THUMBNAILPHOTO]) in the select query we receive 
the mentioned error.
If we just select [ID], [NAME] then it works fine. We've tried to change the 
field [THUMBNAILPHOTO] from to text to varchar(max) but no difference there.
The content of the field [THUMBNAILPHOTO] is a base64_encoded string.
If we put in less then 300 characters then it would also work fine.



Actual result:
--------------
Backtrace result using windows debug diagnostics:
WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, so the 
information below may be incomplete.

In php-
cgi__PID__3648__Date__07_11_2012__Time_11_44_52AM__904__Second_Chance_Exception_
C0000005.dmp the assembly instruction at 
php5ts!zend_hash_quick_add_or_update+8d8 in E:\php-5.4.4-Win32-VC9-
x86\php5ts.dll from The PHP Group has caused an access violation exception 
(0xC0000005) when trying to read from memory location 0x41527441 on thread 0

Report:
Report for php-
cgi__PID__3788__Date__07_11_2012__Time_11_24_54AM__217__Second_Chance_Exception_
C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   WWW-INTRANET-01 
Operating System   Windows Server 2008 R2 Service Pack 1 
Number Of Processors   2 
Process ID   3788 
Process Image   E:\php-5.4.4-Win32-VC9-x86\php-cgi.exe 
System Up-Time   08:05:28 
Process Up-Time   00:00:02 


Thread 0 - System ID 4184
Entry point   php_cgi+75cd 
Create time   7/11/2012 11:24:52 AM 
Time spent in user mode   0 Days 0:0:0.796 
Time spent in kernel mode   0 Days 0:0:0.140 






Full Call Stack



Function     Arg 1     Arg 2     Arg 3     Arg 4   Source 
php5ts!zend_hash_quick_add_or_update+8d8     00002000     028e7ff8     028e2630     
00002000    
php5ts!zend_objects_free_object_storage+306     0000000a     6ba309bf     
028e2630     00002000    
php5ts!ts_resource_ex+14     028e2630     00002000     70c42c3b     028e2630    
php5ts!erealloc+2f     028e2630     00002000     00000000     028e7bb0    
php_pdo_odbc+2c3b     028e7bb0     00002000     00a6f9cc     00a6f9d8    
php5ts!zend_std_get_properties+19f     00000002     00000000     00000000     
00000000    
php5ts!php_pcre_replace_impl+22d5     00000000     6bf312ca     00a6fa38     
012f2650    
php5ts!zend_parse_parameters+2b     028c5a80     0000000b     00000000     
00000000    
php5ts!php_strlcpy+e5     00000001     028c5a80     00000000     028e7bb0    
php5ts!zval_ptr_dtor+84a     011c2c08     012f2650     6ba31dbd     00a6fe48    
php5ts!php_array_merge+67f     00a6fe48     00a6fb30     00000000     011c2c08    
php5ts!execute+1fd     0130d8e8     011c2c01     011c2c08     00a6fe48    
php5ts!zend_execute_scripts+119     00000001     0130c739     00a6fb4c     
00000000    
user32!PostThreadMessageA+e1     00a6ff08     00000000     56433230     00000000    
php5ts!php_execute_script+a7     00000160     00000004     00001000     011b0000    
php5ts!php_load_extension+2aa     00000004     00000000     00000001     
00a6fcd4    
php5ts!php_stream_open_for_zend_ex+140     012f2060     00a6fe48     00000089     
011c2c08    
php5ts!php_stream_open_for_zend_ex+1a6     012f2060     00a6fe48     011c2c08     
0130a068    
php5ts!php_fopen_primary_script+1a8     00a6fe48     011c2c08     0103b4cc     
00000001    
php_cgi+468d     00000000     00000000     00000000     00000000    
msvcr90!__getmainargs+21     7efde000     00a6ff64     77669ef2     7efde000   
f:\dd\vctools\crt_bld\self_x86\crt\src\crtlib.c @ 159 
kernel32!BaseThreadInitThunk+e     7efde000     7669b358     00000000     
00000000    
ntdll!__RtlUserThreadStart+70     010375cd     7efde000     ffffffff     
776f736f    
ntdll!_RtlUserThreadStart+1b     010375cd     7efde000     00000000     00000000    









Exception Information
PHP5TS!ZEND_HASH_QUICK_ADD_OR_UPDATE+8D8WARNING - DebugDiag was not able to 
locate debug symbols for php5ts.dll, so the information below may be incomplete.



In php-
cgi__PID__3788__Date__07_11_2012__Time_11_24_54AM__217__Second_Chance_Exception_
C0000005.dmp the assembly instruction at 
php5ts!zend_hash_quick_add_or_update+8d8 in E:\php-5.4.4-Win32-VC9-
x86\php5ts.dll from The PHP Group has caused an access violation exception 
(0xC0000005) when trying to read from memory location 0x41527441 on thread 0





Module Information 
Image Name: E:\php-5.4.4-Win32-VC9-x86\php5ts.dll   Symbol Type:  Export 
Base address: 0x00905a4d   Time Stamp:  Wed Jun 13 22:30:20 2012  
Checksum: 0x00000000   Comments:   
COM DLL: False   Company Name:  The PHP Group 
ISAPIExtension: False   File Description:  PHP Script Interpreter 
ISAPIFilter: False   File Version:  5.4.4 
Managed DLL: False   Internal Name:  PHP Script Interpreter 
VB DLL: False   Legal Copyright:  Copyright © 1997-2010 The PHP Group 
Loaded Image Name:  php5ts.dll   Legal Trademarks:  PHP 
Mapped Image Name:     Original filename:  php5ts.dll 
Module name:  php5ts   Private Build:   
Single Threaded:  False   Product Name:  PHP 
Module Size:  5.96 MBytes   Product Version:  5.4.4 
Symbol File Name:  php5ts.dll   Special Build:  & 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-11 12:24 UTC] pajoye@php.net
There is no MSSQL driver available in 5.3+, are you sure you are not using pecl's 
sqlsrv?
 [2012-07-11 12:24 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2012-07-11 12:27 UTC] ralph at alletha dot nl
Yes, We use PDO with ODBC.
 [2012-07-11 13:27 UTC] pajoye@php.net
-Package: MSSQL related +Package: PDO related
 [2012-07-11 13:27 UTC] pajoye@php.net
You should try with SqlSrv instead:

http://pecl.php.net/package/sqlsrv
http://sqlsrvphp.codeplex.com/

Changing to PDO (we should create the PDO<driver> category...)
 [2012-07-23 09:12 UTC] ralph at alletha dot nl
Yes, it's working now.
Thanx.
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 22:01:29 2024 UTC