ID: 42420
Updated by: [EMAIL PROTECTED]
Reported By: mkwan at darkside dot com dot au
-Status: Open
+Status: Assigned
Bug Type: Reproducible crash
Operating System: *
PHP Version: 5.2CVS-2007-09-04
-Assigned To:
+Assigned To: pollita
New Comment:
Assigned to the maintainer of the FTP stuff.
Sara: Seems like there's some issues with filters.
Propably not related but I stumbled to this:
main/streams/filter.c:432
for(current = filter; current; current = current->next) {
current isn't used anyplace else there..
Also it seems that the filters are nuked in _php_stream_free() before
the closer is run..
Previous Comments:
------------------------------------------------------------------------
[2007-09-04 10:58:32] [EMAIL PROTECTED]
Here's a backtrace I got with latest 5.2 CVS:
Program received signal SIGSEGV, Segmentation fault.
0x082a8b13 in _php_stream_write_filtered (stream=0xa1f84a4,
buf=0x857550f "QUIT\r\n", count=6, flags=0)
at /home/jani/src/php-5.2/main/streams/streams.c:955
955 status = filter->fops->filter(stream, filter,
brig_inp, brig_outp,
(gdb) bt
#0 0x082a8b13 in _php_stream_write_filtered (stream=0xa1f84a4,
buf=0x857550f "QUIT\r\n", count=6, flags=0)
at /home/jani/src/php-5.2/main/streams/streams.c:955
#1 0x082a8cb7 in _php_stream_write (stream=0xa1f84a4, buf=0x857550f
"QUIT\r\n", count=6) at
/home/jani/src/php-5.2/main/streams/streams.c:1021
#2 0x08266db6 in php_stream_ftp_stream_close (wrapper=0x85ccea8,
stream=0xa1f88e8) at
/home/jani/src/php-5.2/ext/standard/ftp_fopen_wrapper.c:102
#3 0x082a77e2 in _php_stream_free (stream=0xa1f88e8, close_options=3)
at /home/jani/src/php-5.2/main/streams/streams.c:366
#4 0x0821203f in zif_file_get_contents (ht=1, return_value=0xa1f7318,
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
at /home/jani/src/php-5.2/ext/standard/file.c:577
#5 0x0830ad90 in zend_do_fcall_common_helper_SPEC
(execute_data=0xbfec8b04) at
/home/jani/src/php-5.2/Zend/zend_vm_execute.h:200
#6 0x0831064d in ZEND_DO_FCALL_SPEC_CONST_HANDLER
(execute_data=0xbfec8b04) at
/home/jani/src/php-5.2/Zend/zend_vm_execute.h:1681
#7 0x0830a8f1 in execute (op_array=0xa1f7ab0) at
/home/jani/src/php-5.2/Zend/zend_vm_execute.h:92
#8 0x082e5ba3 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/jani/src/php-5.2/Zend/zend.c:1134
#9 0x082929af in php_execute_script (primary_file=0xbfecaea0) at
/home/jani/src/php-5.2/main/main.c:1986
#10 0x0835f9a0 in main (argc=3, argv=0xbfecaff4) at
/home/jani/src/php-5.2/sapi/cli/php_cli.c:1140
------------------------------------------------------------------------
[2007-09-04 10:38:22] mkwan at darkside dot com dot au
Sorry, but I'm using an RPM installation, and I'm not in a position to
compile/install/test/remove a debugging version of PHP just so I can
submit a bug report.
I don't think a developer would have any trouble reproducing it.
One other piece of diagnostic information that may be useful: the
following line appears in the Apache log -
127.0.0.1 - - [23/Aug/2007:14:17:43 +1000] "GET
ftp://ftp2.bom.gov.au/anon/gen/radar/IDR463.gif HTTP/1.0" 200 22489 "-"
"-"
So it looks like PHP crashes *after* connecting to the proxy and
requesting the file.
------------------------------------------------------------------------
[2007-08-27 09:21:40] [EMAIL PROTECTED]
And now read again the above mentioned page and reconfigure your PHP
isntallation using --enable-debug this time. Also, use the latest 5.2
CVS snapshot from: http://snaps.php.net/php5.2-latest.tar.gz
------------------------------------------------------------------------
[2007-08-26 23:47:27] mkwan at darkside dot com dot au
#0 0x081ce50c in ?? ()
#1 0x08191a7e in ?? ()
#2 0x081ce9d4 in _php_stream_free ()
#3 0x081533fa in zif_file_get_contents ()
#4 0x08233b00 in ?? ()
#5 0x08223048 in execute ()
#6 0x0820241a in zend_execute_scripts ()
#7 0x081bc256 in php_execute_script ()
#8 0x082885ab in main ()
------------------------------------------------------------------------
[2007-08-26 16:48:45] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
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/42420
--
Edit this bug report at http://bugs.php.net/?id=42420&edit=1