#34635 [NEW]: Crash in serialize() or session shutdown
| From: | php at fiddaman dot net | Date: | Sun, 25 Sep 2005 20:54:34 +0000 |
| Subject: | #34635 [NEW]: Crash in serialize() or session shutdown | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85564@lists.php.net to get a copy of this message | ||
From: php at fiddaman dot net
Operating system: Solaris 9
PHP version: 5.0.5
PHP Bug Type: Reproducible crash
Bug description: Crash in serialize() or session shutdown
Description:
------------
PHP 5.0.5 crashes in serialize() or on session shutdown when used as an
Apache module. 5.0.4 was fine.
Reproduce code:
---------------
class test { var $fred; };
$a = new test();
$b = serialize($a);
Expected result:
----------------
No crash.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
0xffffffff7af00f20 in seg4 ()
from /usr/platform/SUNW,UltraAX-i2/lib/sparcv9/libc_psr.so.1
(gdb) where
#0 0xffffffff7af00f20 in seg4 ()
from /usr/platform/SUNW,UltraAX-i2/lib/sparcv9/libc_psr.so.1
#1 0xffffffff7af00724 in blalign ()
from /usr/platform/SUNW,UltraAX-i2/lib/sparcv9/libc_psr.so.1
#2 0x00000001001cd44c in php_var_serialize_intern
(buf=0xffffffff7fffeb00,
struc=0x1007adcb0, var_hash=0xffffffff7fffeb20)
at /spool/src/build/php-5.0.5/ext/standard/var.c:519
#3 0x00000001001cfc64 in php_var_serialize (buf=0xffffffff7fffeb00,
struc=0x1007adcb0, var_hash=0xffffffff7fffeb20)
at /spool/src/build/php-5.0.5/ext/standard/var.c:773
#4 0x00000001001cfcf8 in zif_serialize (ht=2147478304,
return_value=0x1007bd5e8, this_ptr=0x0, return_value_used=1)
at /spool/src/build/php-5.0.5/ext/standard/var.c:796
#5 0x0000000100266da8 in zend_do_fcall_common_helper (
execute_data=0xffffffff7fffef90, opline=0x1007c4bf8,
op_array=0x1007c0518)
at /spool/src/build/php-5.0.5/Zend/zend_execute.c:2760
#6 0x00000001002671f0 in zend_do_fcall_handler (
execute_data=0xffffffff7fffef90, opline=0x1007c4bf8,
op_array=0x1007c0518)
at /spool/src/build/php-5.0.5/Zend/zend_execute.c:2894
#7 0x00000001002592e8 in execute (op_array=0x1007c0518)
at /spool/src/build/php-5.0.5/Zend/zend_execute.c:1437
#8 0x00000001002337d8 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /spool/src/build/php-5.0.5/Zend/zend.c:1064
#9 0x00000001001f2784 in php_execute_script
(primary_file=0xffffffff7ffffa90)
at /spool/src/build/php-5.0.5/main/main.c:1643
#10 0x0000000100271a10 in main (argc=2, argv=0xffffffff7ffffb98)
at /spool/src/build/php-5.0.5/sapi/cli/php_cli.c:946
--
Edit bug report at http://bugs.php.net/?id=34635&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34635&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34635&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34635&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34635&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34635&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34635&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34635&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34635&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34635&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34635&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34635&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34635&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34635&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34635&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34635&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34635&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34635&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34635&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34635&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34635&r=mysqlcfg