#23380 [Fbk->Opn]: Seems to be an fopen bug.

From: Date: Mon, 28 Apr 2003 14:51:32 +0000
Subject: #23380 [Fbk->Opn]: Seems to be an fopen bug.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38580@lists.php.net to get a copy of this message
ID: 23380 User updated by: info at paradigmdirect dot com Reported By: info at paradigmdirect dot com -Status: Feedback +Status: Open Bug Type: Reproducible crash Operating System: w2k sp3 PHP Version: 4.3.2RC1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2003-04-28 08:30:53] 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 08:26:04] 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:14:24] 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:02:50] 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:01:23] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23380&edit=1

« previous php.bugs (#38580) next »