#17000 [Opn->Csd]: casting GLOBALS to object causes segfault.
| From: | iliaa@php.net | Date: | Mon, 19 Aug 2002 12:01:04 +0000 |
| Subject: | #17000 [Opn->Csd]: casting GLOBALS to object causes segfault. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17170@lists.php.net to get a copy of this message | ||
ID: 17000
Updated by: iliaa@php.net
Reported By: alan@akbkhome.com
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: linux (debian)
PHP Version: 4.2.0
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
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