php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11829 memory access violation
Submitted: 2001-07-02 02:31 UTC Modified: 2001-07-24 02:31 UTC
From: edward_chen at tornado dot com dot tw Assigned:
Status: Closed Package: IIS related
PHP Version: 4.0.4pl1 OS: win2000professional
Private report: No CVE-ID: None
 [2001-07-02 02:31 UTC] edward_chen at tornado dot com dot tw
I've writed a scheduling program with C to execute php application all day in the console mode.Sometimes will happen the following error message:
 
   The instruction at "0x78003abf" referenced memory at "0x0111a000".The memory could not be "read".

This situation would not crash my C program.I only have to do is close the error message.But it will happen again after 3 or 4 hours.
 
Do you have any idea about this situation?

Thanks!!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-02 02:59 UTC] derick@php.net
Is it possible that you can shorten down your script to the point where the problem still occurs, or provide the script in this bug report?

Derick
 [2001-07-23 14:31 UTC] jmoore@php.net
Looks like a Mem Access violation, probably from some thread safe issue, this also doesnt seem IIS related as you mention the console, Please remove all extensions from your php.ini and see if the memory access violations continue if they stop then add the extensions gradually and tell us which one causes the mem access violation to occur as it probably isnt thread safe although this shouldnt effect the console. Anyway there isnt enough information here if you can reproduce it reliably please reopen this bug report including how you reproduce it with a short script.

- James
 [2001-07-24 02:31 UTC] edward_chen at tornado dot com dot tw
Failure to release memory is the first thing we look at when this error occurs.  So there are two ways to look at this problem.  First, the php function may cause memory leaking.  Second, C program does not do a decent job on releasing the resource.  Since my program consistently uses C to recall the function fsockopen() from php to open websites.  I decided to abandon the function fsockopen() in php and decided to adopt C in order to fix the problem. However the problem persistently occurred, so I re-examined 
the C program and found out that during the creation process the program fails to complete the close handle progress.  After fixing the problem, I did a few more tests and found out that the Memory Access violation problem no longer exists.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 01:01:30 2024 UTC