Bug #17000 Updated: casting GLOBALS to object causes segfault.
| From: | sniper@php.net | Date: | Tue, 18 Jun 2002 00:42:42 +0000 |
| Subject: | Bug #17000 Updated: casting GLOBALS to object causes segfault. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10987@lists.php.net to get a copy of this message | ||
ID: 17000
Updated by: sniper@php.net
Reported By: alan@akbkhome.com
Status: Open
-Bug Type: Reproducible crash
+Bug Type: Scripting Engine problem
Operating System: linux (debian)
PHP Version: 4.2.0
Previous Comments:
------------------------------------------------------------------------
[2002-05-04 01:11:45] alan@akbkhome.com
simple script
<?
$t = (object) $GLOBALS;
?>
result = segfault.
Workaround (dont do it!)
Backtrace
Program received signal SIGSEGV, Segmentation fault.
0x4014dd4d in free () from /lib/libc.so.6
(gdb) bt
#0 0x4014dd4d in free () from /lib/libc.so.6
#1 0x4014dc13 in free () from /lib/libc.so.6
#2 0x80c51b0 in shutdown_memory_manager (silent=0, clean_cache=0)
at zend_alloc.c:484
#3 0x805d3ee in php_request_shutdown (dummy=0x0) at main.c:794
#4 0x805c190 in main (argc=2, argv=0xbffffc54) at cgi_main.c:834
#5 0x400f86cf in __libc_start_main () from /lib/libc.so.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17000&edit=1