Edit report at http://bugs.php.net/bug.php?id=54092&edit=1
ID: 54092
User updated by: daniel dot buschke at nextiraone dot de
Reported by: daniel dot buschke at nextiraone dot de
Summary: Segmentation fault when using FTP proxy
Status: Open
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 5.2.17
Block user comment: N
Private report: N
New Comment:
BackTrace (without debug symbols, hope it is usefull):
#0 0x082c9780 in ?? ()
#1 0x08286b4e in ?? ()
#2 0x082c9c54 in _php_stream_free ()
#3 0x082c9e1b in ?? ()
#4 0x08303a2c in list_entry_destructor ()
#5 0x08301288 in zend_hash_del_key_or_index ()
#6 0x08303cc0 in _zend_list_delete ()
#7 0x0824cc6d in zif_fclose ()
#8 0x08314381 in execute_internal ()
#9 0xb705e672 in xdebug_execute_internal () from
/usr/lib/php5.2/lib/extensions/no-debug-non-zts-20060613/xdebug.so
#10 0x0832a071 in ?? ()
#11 0x08318420 in execute ()
#12 0xb705e324 in xdebug_execute () from
/usr/lib/php5.2/lib/extensions/no-debug-non-zts-20060613/xdebug.so
#13 0x082f6d0c in zend_execute_scripts ()
#14 0x082b5724 in php_execute_script ()
#15 0x0836f023 in main ()
Previous Comments:
------------------------------------------------------------------------
[2011-02-24 16:47:50] daniel dot buschke at nextiraone dot de
Description:
------------
Hi,
either the Bug (#42420) is still alive or it is re-alive. But I am not
allowed to re-open it. So sorry for opening a dup.
php -v says:
------------------
PHP 5.2.17-pl0-gentoo (cli) (built: Feb 18 2011 10:01:58)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans
------------------
The PHP died with SegFault on two different machines with two different
Proxies.
regards
Daniel
Test script:
---------------
<?php
$uri =
'ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-4.1.4.3.tar.bz2';
$proxy = 'tcp://proxy:8080';
$opts = array(
'ftp' => array(
'proxy' => $proxy
)
);
$context = stream_context_create($opts);
stream_context_set_params($context, array());
$fh = fopen($uri, 'r', false, $context);
while (!feof($fh)) {
echo "foo\n";
fread($fh, 4 * 1024);
}
fclose($fh);
?>
Expected result:
----------------
many foos ;-) and no segmentation fault
Actual result:
--------------
many foos and segementation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54092&edit=1