ID: 21809 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Sockets related Operating System: RedHat 7.3 -PHP Version: 4CVS-2003-01-22 (stable) +PHP Version: 4CVS-2003-02-14 (stable) Assigned To: wez New Comment:
My script still stalls. Here's a new bt: #0 0x420d3b2e in select () from /lib/i686/libc.so.6 #1 0x081a077c in __JCR_LIST__ () #2 0x0811482b in _php_stream_free (stream=0xbfffb940, close_options=3) at /usr/local/src/php4-STABLE-200302141830/main/streams.c:327 #3 0x080b95ee in zif_fclose (ht=1, return_value=0x81f4514, this_ptr=0x0, return_value_used=0) at /usr/local/src/php4-STABLE-200302141830/ext/standard/file.c:1120 #4 0x0813dc5a in execute (op_array=0x81ef52c) at /usr/local/src/php4-STABLE-200302141830/Zend/zend_execute.c:1596 #5 0x08131595 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php4-STABLE-200302141830/Zend/zend.c:864 #6 0x0810c79c in php_execute_script (primary_file=0xbfffe1f0) at /usr/local/src/php4-STABLE-200302141830/main/main.c:1582 #7 0x0814255f in main (argc=2, argv=0xbfffe274) at /usr/local/src/php4-STABLE-200302141830/sapi/cli/php_cli.c:753 #8 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6 (gdb) frame 2 #2 0x0811482b in _php_stream_free (stream=0xbfffb940, close_options=3) at /usr/local/src/php4-STABLE-200302141830/main/streams.c:327 327 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC); (gdb) print *stream $1 = {ops = 0x10, abstract = 0x0, filterhead = 0x0, filtertail = 0x0, wrapper = 0x0, wrapperthis = 0x0, wrapperdata = 0x0, fgetss_state = 0, is_persistent = 0, mode = '\0' <repeats 15 times>, rsrc_id = 0, in_free = 0, fclose_stdiocast = 0, stdiocast = 0x0, context = 0x0, flags = 0, position = 0, readbuf = 0x0, readbuflen = 0, readpos = 0, writepos = 0, chunk_size = 0, eof = 0} Previous Comments: ------------------------------------------------------------------------ [2003-02-14 15:12:02] [EMAIL PROTECTED] I submitted bug #22099. If it's just a duplicate of this, I'm assuming you think it's fixed. It's not. Here's a backtrace and I did the same thing you asked the last guy to do by printing the contets of frame 2. Got a really odd result. #0 0x401c641e in select () from /lib/libc.so.6 #1 0x0819ae24 in __DTOR_END__ () #2 0x08122691 in _php_stream_free (stream=0x81ead5c, close_options=3) at /home/install/php4-STABLE-200302141830/main/streams.c:327 #3 0x080ad213 in zif_fclose (ht=1, return_value=0x81e7a7c, this_ptr=0x0, return_value_used=0) at /home/install/php4-STABLE-200302141830/ext/standard/file.c:1120 #4 0x0815b850 in execute (op_array=0x81da304) at /home/install/php4-STABLE-200302141830/Zend/zend_execute.c:1596 #5 0x08145b8c in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/install/php4-STABLE-200302141830/Zend/zend.c:864 #6 0x08118f3d in php_execute_script (primary_file=0xbffffa30) at /home/install/php4-STABLE-200302141830/main/main.c:1582 #7 0x08164700 in main (argc=2, argv=0xbffffad4) at /home/install/php4-STABLE-200302141830/sapi/cli/php_cli.c:753 #8 0x401071c4 in __libc_start_main () from /lib/libc.so.6 (gdb) frame 2 #2 0x08122691 in _php_stream_free (stream=0x81ead5c, close_options=3) at /home/install/php4-STABLE-200302141830/main/streams.c:327 327 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC); (gdb) print *stream Cannot access memory at address 0x0 ------------------------------------------------------------------------ [2003-02-13 20:47:41] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2003-02-13 08:22:41] [EMAIL PROTECTED] The select call that ensures all data is flushed to the remote server never times out. #22099 is a dup of this bug. ------------------------------------------------------------------------ [2003-01-23 12:38:55] [EMAIL PROTECTED] (gdb) frame 2 #2 0x08147689 in _php_stream_free (stream=0x82598fc, close_options=3) at /usr/local/src/php4-STABLE-200301220030/main/streams.c:327 327 ret = stream->ops->close(stream, preserve_handle ? 0 : 1 TSRMLS_CC); (gdb) print *stream $2 = {ops = 0x81ee5c0, abstract = 0x824f46c, filterhead = 0x0, filtertail = 0x0, wrapper = 0x0, wrapperthis = 0x0, wrapperdata = 0x0, fgetss_state = 0, is_persistent = 0, mode = "r+", '\0' <repeats 13 times>, rsrc_id = 4, in_free = 1, fclose_stdiocast = 0, stdiocast = 0x0, __exposed = 1, __orig_path = 0x0, context = 0x0, flags = 16, position = 0, readbuf = 0x8254b9c "", readbuflen = 8192, readpos = 0, writepos = 0, chunk_size = 8192, eof = 1} ------------------------------------------------------------------------ [2003-01-23 03:45:38] [EMAIL PROTECTED] Could you do that again, but this time type the following after you type "bt" (also in gdb): frame 2 print *stream ------------------------------------------------------------------------ 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 http://bugs.php.net/21809 -- Edit this bug report at http://bugs.php.net/?id=21809&edit=1