php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65125 On running PHP script using PDO server for db execution, it crashes apache
Submitted: 2013-06-25 15:11 UTC Modified: 2013-07-01 07:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: lavesh626 at gmail dot com Assigned:
Status: No Feedback Package: Apache related
PHP Version: 5.4Git-2013-06-25 (Git) OS: Windows server 2008 R2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-06-25 15:11 UTC] lavesh626 at gmail dot com
Description:
------------
I am running a php script which executes stored procedures using pdo driver for ms 
sql server 2008.
Sometimes the script executes perfectly while sometimes it crashes the server.
Velow is the eroor as in event view 

Faulting application name: httpd.exe, version: 2.4.3.0, time stamp: 0x502f70a3
Faulting module name: php5ts.dll, version: 5.4.7.0, time stamp: 0x505114f8
Exception code: 0xc0000005
Fault offset: 0x0005cfc7
Faulting process id: 0x117c
Faulting application start time: 0x01ce71ad20bc08f7
Faulting application path: C:\xampp\apache\bin\httpd.exe
Faulting module path: C:\xampp\php\php5ts.dll
Report Id: 8c31acd1-dda0-11e2-9540-8b5a486c809c


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-25 15:49 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2013-06-25 15:49 UTC] laruence@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2013-06-25 15:58 UTC] ab@php.net
Please retry using apache from http://www.apachelounge.com/ and an official PHP 
build. If you get the same crash, please extract the reproduce code and follow the 
instructions on this page to produce a backtrace https://bugs.php.net/bugs-
generating-backtrace-win32.php .
 [2013-06-26 08:42 UTC] lavesh626 at gmail dot com
-Status: Feedback +Status: Open
 [2013-06-26 08:42 UTC] lavesh626 at gmail dot com
Find below the Crash report:

Report for httpd__PID__9112__Date__06_26_2013__Time_08_36_44AM__544__First 
chance exception 0XC0000008.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   AMAZONA-F421F23 
Operating System   Windows Server 2008 R2 Service Pack 1 
Number Of Processors   1 
Process ID   9112 
Process Image   c:\xampp\apache\bin\httpd.exe 
System Up-Time   7 day(s) 00:04:03 
Process Up-Time   03:34:35 


Thread 0 - System ID 5092
Entry point   httpd+2681 
Create time   6/26/2013 5:02:22 AM 
Time spent in user mode   0 Days 0:0:6.474 
Time spent in kernel mode   0 Days 0:0:0.998 






Full Call Stack



Function     Arg 1     Arg 2     Arg 3     Arg 4   Source 
ntdll!ZwClose+12     00000188     00000188     0013fd00     74db1438    
KERNELBASE!CloseHandle+2d     00000188     000afe67     0013fd18     74640127    
kernel32!CloseHandleImplementation+3f     00000188     01f8bde0     01fea0f0     
01f677a8    
libapr_1!apr_crypto_sha256_new+77     01fea0f0     01f8bde0     01fe1470     
0013fd3c    
libapr_1!apr_shm_detach+e     01fea0f0     01f894e0     0013fd54     72e8f4c7    
mod_socache_shmcb+1709     01fe1470     01f8bde0     01f677a8     01f8bde0    
mod_ssl+f4c7     01f8bde0     01f677b8     0013fd7c     74638663    
mod_ssl+558d     01f8bde0     74638b37     74638b00     74667f80    
libapr_1!apr_pool_cleanup_run+43     01f677a8     00885370     00000001     
00000000    
httpd+20e4     00000001     008313a8     00831b68     a0d205ec    
httpd+2560     7efde000     0013fe54     775a9ef2     7efde000    
kernel32!BaseThreadInitThunk+e     7efde000     543f6163     00000000     
00000000    
ntdll!__RtlUserThreadStart+70     00882681     7efde000     ffffffff     
7763736f    
ntdll!_RtlUserThreadStart+1b     00882681     7efde000     00000000     00000000    









Exception Information
In httpd__PID__9112__Date__06_26_2013__Time_08_36_44AM__544__First chance 
exception 0XC0000008.dmp the assembly instruction at 0x773e12f7 which does not 
correspond to any known native module in the process has caused an unknown 
exception (0xc0000008) on thread 0
 

 Report for 
httpd__PID__9112__Date__06_26_2013__Time_08_36_58AM__410__Second_Chance_Exceptio
n_C0000008.dmp



 Report for 
