From: fel...@php.net Operating system: Linux PHP version: 5.2CVS-2009-06-15 (CVS) PHP Bug Type: WDDX related Bug description: Object recursion causes segfault when used in wddx_serialize_vars()
Description: ------------ See below. Reproduce code: --------------- $a[] = new stdclass; $a[] = &$a; wddx_serialize_vars($a); Expected result: ---------------- No SIGSEGV. Actual result: -------------- #0 0xb7482e60 in pthread_getspecific () from /lib/i686/cmov/libpthread.so.0 #1 0x08553158 in ts_resource_ex (id=0, th_id=0x0) at /home/felipe/dev/php5/TSRM/TSRM.c:329 #2 0x08524f9b in php_wddx_add_var (packet=0xa383c84, name_var=0xa382b94) at /home/felipe/dev/php5/ext/wddx/wddx.c:696 #3 0x085250f8 in php_wddx_add_var (packet=0xa383c84, name_var=0xa3833ec) at /home/felipe/dev/php5/ext/wddx/wddx.c:712 #4 0x085250f8 in php_wddx_add_var (packet=0xa383c84, name_var=0xa3833ec) at /home/felipe/dev/php5/ext/wddx/wddx.c:712 #5 0x085250f8 in php_wddx_add_var (packet=0xa383c84, name_var=0xa3833ec) at /home/felipe/dev/php5/ext/wddx/wddx.c:712 #6 0x085250f8 in php_wddx_add_var (packet=0xa383c84, name_var=0xa3833ec) at /home/felipe/dev/php5/ext/wddx/wddx.c:712 #7 0x085250f8 in php_wddx_add_var (packet=0xa383c84, name_var=0xa3833ec) at /home/felipe/dev/php5/ext/wddx/wddx.c:712 #8 0x085250f8 in php_wddx_add_var (packet=0xa383c84, name_var=0xa3833ec) at /home/felipe/dev/php5/ext/wddx/wddx.c:712 #9 0x085250f8 in php_wddx_add_var (packet=0xa383c84, name_var=0xa3833ec) at /home/felipe/dev/php5/ext/wddx/wddx.c:712 ... -- Edit bug report at http://bugs.php.net/?id=48562&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48562&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48562&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48562&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48562&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48562&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48562&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48562&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48562&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48562&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48562&r=support Expected behavior: http://bugs.php.net/fix.php?id=48562&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48562&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48562&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48562&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48562&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48562&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48562&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48562&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48562&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48562&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48562&r=mysqlcfg