Bug #66448 [NEW]: Segfault when adding property to SplEnum
| From: | berend at inversive dot nl | Date: | Thu, 09 Jan 2014 08:38:16 +0000 |
| Subject: | Bug #66448 [NEW]: Segfault when adding property to SplEnum | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-183665@lists.php.net to get a copy of this message | ||
From: berend at inversive dot nl
Operating system: Ubuntu 13.10
PHP version: 5.5.7
Package: SPL related
Bug Type: Bug
Bug description:Segfault when adding property to SplEnum
Description:
------------
Adding a property to a class which extends a SplEnum causes a segfault.
Test script:
---------------
class MyEnum extends SplEnum {
const BLA = 1;
const BLABLA = 2;
const BLABLABLA = 3;
private $someProperty;
}
new MyEnum(1);
Expected result:
----------------
No segfault.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
0x00000000006dca67 in zend_hash_destroy ()
(gdb) backtrace
#0 0x00000000006dca67 in zend_hash_destroy ()
#1 0x00007ffff4d4743d in spl_type_object_free_storage
(_object=0x7ffff7fb9e00) at /tmp/pear/temp/SPL_Types/spl_type.c:66
#2 0x00000000006f6e34 in zend_objects_store_del_ref_by_handle_ex ()
#3 0x00000000006f6e53 in zend_objects_store_del_ref ()
#4 0x000000000077f197 in ?? ()
#5 0x00000000006f8b18 in execute_ex ()
#6 0x00000000006bee79 in dtrace_execute_ex ()
#7 0x00007ffff4f57d7d in xdebug_execute_ex
(execute_data=0x7ffff7f83100) at
/build/buildd/xdebug-2.2.3/build-php5/xdebug.c:1437
#8 0x00000000006d0810 in zend_execute_scripts ()
#9 0x0000000000670a05 in php_execute_script ()
#10 0x0000000000780cee in ?? ()
#11 0x0000000000460290 in main ()
--
Edit bug report at https://bugs.php.net/bug.php?id=66448&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66448&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66448&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66448&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66448&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66448&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66448&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66448&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66448&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66448&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66448&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66448&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66448&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66448&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66448&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66448&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66448&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66448&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66448&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66448&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66448&r=mysqlcfg