httpd__PID__9112__Date__06_26_2013__Time_08_36_58AM__410__Second_Chance_Exceptio
n_C0000008.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   AMAZONA-F421F23 
Operating System   Windows Server 2008 R2 Service Pack 1 
Number Of Processors   1 
Process ID   9112 
Process Image   c:\xampp\apache\bin\httpd.exe 
System Up-Time   7 day(s) 00:04:17 
Process Up-Time   03:34:49 


Thread 0 - System ID 5092
Entry point   httpd+2681 
Create time   6/26/2013 5:02:22 AM 
Time spent in user mode   0 Days 0:0:6.474 
Time spent in kernel mode   0 Days 0:0:0.998 






Full Call Stack



Function     Arg 1     Arg 2     Arg 3     Arg 4   Source 
ntdll!ZwClose+12     00000188     00000188     0013fd00     74db1438    
KERNELBASE!CloseHandle+2d     00000188     000afe67     0013fd18     74640127    
kernel32!CloseHandleImplementation+3f     00000188     01f8bde0     01fea0f0     
01f677a8    
libapr_1!apr_crypto_sha256_new+77     01fea0f0     01f8bde0     01fe1470     
0013fd3c    
libapr_1!apr_shm_detach+e     01fea0f0     01f894e0     0013fd54     72e8f4c7    
mod_socache_shmcb+1709     01fe1470     01f8bde0     01f677a8     01f8bde0    
mod_ssl+f4c7     01f8bde0     01f677b8     0013fd7c     74638663    
mod_ssl+558d     01f8bde0     74638b37     74638b00     74667f80    
libapr_1!apr_pool_cleanup_run+43     01f677a8     00885370     00000001     
00000000    
httpd+20e4     00000001     008313a8     00831b68     a0d205ec    
httpd+2560     7efde000     0013fe54     775a9ef2     7efde000    
kernel32!BaseThreadInitThunk+e     7efde000     543f6163     00000000     
00000000    
ntdll!__RtlUserThreadStart+70     00882681     7efde000     ffffffff     
7763736f    
ntdll!_RtlUserThreadStart+1b     00882681     7efde000     00000000     00000000    









Exception Information
In 
httpd__PID__9112__Date__06_26_2013__Time_08_36_58AM__410__Second_Chance_Exceptio
n_C0000008.dmp the assembly instruction at 0x773e12f7 which does not correspond 
to any known native module in the process has caused an unknown exception 
(0xc0000008) on thread 0
 

 Report for 
httpd__PID__6184__Date__06_26_2013__Time_08_36_30AM__480__Second_Chance_Exceptio
n_C0000005.dmp



 Report for 
httpd__PID__6184__Date__06_26_2013__Time_08_36_30AM__480__Second_Chance_Exceptio
n_C0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   AMAZONA-F421F23 
Operating System   Windows Server 2008 R2 Service Pack 1 
Number Of Processors   1 
Process ID   6184 
Process Image   C:\xampp\apache\bin\httpd.exe 
System Up-Time   7 day(s) 00:03:49 
Process Up-Time   00:10:08 


Thread 150 - System ID 800
Entry point   libhttpd!ap_regkey_value_remove+1060 
Create time   6/26/2013 8:26:36 AM 
Time spent in user mode   0 Days 0:0:0.0 
Time spent in kernel mode   0 Days 0:0:0.62 






Full Call Stack



Function     Arg 1     Arg 2     Arg 3     Arg 4   Source 
php5ts!efree+87     08e3eb8c     da6ca7a3     08e3f430     093beda8    
php_pdo_sqlsrv_54_ts+6b23     00000000     00000000     00000000     00000000    









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



In 
httpd__PID__6184__Date__06_26_2013__Time_08_36_30AM__480__Second_Chance_Exceptio
n_C0000005.dmp the assembly instruction at php5ts!efree+87 in 
C:\xampp\php\php5ts.dll from The PHP Group has caused an access violation 
exception (0xC0000005) when trying to read from memory location 0x0913ebb4 on 
thread 150





Module Information 
Image Name: C:\xampp\php\php5ts.dll   Symbol Type:  Export 
Base address: 0x00905a4d   Time Stamp:  Wed Sep 12 23:04:24 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.7 
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.93 MBytes   Product Version:  5.4.7 
Symbol File Name:  php5ts.dll   Special Build:  & 



 

 Report for httpd__PID__6184__Date__06_26_2013__Time_08_36_12AM__817__First 
