#43861 [Opn->Fbk]: suhosin patch detects heap overflow on mssql_free_result()
| From: | derick@php.net | Date: | Wed, 30 Jan 2008 21:08:27 +0000 |
| Subject: | #43861 [Opn->Fbk]: suhosin patch detects heap overflow on mssql_free_result() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121802@lists.php.net to get a copy of this message | ||
ID: 43861
Updated by: derick@php.net
Reported By: skennedy at vcn dot com
-Status: Open
+Status: Feedback
Bug Type: MSSQL related
Operating System: FreeBSD 6.2
PHP Version: 5.2.5
New Comment:
Sometimes the Zend memory manager hides stuff as well. Could you please
try disabling that by setting the "USE_ZEND_ALLOC" environment variable
to 0? (Something like "export USE_ZEND_ALLOC=0" should do that). And
then re-try to make a valgrind trace. Thanks!
Previous Comments:
------------------------------------------------------------------------
[2008-01-30 18:38:10] skennedy at vcn dot com
That valgrind output *is* without the Suhosin patch.
I was saying that I first compiled PHP w/ Suhosin patch to make sure it
errors-out with the heap overflow as it does on my FreeBSD box and it
did. Then I compiled PHP again this time w/out Suhosin and ran the
valgrind which is the output you see in the link.
------------------------------------------------------------------------
[2008-01-30 17:56:21] rasmus@php.net
Again, that valgrind output does not show an overflow. Either the
problem is being masked by the suhosin patch, or it is a false positive.
Trying removing the suhosin patch and do the valgrind check again.
------------------------------------------------------------------------
[2008-01-30 17:21:28] skennedy at vcn dot com
Rasmus,
I tested if this same heap overflow would occur on my Linux box (Debian
4.0) by compiling my own very basic PHP 5.2.5 (./configure --with-mssql)
w/ Sushosin patch. The result: same exact error as on FreeBSD.
The original valgrind output I submitted was from the PHP installed via
a Debian package. So I recompiled my PHP again this time without
Sushosin patch and ran valgrind again. Updated output:
http://www.bandwidthbuilders.com/valgrind-output.txt
Let me know if you need me to do anything else. Thanks.
------------------------------------------------------------------------
[2008-01-30 01:09:03] rasmus@php.net
I know that Valgrind output looks scary, but that is actually a clean
run. The dlopen/dlclose stuff is normal. Are you seeing the same
warning on this setup?
------------------------------------------------------------------------
[2008-01-30 00:09:25] skennedy at vcn dot com
http://www.bandwidthbuilders.com/valgrind-output.txt
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43861
--
Edit this bug report at http://bugs.php.net/?id=43861&edit=1