Bug #55764 [NEW]: Review ZEND_MM_LONG_CONST on 64 bit
From: sixd
Operating system: All
PHP version: trunk-SVN-2011-09-22 (SVN)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Review ZEND_MM_LONG_CONST on 64 bit
Description:
------------
Pointed out by Hannes on #php.pecl is a comment in
http://pecl.php.net/bugs/bug.php?id=12821 by
skatta72 at luukku dot
com as follows:
"I think I found this one. It's a missing L in Zend/zend_alloc.c:
define ZEND_MM_LONG_CONST(x) (x##L)
In 64bit system it should be
define ZEND_MM_LONG_CONST(x) (x##LL)
I found with gdb that the size - variable was way off where
freeing a memory block and the resulting pointer caused the seg
fault. Since that change, no crashes.
This is inside the Zend memory management code. I wouldn't be
surprised if it causes many other problems that occur randomly
with php on 64-bit platform."
Dmitry, can you review this?
--
Edit bug report at https://bugs.php.net/bug.php?id=55764&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55764&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55764&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55764&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55764&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55764&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55764&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55764&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55764&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55764&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55764&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55764&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55764&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55764&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55764&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55764&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55764&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55764&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55764&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55764&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55764&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55764&r=mysqlcfg
Thread (3 messages)
- sixd@php.net