Re: Bug #44872 canary mismatch on efree() - heap overflow detected
| From: | Krister Karlström | Date: | Wed, 15 Oct 2008 08:55:46 +0000 |
| Subject: | Re: Bug #44872 canary mismatch on efree() - heap overflow detected | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-41058@lists.php.net to get a copy of this message | ||
Hi,
On the Ubuntu server (where the problems occured) I'm not good enough to figure out which version of FreeTDS that is boundled with PHP, but these packages are installed with PHP:
php5-sybase_5.2.4-2ubuntu5.3_i386.deb
php5-mssql_5.2.4-2ubuntu5.3_i386.deb
On the Slackware platform we're apparently using version 0.64, I notice now that there's a newer version 0.82 out.
Could it be that Ubuntu has upgraded to 0.82 which causes the problem?
Greetings,
Krister Karlström
Antony Dovgal wrote:
On 15.10.2008 12:06, Krister Karlström wrote:-- * Ing. Krister Karlström, Zend Certified Engineer * * Systemutvecklare, IT-Centralen * * Arcada - Nylands Svenska Yrkeshögskola * * Jan-Magnus Janssons plats 1, 00550 Helsingfors, Finland * * Tel: +358(20)7699699 GSM: +358(50)5328390 * * E-mail: krister.karlstrom@arcada.fi *Thanks for the advice Derick, valgrind gave this output with USE_ZEND_ALLOC set to 0:==29752== Invalid write of size 1That is very helpful, thanks. Which version of FreeTDS do you use?==29752== at 0x4024D57: memcpy (mc_replace_strmem.c:402) ==29752== by 0x406B0C1: dbconvert (in /usr/lib/libsybdb.so.5.0.0) ==29752== by 0x80997F9: php_mssql_get_column_content_with_type (php_mssql.c:912) ==29752== by 0x809A791: _mssql_fetch_batch (php_mssql.c:1140) ==29752== by 0x809AF19: zif_mssql_query (php_mssql.c:1263)