From: pumuckel at metropolis dot de
Operating system: Linux Gentoo
PHP version: 5.3CVS-2009-03-05 (snap)
PHP Bug Type: Reproducible crash
Bug description: zval_update_constant_ex: Segmentation fault
Description:
------------
Reproducable segmentation fault when creating class instance. Caused by
use of an undefined constant.
Reproduce code:
---------------
<?php
class Foo {
public static $bar = array(
FOO => "bar"
);
}
$foo = new Foo();
?>
Expected result:
----------------
clean running script - no crash
Actual result:
--------------
Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1231058752 (LWP 14743)]
0x0836e169 in zval_update_constant_ex ()
(gdb) where
#0 0x0836e169 in zval_update_constant_ex ()
#1 0x0836e94e in zval_update_constant ()
#2 0x08384ee3 in zend_hash_apply_with_argument ()
#3 0x0837efff in zend_update_class_constants ()
#4 0x0837f257 in _object_and_properties_init ()
#5 0x0837f35e in _object_init_ex ()
#6 0x083a8f9d in ?? ()
#7 0x089e6c18 in ?? ()
#8 0x089e8644 in ?? ()
#9 0xb6d0dff4 in ?? () from /lib/libc.so.6
#10 0xb69f88c0 in ?? ()
#11 0x08a18668 in ?? ()
#12 0xbfefa6f8 in ?? ()
#13 0x08a5c8b4 in ?? ()
#14 0x08a18854 in ?? ()
#15 0x08a187f0 in ?? ()
#16 0x08a1883c in ?? ()
#17 0xbfefa708 in ?? ()
#18 0x083995b6 in ?? ()
#19 0x089e8624 in ?? ()
#20 0x00000003 in ?? ()
#21 0x089e6c18 in ?? ()
#22 0x08a187f0 in ?? ()
#23 0x08a187f0 in ?? ()
#24 0x08a1883c in ?? ()
#25 0xbfefa748 in ?? ()
#26 0x0839a839 in execute ()
--
Edit bug report at http://bugs.php.net/?id=47572&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47572&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47572&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47572&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47572&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47572&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47572&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47572&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47572&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47572&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47572&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47572&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47572&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47572&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47572&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47572&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47572&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47572&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47572&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47572&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47572&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47572&r=mysqlcfg