Edit report at https://bugs.php.net/bug.php?id=53841&edit=1
ID: 53841 Updated by: [email protected] Reported by: wxiaoguang at gmail dot com Summary: occasionally dead loop in php_stream_url_wrap_http_ex/_php_stream_get_line -Status: Feedback +Status: No Feedback Type: Bug Package: HTTP related Operating System: Linux PHP Version: php5.3-201102150730 New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2011-06-13 03:02:32] [email protected] Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2011-02-15 18:11:16] wxiaoguang at gmail dot com still occurs in php5.3-201102150730 When php eats much memory ( ~ 100M it seems there are some memory leaks in the program? ), the problems occurs more easily. In the program, I have a big loop to process thousands of web sites, I use DOM/SimpleXML to parse xml data from every site and use GD to process some images. 0x0831db44 in _php_stream_get_line (stream=0xdfe6864, buf=0xdfe5ad8 "Set-Cookie: PHPSESSID=en", maxlen=1024, returned_len=0xbfffd2e4) at /tmp/php5.3-201102150730/main/streams/streams.c:752 752 { (gdb) bt #0 0x0831db44 in _php_stream_get_line (stream=0xdfe6864, buf=0xdfe5ad8 "Set-Cookie: PHPSESSID=en", maxlen=1024, returned_len=0xbfffd2e4) at /tmp/php5.3-201102150730/main/streams/streams.c:752 #1 0x082e6a71 in php_stream_url_wrap_http_ex (wrapper=0x86aef20, path=0x89604cc "http://www.xxxxxxx.com/xxxxxxxx.php", mode=0x842f567 "rb", options=<value optimized out>, opened_path=0x0, context=0xcbfcd08, redirect_max=20, flags=1) at /tmp/php5.3-201102150730/ext/standard/http_fopen_wrapper.c:723 #2 0x082e95c4 in php_stream_url_wrap_http (wrapper=0x86aef20, path=0x89604cc "http://www.xxxxxxx.com/xxxxxxxx.php", mode=0x842f567 "rb", options=4, opened_path=0x0, context=0xcbfcd08) at /tmp/php5.3-201102150730/ext/standard/http_fopen_wrapper.c:925 #3 0x0831d265 in _php_stream_open_wrapper_ex (path=0x89604cc "http://www.xxxxxxx.com/xxxxxxxx.php", mode=0x842f567 "rb", options=4, opened_path=0x0, context=0xcbfcd08) at /tmp/php5.3-201102150730/main/streams/streams.c:1868 #4 0x082ad0be in zif_file_get_contents (ht=3, return_value=0xdb435dc, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /tmp/php5.3-201102150730/ext/standard/file.c:557 #5 0x081f6382 in phar_file_get_contents (ht=3, return_value=0xdb435dc, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /tmp/php5.3-201102150730/ext/phar/func_interceptors.c:225 #6 0x083a35c9 in zend_do_fcall_common_helper_SPEC (execute_data=0x882bdcc) at /tmp/php5.3-201102150730/Zend/zend_vm_execute.h:316 #7 0x0838292e in execute (op_array=0x88ecb14) at /tmp/php5.3-201102150730/Zend/zend_vm_execute.h:107 #8 0x083580b6 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /tmp/php5.3-201102150730/Zend/zend.c:1194 #9 0x08306c57 in php_execute_script (primary_file=0xbffff924) at /tmp/php5.3-201102150730/main/main.c:2268 #10 0x083db742 in main (argc=2, argv=0xbffffa84) at /tmp/php5.3-201102150730/sapi/cli/php_cli.c:1193 (gdb) ------------------------------------------------------------------------ [2011-02-15 09:56:25] [email protected] Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2011-02-15 09:50:38] wxiaoguang at gmail dot com reopen? ------------------------------------------------------------------------ [2011-02-15 09:49:45] wxiaoguang at gmail dot com It happens in php-5.3.5 again 0x083a4c49 in _php_stream_get_line (stream=0x88d5f28, buf=0x8c31948 "http://www.xxxxxxxxxxx.net/xxxxx.php", maxlen=<error type>, returned_len=0x4) at /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c:862 862 /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c: No such file or directory. in /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c (gdb) bt #0 0x083a4c49 in _php_stream_get_line (stream=0x88d5f28, buf=0x8c31948 "http://www.xxxxxxxxxxx.net/xxxx.php", maxlen=<error type>, returned_len=0x4) at /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c:862 #1 0x0833b034 in php_stream_url_wrap_http (wrapper=0x88d5f28, path=0x8c31948 "http://www.xxxxxxxxxx.net/xxxxxx.php", mode=0x84c48d5 "rb", options=4, opened_path=0x0, context=0xba8c5cc) at /usr/src/php5.3/source/php5-5.3.5/ext/standard/http_fopen_wrapper.c:825 #2 0x083a4056 in _php_stream_open_wrapper_ex (path=0x8c31948 "http://www.xxxxxxxxxxx.net/xxxxxxx.php", mode=0x84c48d5 "rb", options=12, opened_path=0x0, context=0xba8c5cc) at /usr/src/php5.3/source/php5-5.3.5/main/streams/streams.c:1864 #3 0x082fa6c6 in zif_file_get_contents (ht=3, return_value=0xa8baf84, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /usr/src/php5.3/source/php5-5.3.5/ext/standard/file.c:557 #4 0x0822b180 in phar_file_get_contents (ht=3, return_value=0xa8baf84, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1) at /usr/src/php5.3/source/php5-5.3.5/ext/phar/func_interceptors.c:225 #5 0x0840d8f1 in execute_internal (execute_data_ptr=0x8a937b0, return_value_used=1) at /usr/src/php5.3/source/php5-5.3.5/Zend/zend_execute.c:1261 #6 0xb5c3f8fb in ?? () from /usr/lib/php5/20090626+lfs/suhosin.so ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=53841 -- Edit this bug report at https://bugs.php.net/bug.php?id=53841&edit=1
