ID:               36895
 User updated by:  jsschuetz at knapheide dot com
-Summary:          Access Violation and Faulting Application
 Reported By:      jsschuetz at knapheide dot com
-Status:           No Feedback
+Status:           Open
-Bug Type:         *Web Server problem
+Bug Type:         ODBC related
-Operating System: server2003
+Operating System: server2003/WinXP Pro
 PHP Version:      5.1.2
 New Comment:

I narrowed down the code causing the problem.  The below is the entire
program that will cause the error at random.

I am connecting to a DB2 database on an AS400 Iseries with ODCB drivers
provided by IBM client access software.


---------------------------------------------------------
$con = odbc_connect('as400','username','password');   
?>
<META HTTP-EQUIV="Refresh" CONTENT="2;URL=nester.php">
<BR />
Version 6
<br />
<?
$SSnestfiles = "Select * from pdatalib.nestsumpf where nesalpha = 'D'
order by NESDTE DESC, NESTIME DESC";
$SRnestfiles = odbc_exec($con,$SSnestfiles);
while($nestfilearray = odbc_fetch_array($SRnestfiles))
{
}


The issue occurs with the odbc_fetch array call.  If the 
"while($nestfilearray = odbc_fetch_array($SRnestfiles))" is commented
out the code will run fine forever, with the statement in, there will
be random crashes as described previously.

The Meta refresh is simply there to keep executing the code because the
error occurs at random.  In a test environment I opened 6 instances of
the program and allowed them to sit refreshing every 2 secs.  The error
would occur every 2 to 20 mins.  With IIS, it would crash and need to be
restarted with a PHP Access Violation, with Apache there would just be
an event log and the Apache service would restart.


Previous Comments:
------------------------------------------------------------------------

[2006-04-05 01:00:00] 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".

------------------------------------------------------------------------

[2006-03-28 17:38:33] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




------------------------------------------------------------------------

[2006-03-28 17:22:24] jsschuetz at knapheide dot com

Description:
------------
IIS and/or Apache on Server 2003 faulting application error and PHP has
encountered an Access Violation at 000224b2

When running IIS with PHP 5.1.2.2 I get random crashes with the message
PHP has encountered an Access Violation at 000224b2 and an error message
in event viewer throws the message: 

Faulting application w3wp.exe, version 6.0.3790.1830, faulting module
ntdll.dll, version 5.2.3790.1830, fault address 0x000224b2.

I tried reinstalling IIS and PHP with no luck.

To tried to fix the problem by installing Apache 2.0.55 instead
thinking it might be an IIS problem.

Now I don't see the Access Violation message, but I still get messages
in event viewer that saying:

Faulting application Apache.exe, version 2.0.55.0, faulting module
ntdll.dll, version 5.2.3790.1830, fault address 0x000224b2.
   
and 

Faulting application Apache.exe, version 2.0.55.0, faulting module
cwbrw.dll, version 0.0.0.0, fault address 0x00007fbd.


Reproduce code:
---------------
I have not been able to isolate specific code that is causing this
problem.  The error seems to come at random and this is on a production
server running many PHP apps.    



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=36895&edit=1

Reply via email to