chance exception 0XC0000005.dmp



 Report for httpd__PID__6184__Date__06_26_2013__Time_08_36_12AM__817__First 
chance exception 0XC0000005.dmp
Type of Analysis Performed   Crash Analysis 
Machine Name   AMAZONA-F421F23 
Operating System   Windows Server 2008 R2 Service Pack 1 
Number Of Processors   1 
Process ID   6184 
Process Image   C:\xampp\apache\bin\httpd.exe 
System Up-Time   7 day(s) 00:03:35 
Process Up-Time   00:09:52 


Thread 150 - System ID 800
Entry point   libhttpd!ap_regkey_value_remove+1060 
Create time   6/26/2013 8:26:36 AM 
Time spent in user mode   0 Days 0:0:0.0 
Time spent in kernel mode   0 Days 0:0:0.62 






Full Call Stack



Function     Arg 1     Arg 2     Arg 3     Arg 4   Source 
php5ts!efree+87     08e3eb8c     da6ca7a3     08e3f430     093beda8    
php_pdo_sqlsrv_54_ts+6b23     00000000     00000000     00000000     00000000    









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



In httpd__PID__6184__Date__06_26_2013__Time_08_36_12AM__817__First chance 
exception 0XC0000005.dmp the assembly instruction at php5ts!efree+87 in 
C:\xampp\php\php5ts.dll from The PHP Group has caused an access violation 
exception (0xC0000005) when trying to read from memory location 0x0913ebb4 on 
thread 150





Module Information 
Image Name: C:\xampp\php\php5ts.dll   Symbol Type:  Export 
Base address: 0x00905a4d   Time Stamp:  Wed Sep 12 23:04:24 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.7 
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.93 MBytes   Product Version:  5.4.7 
Symbol File Name:  php5ts.dll   Special Build:  &
 [2013-06-26 08:48 UTC] lavesh626 at gmail dot com
1) 
Type: 
  Error WARNING - DebugDiag was not able to locate debug symbols for php5ts.dll, 
so the information below may be incomplete.

Description:
In httpd__PID__6184__Date__06_26_2013__Time_08_36_12AM__817__First chance 
exception 0XC0000005.dmp the assembly instruction at php5ts!efree+87 in 
C:\xampp\php\php5ts.dll from The PHP Group has caused an access violation 
exception (0xC0000005) when trying to read from memory location 0x0913ebb4 on 
thread 150

  Recommendation :
 Please follow up with the vendor The PHP Group for C:\xampp\php\php5ts.dll
 
2)
Description : 
  Error In 
httpd__PID__9112__Date__06_26_2013__Time_08_36_58AM__410__Second_Chance_Exceptio
n_C0000008.dmp the assembly instruction at 0x773e12f7 which does not correspond 
to any known native module in the process has caused an unknown exception 
(0xc0000008) on thread 0
Recommendation
 Please contact Microsoft Corporation for troubleshooting steps on stack 
corruption
 [2013-06-26 12:46 UTC] felipe@php.net
-Summary: On running PHP scipt using PDO server for db execution, it crashes apache +Summary: On running PHP script using PDO server for db execution, it crashes apache
 [2013-06-26 15:57 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-06-26 15:57 UTC] ab@php.net
@lavesh626 at gmail dot com

Thanks for staying on this, however you've still used the xampp apache build to 
produce the crash report. Unfortunately this makes it unusable. It's not for 
nothing that I've requseted to try the apachelounge build as that's only what we 
support with PHP (that's also what http://windows.php.net/ recommends). There 
are dozen LAMP builds/installers in the world. However that builds are often 
hard/useless/impossible to debug. Please try the same with apachelounge+official 
php and don't forget to get the debug symbols.

From this BT i can read that something is wrong with the openssl binary. Openssl 
is one of the frequent reasons for such builds to crash with PHP. What we also 
need is a reproduce code in PHP (and possibly some SQL in this case).

Thanks
 [2013-07-01 07:00 UTC] ab@php.net
-Status: Feedback +Status: No Feedback
 [2013-07-01 07:00 UTC] ab@php.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 "Re-Opened". Thank you.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 18:01:25 2020 UTC