#18930 [Com]: foreach() causes httpd child to segfault
| From: | ilia at prohost dot org | Date: | Mon, 19 Aug 2002 14:16:50 +0000 |
| Subject: | #18930 [Com]: foreach() causes httpd child to segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17192@lists.php.net to get a copy of this message | ||
ID: 18930
Comment by: ilia@prohost.org
Reported By: tolli@tol.li
Status: Open
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.2.2
New Comment:
Linux 2.4.19 PHP 4.3.0-dev (20020819)
php -r ' foreach($_SERVER as $s => $s ); '
Resulted in:
/home/rei/php4/Zend/zend_hash.c(1056) : Freeing 0x0827AAB4 (6 bytes),
script=-
Last leak repeated 47 times
/home/rei/php4/Zend/zend_execute.c(2310) : Freeing 0x0827AA74 (12
bytes), script=-
Last leak repeated 47 times
No segmentation fault, however a whole bunch of memory leaks.
Previous Comments:
------------------------------------------------------------------------
[2002-08-19 10:03:18] nohn@php.net
Could neither reproduce with with php4-latest and php4-latest-stable
(CLI) on CompaqTru64/Alpha
------------------------------------------------------------------------
[2002-08-19 09:59:08] nohn@php.net
Could NOT reproduce on SuSE 7.3/Apache 1.3.26/PHP 4.2.2
Configure:
'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php'
'--bindir=/usr/bin' '--libdir=/usr/share'
'--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin'
'--with-mysql=/usr/local/mysql-3.23.49a' '--with-gd=yes'
'--enable-gd-native-ttf' '--enable-gd-imgstrttf'
'--with-tiff-dir=/usr'
'--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-xpm-dir=/usr/X11R6' '--with-ldap=yes' '--with-zlib=yes'
'--with-bz2' '--with-gmp' '--with-xml' '--with-ttf'
'--with-mcal=/usr'
'--with-imap=yes' '--with-ftp' '--with-mcrypt'
'--with-gettext'
'--with-mm' '--enable-versioning' '--enable-trans-sid'
'--enable-inline-optimization' '--enable-track-vars'
'--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-shmop'
'--enable-ftp'
'--enable-wddx' '--with-imap-ssl'
'--with-mnogosearch=/usr/local/mnogosearch' '--with-pgsql=/usr'
'--enable-memory-limit=yes' '--with-apxs=/usr/sbin/apxs'
'--with-ming=/usr' '--with-pdflib=/usr/local'
Could also not verify with latest php 4.3-dev on that same machine (CLI
Build)
------------------------------------------------------------------------
[2002-08-17 00:12:28] kalowsky@php.net
marking as open
------------------------------------------------------------------------
[2002-08-15 21:47:11] kalowsky@php.net
Crashes here on OSX and FreeBSD with latest CVS.
Try using the $_SERVER variables as your array.
------------------------------------------------------------------------
[2002-08-15 21:37:31] rasmus@php.net
Oh, my script was:
$a = array(1,2,3);
foreach($a as $s=>$s);
tested with current CVS.
------------------------------------------------------------------------
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/18930
--
Edit this bug report at http://bugs.php.net/?id=18930&edit=1