php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7296 PHP Memory Errors(Access Violations)
Submitted: 2000-10-17 17:35 UTC Modified: 2001-02-20 07:39 UTC
From: primeevil at thecodevault dot net Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: Windows 2000
Private report: No CVE-ID: None
 [2000-10-17 17:35 UTC] primeevil at thecodevault dot net
With my news script, NewsIt, there is a problem with "compiling" the news. For some reason PHP crashes with memory read errors. MSVC++ Debug reveals that it's an Access Violation. The error, before debug, is as follows:

php.exe - Application Error
The instruction at "0x77fc999b" referenced memory at "0x00b1d54d". The memory could not be "read".

When debug is entered it has this error message:
Unhandled exception in php.exe (NTDLL.DLL): 0xC0000005: Access Violation.

These are the five lines of ASM, starting with the problem line:
77FC999B   mov         cl,byte ptr [eax+5]
77FC999E   test        cl,1
77FC99A1   je          77FCAFF2
77FC99A7   mov         word ptr [eax+2],di
77FC99AB   cmp         di,80h

This happens before anything is written to the file. E-mail me for the script, because the function that builds the news is too large.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-02 15:43 UTC] dbeu@php.net
can you compile a debug build and paste the call stack here?
 [2000-12-07 11:55 UTC] sniper@php.net
Reopen, if this still happens when using latest snapshot
from http://snaps.php.net/

--Jani
 [2000-12-07 19:12 UTC] sniper@php.net
User reported having same problem with latest build from php4win.de

--Jani
 [2001-01-07 03:58 UTC] sniper@php.net
Does this happen with PHP 4.0.4 ?

--Jani
 [2001-02-20 07:39 UTC] sniper@php.net
No feedback, considered fixed.

--Jani

 [2003-01-09 15:47 UTC] apalmer at intercept dot net
I get this issue on Win 2K using php 4.3 built Dec 27 2002 05:28:00. I'm using Apache Webserver 2.0.43.

Whenever I start Apache, or load one of the web pages I get the following:

"Application Error ...The memory Could not be read...
Do you wish to debug?

Visual Studio debugger says:
"Unahandled Exception in php.exe (NTDLL.DLL)0xC00000005:Access Violation"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC