php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23380 Seems to be an fopen bug.
Submitted: 2003-04-28 08:01 UTC Modified: 2003-04-29 06:08 UTC
From: info at paradigmdirect dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.3.2-RC OS: w2k sp3
Private report: No CVE-ID: None
 [2003-04-28 08:01 UTC] info at paradigmdirect dot com
I added this to closed bug #22820 also....

I have a bit of code that does the exact same thing as in 22820. It is unfortunately too big as Nick pointed out with his. The common thing is fopen on a url and a connection to mysql. The errors occur all over the place according to dr watson. Here are some examples:

function: efree
FAULT ->100b8fb4 8b4608           mov     eax,[esi+0x8]         
ds:00a7d5c2=????????

...another...
function: zend_hash_index_update_or_next_insert
FAULT ->100adc49 892cb1           mov     [ecx+esi*4],ebp       
ds:0000000b=????????

...another (whole)...
function: zend_hash_rehash
        100add42 c1e902           shr     ecx,0x2
        100add45 f3ab             rep     stosd                 
es:00ce8c60=011931f0
        100add47 8bce             mov     ecx,esi
        100add49 33f6             xor     esi,esi
        100add4b 83e103           and     ecx,0x3
        100add4e f3aa             rep     stosb                       
es:00ce8c60=f0
        100add50 8b4214           mov     eax,[edx+0x14]        
ds:01766eb2=????????
        100add53 3bc6             cmp     eax,esi
        100add55 7427             jz     
do_bind_function_or_class+0x2b2e (100b687e)
        100add57 8b4a04           mov     ecx,[edx+0x4]         
ds:01766eb2=????????
FAULT ->100add5a 8b38             mov     edi,[eax]             
ds:65332d36=????????
        100add5c 23cf             and     ecx,edi
        100add5e 8b7a1c           mov     edi,[edx+0x1c]        
ds:01766eb2=????????
        100add61 8b3c8f           mov     edi,[edi+ecx*4]       
ds:0000000f=????????
        100add64 89701c           mov     [eax+0x1c],esi        
ds:65db0308=????????
        100add67 3bfe             cmp     edi,esi
        100add69 897818           mov     [eax+0x18],edi        
ds:65db0308=????????
        100add6c 7403             jz     
do_bind_function_or_class+0x2921 (100b6671)
        100add6e 89471c           mov     [edi+0x1c],eax        
ds:01766232=????????
        100add71 8b7a1c           mov     edi,[edx+0x1c]        
ds:01766eb2=????????
        100add74 89048f           mov     [edi+ecx*4],eax       
ds:0000000f=????????
        100add77 8b4010           mov     eax,[eax+0x10]        
ds:65db0308=????????

Hope this helps a little.

J

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-28 08:02 UTC] sniper@php.net
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.



 [2003-04-28 08:14 UTC] info at paradigmdirect dot com
Refer to bug #22820. It has all the detailed information but has not been fixed and is closed. I can cut and paste it in here if you need me too.
 [2003-04-28 08:26 UTC] info at paradigmdirect dot com
Crashes everytime from command line. The url is a 404 but usually fopen handles them. Not sure if the crash is always from a 404 either. I'll try to find out more.

<?
$url = 'http://www4.yahoo.com/Education/Universities/Venezuela';
$fp = fopen($url,'rb');
}
?>
 [2003-04-28 08:30 UTC] wez@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Can't reproduce with latest stable snapshot under winxp.
 [2003-04-28 09:51 UTC] info at paradigmdirect dot com
I tried the snapshot and it does indeed open the file I posted here but still fails when you put it in a loop and open random url's from a mysql db. It seems to be worse than the 4.3.2rc1 as far as how long it will run. Seems to fail after about 4 or 5 opens. I'll try to find a url that crashes it always.
 [2003-04-28 12:42 UTC] wez@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Please try a newer snapshot; I fixed the probable cause of this bug a few minutes before your most recent comment; the snap containing that fix should be available now.
 [2003-04-29 06:08 UTC] info at paradigmdirect dot com
I tested the latest cvs version on about 100k urls last night and not one error! Closed. Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC