#16080 [Ana]: Segmentation fault
| From: | sniper@php.net | Date: | Fri, 02 Aug 2002 09:38:42 +0000 |
| Subject: | #16080 [Ana]: Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15795@lists.php.net to get a copy of this message | ||
ID: 16080
Updated by: sniper@php.net
Reported By: th@hahn-software.de
Status: Analyzed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.3.0-dev
New Comment:
I can't reproduce this neither with latest CVS HEAD (4.3.0-dev)
Previous Comments:
------------------------------------------------------------------------
[2002-08-02 05:04:33] jan@php.net
could not reproduce this on FreeBSD 4.4 Release.
------------------------------------------------------------------------
[2002-08-02 00:53:35] patrik@corifeus.com
I was experiencing the same problem, I saw it was a memory error, so I
worked around the bug:
<?php
function th($page)
{
$new_page="more as 5 Characters. Stack Problem?";
$page = &$new_page;
return $page;
}
ob_start("th");
echo "12345";
ob_end_flush();
?>
------------------------------------------------------------------------
[2002-03-14 21:12:18] yohgaki@php.net
The same problem is reported, but I'll keep this one for now :)
Currently, deleting or assining buffer variable ($page in this case)
causes segfault.
Workaround is
<?php
function th($page)
{
$new_page="more as 5 Characters. Stack Problem?";
return $new_page;
}
ob_start("th");
echo "12345";
ob_end_flush();
?>
------------------------------------------------------------------------
[2002-03-14 14:42:36] sniper@php.net
------------------------------------------------------------------------
[2002-03-14 14:41:59] sniper@php.net
Reproduced with latest 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/16080
--
Edit this bug report at http://bugs.php.net/?id=16080&edit=1