From: ciny at synapsia dot sk Operating system: FreeBSD 7.2 amd64 PHP version: 5.2.11 PHP Bug Type: mhash related Bug description: php 5.2.11 with suhosin and mhash.so enabled causes canary mismatch
Description: ------------ When I use php 5.2.11 with suhosin and mhash it generates a canary mismatch. If I try: %php -v i get: ALERT - canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR not set', file 'unknown' if I try %setenv USE_ZEND_ALLOC 0 %php -v I get: PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 11:05:12) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies Segmentation fault (core dumped) there is no package for valgrind on freebsd amd64 so I don't know If I can post more exact trace. Reproduce code: --------------- php -v Expected result: ---------------- PHP 5.2.11 with Suhosin-Patch 0.9.7 (cli) (built: Oct 23 2009 11:05:12) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies Actual result: -------------- ALERT - canary mismatch on efree() - heap overflow detected (attacker 'REMOTE_ADDR not set', file 'unknown') -- Edit bug report at http://bugs.php.net/?id=49968&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49968&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49968&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49968&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49968&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49968&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49968&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49968&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49968&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49968&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49968&r=support Expected behavior: http://bugs.php.net/fix.php?id=49968&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49968&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49968&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49968&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49968&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49968&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49968&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49968&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49968&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49968&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49968&r=mysqlcfg