Bug #14161 Updated: segfault after strange code
| From: | mfischer@php.net | Date: | Wed, 21 Nov 2001 15:18:29 +0000 |
| Subject: | Bug #14161 Updated: segfault after strange code | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-71229@lists.php.net to get a copy of this message | ||
ID: 14161
Updated by: mfischer
Reported By: hegyvari@ardents.hu
Status: Open
Old Bug Type: Reproducible crash
Bug Type: Scripting Engine problem
Operating System: Redhat 6.2
PHP Version: 4.0.6
New Comment:
Reproduced with 4.0.6 (crash) and reported memory leak with current CVS:
mfischer@debian:~/src/php/bugtest$ php -f 14161.php
end../zend_execute.c(1962) : Freeing 0x082FC3E4 (3 bytes), script=14161.php
zend_variables.c(106) : Actual location (location was relayed)
Last leak repeated 6 times
Reclassifying this as a ZE problem.
Previous Comments:
------------------------------------------------------------------------
[2001-11-21 10:12:40] mj@php.net
FYI: I get "access denied" when accessing http://mail.ardents.hu:701/info.php3.
------------------------------------------------------------------------
[2001-11-21 10:10:52] hegyvari@ardents.hu
Forgot to mention, that the code finishes, that is the "end" string appears in the
browser. You have to check the apache error log to see the segfault. Of course if this type of code
is in a function, the script will die inside the function.
------------------------------------------------------------------------
[2001-11-21 10:08:28] hegyvari@ardents.hu
<?
$str='1,2,3,4,5,6,7,8,9';
echo $str[0][NO];
echo $str[0][NO];
echo $str[0][NO];
echo $str[0][NO];
echo $str[0][NO];
echo $str[0][NO];
echo $str[0][NO];
echo "end.";
?>
check http://mail.ardents.hu:701/info.php3 for a
phpinfo();
This piece of code causes Apache to segfault. It is a distilled version, the original error was a
typo inside a complex function, hidden inside a loop. It took more than a day to find. PHP4.0.5
produced the same result.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14161&edit=1